575.4.7
by Monty Taylor
More header cleanup. |
1 |
dnl -*- bash -*- |
1
by brian
clean slate |
2 |
dnl Process this file with autoconf to produce a configure script. |
3 |
||
992.1.25
by Monty Taylor
Moved myisam to new plugin system. |
4 |
dnl Copyright (C) 2009 Sun Microsystems |
5 |
dnl
|
|
6 |
dnl This program is free software; you can redistribute it and/or modify |
|
7 |
dnl it under the terms of the GNU General Public License as published by |
|
8 |
dnl the Free Software Foundation; version 2 of the License. |
|
9 |
dnl
|
|
10 |
dnl This program is distributed in the hope that it will be useful, |
|
11 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
dnl GNU General Public License for more details. |
|
14 |
dnl
|
|
15 |
dnl You should have received a copy of the GNU General Public License |
|
16 |
dnl along with this program; if not, write to the Free Software |
|
17 |
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 |
||
19 |
||
77.1.65
by Monty Taylor
We don't really require 2.61, 2.59 is actually fine. |
20 |
AC_PREREQ(2.59)dnl Minimum Autoconf version required. |
1192.3.6
by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking. |
21 |
dnl Version from the AC_INIT call below is overridden later |
22 |
dnl So don't update it here |
|
1845.2.3
by patrick crews
Tweak configure.ac for release |
23 |
AC_INIT([drizzle7],[2010.10.01],[http://bugs.launchpad.net/drizzle])
|
214
by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing). |
24 |
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
|
1273.12.1
by Monty Taylor
pandora-build v0.100 - Fixes several bugs found by cb1kenobi. Add several thoughts from folks at LCA. |
25 |
AC_CONFIG_AUX_DIR([config])
|
435.1.1
by Monty Taylor
Fixed -O3 optimization for gcc. |
26 |
|
1845.1.1
by Monty Taylor
Branched versioning for Elliot. |
27 |
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, skip-visibility)
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
28 |
|
29 |
LIBDRIZZLE_LIBRARY_VERSION=0:8:0
|
|
30 |
# | | |
|
|
31 |
# +------+ | +---+
|
|
32 |
# | | |
|
|
33 |
# current:revision:age
|
|
34 |
# | | |
|
|
1724.2.1
by Monty Taylor
It would _REALLY_ help if I could get this right. For once. |
35 |
# | | +- increment if interfaces have been added
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
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)/libdrizzle/libdrizzle.ver"
|
|
47 |
])
|
|
48 |
AC_SUBST(LD_VERSION_SCRIPT)
|
|
49 |
||
873.2.41
by Monty Taylor
Fixed the ol build for ol Solaris. |
50 |
|
1192.3.51
by Monty Taylor
Fixes the default datadir location. |
51 |
dnl Set the default datadir location to /usr/local/var/drizzle. If a
|
52 |
dnl localstatedir is explicitly given, just use that.
|
|
53 |
AS_IF([test "x${localstatedir}" = 'x${prefix}/var'],[ |
|
54 |
localstatedir='${prefix}/var/drizzle' |
|
55 |
])
|
|
1
by brian
clean slate |
56 |
|
873.2.4
by Monty Taylor
Fixed some configure errors. |
57 |
AC_PATH_PROG(GPERF, gperf)
|
58 |
AS_IF([test "x$GPERF" = "x"],
|
|
917.1.5
by Monty Taylor
Added more verbose failure messages. |
59 |
AC_MSG_ERROR("Drizzle requires gperf to build."))
|
779.4.5
by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!! |
60 |
|
1720
by Brian Aker
Merge of signals, plus build fix for FreeBSD. Also contains memset/constructor patch. |
61 |
# libexecinfo provides backtrace_symbols on FreeBSD
|
62 |
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
|
|
63 |
||
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
64 |
PANDORA_RUN_CPPLINT
|
919.2.22
by Monty Taylor
Fixed the latest stuff on Solaris. |
65 |
|
1099.1.6
by Monty Taylor
pandora-build v0.25 |
66 |
PANDORA_REQUIRE_LIBPROTOBUF
|
1200.1.1
by Jay Pipes
Update required protobuf library version to 2.1.0 |
67 |
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
|
1099.1.6
by Monty Taylor
pandora-build v0.25 |
68 |
PANDORA_REQUIRE_PROTOC
|
77.1.111
by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it. |
69 |
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
70 |
AC_LANG_PUSH(C++)
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
71 |
PANDORA_REQUIRE_PTHREAD
|
1273.13.96
by Brian Aker
Merge Stewart. |
72 |
PANDORA_REQUIRE_LIBUUID
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
73 |
PANDORA_REQUIRE_LIBZ
|
74 |
PANDORA_REQUIRE_LIBPCRE
|
|
75 |
PANDORA_REQUIRE_LIBREADLINE
|
|
76 |
PANDORA_REQUIRE_LIBDL
|
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
77 |
AC_LANG_POP
|
779.1.15
by Monty Taylor
Added libdrizzle configure support. |
78 |
|
1782
by Brian Aker
This modifies our thread system to be based on boost, and it fixes a |
79 |
DRIZZLE_STACK_DIRECTION
|
80 |
||
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
81 |
PANDORA_USE_BETTER_MALLOC
|
82 |
||
83 |
PANDORA_DRIZZLE_BUILD
|
|
1625.1.1
by Monty Taylor
Fixed the visibility header to match the project name. |
84 |
AC_DEFINE([BUILDING_DRIZZLED],[1],
|
1241.9.4
by Monty Taylor
Beginnings of what we need to do to support -fvisibility=hidden. |
85 |
[Define indicating we are building and not consuming drizzle.])
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
86 |
|
1491.6.7
by Monty Taylor
Made gtest optional. |
87 |
PANDORA_HAVE_LIBGTEST
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
88 |
PANDORA_HAVE_LIBSQLITE3
|
89 |
||
90 |
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
|
|
91 |
||
1
by brian
clean slate |
92 |
|
28.1.39
by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway) |
93 |
AC_ARG_WITH([server-suffix],
|
94 |
[AS_HELP_STRING([--with-server-suffix],
|
|
95 |
[Append value to the version string.])],
|
|
1192.3.41
by Monty Taylor
Removed more unused bits. |
96 |
[ DRIZZLE_SERVER_SUFFIX="$withval" ]
|
97 |
[ DRIZZLE_SERVER_SUFFIX= ])
|
|
98 |
||
546
by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed) |
99 |
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
|
100 |
[Append value to the version string])
|
|
1
by brian
clean slate |
101 |
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
102 |
|
572.2.1
by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user. |
103 |
AC_ARG_WITH([drizzled-user],
|
104 |
[AS_HELP_STRING([--with-drizzled-user=username],
|
|
105 |
[What user the drizzled daemon shall be run as.
|
|
106 |
@<:@default=drizzle@:>@])],
|
|
1192.3.41
by Monty Taylor
Removed more unused bits. |
107 |
[ DRIZZLED_USER="$withval" ],
|
108 |
[ DRIZZLED_USER=drizzle ])
|
|
572.2.1
by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user. |
109 |
AC_SUBST(DRIZZLED_USER)
|
1
by brian
clean slate |
110 |
|
111 |
||
28.1.39
by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway) |
112 |
AC_ARG_WITH([comment],
|
113 |
[AS_HELP_STRING([--with-comment],
|
|
114 |
[Comment about compilation environment. @<:@default=off@:>@])],
|
|
1
by brian
clean slate |
115 |
[with_comment=$withval],
|
116 |
[with_comment=no])
|
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
117 |
AS_IF([test "$with_comment" != "no"],[
|
1
by brian
clean slate |
118 |
COMPILATION_COMMENT=$with_comment
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
119 |
],[
|
1192.3.7
by Monty Taylor
Added code necessary for building plugins dynamically. |
120 |
COMPILATION_COMMENT="Source distribution (${PANDORA_RELEASE_COMMENT})"
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
121 |
])
|
546
by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed) |
122 |
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
|
123 |
[Comment about compilation environment])
|
|
1
by brian
clean slate |
124 |
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
125 |
|
1
by brian
clean slate |
126 |
#########################################################################
|
127 |
||
128 |
||
1093.9.13
by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build |
129 |
dnl Has to be done late, as the plugin may need to check for existence of
|
130 |
dnl functions tested above
|
|
1530.2.5
by Monty Taylor
Renamed classes that were in drizzled::plugin but which were not meant |
131 |
PANDORA_PLUGINS([drizzled/module/load_list.h])
|
1093.9.12
by Monty Taylor
Moved InnoDB specific code to InnoDB. |
132 |
|
492.1.7
by Monty Taylor
Moved test() to its own file. |
133 |
dnl GCC Precompiled Header Support
|
584.4.3
by Monty Taylor
Disabled pre-compiled headers for now. |
134 |
dnl re-enable later
|
632.1.25
by Monty Taylor
Removed AM_CONDITIONAL from SEARCH_FOR_LIB. Aligned naming of AM_CONDITIONALS. |
135 |
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
|
136 |
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
|
|
492.1.7
by Monty Taylor
Moved test() to its own file. |
137 |
|
992.1.17
by Monty Taylor
Moved extra/ into root Makefile.am |
138 |
AC_CONFIG_FILES(Makefile dnl
|
1192.3.67
by Monty Taylor
Added convenience Makefile for hudson compat. |
139 |
tests/Makefile dnl
|
1253.2.1
by Monty Taylor
Moved plugin versioning out of drizzled/configmake.h and into drizzled/plugin/version.h. Also fixed header include paths. |
140 |
drizzled/plugin/version.h dnl
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
141 |
support-files/libdrizzle.pc dnl
|
1025.1.1
by Trond Norbye
Add configuration files to integrate to Solaris SMF |
142 |
support-files/drizzle.server support-files/drizzle-log-rotate
|
143 |
support-files/smf/install.sh dnl
|
|
1286.1.2
by Brian Aker
Added very basic RPM support. |
144 |
support-files/drizzle.spec dnl
|
1025.1.1
by Trond Norbye
Add configuration files to integrate to Solaris SMF |
145 |
support-files/smf/drizzle.xml dnl
|
146 |
support-files/smf/drizzle)
|
|
1
by brian
clean slate |
147 |
|
512.2.2
by C.J. Adams-Collier
added checks to determine which threading plugins have been enabled on |
148 |
scheduling_plugins_available="
|
149 |
pool_of_threads
|
|
150 |
single_thread
|
|
151 |
"
|
|
152 |
||
153 |
for sched_plugin in $scheduling_plugins_available
|
|
154 |
do
|
|
155 |
varname="\${with_plugin_${sched_plugin}}"
|
|
156 |
result=`eval "echo $varname"`
|
|
157 |
if test "x$result" = "xyes"
|
|
158 |
then
|
|
159 |
scheduling_plugins="$sched_plugin $scheduling_plugins"
|
|
160 |
fi
|
|
161 |
done
|
|
162 |
||
1
by brian
clean slate |
163 |
AC_OUTPUT
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
164 |
|
165 |
echo "---"
|
|
1192.3.6
by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking. |
166 |
echo "Configuration summary for $PACKAGE_NAME version $VERSION $PANDORA_RELEASE_COMMENT"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
167 |
echo ""
|
168 |
echo " * Installation prefix: $prefix"
|
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
169 |
echo " * System type: $host_vendor-$host_os"
|
1644.1.1
by Monty Taylor
Added a configure summary entry for pandora-build version. |
170 |
echo " * pandora-build version: PANDORA_CANONICAL_VERSION"
|
492.2.1
by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty) |
171 |
echo " * Host CPU: $host_cpu"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
172 |
echo " * C Compiler: $CC_VERSION"
|
632.1.21
by Monty Taylor
Cleaned up compiler version checking. |
173 |
echo " * C++ Compiler: $CXX_VERSION"
|
492.2.1
by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty) |
174 |
echo " * Assertions enabled: $ac_cv_assert"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
175 |
echo " * Debug enabled: $with_debug"
|
176 |
echo " * Profiling enabled: $ac_profiling"
|
|
177 |
echo " * Coverage enabled: $ac_coverage"
|
|
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
178 |
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
179 |
echo ""
|
180 |
echo "---"
|
|
908.1.4
by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now. |
181 |
|
1561.2.1
by Monty Taylor
Added note for freebsd about using gmake. |
182 |
case "$host_os" in
|
183 |
*freebsd*)
|
|
184 |
echo "*****"
|
|
185 |
echo "*"
|
|
186 |
echo "* NOTE: You are on FreeBSD. BSD make will not work."
|
|
187 |
echo "*"
|
|
188 |
echo "* use 'gmake' To build Drizzle" |
|
189 |
echo "*" |
|
1561.2.2
by Monty Taylor
Add note about gcc44 LD_LIBRARY_PATH. |
190 |
echo "* And ensure that /usr/local/lib/gcc44 is in your LD_LIBRARY_PATH" |
191 |
echo "*" |
|
1561.2.1
by Monty Taylor
Added note for freebsd about using gmake. |
192 |
echo "*****" |
193 |
;; |
|
194 |
esac
|
|
195 |
||
196 |
||
908.1.4
by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now. |
197 |
dnl libtoolize scans configure.ac and needs to see some text |
198 |
m4_define([LIBTOOLIZE_AC_INIT], []) |