File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,13 @@ LD_LIBRARY_PATH_SAVED="$LD_LIBRARY_PATH"
61
61
# Set our flags if we are checking a specific directory.
62
62
if test -n "$ac_libevent_path" ; then
63
63
LIBEVENT_CPPFLAGS="-I$ac_libevent_path/include"
64
- LIBEVENT_LDFLAGS="-L$ac_libevent_path/lib"
64
+
65
+ if test -z "$PHP_LIBDIR"; then
66
+ LIBEVENT_LDFLAGS="-L$ac_libevent_path/lib"
67
+ else
68
+ LIBEVENT_LDFLAGS="-L$ac_libevent_path/$PHP_LIBDIR"
69
+ fi
70
+
65
71
LD_LIBRARY_PATH="$ac_libevent_path/lib:$LD_LIBRARY_PATH"
66
72
else
67
73
LIBEVENT_CPPFLAGS=""
@@ -504,15 +510,10 @@ if test "$PHP_FPM" != "no"; then
504
510
505
511
AC_LIB_EVENT([ $minimum_libevent_version] )
506
512
507
- AC_CACHE_CHECK ( whether libevent build works , php_cv_libevent_build_works , [
508
- PHP_TEST_BUILD(event_init,
509
- [
510
- php_cv_libevent_build_works=yes
511
- ] , [
512
- AC_MSG_RESULT ( no )
513
- AC_MSG_ERROR ( [ build test failed. Please check the config.log for details.] )
514
- ] , $LIBEVENT_LIBS)
515
- ] )
513
+ PHP_TEST_BUILD(event_init, [ ] , [
514
+ AC_MSG_RESULT ( no )
515
+ AC_MSG_ERROR ( [ build test failed. Please check the config.log for details.] )
516
+ ] , $LIBEVENT_LIBS)
516
517
517
518
PHP_SETUP_LIBXML(FPM_SHARED_LIBADD, [
518
519
] , [
You can’t perform that action at this time.
0 commit comments