2 # Copyright (C) 2008 Brian Aker, Monty Taylor
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in this directory for full text.
9 AC_INIT([libmemcached],[0.37],[http://tangent.org/552/libmemcached.html])
10 AC_CONFIG_SRCDIR([libmemcached/memcached.c])
11 AC_CONFIG_AUX_DIR(config)
12 AM_CONFIG_HEADER([config.h])
13 AC_CONFIG_MACRO_DIR([m4])
15 PANDORA_CANONICAL_TARGET
17 #shared library versioning
18 MEMCACHED_LIBRARY_VERSION=4:0:0
22 # current:revision:age
24 # | | +- increment if interfaces have been added
25 # | | set to zero if interfaces have been removed or changed
26 # | +- increment if source code has changed
27 # | set to zero if current is incremented
28 # +- increment if interfaces have been added, removed or changed
29 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
32 HASHKIT_LIBRARY_VERSION=0:0:0
33 AC_SUBST(HASHKIT_LIBRARY_VERSION)
35 AC_SEARCH_LIBS(getopt_long, gnugetopt)
36 AC_SEARCH_LIBS(gethostbyname, nsl)
38 AC_CHECK_FUNCS_ONCE([getline])
41 PANDORA_REQUIRE_PTHREAD
54 PANDORA_HAVE_LIBINNODB
55 PANDORA_PRINT_CALLSTACK
57 AC_CHECK_HEADERS([atomic.h])
58 AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],
59 AC_CHECK_FUNCS(atomic_add_64)
60 AC_CHECK_FUNCS(atomic_add_32)
61 AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],
62 AC_DEFINE([USE_ATOMIC_H],
64 [Define to true if you want to use functions from atomic.h])))
69 libmemcached/configure.h
70 support/libmemcached.pc
71 support/libmemcached.spec
72 support/libmemcached-fc.spec
77 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
79 echo " * Installation prefix: $prefix"
80 echo " * System type: $host_vendor-$host_os"
81 echo " * Host CPU: $host_cpu"
82 echo " * C Compiler: $CC_VERSION"
83 echo " * Assertions enabled: $ac_cv_assert"
84 echo " * Debug enabled: $with_debug"
85 echo " * Warnings as failure: $ac_cv_warnings_as_errors"