dnl Process this file with autoconf to produce a configure script.
AC_INIT(perl2html.l)
AC_CONFIG_HEADER(config.h)
VERSION=0.7.2
AC_SUBST(VERSION)
PROJECT_NAME=perl2html
AC_SUBST(PROJECT_NAME)

dnl Checks for programs.
dnl AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LEX

dnl Checks for libraries.
AC_CHECK_LIB(fl, yylex)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(getopt.h)

dnl Checks for typedefs, structures, and compiler characteristics.
dnl this sets LEX_OUTPUT_ROOT (flex -> lex.yy)
AC_DECL_YYTEXT

dnl Checks for library functions.
AC_CHECK_FUNCS(strstr)
dnl No longer use this function
dnl AC_CHECK_FUNCS(snprintf)
AC_CHECK_FUNCS(getopt)
AC_CHECK_FUNCS(popen)
AC_CHECK_FUNCS(fileno)

AC_DEFINE_UNQUOTED(VERSION,"$VERSION")
AC_DEFINE_UNQUOTED(PROJECT_NAME,"$PROJECT_NAME")
AC_OUTPUT(Makefile)
