Created Debian package
[xmldoc.git] / configure.ac
index 9966c56..e4ae900 100644 (file)
@@ -1,33 +1,34 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.59])
-AC_INIT([xmldoc], [0.8], [arjen@andromeda.nl])
+AC_INIT([xmldoc], [0.10], [arjen@andromeda.nl])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 dnl Checks for programs.
 AC_PROG_CC
 
+dnl Checks for XML and XSLT libraries.
+
 AC_PATH_PROG(XSLT_CONFIG,xslt-config,no)
 
-if test $XSLT_CONFIG = "no" 
+if test $XSLT_CONFIG = "no"
 then
-   echo "XSLT library not found (see http://xmlsoft.org/)."
-   exit 1;
+   echo "xslt library not found, install package libxslt-dev."
+   exit 1
 fi
 
-dnl Checks for libraries.
-
 XSLT_CFLAGS=`$XSLT_CONFIG --cflags`
-XSLT_LFLAGS=`$XSLT_CONFIG --libs`
 CFLAGS="$CFLAGS $XSLT_CFLAGS"
-LDFLAGS="$LDFLAGS $XSLT_LFLAGS"
+
+AC_CHECK_HEADER(libxml/xmlmemory.h)
+AC_CHECK_HEADER(libxslt/xslt.h)
 
 dnl Replace `main' with a function in -lexslt:
 AC_CHECK_LIB(exslt, main)
 dnl Replace `main' with a function in -lxml2:
 AC_CHECK_LIB(xml2, xmlParseFile)
 dnl Replace `main' with a function in -lxslt:
-AC_CHECK_LIB(xslt, xsltProcess)
+AC_CHECK_LIB(xslt, xsltSetXIncludeDefault)
 
 dnl Checks for header files.
 AC_HEADER_STDC
@@ -38,6 +39,6 @@ AC_C_CONST
 
 dnl Checks for library functions.
 
-AC_CONFIG_FILES([Makefile doc/Makefile])
+AC_CONFIG_FILES([Makefile doc/Makefile test/Makefile xml2html xml2latex xml2text xml2wiki])
 
 AC_OUTPUT