X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=068b9535e798e20101d7505698a268caa2047a94;hp=3d1286135ae9ec1b4ccba680b7b5421f724b7c30;hb=b877064fe33379dead96059345812e94f6bb2371;hpb=d6eb67a4d190822cac3d6f9c9e4b91a04a590426 diff --git a/configure.ac b/configure.ac index 3d128613..068b9535 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,8 @@ AC_SUBST(LT_NO_UNDEFINED) ## ## # Choose the c compiler -AC_PROG_CC_STDC +AC_PROG_CC +m4_version_prereq([2.70], [], [AC_PROG_CC_STDC]) # Make sure the c compiler supports C99 AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([The compiler does not support C99])]) @@ -226,7 +227,9 @@ detection. AM_CONDITIONAL([HAVE_BISON], [test "x$have_bison" = "xyes"]) # check for flex -AC_PROG_LEX +# Prior to autoconf 2.70, AC_PROG_FLEX did not take an argument. This is not a +# problem since the argument is silently ignored by older versions. +AC_PROG_LEX([noyywrap]) AX_PROG_FLEX_VERSION([2.5.35], [have_flex=yes]) AS_IF([test "x$have_flex" != "xyes"], [