]> granicus.if.org Git - php/commitdiff
- gethostname() is found in glibc (at least on Linux) and the yp_* funcs
authorfoobar <sniper@php.net>
Mon, 24 Jun 2002 14:36:09 +0000 (14:36 +0000)
committerfoobar <sniper@php.net>
Mon, 24 Jun 2002 14:36:09 +0000 (14:36 +0000)
  are in libnsl. Fixes bug: #17941

configure.in

index 46a779e8cfb640eb3a8eb87dc061135553fe5538..77946cc74f1071c94b60e359507b3871b7f14f87 100644 (file)
@@ -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