From: Jani Taskinen Date: Wed, 2 Dec 2009 08:54:50 +0000 (+0000) Subject: - Fixed bug #50345 (nanosleep not detected properly on some solaris versions) X-Git-Tag: php-5.4.0alpha1~191^2~2312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c9c087aa3f77e3bd737bb1bea960300f7ea715b;p=php - Fixed bug #50345 (nanosleep not detected properly on some solaris versions) --- diff --git a/configure.in b/configure.in index 0ee00e99cf..e6f7784ba9 100644 --- a/configure.in +++ b/configure.in @@ -391,9 +391,6 @@ dnl Check for inet_aton and dn_skipname dnl in -lc, -lbind and -lresolv PHP_CHECK_FUNC(inet_aton, resolv, bind) -dnl Some systems (like OpenSolaris) do not have nanosleep in libc -PHP_CHECK_FUNC(nanosleep, rt) - dnl Then headers. dnl ------------------------------------------------------------------------- @@ -618,6 +615,9 @@ vasprintf \ asprintf \ ) +dnl Some systems (like OpenSolaris) do not have nanosleep in libc +AC_CACHE_CHECK([for nanosleep], ac_cv_func_nanosleep, [PHP_CHECK_FUNC_LIB(nanosleep, rt)]) + dnl Check for getaddrinfo, should be a better way, but... dnl Also check for working getaddrinfo AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,