# -*- coding: utf-8 -*- # Copyright © 2003 Colin Walters define(arch-tag) # arch-tag: Toplevel Autoconf configuration script AC_INIT(pqm, 0.5) AC_CONFIG_SRCDIR(bin/pqm) AC_CONFIG_AUX_DIR(autotools) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs], [ don't build documentation files using db2html ])) AM_PATH_PYTHON([2.3]) if test x$enable_docs != xno ; then AC_PATH_PROG(XMLTO, xmlto, no) if test x$XMLTO = xno && test x$enable_docs = yes; then AC_MSG_ERROR([Building docs explicitly required, but xmlto not found]) else AC_MSG_CHECKING([whether to build documentation]) if test x$XMLTO = xno; then AC_MSG_RESULT([no]) else enable_docs=yes AC_MSG_RESULT(yes) fi fi fi AM_CONDITIONAL(BUILD_DOCS, test x$enable_docs = xyes) AC_OUTPUT([ Makefile tests/Makefile ])