asynciodebian/masterdebian/stretch-backportsjessie-backportsmainproxy-ticketupstream
Last change
on this file since 9413c36 was
d6a575c,
checked in by Thomas Klute <thomas2.klute@…>, 7 years ago
|
Use apr_memcache from APR Utility Library only
apr_memcache has been included (and maintained) in the APR Utility
Library for years. Even Apache 2.2 requires a newer version than the
first one to include apr_memcache. Remove support for the separate
apr_memcache library and rely on APR Util only.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | dnl Check for memcache client libraries |
---|
2 | dnl CHECK_APR_MEMCACHE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) |
---|
3 | dnl Sets: |
---|
4 | dnl APR_MEMCACHE_LIBS |
---|
5 | dnl APR_MEMCACHE_CFLAGS |
---|
6 | AC_DEFUN([CHECK_APR_MEMCACHE], |
---|
7 | [dnl |
---|
8 | |
---|
9 | AC_ARG_WITH( |
---|
10 | [apu-config], |
---|
11 | [AC_HELP_STRING([--with-apu-config=PATH],[Path to APR Utility Library config tool (apu-1-config)])], |
---|
12 | [apr_util_config="$withval"], |
---|
13 | []) |
---|
14 | |
---|
15 | AC_LIBTOOL_SYS_DYNAMIC_LINKER |
---|
16 | |
---|
17 | save_CFLAGS=$CFLAGS |
---|
18 | save_LDFLAGS=$LDFLAGS |
---|
19 | |
---|
20 | dnl # If path to apu-1-config hasn't been set explicitly, try to find it |
---|
21 | if test -z "$apr_util_config"; then |
---|
22 | AC_PATH_PROGS([APR_UTIL_CONF], [apu-1-config], [no], [$PATH:/usr/sbin]) |
---|
23 | else |
---|
24 | AC_MSG_NOTICE([using apu-1-config path set by user: $apr_util_config]) |
---|
25 | APR_UTIL_CONF="$apr_util_config" |
---|
26 | fi |
---|
27 | |
---|
28 | CFLAGS="`$APR_UTIL_CONF --includes` $CFLAGS" |
---|
29 | LDFLAGS="`$APR_UTIL_CONF --link-ld` $LDFLAGS" |
---|
30 | |
---|
31 | AC_CHECK_LIB( |
---|
32 | aprutil-1, |
---|
33 | apr_memcache_create, |
---|
34 | [ |
---|
35 | APR_MEMCACHE_LIBS="`$APR_UTIL_CONF --link-ld`" |
---|
36 | APR_MEMCACHE_CFLAGS="`$APR_UTIL_CONF --includes`" |
---|
37 | ] |
---|
38 | ) |
---|
39 | |
---|
40 | CFLAGS=$save_CFLAGS |
---|
41 | LDFLAGS=$save_LDFLAGS |
---|
42 | |
---|
43 | AC_SUBST(APR_MEMCACHE_LIBS) |
---|
44 | AC_SUBST(APR_MEMCACHE_CFLAGS) |
---|
45 | |
---|
46 | if test -z "${APR_MEMCACHE_LIBS}"; then |
---|
47 | AC_MSG_NOTICE([*** memcache library not found.]) |
---|
48 | ifelse([$2], , AC_MSG_ERROR([memcache library is required]), $2) |
---|
49 | else |
---|
50 | AC_MSG_NOTICE([using '${APR_MEMCACHE_LIBS}' for memcache]) |
---|
51 | ifelse([$1], , , $1) |
---|
52 | fi |
---|
53 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.