b467136447a4e931bd41728aced24bfb7ae682d3
[hcoop/debian/libapache-mod-waklog.git] / configure.in
1 AC_INIT(mod_waklog.c)
2 AM_INIT_AUTOMAKE(mod_waklog_so,1.0)
3 AC_PROG_CC
4 AC_PROG_INSTALL
5 AC_PATH_PROGS(APXS, apxs)
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
37 AC_ARG_WITH([apache-headers],
38 [AC_HELP_STRING([--with-apache-headers],[path to apache headers])],
39 [APACHE_INC=$withval],
40 [APACHE_INC=/usr/include/apache-1.3])
41 AC_SUBST(APACHE_INC)
42
43 AC_ARG_WITH([apxs],
44 [AC_HELP_STRING([--with-apxs],[path to apxs])],
45 [APXS=$withval],
46 [APXS=apxs])
47 AC_SUBST(APXS)
48
49 AC_ARG_ENABLE(debug,
50 [ --enable-debug uncomment this if you want an insane amount of debug information
51 ],
52 [ WAKLOG_DEBUG=-DWAKLOG_DEBUG
53 ])
54 AC_SUBST(WAKLOG_DEBUG)
55
56 AC_OUTPUT(Makefile)