X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=590627f641e87c11787604799578ce20d6594c38;hb=de767439f800b7e6069163cf5eea29b2df76070b;hp=3d1286135ae9ec1b4ccba680b7b5421f724b7c30;hpb=c20049fd0678f462f621c80f9e91c1ba16e6b656;p=babeltrace.git diff --git a/configure.ac b/configure.ac index 3d128613..590627f6 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"], [ @@ -479,7 +482,7 @@ AC_SUBST([ENABLE_DEBUG_INFO_VAL]) ## ## # The Python bindings require SWIG -AE_IF_FEATURE_ENABLED([python-plugins], +AE_IF_FEATURE_ENABLED([python-bindings], [AX_PKG_SWIG(2.0.0, [], [AC_MSG_ERROR([SWIG 2.0.0 or newer is required to build the python bindings])])] )