AM_INIT_AUTOMAKE(mod_waklog_so,1.0)
AC_PROG_CC
AC_PROG_INSTALL
-AC_PATH_PROGS(APXS, apxs)
AC_ARG_WITH([afs-libs],
[AC_HELP_STRING([--with-afs-libs],[path to afs libraries])],
[AFS_INC=/usr/include/afs])
AC_SUBST(AFS_INC)
+AC_ARG_WITH([apr-headers],
+ [AC_HELP_STRING([--with-apr-headers],[path to apr headers])],
+ [APR_INC=$withval],
+ [APR_INC=/usr/include/apr-1.0])
+AC_SUBST(APR_INC)
+
AC_ARG_WITH([krb5-libs],
[AC_HELP_STRING([--with-krb5-libs],[path to krb5 libraries])],
[KRB5_LIBS=$withval],
AC_ARG_WITH([apache-headers],
[AC_HELP_STRING([--with-apache-headers],[path to apache headers])],
[APACHE_INC=$withval],
- [APACHE_INC=/usr/include/apache-1.3])
+ [APACHE_INC=/usr/include/apache2])
AC_SUBST(APACHE_INC)
AC_ARG_WITH([apxs],
[AC_HELP_STRING([--with-apxs],[path to apxs])],
[APXS=$withval],
- [APXS=apxs])
+ [APXS=apxs2])
AC_SUBST(APXS)
AC_ARG_ENABLE(debug,