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 |
||
1999.6.1
by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file |
4 |
dnl Copyright (C) 2009 Sun Microsystems, Inc. |
992.1.25
by Monty Taylor
Moved myisam to new plugin system. |
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 |
|
2449.1.4
by Brian Aker
Complete update of libdrizzle |
23 |
AC_INIT([drizzle7],[7],[http://bugs.launchpad.net/drizzle],[drizzle7],[http://drizzle.org/])
|
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 |
|
2151.6.1
by Monty Taylor
Don't build with warnings in a tarball build. |
27 |
PANDORA_CANONICAL_TARGET(less-warnings, require-cxx, force-gcc42, version-from-vc)
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
28 |
|
2244.1.1
by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch. |
29 |
LIBDRIZZLE_LIBRARY_VERSION=3:0:0
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
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)
|
|
2392.1.1
by Brian Aker
Fixes for --help work. |
43 |
|
2244.1.1
by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch. |
44 |
OLDLIBDRIZZLE_LIBRARY_VERSION=2:0:1
|
45 |
# | | |
|
|
46 |
# +------+ | +---+
|
|
47 |
# | | |
|
|
48 |
# current:revision:age
|
|
49 |
# | | |
|
|
50 |
# | | +- increment if interfaces have been added
|
|
51 |
# | | set to zero if interfaces have been
|
|
52 |
# | | removed or changed
|
|
53 |
# | +- increment if source code has changed
|
|
54 |
# | set to zero if current is incremented
|
|
55 |
# +- increment if interfaces have been added, removed or
|
|
56 |
# changed
|
|
57 |
AC_SUBST(OLDLIBDRIZZLE_LIBRARY_VERSION)
|
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
58 |
|
59 |
# libdrizzle versioning when linked with GNU ld.
|
|
60 |
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
|
|
1861.3.1
by Monty Taylor
Add a version script to the core. |
61 |
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
62 |
])
|
63 |
AC_SUBST(LD_VERSION_SCRIPT)
|
|
64 |
||
1192.3.51
by Monty Taylor
Fixes the default datadir location. |
65 |
dnl Set the default datadir location to /usr/local/var/drizzle. If a
|
66 |
dnl localstatedir is explicitly given, just use that.
|
|
67 |
AS_IF([test "x${localstatedir}" = 'x${prefix}/var'],[ |
|
68 |
localstatedir='${prefix}/var/drizzle' |
|
69 |
])
|
|
1
by brian
clean slate |
70 |
|
2221.1.8
by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the |
71 |
AC_ARG_WITH([server],
|
72 |
[AS_HELP_STRING([--without-server],
|
|
2244.1.1
by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch. |
73 |
[Do not build the drizzled server.])],
|
2221.1.8
by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the |
74 |
[ pandora_cv_skip_requires="$withval" ]
|
75 |
[ pandora_cv_skip_requires=no ])
|
|
76 |
||
77 |
AS_IF([test "x${pandora_cv_skip_requires}" != "xno"],[
|
|
78 |
||
79 |
AC_PATH_PROG(GPERF, gperf)
|
|
80 |
AS_IF([test "x$GPERF" = "x"],
|
|
81 |
AC_MSG_ERROR("Drizzle requires gperf to build."))
|
|
82 |
||
83 |
# libexecinfo provides backtrace_symbols on FreeBSD
|
|
84 |
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
|
|
85 |
||
86 |
AC_FUNC_STRERROR_R
|
|
87 |
||
88 |
DRIZZLE_STACK_DIRECTION
|
|
89 |
||
90 |
PANDORA_USE_BETTER_MALLOC
|
|
91 |
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
|
|
92 |
||
93 |
||
94 |
AC_ARG_WITH([server-suffix],
|
|
95 |
[AS_HELP_STRING([--with-server-suffix],
|
|
96 |
[Append value to the version string.])],
|
|
97 |
[ DRIZZLE_SERVER_SUFFIX="$withval" ]
|
|
98 |
[ DRIZZLE_SERVER_SUFFIX= ])
|
|
99 |
||
100 |
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
|
|
101 |
[Append value to the version string])
|
|
102 |
||
103 |
AC_DEFINE([BUILDING_DRIZZLED],[1],
|
|
104 |
[Define indicating we are building and not consuming drizzle.])
|
|
105 |
||
106 |
||
107 |
AC_ARG_WITH([drizzled-user],
|
|
108 |
[AS_HELP_STRING([--with-drizzled-user=username],
|
|
109 |
[What user the drizzled daemon shall be run as.
|
|
110 |
@<:@default=drizzle@:>@])],
|
|
111 |
[ DRIZZLED_USER="$withval" ],
|
|
112 |
[ DRIZZLED_USER=drizzle ])
|
|
113 |
AC_SUBST(DRIZZLED_USER)
|
|
114 |
||
115 |
||
116 |
AC_ARG_WITH([comment],
|
|
117 |
[AS_HELP_STRING([--with-comment],
|
|
118 |
[Comment about compilation environment. @<:@default=off@:>@])],
|
|
119 |
[with_comment=$withval],
|
|
120 |
[with_comment=no])
|
|
121 |
AS_IF([test "$with_comment" != "no"],[
|
|
122 |
COMPILATION_COMMENT=$with_comment
|
|
123 |
],[
|
|
124 |
COMPILATION_COMMENT="Source distribution (${PANDORA_RELEASE_COMMENT})"
|
|
125 |
])
|
|
126 |
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
|
|
127 |
[Comment about compilation environment])
|
|
128 |
])
|
|
1720
by Brian Aker
Merge of signals, plus build fix for FreeBSD. Also contains memset/constructor patch. |
129 |
|
1099.1.6
by Monty Taylor
pandora-build v0.25 |
130 |
PANDORA_REQUIRE_LIBPROTOBUF
|
1200.1.1
by Jay Pipes
Update required protobuf library version to 2.1.0 |
131 |
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
|
1099.1.6
by Monty Taylor
pandora-build v0.25 |
132 |
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. |
133 |
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
134 |
AC_LANG_PUSH(C++)
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
135 |
PANDORA_REQUIRE_PTHREAD
|
1273.13.96
by Brian Aker
Merge Stewart. |
136 |
PANDORA_REQUIRE_LIBUUID
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
137 |
PANDORA_REQUIRE_LIBZ
|
138 |
PANDORA_REQUIRE_LIBPCRE
|
|
139 |
PANDORA_REQUIRE_LIBREADLINE
|
|
140 |
PANDORA_REQUIRE_LIBDL
|
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
141 |
AC_LANG_POP
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
142 |
|
143 |
PANDORA_DRIZZLE_BUILD
|
|
2097.2.4
by Andrew Hutchings
Convert all unit tests to boost::test |
144 |
PANDORA_HAVE_BOOST_TEST
|
1712.1.1
by Monty Taylor
Merged libdrizzle directly into tree. |
145 |
PANDORA_HAVE_LIBSQLITE3
|
1
by brian
clean slate |
146 |
|
1192.3.28
by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build |
147 |
|
1
by brian
clean slate |
148 |
#########################################################################
|
149 |
||
150 |
||
1093.9.13
by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build |
151 |
dnl Has to be done late, as the plugin may need to check for existence of
|
152 |
dnl functions tested above
|
|
1530.2.5
by Monty Taylor
Renamed classes that were in drizzled::plugin but which were not meant |
153 |
PANDORA_PLUGINS([drizzled/module/load_list.h])
|
1093.9.12
by Monty Taylor
Moved InnoDB specific code to InnoDB. |
154 |
|
492.1.7
by Monty Taylor
Moved test() to its own file. |
155 |
dnl GCC Precompiled Header Support
|
584.4.3
by Monty Taylor
Disabled pre-compiled headers for now. |
156 |
dnl re-enable later
|
632.1.25
by Monty Taylor
Removed AM_CONDITIONAL from SEARCH_FOR_LIB. Aligned naming of AM_CONDITIONALS. |
157 |
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
|
158 |
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
|
|
492.1.7
by Monty Taylor
Moved test() to its own file. |
159 |
|
1861.3.1
by Monty Taylor
Add a version script to the core. |
160 |
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
|
161 |
LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
|
|
162 |
])
|
|
163 |
||
1992.6.5
by Monty Taylor
We need to inject a BOOST define for boost headers to do the right thing. |
164 |
AS_IF([test "x${ac_gcc_profile_mode}" = "xyes" -a "x${pandora_cv_boost_profile}" = "xyes"],[
|
1992.6.4
by Monty Taylor
Added support for GCC Profile Mode (new in 4.5) |
165 |
AC_DEFINE([_GLIBCXX_PROFILE],[1],[Enable GCC Profile Mode])
|
166 |
])
|
|
167 |
||
1859.2.14
by Brian Aker
Add support for --with-valgrind |
168 |
|
992.1.17
by Monty Taylor
Moved extra/ into root Makefile.am |
169 |
AC_CONFIG_FILES(Makefile dnl
|
1192.3.67
by Monty Taylor
Added convenience Makefile for hudson compat. |
170 |
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. |
171 |
drizzled/plugin/version.h dnl
|
2472.1.8
by Brian Aker
Cleanup yacc include, remove dead PC file, and put in the basics for RPM. |
172 |
support-files/drizzle.spec dnl
|
2157.2.1
by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place |
173 |
support-files/drizzle7.pc dnl
|
2449.1.3
by Brian Aker
Fix libdrizzle pc support (and restore older .pc file to fix older compiles). |
174 |
support-files/libdrizzle.pc dnl
|
2235.1.1
by Monty Taylor
Install into libdrizzle-1.0 location. |
175 |
support-files/libdrizzle-1.0.pc dnl
|
1025.1.1
by Trond Norbye
Add configuration files to integrate to Solaris SMF |
176 |
support-files/smf/install.sh dnl
|
177 |
support-files/smf/drizzle.xml dnl
|
|
178 |
support-files/smf/drizzle)
|
|
1
by brian
clean slate |
179 |
|
512.2.2
by C.J. Adams-Collier
added checks to determine which threading plugins have been enabled on |
180 |
scheduling_plugins_available="
|
181 |
pool_of_threads
|
|
182 |
single_thread
|
|
183 |
"
|
|
184 |
||
185 |
for sched_plugin in $scheduling_plugins_available
|
|
186 |
do
|
|
187 |
varname="\${with_plugin_${sched_plugin}}"
|
|
188 |
result=`eval "echo $varname"`
|
|
189 |
if test "x$result" = "xyes"
|
|
190 |
then
|
|
191 |
scheduling_plugins="$sched_plugin $scheduling_plugins"
|
|
192 |
fi
|
|
193 |
done
|
|
194 |
||
1
by brian
clean slate |
195 |
AC_OUTPUT
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
196 |
|
197 |
echo "---"
|
|
1192.3.6
by Monty Taylor
pandora-build v0.67 - Support configure-time bzr version checking. |
198 |
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> |
199 |
echo ""
|
200 |
echo " * Installation prefix: $prefix"
|
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
201 |
echo " * System type: $host_vendor-$host_os"
|
1644.1.1
by Monty Taylor
Added a configure summary entry for pandora-build version. |
202 |
echo " * pandora-build version: PANDORA_CANONICAL_VERSION"
|
492.2.1
by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty) |
203 |
echo " * Host CPU: $host_cpu"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
204 |
echo " * C Compiler: $CC_VERSION"
|
632.1.21
by Monty Taylor
Cleaned up compiler version checking. |
205 |
echo " * C++ Compiler: $CXX_VERSION"
|
492.2.1
by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty) |
206 |
echo " * Assertions enabled: $ac_cv_assert"
|
489.2.1
by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org> |
207 |
echo " * Debug enabled: $with_debug"
|
208 |
echo " * Profiling enabled: $ac_profiling"
|
|
209 |
echo " * Coverage enabled: $ac_coverage"
|
|
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
210 |
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> |
211 |
echo ""
|
212 |
echo "---"
|
|
908.1.4
by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now. |
213 |
|
1561.2.1
by Monty Taylor
Added note for freebsd about using gmake. |
214 |
case "$host_os" in
|
215 |
*freebsd*)
|
|
216 |
echo "*****"
|
|
217 |
echo "*"
|
|
218 |
echo "* NOTE: You are on FreeBSD. BSD make will not work."
|
|
219 |
echo "*"
|
|
220 |
echo "* use 'gmake' To build Drizzle" |
|
221 |
echo "*" |
|
1561.2.2
by Monty Taylor
Add note about gcc44 LD_LIBRARY_PATH. |
222 |
echo "* And ensure that /usr/local/lib/gcc44 is in your LD_LIBRARY_PATH" |
223 |
echo "*" |
|
1561.2.1
by Monty Taylor
Added note for freebsd about using gmake. |
224 |
echo "*****" |
225 |
;; |
|
226 |
esac
|
|
227 |
||
228 |
||
908.1.4
by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now. |
229 |
dnl libtoolize scans configure.ac and needs to see some text |
230 |
m4_define([LIBTOOLIZE_AC_INIT], []) |
|
2449.2.1
by Monty Taylor
Remoed direct LT_INIT calls from configure.ac - these are handled in |
231 |
m4_define([UNUSED_MACRO], [ |
232 |
LT_INIT
|
|
233 |
AC_CONFIG_MACRO_DIR([m4]) |
|
234 |
]) |