Code

configure: Use LT_INIT, rather than AC_PROG_LIBTOOL, if available.
[template.git] / configure.ac
index 26bfa8a0d49cce4482a3d7676248ee06dc71b973..97e3ca081a2175d617258bd4178e4ac59e8bd574 100644 (file)
@@ -60,7 +60,16 @@ AC_PROG_MAKE_SET
 
 AM_PROG_CC_C_O
 
-AC_PROG_LIBTOOL
+m4_ifdef([LT_INIT],
+       [
+        LT_INIT
+       ],
+       # else
+       # (older libtools)
+       [
+        AC_PROG_LIBTOOL
+       ]
+)
 
 test_cc_flags() {
        AC_LANG_CONFTEST([int main() {}])
@@ -164,8 +173,7 @@ if test "x$enable_strict_checks" = "xyes"; then
                        -Wpointer-arith \
                        -Wshadow \
                        -Wstrict-prototypes \
-                       -Wunreachable-code \
-                       -Wvla; do
+                       -Wunreachable-code; do
                AC_MSG_CHECKING([whether $CC accepts $flag])
 
                if test_cc_flags $flag; then