dnl There is NO WARRANTY, to the extent permitted by law.
AC_PREREQ([2.68])
-AC_INIT([rarpd], [1], [nbowler@draconx.ca], [rarpd-dx])
+AC_INIT([rarpd], [1a], [nbowler@draconx.ca], [rarpd-dx])
AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_CC
-AC_CHECK_PROGS([XSLTPROC], [xsltproc], [not found])
-AS_IF([test x"$XSLTPROC" != x"not found"],
- [AC_CACHE_CHECK([whether $XSLTPROC works], [dx_cv_xsltproc_works],
-[dx_cv_xsltproc_works=no
-cat >conftest.xsl <<'EOF'
-<?xml version='1.0' encoding='UTF-8' ?>
-<xsl:stylesheet version='1.0'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
-<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl"/>
-<xsl:output omit-xml-declaration='yes' />
-<xsl:template match='/'><xsl:text>hello</xsl:text></xsl:template>
-</xsl:stylesheet>
-EOF
-cat >conftest.xml <<'EOF'
-<?xml version='1.0' encoding='UTF-8' ?>
-<root />
-EOF
-$XSLTPROC --nonet conftest.xsl conftest.xml >conftest.out 2>&AS_MESSAGE_LOG_FD &&
- { read var <conftest.out; test x"$var" = x"hello"; } &&
- dx_cv_xsltproc_works=yes
-rm -f conftest.xsl conftest.xml conftest.out])])
+CHECK_XSLTPROC
AM_CONDITIONAL([HAVE_XSLTPROC], [test x"$dx_cv_xsltproc_works" = x"yes"])
AC_CONFIG_FILES([Makefile])