From c2cecd8eb819dc7a75aa164809d4c6301678b826 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 24 Feb 2024 16:45:59 +0100 Subject: [PATCH] Simplify Pgrab and proc library Autoconf check For Solaris/illumos systems, in this case, the check can be done using AC_SEARCH_LIBS, which avoids defining redundant symbols like HAVE_PGRAB and HAVE_LIBPROC. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 799d36a8383ca..58ffca37b5cff 100644 --- a/configure.ac +++ b/configure.ac @@ -372,6 +372,9 @@ case $host_alias in ;; esac +dnl Solaris/Illumos for process mapping. +AC_SEARCH_LIBS([Pgrab], [proc]) + dnl Then headers. dnl ---------------------------------------------------------------------------- @@ -644,9 +647,6 @@ PHP_CHECK_FUNC_LIB(nanosleep, rt) dnl Haiku does not have network api in libc. PHP_CHECK_FUNC_LIB(setsockopt, network) -dnl Solaris/Illumos for process mapping. -PHP_CHECK_FUNC_LIB(Pgrab, proc) - dnl Check for getaddrinfo, should be a better way, but... Also check for working dnl getaddrinfo. AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,