Skip to content

Commit

Permalink
Support systems without NIS functions, but with non-working libnsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Schumann committed Mar 21, 2002
1 parent 06f6e47 commit a188fac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a188fac

Please sign in to comment.