# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([libACL], [0.3], [arjen@androemda.nl]) AC_CONFIG_SRCDIR([src/date.cpp]) AM_INIT_AUTOMAKE AC_LANG(C++) AC_CONFIG_MACRO_DIRS([m4]) AC_CONFIG_FILES([Makefile src/Makefile test/Makefile doc/Makefile]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_YACC AM_PROG_AR # Checks for libraries. AC_PATH_PROG(XML_CONFIG,xml2-config,no) if test $XML_CONFIG = "no" then echo "XML library not found (see http://xmlsoft.org/)." exit 1; fi XML_CFLAGS=`$XML_CONFIG --cflags` XML_LFLAGS=`$XML_CONFIG --libs` AC_CHECK_LIB(xml2, xmlParseFile) # Checks for header files. AC_FUNC_ALLOCA AC_CHECK_HEADERS([libintl.h malloc.h stddef.h stdlib.h string.h]) CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS -Wall" LDFLAGS="$LDFLAGS $XML_LFLAGS" # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_TYPE_SIZE_T LT_INIT # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_STRTOD AC_CHECK_FUNCS([regcomp strchr strrchr strstr strtol strtoul]) AC_OUTPUT