diff --git a/configure.ac b/configure.ac
index 26bfa8a0d49cce4482a3d7676248ee06dc71b973..97e3ca081a2175d617258bd4178e4ac59e8bd574 100644 (file)
--- a/configure.ac
+++ b/configure.ac
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() {}])
-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