]> granicus.if.org Git - php/commitdiff
- Fixed bug: #18560, the macro was not defined always.
authorfoobar <sniper@php.net>
Thu, 25 Jul 2002 18:37:16 +0000 (18:37 +0000)
committerfoobar <sniper@php.net>
Thu, 25 Jul 2002 18:37:16 +0000 (18:37 +0000)
acinclude.m4
sapi/apache/config.m4

index 5cd89337a0695e7f026b9d61738ccbed28da28e2..71a7423c4dccc11c8e421c399bd957625b436506 100644 (file)
@@ -1539,3 +1539,19 @@ AC_DEFUN(PHP_CHECK_FUNC,[
   ])
   esac
 ])
+
+dnl
+dnl PHP_AP_EXTRACT_VERSION(/path/httpd)
+dnl This macro is used to get a comparable
+dnl version for apache1/2.
+dnl
+AC_DEFUN(PHP_AP_EXTRACT_VERSION,[
+  ac_output=`$1 -v 2>&1`
+  ac_IFS=$IFS
+IFS="- /.
+"
+  set $ac_output
+  IFS=$ac_IFS
+
+  APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6`
+])
index a652ee1440c8fe1d82c961dc031bb920598bfd35..63c2aa5c5d4b2fb84c578e40a209905cc17ea6fa 100644 (file)
@@ -2,17 +2,6 @@ dnl
 dnl $Id$
 dnl
 
-AC_DEFUN(PHP_AP_EXTRACT_VERSION,[
-  ac_output=`$1 -v 2>&1`
-  ac_IFS=$IFS
-IFS="- /.
-"
-  set $ac_output
-  IFS=$ac_IFS
-
-  APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6`
-])
-
 AC_MSG_CHECKING(for Apache 1.x module support via DSO through APXS)
 AC_ARG_WITH(apxs,
 [  --with-apxs[=FILE]      Build shared Apache 1.x module. FILE is the optional