AC_INIT(mod_cvs.c) PACKAGE_NAME=mod_cvs PACKAGE_VERSION=0.5.91 AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION) AC_MSG_CHECKING(for --with-apxs) AC_ARG_WITH(apxs, [ --with-apxs specify path to apxs binary]) case "$with_apxs" in "") ans="no";; *) ans="$with_apxs" esac AC_MSG_RESULT($ans) AC_PATH_PROG(with_apxs, apxs,, [$PATH:/usr/sbin]) APXS=$with_apxs if test ! -x $with_apxs then AC_MSG_ERROR([ ***** No apxs binary found! ***** Try including the configure option ***** --with-apxs=/path/to/apxs/binary]) fi AC_PROG_CC AC_PROG_RANLIB AC_SUBST(APXS) AC_OUTPUT(Makefile doc/Makefile mod_cvs.spec)