summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-25 18:37:16 +0000
committerfoobar <sniper@php.net>2002-07-25 18:37:16 +0000
commit272913f3d4656fad9c31faf940e0635799f5ad3a (patch)
treed142bfa4e06ed8746778d36f084205cbb558463f /acinclude.m4
parent2dbd41869c921fe2a2785e17322c0f3f1b8b2eab (diff)
downloadphp-git-272913f3d4656fad9c31faf940e0635799f5ad3a.tar.gz
- Fixed bug: #18560, the macro was not defined always.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 5cd89337a0..71a7423c4d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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`
+])