mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Simplify setpflags Autoconf check (#13458)
Similar simplification as e72f0c887b
.
This commit is contained in:
parent
ec9ae1ec1b
commit
7b2c67ca98
1 changed files with 2 additions and 13 deletions
|
@ -12,18 +12,6 @@ AC_DEFUN([AC_FPM_STDLIBS],
|
||||||
AC_SEARCH_LIBS(inet_addr, nsl)
|
AC_SEARCH_LIBS(inet_addr, nsl)
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([AC_FPM_SETPFLAGS],
|
|
||||||
[
|
|
||||||
AC_MSG_CHECKING([for setpflags])
|
|
||||||
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <priv.h>]], [[setpflags(0, 0);]])], [
|
|
||||||
AC_DEFINE([HAVE_SETPFLAGS], 1, [do we have setpflags?])
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
], [
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_FPM_CLOCK],
|
AC_DEFUN([AC_FPM_CLOCK],
|
||||||
[
|
[
|
||||||
have_clock_gettime=no
|
have_clock_gettime=no
|
||||||
|
@ -507,7 +495,6 @@ if test "$PHP_FPM" != "no"; then
|
||||||
AC_MSG_RESULT($PHP_FPM)
|
AC_MSG_RESULT($PHP_FPM)
|
||||||
|
|
||||||
AC_FPM_STDLIBS
|
AC_FPM_STDLIBS
|
||||||
AC_FPM_SETPFLAGS
|
|
||||||
AC_FPM_CLOCK
|
AC_FPM_CLOCK
|
||||||
AC_FPM_TRACE
|
AC_FPM_TRACE
|
||||||
AC_FPM_BUILTIN_ATOMIC
|
AC_FPM_BUILTIN_ATOMIC
|
||||||
|
@ -520,6 +507,8 @@ if test "$PHP_FPM" != "no"; then
|
||||||
AC_FPM_EPOLL
|
AC_FPM_EPOLL
|
||||||
AC_FPM_SELECT
|
AC_FPM_SELECT
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([priv.h], [AC_CHECK_FUNCS([setpflags])])
|
||||||
|
|
||||||
PHP_ARG_WITH([fpm-user],,
|
PHP_ARG_WITH([fpm-user],,
|
||||||
[AS_HELP_STRING([[--with-fpm-user[=USER]]],
|
[AS_HELP_STRING([[--with-fpm-user[=USER]]],
|
||||||
[Set the user for php-fpm to run as. (default: nobody)])],
|
[Set the user for php-fpm to run as. (default: nobody)])],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue