Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 86 lines (70 sloc) 2.73 kb
fc342e3 @posulliv Initial commit.
authored
1 #!/usr/bin/env bash
0796ebc @posulliv Had to modify the generated thrift code so that we can compile.
authored
2 # libcassandra
3 # Copyright (C) 2010 Padraig O'Sullivan
fc342e3 @posulliv Initial commit.
authored
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([libcassandra],[0.1],[http://github.com/posulliv/libcassandra])
11 AC_CONFIG_SRCDIR([libcassandra/cassandra.cc])
9ac77c7 @posulliv Removed the need to have a config.rpath file in the root dir.
authored
12 AC_CONFIG_AUX_DIR(config)
fc342e3 @posulliv Initial commit.
authored
13
83948d6 @posulliv Fixed stupid typo that was preventing the library from being correctl…
authored
14 PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, skip-visibility)
fc342e3 @posulliv Initial commit.
authored
15
16 #shared library versioning
b4731fe @posulliv Added utility function to ping a cassandra server to see if it is up.
authored
17 CASSANDRA_LIBRARY_VERSION=2:0:0
fc342e3 @posulliv Initial commit.
authored
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(CASSANDRA_LIBRARY_VERSION)
29
30
31 AC_SEARCH_LIBS(getopt_long, gnugetopt)
32 AC_SEARCH_LIBS(gethostbyname, nsl)
33
34 AC_CHECK_FUNCS([getline])
35
905972c @posulliv Updated autoconf checks for thrift. Also updated the generated thrift…
authored
36 PANDORA_REQUIRE_THRIFT
37a3293 @posulliv Various modifications to get builds working hafy way correctly. Fixed…
authored
37
38 AC_LANG_PUSH(C++)
fc342e3 @posulliv Initial commit.
authored
39 PANDORA_REQUIRE_PTHREAD
37a3293 @posulliv Various modifications to get builds working hafy way correctly. Fixed…
authored
40 AC_LANG_POP
fc342e3 @posulliv Initial commit.
authored
41
97d6f19 @posulliv Updated the build related files.
authored
42 PANDORA_DRIZZLE_BUILD
43
d9778d3 @posulliv Added autoconf code from pandora build for gtest related checks and l…
authored
44 PANDORA_HAVE_LIBGTEST
45
fc342e3 @posulliv Initial commit.
authored
46 dnl Specialty checks
47 DETECT_BYTEORDER
48 SETSOCKOPT_SANITY
49 PANDORA_PRINT_CALLSTACK
50 DETECT_BITFIELD
51
52 AC_CHECK_HEADERS([atomic.h])
53 AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],[
54 AC_CHECK_FUNCS(atomic_add_64)
55 AC_CHECK_FUNCS(atomic_add_32)
56 AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],[
57 AC_DEFINE([USE_ATOMIC_H],
58 [1],
59 [Define to true if you want to use functions from atomic.h])])])
60
61 AC_CONFIG_FILES([
62 Makefile
37a3293 @posulliv Various modifications to get builds working hafy way correctly. Fixed…
authored
63 libgenthrift/configure.h
fc342e3 @posulliv Initial commit.
authored
64 libcassandra/configure.h
65 ])
66 AC_OUTPUT
67
68 echo "---"
69 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
70 echo ""
71 echo " * Installation prefix: $prefix"
72 echo " * System type: $host_vendor-$host_os"
73 echo " * Host CPU: $host_cpu"
74 echo " * C Compiler: $CC_VERSION"
fca1cf3 @posulliv Added pandora build files.
authored
75 echo " * C++ Compiler: $CXX_VERSION"
fc342e3 @posulliv Initial commit.
authored
76 echo " * Assertions enabled: $ac_cv_assert"
77 echo " * Debug enabled: $with_debug"
78 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
97d6f19 @posulliv Updated the build related files.
authored
79 echo " * C++ cstdint location: $ac_cv_cxx_cstdint"
80 echo " * C++ hash_map location: $ac_cv_cxx_hash_map"
81 echo " * C++ hash namespace: $ac_cv_cxx_hash_namespace"
82 echo " * C++ shared_ptr namespace: $ac_cv_shared_ptr_namespace"
fc342e3 @posulliv Initial commit.
authored
83 echo ""
84 echo "---"
85
Something went wrong with that request. Please try again.