| 140 | | This can be fixed by checking for another (unmangled) symbol. You will want to contact the project to ask for guidance here. |
| | 140 | This can be fixed by checking for another (unmangled) symbol like {{{gethostbyname2}}}. |
| | 141 | The cleanest checks for the above patch would then be: |
| | 142 | |
| | 143 | {{{ |
| | 144 | diff -Naur libevent-1.4.13-stable/configure.in libevent-1.4.13-stable-haiku/configure.in |
| | 145 | --- libevent-1.4.13-stable/configure.in 2009-05-24 13:37:49.000000000 +0000 |
| | 146 | +++ libevent-1.4.13-stable-haiku/configure.in 2009-05-28 16:55:17.000000000 +0000 |
| | 147 | @@ -33,7 +33,6 @@ |
| | 148 | AC_SUBST(LIBTOOL_DEPS) |
| | 149 | |
| | 150 | dnl Checks for libraries. |
| | 151 | -AC_CHECK_LIB(socket, socket) |
| | 152 | +AC_SEARCH_LIBS(socket, socket network) |
| | 153 | -AC_CHECK_LIB(resolv, inet_aton) |
| | 154 | +AC_SEARCH_LIBS(gethostbyname2, bind nsl resolv) |
| | 155 | AC_CHECK_LIB(rt, clock_gettime) |
| | 156 | -AC_CHECK_LIB(nsl, inet_ntoa) |
| | 157 | }}} |
| | 158 | |
| | 159 | You will want to contact the project to ask for guidance here though, as it might impact other platforms. |
| | 160 | Also don't forget to fix the use of the HAVE_FOO macros in the code. |
| | 161 | |
| | 162 | Actually, it seems Haiku provides {{{inet_ntoa()}}} as a weak alias for {{{__inet_ntoa}}}, (plus libnetwork is also checked for for socket(), though some applications won't use the tested symbols if the tested libraries are not there... which is why AC_SEARCH_LIBS is better than AC_CHECK_LIBS, as it first checks if the symbol is available already). |