summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c91b820..b18de82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_PREREQ([2.63])
+AC_PREREQ([2.59])
# Library versioning
# Making releases:
@@ -25,7 +25,10 @@ LT_PREREQ([2.2])
LT_INIT([disable-static win32-dll])
# Program checks
-AC_PROG_CC_C99
+m4_ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99],
+ [AC_MSG_WARN([Attempt c99 workaround for old versions of autoconf])
+ AC_PROG_CC
+ AX_TRY_CFLAGS([-std=c99], [AX_CFLAGS([-std=c99])])])
# Environment setup
AC_CANONICAL_HOST