cvs: php4 / configure.in
| From: | Sascha Schumann | Date: | Thu, 21 Mar 2002 17:05:47 +0000 |
| Subject: | cvs: php4 / configure.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10538@lists.php.net to get a copy of this message | ||
sas Thu Mar 21 12:05:47 2002 EDT
Modified files:
/php4 configure.in
Log:
Support systems without NIS functions, but with non-working libnsl
Index: php4/configure.in
diff -u php4/configure.in:1.323 php4/configure.in:1.324
--- php4/configure.in:1.323 Tue Mar 19 21:07:10 2002
+++ php4/configure.in Thu Mar 21 12:05:47 2002
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.323 2002/03/20 02:07:10 sniper Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.324 2002/03/21 17:05:47 sas Exp $ -*- sh -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -293,10 +293,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(yp_get_default_domain,
- [php_no_nsl_checks=yes],[])
+AC_CHECK_FUNC(gethostname, [
+ 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
if test "$php_no_nsl_checks" != "yes"; then