-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
67 lines (57 loc) · 1.78 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(mod_dav_displayname, 1.0.0, [email protected])
AM_INIT_AUTOMAKE([dist-bzip2])
AC_CONFIG_FILES([Makefile mod_dav_displayname.spec])
AC_CONFIG_SRCDIR([mod_dav_displayname.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_ARG_WITH(apxs,
[ --with-apxs=PATH path to Apache apxs],
[
if test "$withval" = "yes"; then
AC_CHECK_PROGS(APXS, apxs /usr/sbin/apxs, reject)
else
APXS=$withval
AC_SUBST(APXS)
fi
],
[
AC_CHECK_PROGS(APXS, apxs /usr/sbin/apxs, reject)
])
if test "$APXS" = "reject"; then
AC_MSG_ERROR([Could not find apxs on the path.])
fi
# Make sure the Apache include files are found
AM_CPPFLAGS="$AM_CPPFLAGS -I`$APXS -q INCLUDEDIR`"
AM_CFLAGS="$AM_CFLAGS -I`$APXS -q INCLUDEDIR`"
AC_ARG_WITH(install,
[ --with-install=PATH path to install],
[
if test "$withval" = "yes"; then
AC_CHECK_PROGS(INSTALL, install /usr/sbin/install, reject)
else
APXS=$withval
AC_SUBST(INSTALL)
fi
],
[
AC_CHECK_PROGS(INSTALL, install /usr/sbin/install, reject)
])
if test "$INSTALL" = "reject"; then
AC_MSG_ERROR([Could not find install on the path.])
fi
# Checks for libraries.
PKG_CHECK_MODULES(apr, apr-1 >= 1.3)
PKG_CHECK_MODULES(apu, apr-util-1 >= 1.3)
CFLAGS="$CFLAGS $apr_CFLAGS $apu_CFLAGS"
CPPFLAGS="$CPPFLAGS $apr_CPPFLAGS $apu_CPPFLAGS"
LDFLAGS="$LDFLAGS $apr_LIBS $apu_LIBS"
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_SUBST(PACKAGE_VERSION)
AC_OUTPUT