]> granicus.if.org Git - php/commitdiff
Fixed CLI/CGI/FPM build, when they are built together with Apache SAPI
authorDmitry Stogov <dmitry@zend.com>
Tue, 17 Sep 2019 12:43:00 +0000 (15:43 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 17 Sep 2019 12:43:00 +0000 (15:43 +0300)
configure.ac

index 8f19fe0e60d144de240fdceba4d157582bedcead..a522bdc2b56248ad690b70108a0ccf94e6c062d4 100644 (file)
@@ -1103,7 +1103,9 @@ enable_static=yes
 
 case $php_sapi_module in
   shared[)]
-    enable_static=no
+    if test "$PHP_CGI" = "no" && test "$PHP_CLI" = "no" && test "$PHP_FPM" = "no" && test "$PHP_LITESPEED" = "no" && test "$PHP_PHPDBG" = "no"; then
+      enable_static=no
+    fi
     case $with_pic in
       yes)
         standard_libtool_flag='-prefer-pic'