| 7 | | If we cant to use {{{strsep}}} in Haiku, we need to link to {{{bsd}}}, so add the following to {{{configure.ac}}} (below the other {{{AC_SEARCH_LIBS}}} calls): |
| 8 | | {{{ |
| 9 | | AC_SEARCH_LIBS(strsep, [bsd]) |
| 10 | | }}} |
| 11 | | |
| 12 | | Next, update {{{config.guess}}} and {{{config.sub}}} and regenerate the {{{configure}}} script: |
| 13 | | {{{ |
| 14 | | libtoolize --force --copy --install |
| 15 | | ./autogen.sh |
| 16 | | }}} |
| 17 | | |
| 18 | | Configure and build: |
| 19 | | {{{ |
| 20 | | ./configure --prefix=/boot/common/ |
| 21 | | make |
| 22 | | }}} |
| | 7 | * {{{strsep}}}, {{{wait3}}} and {{{wait4}}} require linking to {{{libbsd}}} |
| | 8 | * {{{setsockopt}}} requires {{{libnetwork}}} instead of {{{libsocket}}} on Haiku |
| | 9 | * Haiku is missing the {{{nice}}} function, {{{rusage.ru_minflt}}} and {{{rusage.ru_majflt}}} |
| | 10 | * if run as root, {{{distccd}}} tries to switch to another user, but due to the lack of multi-user on Haiku this needs to be disabled |