dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_C_CONST
AC_TYPE_SIZE_T
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup)
AC_ARG_ENABLE(debug,
[  --enable-debug          enable debugging code 
                          (add -DDEBUG to compile command line)],
if test "$enableval" == yes; then DEBUG=-DDEBUG; fi)
AC_SUBST(DEBUG)
AC_ARG_ENABLE(regex,
[  --disable-regex         disable regular expression usage, use Boyer Moore
                          string searches instead.
                          (add -DNOUSE_REGEX to compile command line)],
if test "$enableval" == no; then NOREGEX=-DNOUSE_REGEX; fi)
AC_SUBST(NOREGEX)
AC_ARG_ENABLE(saveskip,
[  --disable-saveskip      disable saving the skip tables when using Boyer
                          Moore string searching.
                          (add -DNOSAVESKIP to compile command line)],
if test "$enableval" == no; then NOSAVESKIP=-DNOSAVESKIP; fi)
AC_SUBST(NOSAVESKIP)
AC_OUTPUT(Makefile)
