~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Stewart Smith
  • Date: 2010-02-05 01:20:18 UTC
  • mto: (1286.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1287.
  • Revision ID: stewart@flamingspork.com-20100205012018-blvmeky20wze8eyg
initial TableProtoTester engine. We can't just use table_write as some protobuf library versions don't let us write invalid protobuf messages :(

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl -*- bash -*-
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
 
4
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
dnl  Copyright (C) 2009 Sun Microsystems
5
5
dnl
6
6
dnl  This program is free software; you can redistribute it and/or modify
7
7
dnl  it under the terms of the GNU General Public License as published by
20
20
AC_PREREQ(2.59)dnl              Minimum Autoconf version required.
21
21
dnl Version from the AC_INIT call below is overridden later
22
22
dnl So don't update it here
23
 
AC_INIT([drizzle7],[7],[http://bugs.launchpad.net/drizzle])
 
23
AC_INIT([drizzle],[7],[http://bugs.launchpad.net/drizzle])
24
24
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
25
 
AC_CONFIG_AUX_DIR([config])
26
 
 
27
 
PANDORA_CANONICAL_TARGET(less-warnings, require-cxx, force-gcc42, version-from-vc) 
28
 
 
29
 
LIBDRIZZLE_LIBRARY_VERSION=1:0:0
30
 
#                          | | |
31
 
#                   +------+ | +---+
32
 
#                   |        |     |
33
 
#                current:revision:age
34
 
#                   |        |     |
35
 
#                   |        |     +- increment if interfaces have been added
36
 
#                   |        |        set to zero if interfaces have been
37
 
#                   |        |        removed or changed
38
 
#                   |        +- increment if source code has changed
39
 
#                   |           set to zero if current is incremented
40
 
#                   +- increment if interfaces have been added, removed or
41
 
#                      changed
42
 
AC_SUBST(LIBDRIZZLE_LIBRARY_VERSION)
43
 
 
44
 
# libdrizzle versioning when linked with GNU ld.
45
 
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
46
 
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
47
 
  ])
48
 
AC_SUBST(LD_VERSION_SCRIPT)
 
25
AC_CONFIG_AUX_DIR(config)
 
26
AC_CONFIG_HEADERS([config.h])
 
27
AC_CONFIG_MACRO_DIR([m4])
 
28
 
 
29
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, use-gnulib, require-cxx, force-gcc42, skip-visibility, version-from-vc)
49
30
 
50
31
dnl Set the default datadir location to /usr/local/var/drizzle. If a
51
32
dnl localstatedir is explicitly given, just use that.
57
38
AS_IF([test "x$GPERF" = "x"],
58
39
      AC_MSG_ERROR("Drizzle requires gperf to build."))
59
40
 
60
 
# libexecinfo provides backtrace_symbols on FreeBSD
61
 
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
 
41
AC_CHECK_PROGS(YACC, ['bison -y'])
 
42
AS_IF([test "x$YACC" = "x" -a "$ac_cv_building_from_bzr" = "yes"],[
 
43
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
 
44
])
 
45
 
 
46
 
 
47
PANDORA_WITH_GETTEXT
 
48
PANDORA_RUN_CPPLINT
62
49
 
63
50
PANDORA_REQUIRE_LIBPROTOBUF
64
51
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
67
54
AC_LANG_PUSH(C++)
68
55
PANDORA_REQUIRE_PTHREAD
69
56
PANDORA_REQUIRE_LIBUUID
 
57
PANDORA_REQUIRE_LIBDRIZZLE
70
58
PANDORA_REQUIRE_LIBZ
71
59
PANDORA_REQUIRE_LIBPCRE
72
60
PANDORA_REQUIRE_LIBREADLINE
73
61
PANDORA_REQUIRE_LIBDL
74
62
AC_LANG_POP
75
63
 
76
 
DRIZZLE_STACK_DIRECTION
77
 
 
78
64
PANDORA_USE_BETTER_MALLOC
79
65
 
80
66
PANDORA_DRIZZLE_BUILD
81
 
AC_DEFINE([BUILDING_DRIZZLED],[1],
 
67
AC_DEFINE([BUILDING_DRIZZLE],[1],
82
68
          [Define indicating we are building and not consuming drizzle.])
83
69
 
84
 
PANDORA_HAVE_BOOST_TEST
85
 
PANDORA_HAVE_LIBSQLITE3
86
 
 
87
 
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
88
 
 
89
70
 
90
71
AC_ARG_WITH([server-suffix],
91
72
    [AS_HELP_STRING([--with-server-suffix],
125
106
 
126
107
dnl Has to be done late, as the plugin may need to check for existence of
127
108
dnl functions tested above
128
 
PANDORA_PLUGINS([drizzled/module/load_list.h])
 
109
PANDORA_PLUGINS([drizzled/plugin/load_list.h])
129
110
 
130
111
dnl GCC Precompiled Header Support
131
112
dnl re-enable later
132
113
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
133
114
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
134
115
 
135
 
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
136
 
  LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
137
 
  ])
138
 
 
139
 
WITH_VALGRIND
140
 
AS_IF([test "x${ac_gcc_profile_mode}" = "xyes" -a "x${pandora_cv_boost_profile}" = "xyes"],[
141
 
    AC_DEFINE([_GLIBCXX_PROFILE],[1],[Enable GCC Profile Mode])
142
 
    ])
143
 
 
144
 
 
145
116
AC_CONFIG_FILES(Makefile dnl
 
117
 gnulib/Makefile dnl
 
118
 po/Makefile.in dnl
146
119
 tests/Makefile dnl
147
120
 drizzled/plugin/version.h dnl
148
 
 support-files/drizzle7.pc dnl
149
 
 support-files/libdrizzle.pc dnl
 
121
 support-files/drizzle.server support-files/drizzle-log-rotate
150
122
 support-files/smf/install.sh dnl
151
123
 support-files/smf/drizzle.xml dnl
152
124
 support-files/smf/drizzle)
173
145
echo ""
174
146
echo "   * Installation prefix:       $prefix"
175
147
echo "   * System type:               $host_vendor-$host_os"
176
 
echo "   * pandora-build version:     PANDORA_CANONICAL_VERSION"
177
148
echo "   * Host CPU:                  $host_cpu"
178
149
echo "   * C Compiler:                $CC_VERSION"
179
150
echo "   * C++ Compiler:              $CXX_VERSION"
 
151
echo "   * Build auth_pam:            $ac_cv_libpam"
180
152
echo "   * Assertions enabled:        $ac_cv_assert"
181
153
echo "   * Debug enabled:             $with_debug"
182
154
echo "   * Profiling enabled:         $ac_profiling"
183
155
echo "   * Coverage enabled:          $ac_coverage"
184
156
echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
 
157
echo "   * C++ cstdint location:      $ac_cv_cxx_cstdint"
 
158
echo "   * C++ hash_map location:     $ac_cv_cxx_hash_map"
 
159
echo "   * C++ hash namespace:        $ac_cv_cxx_hash_namespace"
 
160
echo "   * C++ shared_ptr namespace:  $ac_cv_shared_ptr_namespace"
185
161
echo ""
186
162
echo "---"
187
163
 
188
 
case "$host_os" in
189
 
  *freebsd*)
190
 
    echo "*****"
191
 
    echo "*"
192
 
    echo "*  NOTE: You are on FreeBSD. BSD make will not work."
193
 
    echo "*"
194
 
    echo "*   use 'gmake' To build Drizzle"
195
 
    echo "*"
196
 
    echo "*  And ensure that /usr/local/lib/gcc44 is in your LD_LIBRARY_PATH"
197
 
    echo "*" 
198
 
    echo "*****"
199
 
  ;;
200
 
esac
201
 
 
202
 
 
203
164
dnl libtoolize scans configure.ac  and needs to see some text
204
165
m4_define([LIBTOOLIZE_AC_INIT], [])