cvs: php4 / configure.in
| From: | Jani Taskinen | Date: | Mon, 24 Jun 2002 14:36:10 +0000 |
| Subject: | cvs: php4 / configure.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12498@lists.php.net to get a copy of this message | ||
sniper Mon Jun 24 10:36:10 2002 EDT
Modified files:
/php4 configure.in
Log:
- gethostname() is found in glibc (at least on Linux) and the yp_* funcs
are in libnsl. Fixes bug: #17941
Index: php4/configure.in
diff -u php4/configure.in:1.354 php4/configure.in:1.355
--- php4/configure.in:1.354 Sun Jun 16 13:38:19 2002
+++ php4/configure.in Mon Jun 24 10:36:09 2002
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.354 2002/06/16 17:38:19 andi Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.355 2002/06/24 14:36:09 sniper Exp $ -*- sh -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -308,15 +308,18 @@
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