]> granicus.if.org Git - apache/commitdiff
prevent an error message if an old autoconf without AC_PROG_CC_C99 is used but
authorStefan Fritsch <sf@apache.org>
Mon, 14 Jun 2010 18:53:02 +0000 (18:53 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 14 Jun 2010 18:53:02 +0000 (18:53 +0000)
print a meaningful warning instead

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@954588 13f79535-47bb-0310-9956-ffa450edef68

buildconf
configure.in

index ad43fe53c9f871bc5f3809a59ab3f278379f2f64..772610343a12899c863e46f74d37653fa93d94a1 100755 (executable)
--- a/buildconf
+++ b/buildconf
 # buildconf: Build the support scripts needed to compile from a
 #            checked-out version of the source code.
 
+# version check for AC_PROG_CC_C99
+ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+case "$ac_version" in
+# versions older than 2.50 are denied by AC_PREREQ
+2.5*)
+    echo WARNING: You are using an outdated version of autoconf.
+    echo WARNING: This may lead to less than optimal performance of httpd.
+    echo WARNING: You should use autoconf 2.60 or newer.
+    sleep 1
+    ;;
+esac
+
 # set a couple of defaults for where we should be looking for our support libs.
 # can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
 
index 252a3599cf7f1a5b512ea0c433e9dd16af89417f..765f59506e2f5495b5268d1bafb1472f9610f397 100644 (file)
@@ -171,7 +171,7 @@ AC_PROG_CC
 AC_PROG_CPP
 
 dnl Try to get c99 support for variadic macros
-AC_PROG_CC_C99
+ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99])
 
 if test "x${cache_file}" = "x/dev/null"; then
   # Likewise, ensure that CC and CPP are passed through to the pcre