Require C99 capable compiler in configure
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Apr 2008 10:53:35 +0000 (13:53 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Apr 2008 11:02:51 +0000 (14:02 +0300)
- also enable C99 mode if not on by default

configure.ac

index c683d6c..5de9cf7 100644 (file)
@@ -23,6 +23,11 @@ AC_PROG_MAKE_SET
 AC_PROG_LIBTOOL
 AC_PROG_YACC
 
+AC_PROG_CC_C99
+if test "$ac_cv_prog_cc_c99" = no; then
+    AC_MSG_ERROR([ISO C99 capable compiler required])
+fi
+
 AS=${AS-as}
 AC_SUBST(AS)
 if test "$GCC" = yes; then