AC_PROG_CC
AM_PROG_CC_C_O
-opt_CFLAGS="-g -O3"
-dbg_CFLAGS="-g -O0"
+opt_CFLAGS="-Wall -g -O3"
+dbg_CFLAGS="-Wall -g -O0"
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
AC_DEFINE(_FILE_OFFSET_BITS, 64)
+AC_PROG_LIBTOOL
# check zlib
AX_CHECK_ZLIB
AC_MSG_ERROR([The PCRE library is needed. See http://www.pcre.org.])
fi
CFLAGS="$CFLAGS $(pcre-config --cflags)"
-PCRE_LIBS=$(pcre-config --libs)
+PCRE_LIBS="$(pcre-config --libs)"
+AC_SUBST(PCRE_LIBS)
# check getopt
AC_CHECK_HEADER(getopt.h, ,