-
Notifications
You must be signed in to change notification settings - Fork 27
/
configure.ac
48 lines (35 loc) · 1.2 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
AC_PREREQ(2.60)
AC_INIT(mod_dims, 3.3.30, [[email protected]])
AM_INIT_AUTOMAKE([no-define])
AC_CONFIG_SRCDIR([src/mod_dims.c])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Check for ImageMagick
PKG_CHECK_MODULES(MagickCore, MagickCore)
PKG_CHECK_MODULES(MagickWand, MagickWand)
PKG_CHECK_MODULES(libcurl, libcurl)
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_HEADERS([src/config.h])
AP_VERSION=2.4.0
AP_CHECK_APACHE([$AP_VERSION], [
LIBTOOL="`$APR_CONFIG --apr-libtool`"
AC_SUBST([LIBTOOL])
MODULE_CFLAGS="$AP_CFLAGS"
AC_SUBST([MODULE_CFLAGS])
MODULE_LDFLAGS="`$APR_CONFIG --link-libtool` `$APU_CONFIG --link-libtool`"
AC_SUBST([MODULE_LDFLAGS])
BIN_LDFLAGS="`$APR_CONFIG --link-libtool` `$APU_CONFIG --link-libtool` `$APR_CONFIG --ldflags --libs` `$APU_CONFIG --ldflags --libs`"
AC_SUBST([BIN_LDFLAGS])
prefix="$AP_PREFIX"
], AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]))
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset sqrt strstr])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT