3 # Copyright (C) 2008 Brian Aker, Monty Taylor
6 # Use and distribution licensed under the BSD license. See
7 # the COPYING file in this directory for full text.
10 AC_INIT
([libmemcached
],[0.41],[http
://libmemcached.org
/])
11 AC_CONFIG_SRCDIR
([libmemcached
/memcached.c
])
12 AC_CONFIG_AUX_DIR
(config
)
14 PANDORA_CANONICAL_TARGET
16 #shared library versioning
17 MEMCACHED_LIBRARY_VERSION
=5:1:1
21 # current:revision:age
23 # | | +- increment if interfaces have been added
24 # | | set to zero if interfaces have been removed or changed
25 # | +- increment if source code has changed
26 # | set to zero if current is incremented
27 # +- increment if interfaces have been added, removed or changed
28 AC_SUBST
(MEMCACHED_LIBRARY_VERSION
)
31 HASHKIT_LIBRARY_VERSION
=0:0:0
32 AC_SUBST
(HASHKIT_LIBRARY_VERSION
)
34 AC_SEARCH_LIBS
(getopt_long
, gnugetopt
)
35 AC_SEARCH_LIBS
(gethostbyname
, nsl
)
37 AC_CHECK_FUNCS
([getline
])
40 PANDORA_REQUIRE_PTHREAD
53 PANDORA_HAVE_LIBINNODB
54 PANDORA_PRINT_CALLSTACK
57 dnl The sasl functions should only be visible
if we build with sasl support
58 AS_IF
([test "x$ac_cv_sasl" = "xyes"],
59 [LIBMEMCACHED_WITH_SASL_SUPPORT
="#define LIBMEMCACHED_WITH_SASL_SUPPORT 1"])
60 AC_SUBST
(LIBMEMCACHED_WITH_SASL_SUPPORT
)
62 AC_CHECK_HEADERS
([atomic.h
])
63 AS_IF
([test "x$ac_cv_header_atomic_h" = "xyes"],[
64 AC_CHECK_FUNCS
(atomic_add_64
)
65 AC_CHECK_FUNCS
(atomic_add_32
)
66 AS_IF
([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],[
67 AC_DEFINE
([USE_ATOMIC_H
],
69 [Define to true
if you want to use functions from atomic.h
])])])
74 libhashkit
/configure.h
75 libmemcached
/configure.h
76 support
/libmemcached.pc
77 support
/libmemcached.spec
78 support
/libmemcached-fc.spec
83 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
85 echo " * Installation prefix: $prefix"
86 echo " * System type: $host_vendor-$host_os"
87 echo " * Host CPU: $host_cpu"
88 echo " * C Compiler: $CC_VERSION"
89 echo " * Assertions enabled: $ac_cv_assert"
90 echo " * Debug enabled: $with_debug"
91 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
99 echo "* NOTE: You are on FreeBSD. BSD make will not work."
101 echo "* use 'gmake' To build libmemcached"