| 1 | AC_INIT(mod_waklog.c) |
| 2 | AM_INIT_AUTOMAKE(mod_waklog_so,1.0) |
| 3 | AC_PROG_CC |
| 4 | AC_PROG_INSTALL |
| 5 | |
| 6 | AC_ARG_WITH([afs-libs], |
| 7 | [AC_HELP_STRING([--with-afs-libs],[path to afs libraries])], |
| 8 | [AFS_LIBS=$withval], |
| 9 | [AFS_LIBS=/usr/lib/afs]) |
| 10 | AC_SUBST(AFS_LIBS) |
| 11 | |
| 12 | AC_ARG_WITH([afs-headers], |
| 13 | [AC_HELP_STRING([--with-afs-headers],[path to afs headers])], |
| 14 | [AFS_INC=$withval], |
| 15 | [AFS_INC=/usr/include/afs]) |
| 16 | AC_SUBST(AFS_INC) |
| 17 | |
| 18 | AC_ARG_WITH([apr-headers], |
| 19 | [AC_HELP_STRING([--with-apr-headers],[path to apr headers])], |
| 20 | [APR_INC=$withval], |
| 21 | [APR_INC=/usr/include/apr-1]) |
| 22 | AC_SUBST(APR_INC) |
| 23 | |
| 24 | AC_ARG_WITH([krb5-libs], |
| 25 | [AC_HELP_STRING([--with-krb5-libs],[path to krb5 libraries])], |
| 26 | [KRB5_LIBS=$withval], |
| 27 | [KRB5_LIBS=/usr/lib/]) |
| 28 | AC_SUBST(KRB5_LIBS) |
| 29 | |
| 30 | AC_ARG_WITH([krb5-headers], |
| 31 | [AC_HELP_STRING([--with-krb5-headers],[path to krb5 headers])], |
| 32 | [KRB5_INC=$withval], |
| 33 | [KRB5_INC=/usr/include/]) |
| 34 | AC_SUBST(KRB5_INC) |
| 35 | |
| 36 | AC_ARG_WITH([apache-libs], |
| 37 | [AC_HELP_STRING([--with-apache-libs],[path to apache libraries])], |
| 38 | [APACHE_LIBS=$withval], |
| 39 | [APACHE_LIBS=/usr/lib/]) |
| 40 | AC_SUBST(APACHE_LIBS) |
| 41 | |
| 42 | AC_ARG_WITH([apache-headers], |
| 43 | [AC_HELP_STRING([--with-apache-headers],[path to apache headers])], |
| 44 | [APACHE_INC=$withval], |
| 45 | [APACHE_INC=/usr/include/apache-1.3]) |
| 46 | AC_SUBST(APACHE_INC) |
| 47 | |
| 48 | AC_ARG_WITH([apxs], |
| 49 | [AC_HELP_STRING([--with-apxs],[path to apxs])], |
| 50 | [APXS=$withval], |
| 51 | [APXS=apxs]) |
| 52 | AC_SUBST(APXS) |
| 53 | |
| 54 | AC_ARG_ENABLE(debug, |
| 55 | [ --enable-debug uncomment this if you want an insane amount of debug information |
| 56 | ], |
| 57 | [ WAKLOG_DEBUG=-DWAKLOG_DEBUG |
| 58 | ]) |
| 59 | AC_SUBST(WAKLOG_DEBUG) |
| 60 | |
| 61 | AC_OUTPUT(Makefile) |