Commit | Line | Data |
---|---|---|
24088567 JW |
1 | AC_INIT([mod_waklog], [1.1.0]) |
2 | AC_CONFIG_SRCDIR([mod_waklog.c]) | |
9c62213e | 3 | AM_INIT_AUTOMAKE([foreign]) |
ea3e8708 | 4 | AC_PROG_CC |
5 | AC_PROG_INSTALL | |
ea3e8708 | 6 | |
7 | AC_ARG_WITH([afs-libs], | |
8 | [AC_HELP_STRING([--with-afs-libs],[path to afs libraries])], | |
9 | [AFS_LIBS=$withval], | |
10 | [AFS_LIBS=/usr/lib/afs]) | |
11 | AC_SUBST(AFS_LIBS) | |
12 | ||
13 | AC_ARG_WITH([afs-headers], | |
14 | [AC_HELP_STRING([--with-afs-headers],[path to afs headers])], | |
15 | [AFS_INC=$withval], | |
16 | [AFS_INC=/usr/include/afs]) | |
17 | AC_SUBST(AFS_INC) | |
18 | ||
19 | AC_ARG_WITH([krb5-libs], | |
20 | [AC_HELP_STRING([--with-krb5-libs],[path to krb5 libraries])], | |
21 | [KRB5_LIBS=$withval], | |
22 | [KRB5_LIBS=/usr/lib/]) | |
23 | AC_SUBST(KRB5_LIBS) | |
24 | ||
25 | AC_ARG_WITH([krb5-headers], | |
26 | [AC_HELP_STRING([--with-krb5-headers],[path to krb5 headers])], | |
27 | [KRB5_INC=$withval], | |
28 | [KRB5_INC=/usr/include/]) | |
29 | AC_SUBST(KRB5_INC) | |
30 | ||
31 | AC_ARG_WITH([apache-libs], | |
32 | [AC_HELP_STRING([--with-apache-libs],[path to apache libraries])], | |
33 | [APACHE_LIBS=$withval], | |
34 | [APACHE_LIBS=/usr/lib/]) | |
35 | AC_SUBST(APACHE_LIBS) | |
36 | ||
ea3e8708 | 37 | AC_ARG_WITH([apxs], |
38 | [AC_HELP_STRING([--with-apxs],[path to apxs])], | |
39 | [APXS=$withval], | |
669240a1 | 40 | [APXS=apxs2]) |
ea3e8708 | 41 | AC_SUBST(APXS) |
42 | ||
43 | AC_ARG_ENABLE(debug, | |
44 | [ --enable-debug uncomment this if you want an insane amount of debug information | |
45 | ], | |
46 | [ WAKLOG_DEBUG=-DWAKLOG_DEBUG | |
47 | ]) | |
48 | AC_SUBST(WAKLOG_DEBUG) | |
49 | ||
50 | AC_OUTPUT(Makefile) |