From ca23fa130c766ce0febf610b0e02ffbcab6bdb82 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Mon, 14 Jun 2010 18:53:02 +0000 Subject: [PATCH] prevent an error message if an old autoconf without AC_PROG_CC_C99 is used but print a meaningful warning instead git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@954588 13f79535-47bb-0310-9956-ffa450edef68 --- buildconf | 12 ++++++++++++ configure.in | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/buildconf b/buildconf index ad43fe53c9..772610343a 100755 --- a/buildconf +++ b/buildconf @@ -19,6 +19,18 @@ # 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] diff --git a/configure.in b/configure.in index 252a3599cf..765f59506e 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.50.1