configure.ac: Basic fixes for autoconf 2.70
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 31 Oct 2022 15:14:40 +0000 (11:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 2 Nov 2022 14:56:19 +0000 (10:56 -0400)
Change-Id: I78debba6f9749a2145275ee796bc97044b505c5c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index 9122b4e654e5fbf64b83f658af347cc98bb23a42..1bfda6b66f993785e9cbd1f0c4c6d687a2ecdead 100644 (file)
@@ -21,13 +21,16 @@ AC_REQUIRE_AUX_FILE([tap-driver.sh])
 AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
 AC_PROG_CC
-AC_PROG_CC_STDC
+# AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
+m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
 
 # Checks for programs.
 AC_PROG_MAKE_SET
 LT_INIT
 AC_PROG_YACC
-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])
 AC_PROG_MKDIR_P
 AC_PROG_LN_S
 
@@ -236,7 +239,7 @@ AC_CHECK_LIB([popt], [poptGetContext], [],
 swig_version=2.0.0
 
 AC_ARG_ENABLE([python-bindings],
-              [AC_HELP_STRING([--enable-python-bindings],
+              [AS_HELP_STRING([--enable-python-bindings],
                               [generate Python bindings])],
               [enable_python=yes], [enable_python=no])
 
@@ -276,8 +279,8 @@ AS_IF([test "x$DEFAULT_ENABLE_DEBUG_INFO" = xyes], [_enable_debug_info=yes], [_e
 # Do _not_ indent the help string below (appears in the configure --help
 # output).
 AC_ARG_ENABLE([debug-info],
-[AC_HELP_STRING([--enable-debug-info], [enable the debug info feature (default on Linux)])]
-[AC_HELP_STRING([--disable-debug-info], [disable the debug info feature (default on OS X and Solaris)])],
+[AS_HELP_STRING([--enable-debug-info], [enable the debug info feature (default on Linux)])]
+[AS_HELP_STRING([--disable-debug-info], [disable the debug info feature (default on OS X and Solaris)])],
        [AS_IF([test "x$enableval" = xyes], [_enable_debug_info=yes], [_enable_debug_info=no])], [])
 
 AM_CONDITIONAL([ENABLE_DEBUG_INFO], [test "x$_enable_debug_info" = xyes])
This page took 0.025098 seconds and 4 git commands to generate.