mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Fixed bug #52498 (libevent was not only linked to php-fpm)
This commit is contained in:
parent
7ce4f4955d
commit
75891691ed
@ -525,13 +525,20 @@ if test "$PHP_FPM" != "no"; then
|
||||
|
||||
AC_LIB_EVENT([$minimum_libevent_version])
|
||||
|
||||
PHP_ADD_LIBRARY_WITH_PATH(event, $LIBEVENT_PATH)
|
||||
dnl check libevent build
|
||||
LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
|
||||
export LD_LIBRARY_PATH="$LIBEVENT_PATH:$LD_LIBRARY_PATH"
|
||||
|
||||
PHP_TEST_BUILD(event_init, [ ], [
|
||||
AC_MSG_CHECKING(whether libevent build works)
|
||||
PHP_TEST_BUILD(event_init, [
|
||||
AC_MSG_RESULT(yes)
|
||||
], [
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([build test failed. Please check the config.log for details.])
|
||||
AC_MSG_ERROR([build test failed. Please check the config.log for details])
|
||||
], $LIBEVENT_LIBS)
|
||||
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH_SAVED"
|
||||
|
||||
AC_FPM_STDLIBS
|
||||
AC_FPM_PRCTL
|
||||
AC_FPM_CLOCK
|
||||
|
Loading…
Reference in New Issue
Block a user