Skip to content

Commit 32c6a0b

Browse files
devnexennikic
authored andcommitted
further network libraries detection for Haiku system.
Closes GH-5997.
1 parent c925028 commit 32c6a0b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

configure.ac

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ dnl Some systems (OpenServer 5) dislike -lsocket -lnsl, so we try to avoid -lnsl
342342
dnl checks, if we already have the functions which are usually in libnsl. Also,
343343
dnl uClibc will bark at linking with glibc's libnsl.
344344

345-
PHP_CHECK_FUNC(socket, socket)
346-
PHP_CHECK_FUNC(socketpair, socket)
347-
PHP_CHECK_FUNC(htonl, socket)
348-
PHP_CHECK_FUNC(gethostname, nsl)
349-
PHP_CHECK_FUNC(gethostbyaddr, nsl)
350-
PHP_CHECK_FUNC(dlopen, dl)
351-
PHP_CHECK_FUNC(dlsym, dl)
345+
PHP_CHECK_FUNC(socket, socket, network)
346+
PHP_CHECK_FUNC(socketpair, socket, network)
347+
PHP_CHECK_FUNC(htonl, socket, network)
348+
PHP_CHECK_FUNC(gethostname, nsl, network)
349+
PHP_CHECK_FUNC(gethostbyaddr, nsl, network)
350+
PHP_CHECK_FUNC(dlopen, dl, root)
351+
PHP_CHECK_FUNC(dlsym, dl, root)
352352
if test "$ac_cv_func_dlopen" = "yes"; then
353353
AC_DEFINE(HAVE_LIBDL, 1, [ ])
354354
fi

0 commit comments

Comments
 (0)