From 08b1d08008689588d2ad9efa2d9a77c3d0b83087 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 24 Jun 2002 14:36:09 +0000 Subject: [PATCH] - gethostname() is found in glibc (at least on Linux) and the yp_* funcs are in libnsl. Fixes bug: #17941 --- configure.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 46a779e8cf..77946cc74f 100644 --- a/configure.in +++ b/configure.in @@ -308,15 +308,18 @@ dnl Some systems (OpenServer 5) dislike -lsocket -lnsl, so we try dnl to avoid -lnsl checks, if we already have the functions which dnl are usually in libnsl dnl Also, uClibc will bark at linking with glibc's libnsl. - unset ac_cv_func_gethostname unset ac_cv_func_yp_get_default_domain -AC_CHECK_FUNC(gethostname, [ +case $host_alias in + *unixware* | *sco*) + AC_CHECK_FUNC(gethostname, [ + php_no_nsl_checks=yes + ]) + ;; +esac + +AC_CHECK_FUNC(yp_get_default_domain, [ php_no_nsl_checks=yes -],[ - AC_CHECK_FUNC(yp_get_default_domain, [ - php_no_nsl_checks=yes - ]) ]) unset ac_cv_func_gethostname unset ac_cv_func_yp_get_default_domain -- 2.40.0