Preparing for debian package
[ACL.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT([libACL], [0.3], [arjen@androemda.nl])
6 AC_CONFIG_SRCDIR([src/date.cpp])
7 AM_INIT_AUTOMAKE
8 AC_LANG(C++)
9 AC_CONFIG_MACRO_DIRS([m4])
10 AC_CONFIG_FILES([Makefile src/Makefile test/Makefile doc/Makefile])
11 AC_CONFIG_HEADERS([config.h])
12
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_YACC
17 AM_PROG_AR
18
19 # Checks for libraries.
20
21 AC_PATH_PROG(XML_CONFIG,xml2-config,no)
22
23 if test $XML_CONFIG = "no" 
24 then
25    echo "XML library not found (see http://xmlsoft.org/)."
26    exit 1;
27 fi
28
29 XML_CFLAGS=`$XML_CONFIG --cflags`
30 XML_LFLAGS=`$XML_CONFIG --libs`
31 AC_CHECK_LIB(xml2, xmlParseFile)
32
33 # Checks for header files.
34 AC_FUNC_ALLOCA
35 AC_CHECK_HEADERS([libintl.h malloc.h stddef.h stdlib.h string.h])
36
37 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS -Wall"
38 LDFLAGS="$LDFLAGS $XML_LFLAGS"
39 # Checks for typedefs, structures, and compiler characteristics.
40 AC_CHECK_HEADER_STDBOOL
41 AC_TYPE_SIZE_T
42
43 LT_INIT
44
45 # Checks for library functions.
46 AC_FUNC_MALLOC
47 AC_FUNC_STRTOD
48 AC_CHECK_FUNCS([regcomp strchr strrchr strstr strtol strtoul])
49
50 AC_OUTPUT