Fix for bug #15450
[awesomized/libmemcached] / configure.ac
1 # libmemcached
2 # Copyright (C) 2008 Brian Aker, Monty Taylor
3 # All rights reserved.
4 #
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in this directory for full text.
7
8 AC_PREREQ(2.59)
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])
14
15 PANDORA_CANONICAL_TARGET
16
17 #shared library versioning
18 MEMCACHED_LIBRARY_VERSION=4:0:0
19 # | | |
20 # +------+ | +---+
21 # | | |
22 # current:revision:age
23 # | | |
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)
30
31
32 HASHKIT_LIBRARY_VERSION=0:0:0
33 AC_SUBST(HASHKIT_LIBRARY_VERSION)
34
35 AC_SEARCH_LIBS(getopt_long, gnugetopt)
36 AC_SEARCH_LIBS(gethostbyname, nsl)
37
38 AC_CHECK_FUNCS_ONCE([getline])
39
40 PANDORA_HAVE_LIBEVENT
41 PANDORA_REQUIRE_PTHREAD
42 PANDORA_CXX_DEMANGLE
43
44 dnl Specialty checks
45 DETECT_BYTEORDER
46 ENABLE_UTILLIB
47 SETSOCKOPT_SANITY
48 ENABLE_HSIEH_HASH
49 REQUIRE_POD2MAN
50 REQUIRE_PODCHECKER
51 PROTOCOL_BINARY_TEST
52 WITH_MEMCACHED
53 ENABLE_DEPRECATED
54 PANDORA_HAVE_LIBINNODB
55 PANDORA_PRINT_CALLSTACK
56
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],
63 [1],
64 [Define to true if you want to use functions from atomic.h])))
65
66 AC_CONFIG_FILES([
67 Makefile
68 docs/Makefile
69 libmemcached/configure.h
70 support/libmemcached.pc
71 support/libmemcached.spec
72 support/libmemcached-fc.spec
73 ])
74 AC_OUTPUT
75
76 echo "---"
77 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
78 echo ""
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"
86 echo ""
87 echo "---"
88