diff options
| author | Sascha Schumann <sas@php.net> | 2002-03-21 17:05:47 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2002-03-21 17:05:47 +0000 |
| commit | a188fac946a65f4dcc2c6a0f37b0799d74500741 (patch) | |
| tree | bcb80b80b95f20a9aab0996f2ce603462ba37644 | |
| parent | 06f6e47e4c7662a0d65d3518c88180f66fdb267b (diff) | |
| download | php-git-a188fac946a65f4dcc2c6a0f37b0799d74500741.tar.gz | |
Support systems without NIS functions, but with non-working libnsl
| -rw-r--r-- | configure.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 2dcaece071..23b45b99ce 100644 --- a/configure.in +++ b/configure.in @@ -293,10 +293,18 @@ AC_CHECK_LIB(socket, socket, [ 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 |
