# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT(libconfig, 1.0.5, contact@wand.net.nz) AC_CONFIG_SRCDIR([config.l]) AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE(libconfig, 1.0.5) # Checks for programs. AC_PROG_YACC AC_PROG_CC AM_PROG_LEX AC_PROG_INSTALL AC_PROG_LIBTOOL AC_CHECK_LIB([fl], [yywrap], flexfound=1, flexfound=0) if test "$flexfound" = 0; then AC_MSG_ERROR(flex is required to compile libconfig. If the flex libtrace is installed in a non-standard location please use LDFLAGS to specify the location of the library) else ADD_LIBS="$ADD_LIBS -lfl" fi # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h syslog.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS([memset strdup]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT