source: mod_gnutls/m4/apr_memcache.m4 @ bc539d5

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since bc539d5 was d6a575c, checked in by Thomas Klute <thomas2.klute@…>, 4 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 
1dnl Check for memcache client libraries
2dnl CHECK_APR_MEMCACHE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
3dnl Sets:
4dnl  APR_MEMCACHE_LIBS
5dnl  APR_MEMCACHE_CFLAGS
6AC_DEFUN([CHECK_APR_MEMCACHE],
7[dnl
8
9AC_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
15AC_LIBTOOL_SYS_DYNAMIC_LINKER
16
17save_CFLAGS=$CFLAGS
18save_LDFLAGS=$LDFLAGS
19
20dnl # If path to apu-1-config hasn't been set explicitly, try to find it
21if test -z "$apr_util_config"; then
22        AC_PATH_PROGS([APR_UTIL_CONF], [apu-1-config], [no], [$PATH:/usr/sbin])
23else
24        AC_MSG_NOTICE([using apu-1-config path set by user: $apr_util_config])
25        APR_UTIL_CONF="$apr_util_config"
26fi
27
28CFLAGS="`$APR_UTIL_CONF --includes` $CFLAGS"
29LDFLAGS="`$APR_UTIL_CONF --link-ld` $LDFLAGS"
30
31AC_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
40CFLAGS=$save_CFLAGS
41LDFLAGS=$save_LDFLAGS
42
43AC_SUBST(APR_MEMCACHE_LIBS)
44AC_SUBST(APR_MEMCACHE_CFLAGS)
45
46if 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)
49else
50  AC_MSG_NOTICE([using '${APR_MEMCACHE_LIBS}' for memcache])
51  ifelse([$1], , , $1)
52fi
53])
Note: See TracBrowser for help on using the repository browser.