Updated pandora-build files to version 0.131
[m6w6/libmemcached] / configure.ac
1 #!/usr/bin/env bash
2 # libmemcached
3 # Copyright (C) 2008 Brian Aker, Monty Taylor
4 # All rights reserved.
5 #
6 # Use and distribution licensed under the BSD license. See
7 # the COPYING file in this directory for full text.
8
9 AC_PREREQ(2.59)
10 AC_INIT([libmemcached],[0.41],[http://libmemcached.org/])
11 AC_CONFIG_SRCDIR([libmemcached/memcached.c])
12 AC_CONFIG_AUX_DIR(config)
13
14 PANDORA_CANONICAL_TARGET
15
16 #shared library versioning
17 MEMCACHED_LIBRARY_VERSION=5:1:1
18 # | | |
19 # +------+ | +---+
20 # | | |
21 # current:revision:age
22 # | | |
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)
29
30
31 HASHKIT_LIBRARY_VERSION=0:0:0
32 AC_SUBST(HASHKIT_LIBRARY_VERSION)
33
34 AC_SEARCH_LIBS(getopt_long, gnugetopt)
35 AC_SEARCH_LIBS(gethostbyname, nsl)
36
37 AC_CHECK_FUNCS([getline])
38
39 PANDORA_HAVE_LIBEVENT
40 PANDORA_REQUIRE_PTHREAD
41 PANDORA_CXX_DEMANGLE
42
43 dnl Specialty checks
44 DETECT_BYTEORDER
45 ENABLE_UTILLIB
46 SETSOCKOPT_SANITY
47 ENABLE_HSIEH_HASH
48 REQUIRE_POD2MAN
49 REQUIRE_PODCHECKER
50 PROTOCOL_BINARY_TEST
51 WITH_MEMCACHED
52 ENABLE_DEPRECATED
53 PANDORA_HAVE_LIBINNODB
54 PANDORA_PRINT_CALLSTACK
55 PANDORA_HAVE_SASL
56
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)
61
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],
68 [1],
69 [Define to true if you want to use functions from atomic.h])])])
70
71 AC_CONFIG_FILES([
72 Makefile
73 docs/Makefile
74 libhashkit/configure.h
75 libmemcached/configure.h
76 support/libmemcached.pc
77 support/libmemcached.spec
78 support/libmemcached-fc.spec
79 ])
80 AC_OUTPUT
81
82 echo "---"
83 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
84 echo ""
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"
92 echo ""
93 echo "---"
94