- Timestamp:
- Nov 12, 2015, 6:46:48 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, proxy-ticket, upstream
- Children:
- 401a0de
- Parents:
- a63301f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/apr_memcache.m4
ra63301f rd6a575c 3 3 dnl Sets: 4 4 dnl APR_MEMCACHE_LIBS 5 dnl APR_MEMCACHE_CFLAGS 5 6 AC_DEFUN([CHECK_APR_MEMCACHE], 6 7 [dnl 7 8 8 9 AC_ARG_WITH( 9 apr-memcache-prefix, 10 [AC_HELP_STRING([--with-apr-memcache-prefix=PATH],[Install prefix for apr_memcache])], 11 apr_memcache_prefix="$withval", 12 :) 13 AC_ARG_WITH( 14 apr-memcache-libs, 15 [AC_HELP_STRING([--with-apr-memcache-libs=PATH],[Path to apr_memcache libs])], 16 apr_memcache_libs="$withval", 17 :) 18 AC_ARG_WITH( 19 apr-memcache-includes, 20 [AC_HELP_STRING([--with-apr-memcache-includes=PATH],[Path to apr_memcache includes])], 21 apr_memcache_includes="$withval", 22 :) 23 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 []) 24 14 25 15 AC_LIBTOOL_SYS_DYNAMIC_LINKER 26 16 27 dnl # Determine memcache lib directory28 17 save_CFLAGS=$CFLAGS 29 18 save_LDFLAGS=$LDFLAGS 30 19 31 if test -n "$apr_memcache_libs"; then 32 apr_memcache_libdir=$apr_memcache_libs 33 elif test -n "$apr_memcache_prefix"; then 34 apr_memcache_libdir=$apr_memcache_prefix/lib 35 fi 36 if test -n "$apr_memcache_libdir"; then 37 LDFLAGS="-L$apr_memcache_libdir $LDFLAGS" 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" 38 26 fi 39 27 40 if test -n "$apr_memcache_includes"; then 41 apr_memcache_includedir=$apr_memcache_includes 42 elif test -n "$apr_memcache_prefix"; then 43 apr_memcache_includedir=$apr_memcache_prefix/include/apr_memcache-0 44 else 45 apr_memcache_includedir=$includedir/apr_memcache-0 46 fi 47 48 CFLAGS="-I$apr_memcache_includedir $CFLAGS" 49 28 CFLAGS="`$APR_UTIL_CONF --includes` $CFLAGS" 29 LDFLAGS="`$APR_UTIL_CONF --link-ld` $LDFLAGS" 50 30 51 31 AC_CHECK_LIB( 52 apr_memcache,53 apr_memcache_create,54 [55 APR_MEMCACHE_LIBS="-lapr_memcache"56 if test -n "$apr_memcache_libdir"; then57 APR_MEMCACHE_LIBS="-R$apr_memcache_libdir -L$apr_memcache_libdir $APR_MEMCACHE_LIBS"58 fi59 APR_MEMCACHE_CFLAGS="-I$apr_memcache_includedir"60 ]61 )62 63 64 dnl # if the apr_memcache was not found, try apr-util65 if test -z "${APR_MEMCACHE_LIBS}"; then66 if test -n "$apr_memcache_includes"; then67 apr_memcache_includedir=$apr_memcache_includes68 elif test -n "$apr_memcache_prefix"; then69 apr_memcache_includedir=$apr_memcache_prefix/include/aprutil-170 else71 apr_memcache_includedir=$includedir/aprutil-172 fi73 AC_CHECK_LIB(74 32 aprutil-1, 75 33 apr_memcache_create, 76 34 [ 77 APR_MEMCACHE_LIBS="`apu-1-config--link-ld`"78 APR_MEMCACHE_CFLAGS="`apu-1-config--includes`"35 APR_MEMCACHE_LIBS="`$APR_UTIL_CONF --link-ld`" 36 APR_MEMCACHE_CFLAGS="`$APR_UTIL_CONF --includes`" 79 37 ] 80 ) 81 fi 82 38 ) 83 39 84 40 CFLAGS=$save_CFLAGS
Note: See TracChangeset
for help on using the changeset viewer.