aboutsummaryrefslogtreecommitdiffstats
path: root/m4/libmemcache.m4
blob: 95e630bbc9701dd6e18375a1f207fc9565840b25 (plain)
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
dnl Check for memcache client libraries
dnl CHECK_MEMCACHE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
AC_DEFUN([CHECK_MEMCACHE],
[dnl

AC_ARG_WITH(
    memcache,
    [AC_HELP_STRING([--with-memcache=PATH],[Path memcache libraries])],
    mc_path="$withval",
    :)

dnl # Determine memcache lib directory
if test -z $mc_path; then
    test_paths="/usr/lib /usr/local/lib"
else
    test_paths="${mc_path}/lib"
fi

for x in $test_paths ; do
    AC_MSG_CHECKING([for memcache library in ${x}])
    if test -f ${x}/libmemcache.so.1.0; then
        AC_MSG_RESULT([yes])
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS"
        LDFLAGS="-L$x $LDFLAGS"
        AC_CHECK_LIB(memcache, mc_server_add,
            LIBMEMCACHE_LIBS="-L$x -lmemcache")
        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS
        break
    else
        AC_MSG_RESULT([no])
    fi
done

AC_SUBST(LIBMEMCACHE_LIBS)

if test -z "${LIBMEMCACHE_LIBS}"; then
  AC_MSG_NOTICE([*** memcache library not found.])
  ifelse([$2], , AC_MSG_ERROR([memcache library is required]), $2)
else
  AC_MSG_NOTICE([using '${LIBMEMCACHE_LIBS}' for memcache])
  ifelse([$1], , , $1) 
fi 
])
iannopoulos 2007-12-08 * added more error checks.Gravatar Nokis Mavrogiannopoulos 2007-12-03 * better handling of RSAFile and DHFileGravatar Nokis Mavrogiannopoulos 2007-12-03 * report the missing GnuTLSPriorities for the gnutls enabled hosts only.Gravatar Nokis Mavrogiannopoulos 2007-12-02 * No more defaults for dhparams, rsaparams. Check for GnuTLSPriorities.Gravatar Nokis Mavrogiannopoulos 2007-12-02 * The compatibility mode can now be enabled only using the GnuTLSPriorities str...Gravatar Nokis Mavrogiannopoulos 2007-12-02 * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-02 * added SSL_SERVER/CLIENT_S_TYPEGravatar Nokis Mavrogiannopoulos 2007-12-02 * export the alternative names of the certificateGravatar Nokis Mavrogiannopoulos 2007-12-02 * added SSL_SERVER_M_SERIAL environment variableGravatar Nokis Mavrogiannopoulos 2007-12-02 * more fixes for subject alternative name.Gravatar Nokis Mavrogiannopoulos 2007-12-02 * some fixes in alternative name supportGravatar Nokis Mavrogiannopoulos 2007-12-02 * Added support for subject alternative names. (untested)Gravatar Nokis Mavrogiannopoulos 2007-12-01 * upgraded to 0.4.00.4.0Gravatar Nokis Mavrogiannopoulos 2007-11-28 * start the CA Certificate code.Gravatar Paul Querna 2005-05-24 * - add lua to do client verificationGravatar Paul Querna 2005-05-17 * Refactor finding the correct server record to fix resumed sessions.0.2.00.2.xGravatar Paul Querna 2005-04-25 * apr_table_setn doesn't copy the data. oops.Gravatar Paul Querna 2005-04-24 * We already have a Certificate, use it directly. With SNI, GnuTLS doesn't pro...Gravatar Paul Querna 2005-04-24 * if there aren't any certs.. still set something.Gravatar Paul Querna 2005-04-24 * add SSL_SERVER_S_DN and SSL_SERVER_I_DN Gravatar Paul Querna 2005-04-24 * - move hooks to gnutls_hooks.cGravatar Paul Querna 2005-04-24