1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([xmldoc], [0.8], [arjen@andromeda.nl])
5 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7 dnl Checks for programs.
10 AC_PATH_PROG(XSLT_CONFIG,xslt-config,no)
12 if test $XSLT_CONFIG = "no"
14 echo "XSLT library not found (see http://xmlsoft.org/)."
18 dnl Checks for libraries.
20 XSLT_CFLAGS=`$XSLT_CONFIG --cflags`
21 XSLT_LFLAGS=`$XSLT_CONFIG --libs`
22 CFLAGS="$CFLAGS $XSLT_CFLAGS"
23 LDFLAGS="$LDFLAGS $XSLT_LFLAGS"
25 dnl Replace `main' with a function in -lexslt:
26 AC_CHECK_LIB(exslt, main)
27 dnl Replace `main' with a function in -lxml2:
28 AC_CHECK_LIB(xml2, xmlParseFile)
29 dnl Replace `main' with a function in -lxslt:
30 AC_CHECK_LIB(xslt, xsltProcess)
32 dnl Checks for header files.
34 AC_CHECK_HEADERS(unistd.h)
36 dnl Checks for typedefs, structures, and compiler characteristics.
39 dnl Checks for library functions.
41 AC_CONFIG_FILES([Makefile doc/Makefile])