dnl Process this file with autoconf to produce a configure script.
-AC_INIT(xp.c)
-AM_INIT_AUTOMAKE(xmldoc, 0.7)
+
+AC_PREREQ([2.59])
+AC_INIT([xmldoc], [0.8], [arjen@andromeda.nl])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
dnl Checks for programs.
AC_PROG_CC
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, main)
+AC_CHECK_LIB(xslt, xsltProcess)
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for library functions.
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile doc/Makefile])
+
+AC_OUTPUT