Skip to content

Commit acb677c

Browse files
authored
Simplify Pgrab and proc library Autoconf check (#13488)
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.
1 parent 0de88df commit acb677c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ case $host_alias in
372372
;;
373373
esac
374374

375+
dnl Solaris/Illumos for process mapping.
376+
AC_SEARCH_LIBS([Pgrab], [proc])
377+
375378
dnl Then headers.
376379
dnl ----------------------------------------------------------------------------
377380

@@ -644,9 +647,6 @@ AC_CHECK_FUNCS([nanosleep],,
644647
dnl Haiku does not have network api in libc.
645648
PHP_CHECK_FUNC_LIB(setsockopt, network)
646649

647-
dnl Solaris/Illumos for process mapping.
648-
PHP_CHECK_FUNC_LIB(Pgrab, proc)
649-
650650
dnl Check for getaddrinfo, should be a better way, but... Also check for working
651651
dnl getaddrinfo.
652652
AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,

0 commit comments

Comments
 (0)