[Midnightbsd-cvs] mports [22213] trunk/Mk/extensions/php.mk: use another approach to detect threaded apache
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jan 15 17:07:31 EST 2017
Revision: 22213
http://svnweb.midnightbsd.org/mports/?rev=22213
Author: laffer1
Date: 2017-01-15 17:07:31 -0500 (Sun, 15 Jan 2017)
Log Message:
-----------
use another approach to detect threaded apache
Modified Paths:
--------------
trunk/Mk/extensions/php.mk
Modified: trunk/Mk/extensions/php.mk
===================================================================
--- trunk/Mk/extensions/php.mk 2017-01-15 21:54:55 UTC (rev 22212)
+++ trunk/Mk/extensions/php.mk 2017-01-15 22:07:31 UTC (rev 22213)
@@ -67,8 +67,8 @@
APACHE_VERSION!= ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
. if ${APACHE_VERSION} > 13
APXS?= ${LOCALBASE}/sbin/apxs
-APACHE_MPM!= ${APXS} -q MPM_NAME
-. if ${APACHE_MPM} == "worker" || ${APACHE_MPM} == "event"
+APACHE_THR!= ${HTTPD} -V | ${AWK} '/threaded/ {print $2}'
+. if ${APACHE_THR:Myes}
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
. endif
.endif
More information about the Midnightbsd-cvs
mailing list