~drizzle-trunk/drizzle/development

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.
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
21
AC_INIT([drizzle],[RELEASE_VERSION],[http://bugs.launchpad.net/drizzle])
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
22
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
39 by Brian Aker
Move build helper files into config
23
AC_CONFIG_AUX_DIR(config)
236.1.9 by Monty Taylor
Cleaned up configure.ac line.
24
AC_CONFIG_HEADERS([config.h])
908.1.4 by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now.
25
AC_CONFIG_MACRO_DIR([m4])
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
26
1085.3.4 by Monty Taylor
pandora-build v0.8
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, use-gnulib, require-cxx, force-gcc42)
873.2.41 by Monty Taylor
Fixed the ol build for ol Solaris.
28
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
29
# Version with no dots
1093.7.6 by Monty Taylor
pandora-build v0.34
30
AC_DEFINE([DRIZZLE_VERSION_ID],RELEASE_ID,
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
31
	  [Version ID that can be easily used for numeric comparison])
1 by brian
clean slate
32
971.3.48 by Eric Day
New Listen interface about done, not quite compiling yet, but need a backup.
33
# The port that was assigned by IANA.
301 by Brian Aker
Clean up port startup
34
DRIZZLE_TCP_PORT_DEFAULT=4427
1 by brian
clean slate
35
722.1.3 by Monty Taylor
Cleaned up a few build things.
36
# Set this for plugins to use
37
ac_build_drizzle="yes"
441 by Monty Taylor
Move unconditional defines to config.h.
38
39
873.2.4 by Monty Taylor
Fixed some configure errors.
40
AC_PATH_PROG(GPERF, gperf)
41
AS_IF([test "x$GPERF" = "x"],
917.1.5 by Monty Taylor
Added more verbose failure messages.
42
      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!!!
43
629.1.1 by Monty Taylor
More solaris fixes.
44
AC_CHECK_PROGS(YACC, ['bison -y'])
1093.9.22 by Monty Taylor
Made bison check better.
45
AS_IF([test "x$YACC" = "x" -a "$building_from_bzr" = "yes"],[
77.1.70 by Monty Taylor
Added a failure if you don't have bison and you're building from a .bzr branch.
46
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
1093.9.22 by Monty Taylor
Made bison check better.
47
])
1 by brian
clean slate
48
971.4.1 by Monty Taylor
GCC on Solaris build fixes.
49
919.2.22 by Monty Taylor
Fixed the latest stuff on Solaris.
50
AM_GNU_GETTEXT(external, need-formatstring-macros)
51
if test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"
52
then
53
  AM_PATH_PROG_WITH_TEST(GMSGMERGE, gmsgmerge,
54
    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
55
  MSGMERGE="${GMSGMERGE}"
56
fi
57
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
58
59
1126.15.4 by Monty Taylor
Removed now-needless configure hack to remove deprecation warnings.
60
dnl We need to turn on our CXXFLAGS to make sure it shows up correctly
61
save_CXXFLAGS="${CXXFLAGS}"
62
CXXFLAGS="${CXXFLAGS} ${AM_CXXFLAGS}"
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
63
AC_CXX_STL_HASH
1126.15.4 by Monty Taylor
Removed now-needless configure hack to remove deprecation warnings.
64
CXXFLAGS="${save_CXXFLAGS}"
65
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
66
AC_CXX_CSTDINT
67
AC_CXX_CINTTYPES
1 by brian
clean slate
68
1099.1.6 by Monty Taylor
pandora-build v0.25
69
PANDORA_REQUIRE_PTHREAD
70
71
PANDORA_REQUIRE_LIBPROTOBUF
1200.1.1 by Jay Pipes
Update required protobuf library version to 2.1.0
72
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
1099.1.6 by Monty Taylor
pandora-build v0.25
73
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.
74
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
75
#--------------------------------------------------------------------
520.4.27 by Monty Taylor
Fail if we don't find uuid/uuid.h.
76
# Check for libuuid
77
#--------------------------------------------------------------------
78
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
79
dnl Do this by hand. Need to check for uuid/uuid.h, but uuid may or may
80
dnl not be a lib is weird.
81
590.2.13 by Monty Taylor
Reverted libuuid check code.
82
AC_CHECK_HEADERS(uuid/uuid.h)
83
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
84
then
917.1.5 by Monty Taylor
Added more verbose failure messages.
85
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel.])
590.2.13 by Monty Taylor
Reverted libuuid check code.
86
fi
779.2.3 by Monty Taylor
Added stdlib.h depend for readline.
87
AC_LIB_HAVE_LINKFLAGS(uuid,,
88
[
89
#include <uuid/uuid.h>
90
],
91
[
92
  uuid_t uout;
93
  uuid_generate(uout);
94
])
95
134.2.1 by Antony Curtis
Changes for proper detection of libraries
96
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
97
98
99
#--------------------------------------------------------------------
612.2.5 by Monty Taylor
Added test for mtmalloc, if we haven't explicitly asked for tcmalloc.
100
# Check for tcmalloc/mtmalloc
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
101
#--------------------------------------------------------------------
102
1093.2.1 by Monty Taylor
pandora-build v0.16
103
PANDORA_HAVE_BETTER_MALLOC
104
LIBS="${LIBS} ${BETTER_MALLOC_LIBS}"
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
105
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
106
#--------------------------------------------------------------------
779.1.15 by Monty Taylor
Added libdrizzle configure support.
107
# Check for libdrizzle
108
#--------------------------------------------------------------------
109
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
110
AC_LANG_PUSH(C++)
1093.2.1 by Monty Taylor
pandora-build v0.16
111
PANDORA_REQUIRE_LIBDRIZZLE
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
112
AC_LANG_POP
779.1.15 by Monty Taylor
Added libdrizzle configure support.
113
114
115
#--------------------------------------------------------------------
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
116
# Check for libz
117
#--------------------------------------------------------------------
118
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
119
AC_LIB_HAVE_LINKFLAGS(z,,
120
[#include <zlib.h>],
121
[
122
  crc32(0, Z_NULL, 0);
123
])
124
AS_IF([test x$ac_cv_libz = xno],
917.1.5 by Monty Taylor
Added more verbose failure messages.
125
      AC_MSG_ERROR([libz is required for Drizzle. On Debian this can be found in zlib1g-dev. On RedHat this can be found in zlib-devel.]))
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
126
612.2.9 by Monty Taylor
Woot. No more extra CFLAGS on the command line!
127
#--------------------------------------------------------------------
182.1.5 by Jim Winstead
Detect and make the Mac OS X libedit readline interface look like the
128
# Check for libreadline or compatible (libedit on Mac OS X)
129
#--------------------------------------------------------------------
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
130
779.2.5 by Monty Taylor
Split out readline.
131
save_LIBS="${LIBS}"
132
LIBS=""
779.2.4 by Monty Taylor
Updated some more build stuff.
133
VL_LIB_READLINE
873.2.4 by Monty Taylor
Fixed some configure errors.
134
AS_IF([test "x$vl_cv_lib_readline" = "xno"],
917.1.5 by Monty Taylor
Added more verbose failure messages.
135
      AC_MSG_ERROR([libreadline is required for Drizzle. On Debian this can be found in libreadline5-dev. On RedHat this can be found in readline-devel.]))
779.2.5 by Monty Taylor
Split out readline.
136
READLINE_LIBS="${LIBS}"
137
LIBS="${save_LIBS}"
138
AC_SUBST(READLINE_LIBS)
207.1.2 by Jim Winstead
Fix test for libreadline to test a function that exists in all usable
139
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
140
DRIZZLE_CHECK_NEW_RL_INTERFACE
287.3.30 by Monty Taylor
Added step one of finding libprotobuf.
141
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
142
#--------------------------------------------------------------------
143
# Check for libpcre
144
#--------------------------------------------------------------------
145
971.5.2 by Eric Day
Fixed more autoconf bugs.
146
AC_LIB_HAVE_LINKFLAGS(pcre,,
147
[#include <pcre.h>],
148
[
149
  pcre *re= NULL;
150
  pcre_version();
151
])
971.5.1 by Eric Day
Fix for bug #372367, pcre header detection.
152
AS_IF([test "x$ac_cv_libpcre" = "xno"],
153
[
914.1.1 by Monty Taylor
Quick OpenSolaris build fix.
154
  unset ac_cv_libpcre
971.5.2 by Eric Day
Fixed more autoconf bugs.
155
  unset HAVE_LIBPCRE
156
  unset LIBPCRE
157
  unset LIBPCRE_PREFIX
158
  unset LTLIBPCRE
159
  AC_LIB_HAVE_LINKFLAGS(pcre,,
160
  [#include <pcre/pcre.h>],
161
  [
162
    pcre *re= NULL;
163
    pcre_version();
164
  ])
914.1.1 by Monty Taylor
Quick OpenSolaris build fix.
165
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
971.5.1 by Eric Day
Fix for bug #372367, pcre header detection.
166
  [
167
    AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])
168
  ],[
169
    AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])
170
  ])
914.1.1 by Monty Taylor
Quick OpenSolaris build fix.
171
],[
172
  AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
173
])
779.2.9 by Monty Taylor
Put back in pkg-config check- pcre.h is in /usr/include for older versions and
174
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
175
1 by brian
clean slate
176
AC_PATH_PROG(PERL, perl, no)
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
177
1 by brian
clean slate
178
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
179
AC_ARG_WITH([server-suffix],
180
    [AS_HELP_STRING([--with-server-suffix],
181
      [Append value to the version string.])],
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
182
    [ DRIZZLE_SERVER_SUFFIX=`echo "$withval" | sed -e  's/^\(...................................\)..*$/\1/'` ],
183
    [ DRIZZLE_SERVER_SUFFIX= ]
1 by brian
clean slate
184
    )
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
185
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
186
                   [Append value to the version string])
1 by brian
clean slate
187
188
# Force use of a curses libs
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
189
AC_ARG_WITH([named-curses-libs],
190
    [AS_HELP_STRING([--with-named-curses-libs=ARG],
191
            [Use specified curses libraries instead of those
192
		automatically found by configure.])],
1 by brian
clean slate
193
    [ with_named_curses=$withval ],
194
    [ with_named_curses=no ]
195
    )
196
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
197
AC_ARG_WITH([tcp-port],
198
    [AS_HELP_STRING([--with-tcp-port=port-number],
971.3.48 by Eric Day
New Listen interface about done, not quite compiling yet, but need a backup.
199
            [Which port to use for Drizzle TCP services @<:@default=4427@:>@])],
971.3.51 by Eric Day
Finished up new Listen plugin interface.
200
    [ DRIZZLE_TCP_PORT=$withval ],
301 by Brian Aker
Clean up port startup
201
    [ DRIZZLE_TCP_PORT=$DRIZZLE_TCP_PORT_DEFAULT
1 by brian
clean slate
202
      # if we actually defaulted (as opposed to the pathological case of
301 by Brian Aker
Clean up port startup
203
      # --with-tcp-port=<DRIZZLE_TCP_PORT_DEFAULT> which might in theory
1 by brian
clean slate
204
      # happen if whole batch of servers was built from a script), set
205
      # the default to zero to indicate that; we don't lose information
206
      # that way, because 0 obviously indicates that we can get the
301 by Brian Aker
Clean up port startup
207
      # default value from DRIZZLE_TCP_PORT. this seems really evil, but
208
      # testing for DRIZZLE_TCP_PORT==DRIZZLE_TCP_PORT_DEFAULT would make a
209
      # a port of DRIZZLE_TCP_PORT_DEFAULT magic even if the builder did not
1 by brian
clean slate
210
      # intend it to mean "use the default, in fact, look up a good default
165.1.1 by Elliot Murphy
new port number from IANA
211
      # from /etc/services if you can", but really, really meant 4427 when
212
      # they passed in 4427. When they pass in a specific value, let them
1 by brian
clean slate
213
      # have it; don't second guess user and think we know better, this will
214
      # just make people cross.  this makes the the logic work like this
215
      # (which is complicated enough):
216
      #
217
      # - if a port was set during build, use that as a default.
218
      #
219
      # - otherwise, try to look up a port in /etc/services; if that fails,
301 by Brian Aker
Clean up port startup
220
      #   use DRIZZLE_TCP_PORT_DEFAULT (at the time of this writing 4427)
1 by brian
clean slate
221
      #
301 by Brian Aker
Clean up port startup
222
      # - allow the DRIZZLE_TCP_PORT environment variable to override that.
1 by brian
clean slate
223
      #
224
      # - allow command-line parameters to override all of the above.
225
      #
301 by Brian Aker
Clean up port startup
226
      # the top-most DRIZZLE_TCP_PORT_DEFAULT is read from win/configure.js,
1 by brian
clean slate
227
      # so don't mess with that.
301 by Brian Aker
Clean up port startup
228
      DRIZZLE_TCP_PORT_DEFAULT=0 ]
1 by brian
clean slate
229
    )
971.3.48 by Eric Day
New Listen interface about done, not quite compiling yet, but need a backup.
230
301 by Brian Aker
Clean up port startup
231
AC_SUBST(DRIZZLE_TCP_PORT)
232
AC_SUBST(DRIZZLE_TCP_PORT_DEFAULT)
971.3.48 by Eric Day
New Listen interface about done, not quite compiling yet, but need a backup.
233
AC_DEFINE_UNQUOTED([DRIZZLE_TCP_PORT],[$DRIZZLE_TCP_PORT],
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
234
                   [Drizzle port to use])
971.3.48 by Eric Day
New Listen interface about done, not quite compiling yet, but need a backup.
235
AC_DEFINE_UNQUOTED([DRIZZLE_TCP_PORT_DEFAULT],[$DRIZZLE_TCP_PORT_DEFAULT],
236
                   [If we defaulted to DRIZZLE_PORT, then this will be zero])
237
1 by brian
clean slate
238
239
# Use this to set the place used for unix socket used to local communication.
572.2.1 by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user.
240
AC_ARG_WITH([drizzled-user],
241
    [AS_HELP_STRING([--with-drizzled-user=username],
242
            [What user the drizzled daemon shall be run as.
243
		@<:@default=drizzle@:>@])],
244
    [ DRIZZLED_USER=$withval ],
245
    [ DRIZZLED_USER=drizzle ]
1 by brian
clean slate
246
    )
572.2.1 by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user.
247
AC_SUBST(DRIZZLED_USER)
1 by brian
clean slate
248
249
# If we should allow LOAD DATA LOCAL
250
AC_MSG_CHECKING(If we should should enable LOAD DATA LOCAL by default)
251
AC_ARG_ENABLE(local-infile,
252
    [  --enable-local-infile   Enable LOAD DATA LOCAL INFILE (default: disabled)],
253
    [ ENABLED_LOCAL_INFILE=$enableval ],
254
    [ ENABLED_LOCAL_INFILE=no ]
255
    )
256
if test "$ENABLED_LOCAL_INFILE" = "yes"
257
then
258
  AC_MSG_RESULT([yes])
259
  AC_DEFINE([ENABLED_LOCAL_INFILE], [1],
260
            [If LOAD DATA LOCAL INFILE should be enabled by default])
261
else
262
  AC_MSG_RESULT([no])
263
fi
264
265
#--------------------------------------------------------------------
266
# Check for system header files
267
#--------------------------------------------------------------------
268
269
AC_HEADER_DIRENT
270
AC_HEADER_STDC
271
AC_HEADER_SYS_WAIT
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
272
AC_HEADER_STDBOOL
77.1.22 by Monty Taylor
Removed refs to floatingpoint.h (which we only used for fconvert) and fconvert
273
AC_CHECK_HEADERS(fcntl.h float.h fpu_control.h ieeefp.h)
53.2.29 by Monty Taylor
Cleaned up headers a little more.
274
AC_CHECK_HEADERS(limits.h pwd.h select.h linux/config.h)
275
AC_CHECK_HEADERS(sys/fpu.h utime.h sys/utime.h )
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
276
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
277
AC_CHECK_HEADERS([curses.h term.h],[],[],
278
[[#ifdef HAVE_CURSES_H
279
# include <curses.h>
280
#endif
281
]])
202.1.4 by Monty Taylor
Removed openssl refs.
282
AC_CHECK_HEADERS(termio.h termios.h sched.h alloca.h)
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
283
AC_CHECK_HEADERS(sys/prctl.h ieeefp.h)
53.2.29 by Monty Taylor
Cleaned up headers a little more.
284
AC_CHECK_HEADERS(execinfo.h)
1 by brian
clean slate
285
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
286
#--------------------------------------------------------------------
1 by brian
clean slate
287
# Check for system libraries. Adds the library to $LIBS
288
# and defines HAVE_LIBM etc
289
#--------------------------------------------------------------------
290
291
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
292
236.1.39 by Monty Taylor
autoconf warning cleanups.
293
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
294
AC_CHECK_FUNC(yp_get_default_domain, [],
295
  [AC_CHECK_LIB(nsl, yp_get_default_domain)])
296
AC_CHECK_FUNC(p2open, [], [AC_CHECK_LIB(gen, p2open)])
1 by brian
clean slate
297
# This may get things to compile even if bind-8 is installed
236.1.39 by Monty Taylor
autoconf warning cleanups.
298
AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
1 by brian
clean slate
299
# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
300
AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
301
302
# Check rt for aio_read
303
AC_CHECK_LIB(rt, aio_read)
304
305
# For the sched_yield() function on Solaris
236.1.39 by Monty Taylor
autoconf warning cleanups.
306
AC_CHECK_FUNC(sched_yield, [],
307
  [AC_CHECK_LIB(posix4, [sched_yield],
997.2.8 by Monty Taylor
Fixed a few loose ends.
308
    [AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield function]) LIBS="$LIBS -lposix4"])])
1 by brian
clean slate
309
310
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
311
then
236.1.39 by Monty Taylor
autoconf warning cleanups.
312
  AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
1 by brian
clean slate
313
fi
314
315
AC_CHECK_TYPES([fp_except], [], [], [
316
#include <sys/types.h>
317
#include <ieeefp.h>
318
])
319
25 by Brian Aker
Clean up of configure.in
320
my_save_LIBS="$LIBS"
321
LIBS=""
322
AC_CHECK_LIB(dl,dlopen)
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
323
AC_CHECK_FUNCS(dlopen)
177.3.1 by mark
remove ifdef HAVE_DLOPEN, make configure require dlopen()
324
if test "$ac_cv_func_dlopen" != "yes"
325
then
326
  AC_MSG_ERROR([Drizzle requires dlopen])
327
fi
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
328
LIBDL_LIBS="$LIBS"
25 by Brian Aker
Clean up of configure.in
329
LIBS="$my_save_LIBS"
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
330
AC_SUBST(LIBDL_LIBS)
25 by Brian Aker
Clean up of configure.in
331
201.2.4 by Monty Taylor
Re-enabled optimizations for the normal build, and added back the --with-debug option to turn them off.
332
840.1.6 by Monty Taylor
Added back atomic builtins check.
333
AC_ARG_WITH([atomic-ops],
840.1.12 by Monty Taylor
Updated AC_HELP_STRING to AS_HELP_STRING
334
    [AS_HELP_STRING([--with-atomic-ops=rwlocks|smp|up],
335
       [Implement atomic operations using pthread rwlocks or atomic CPU
336
        instructions for multi-processor or uniprocessor
337
        configuration. By default gcc built-in sync functions are used,
338
        if available and 'smp' configuration otherwise.])],
339
    [with_atomic_ops="$withval"],
340
    [with_atomic_ops=smp])
840.1.6 by Monty Taylor
Added back atomic builtins check.
341
342
case "$with_atomic_ops" in
343
  "up") AC_DEFINE([MY_ATOMIC_MODE_DUMMY], [1],
344
                  [Assume single-CPU mode, no concurrency]) ;;
345
  "rwlocks") AC_DEFINE([MY_ATOMIC_MODE_RWLOCKS], [1],
346
                  [Use pthread rwlocks for atomic ops]) ;;
910.5.2 by Monty Taylor
Applied atomic patch to current tree.
347
  "smp") 
840.1.6 by Monty Taylor
Added back atomic builtins check.
348
    AC_CACHE_CHECK(
349
      [whether the compiler provides atomic builtins],
350
      [ac_cv_gcc_atomic_builtins],
942.1.5 by Monty Taylor
Replace AC_TRY_* with AC_*_IFELSE
351
      [AC_RUN_IFELSE(
352
        [AC_LANG_PROGRAM([],[[
840.1.6 by Monty Taylor
Added back atomic builtins check.
353
          int foo= -10; int bar= 10;
354
          if (!__sync_fetch_and_add(&foo, bar) || foo)
355
            return -1;
356
          bar= __sync_lock_test_and_set(&foo, bar);
357
          if (bar || foo != 10)
358
            return -1;
359
          bar= __sync_val_compare_and_swap(&bar, foo, 15);
360
          if (bar)
361
            return -1;
362
          return 0;
942.1.5 by Monty Taylor
Replace AC_TRY_* with AC_*_IFELSE
363
        ]])],
840.1.6 by Monty Taylor
Added back atomic builtins check.
364
       [ac_cv_gcc_atomic_builtins=yes],
365
       [ac_cv_gcc_atomic_builtins=no])])
366
367
    if test "x$ac_cv_gcc_atomic_builtins" = "xyes"; then
368
      AC_DEFINE(HAVE_GCC_ATOMIC_BUILTINS, 1,
369
                [Define to 1 if compiler provides atomic builtins.])
370
    fi
371
   ;;
372
   *) AC_MSG_ERROR(["$with_atomic_ops" is not a valid value for --with-atomic-ops]) ;;
373
esac
374
375
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
376
AC_ARG_WITH([comment],
377
    [AS_HELP_STRING([--with-comment],
378
            [Comment about compilation environment. @<:@default=off@:>@])],
1 by brian
clean slate
379
    [with_comment=$withval],
380
    [with_comment=no])
381
if test "$with_comment" != "no"
382
then
383
  COMPILATION_COMMENT=$with_comment
384
else
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
385
  COMPILATION_COMMENT="Source distribution (RELEASE_COMMENT)"
1 by brian
clean slate
386
fi
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
387
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
388
                   [Comment about compilation environment])
1 by brian
clean slate
389
390
dnl Checks for typedefs, structures, and compiler characteristics.
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
391
1 by brian
clean slate
392
AC_STRUCT_TM
393
# off_t is not a builtin type
394
AC_CHECK_SIZEOF(off_t, 4)
395
if test "$ac_cv_sizeof_off_t" -eq 0
396
then
91 by Brian Aker
Main binary now named drizzled
397
  AC_MSG_ERROR("Drizzle needs a off_t type.")
1 by brian
clean slate
398
fi
968.2.1 by Monty Taylor
Build fix making 64-bit atomic<> work on 32-bit systems.
399
AC_CHECK_SIZEOF(size_t)
400
AC_DEFINE_UNQUOTED([SIZEOF_SIZE_T],[$ac_cv_sizeof_size_t],[Size of size_t as computed by sizeof()])
401
AC_CHECK_SIZEOF(long long)
402
AC_DEFINE_UNQUOTED(SIZEOF_LONG_LONG,[$ac_cv_sizeof_long_long],[Size of long long as computed by sizeof()])
1 by brian
clean slate
403
404
dnl
405
dnl check if time_t is unsigned
406
dnl
407
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
408
DRIZZLE_CHECK_TIME_T
1 by brian
clean slate
409
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
410
DRIZZLE_STACK_DIRECTION
942.1.8 by Monty Taylor
Removed more unused macros/things we don't need to check because they are posix.
411
1 by brian
clean slate
412
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
520.4.43 by mordred
A set of Solaris fixes.
413
AC_CHECK_TYPES([uint, ulong])
1 by brian
clean slate
414
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
415
DRIZZLE_PTHREAD_YIELD
1 by brian
clean slate
416
134.2.1 by Antony Curtis
Changes for proper detection of libraries
417
1 by brian
clean slate
418
dnl Checks for header files.
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
419
AC_CHECK_HEADERS(malloc.h)
1 by brian
clean slate
420
421
dnl Checks for library functions.
422
AC_FUNC_ALLOCA
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
423
1 by brian
clean slate
424
AC_CHECK_FUNCS(issetugid)
425
426
# Already-done: stdlib.h string.h unistd.h termios.h
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
427
AC_CHECK_HEADERS(stdarg.h dirent.h locale.h ndir.h sys/dir.h \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
428
 sys/ndir.h sys/select.h \
429
 sys/mman.h termcap.h termio.h asm/termbits.h grp.h \
430
 paths.h)
1 by brian
clean slate
431
432
# Already-done: strcasecmp
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
433
AC_CHECK_FUNCS(lstat select)
1 by brian
clean slate
434
28.1.33 by Monty Taylor
Added -Wall
435
AC_HEADER_STAT
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
436
DRIZZLE_HAVE_TIOCGWINSZ
437
DRIZZLE_HAVE_TIOCSTAT
1 by brian
clean slate
438
439
#########################################################################
440
441
dnl Checks for library functions.
442
443
AC_FUNC_UTIME_NULL
444
AC_FUNC_VPRINTF
445
77.1.24 by Monty Taylor
Removed non-fcntl code and made it a fatal configure error if it's not there.
446
AC_CHECK_FUNCS(fcntl)
447
if test "x$ac_cv_func_fcntl" != "xyes"
448
then
449
  AC_MSG_ERROR("Drizzle requires fcntl.")
450
fi
451
1126.6.3 by Monty Taylor
Perform a valid test for fdatasync to get the real answer on OSX.
452
453
AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
454
  AC_LANG_PUSH(C++)
455
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
456
#include <unistd.h>
457
    ]],[[
458
fdatasync(4);
459
    ]])],
460
  [ac_cv_func_fdatasync=yes],
461
  [ac_cv_func_fdatasync=no])
462
  AC_LANG_POP()
463
])
464
AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
465
  [AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])
466
467
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
468
AC_CHECK_FUNCS( \
77.1.24 by Monty Taylor
Removed non-fcntl code and made it a fatal configure error if it's not there.
469
  cuserid fchmod \
1126.6.3 by Monty Taylor
Perform a valid test for fdatasync to get the real answer on OSX.
470
  fpresetsticky fpsetmask fsync \
575.4.6 by Monty Taylor
Removed my_getwd.
471
  getpassphrase getpwnam \
472
  getpwuid getrlimit getrusage index initgroups isnan \
1099.2.1 by rm
get things compiling on FreeBSD (7.1)
473
  localtime_r log log2 gethrtime gmtime_r \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
474
  madvise \
475
  mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
1 by brian
clean slate
476
  pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
477
  pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
478
  pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
479
  pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
449 by Monty Taylor
Removed rint check - rint is part of C99.
480
  realpath rename rwlock_init setupterm \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
481
  sigaction \
482
  sigthreadmask \
483
  snprintf strpbrk \
484
  tell tempnam \
485
  backtrace backtrace_symbols backtrace_symbols_fd)
1 by brian
clean slate
486
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
487
AC_LANG_PUSH(C++)
488
# Test whether madvise() is declared in C++ code -- it is not on some
489
# systems, such as Solaris
373.1.3 by Monty Taylor
Fixed test for HAVE_DECL_MADVISE to actually work.
490
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
491
#if HAVE_SYS_MMAN_H
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
492
#include <sys/types.h>
493
#include <sys/mman.h>
373.1.3 by Monty Taylor
Fixed test for HAVE_DECL_MADVISE to actually work.
494
#endif
495
]])
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
496
AC_LANG_POP()
497
498
236.1.59 by Monty Taylor
Turn thr_rwlock.c into a conditionally built source file.
499
AM_CONDITIONAL(BUILD_THR_RWLOCK,[test "$ac_cv_func_rwlock_init" -a "$ac_cv_funn_pthread_rwlock_rdlock"])
500
28.1.33 by Monty Taylor
Added -Wall
501
1 by brian
clean slate
502
# Sanity check: We chould not have any fseeko symbol unless
503
# large_file_support=yes
504
AC_CHECK_FUNC(fseeko,
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
505
[if test "$large_file_support" = no -a "x$TARGET_LINUX" = "xtrue";
1 by brian
clean slate
506
then
507
  AC_MSG_ERROR("Found fseeko symbol but large_file_support is not enabled!")
508
fi]
509
)
510
511
# Check definition of pthread_getspecific
236.1.39 by Monty Taylor
autoconf warning cleanups.
512
AC_CACHE_CHECK([args to pthread_getspecific], [mysql_cv_getspecific_args],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
513
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
514
#if !defined(_REENTRANT)
1 by brian
clean slate
515
#define _REENTRANT
516
#endif
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
517
#ifndef _POSIX_PTHREAD_SEMANTICS 
1 by brian
clean slate
518
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
519
#endif
942.1.5 by Monty Taylor
Replace AC_TRY_* with AC_*_IFELSE
520
#include <pthread.h>
521
   ]], [[
522
void *pthread_getspecific(pthread_key_t key);
523
pthread_getspecific((pthread_key_t) NULL);
524
   ]])],
236.1.39 by Monty Taylor
autoconf warning cleanups.
525
    [mysql_cv_getspecific_args=POSIX],
526
    [mysql_cv_getspecific_args=other])])
1 by brian
clean slate
527
  if test "$mysql_cv_getspecific_args" = "other"
528
  then
529
    AC_DEFINE([HAVE_NONPOSIX_PTHREAD_GETSPECIFIC], [1],
530
              [For some non posix threads])
531
  fi
532
533
  # Check definition of pthread_mutex_init
236.1.39 by Monty Taylor
autoconf warning cleanups.
534
  AC_CACHE_CHECK([args to pthread_mutex_init], [mysql_cv_mutex_init_args],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
535
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
536
#ifndef _REENTRANT
537
#define _REENTRANT
538
#endif
539
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
540
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
541
#endif
28.1.33 by Monty Taylor
Added -Wall
542
#include <pthread.h> ]], [[ 
1 by brian
clean slate
543
  pthread_mutexattr_t attr;
544
  pthread_mutex_t mp;
236.1.39 by Monty Taylor
autoconf warning cleanups.
545
  pthread_mutex_init(&mp,&attr); ]])],
546
      [mysql_cv_mutex_init_args=POSIX],
547
      [mysql_cv_mutex_init_args=other])])
1 by brian
clean slate
548
  if test "$mysql_cv_mutex_init_args" = "other"
549
  then
550
    AC_DEFINE([HAVE_NONPOSIX_PTHREAD_MUTEX_INIT], [1],
551
              [For some non posix threads])
552
  fi
553
#---END:
554
555
#---START: Used in for client configure
556
# Check definition of readdir_r
236.1.39 by Monty Taylor
autoconf warning cleanups.
557
AC_CACHE_CHECK([args to readdir_r], [mysql_cv_readdir_r],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
558
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
559
#ifndef _REENTRANT
560
#define _REENTRANT
561
#endif
562
#ifndef _POSIX_PTHREAD_SEMANTICS 
1 by brian
clean slate
563
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
564
#endif
1 by brian
clean slate
565
#include <pthread.h>
28.1.33 by Monty Taylor
Added -Wall
566
#include <dirent.h>]], [[ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
236.1.39 by Monty Taylor
autoconf warning cleanups.
567
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL); ]])],
568
    [mysql_cv_readdir_r=POSIX],
569
    [mysql_cv_readdir_r=other])])
1 by brian
clean slate
570
if test "$mysql_cv_readdir_r" = "POSIX"
571
then
572
  AC_DEFINE([HAVE_READDIR_R], [1], [POSIX readdir_r])
573
fi
574
575
# Check definition of posix sigwait()
236.1.39 by Monty Taylor
autoconf warning cleanups.
576
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
577
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
578
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
579
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
580
#endif
581
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
582
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
583
#endif
1 by brian
clean slate
584
#include <pthread.h>
236.1.39 by Monty Taylor
autoconf warning cleanups.
585
#include <signal.h>
586
      ]], [[
587
#ifndef _AIX
1 by brian
clean slate
588
sigset_t set;
589
int sig;
590
sigwait(&set,&sig);
236.1.39 by Monty Taylor
autoconf warning cleanups.
591
#endif
592
      ]])],
593
    [mysql_cv_sigwait=POSIX],
594
    [mysql_cv_sigwait=other])])
1 by brian
clean slate
595
if test "$mysql_cv_sigwait" = "POSIX"
596
then
597
  AC_DEFINE([HAVE_SIGWAIT], [1], [POSIX sigwait])
598
fi
599
600
if test "$mysql_cv_sigwait" != "POSIX"
601
then
602
unset mysql_cv_sigwait
603
# Check definition of posix sigwait()
236.1.39 by Monty Taylor
autoconf warning cleanups.
604
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
605
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
606
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
607
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
608
#endif
609
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
610
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
611
#endif
1 by brian
clean slate
612
#include <pthread.h>
236.1.39 by Monty Taylor
autoconf warning cleanups.
613
#include <signal.h>
614
      ]], [[
615
sigset_t set;
1 by brian
clean slate
616
int sig;
236.1.39 by Monty Taylor
autoconf warning cleanups.
617
sigwait(&set);
618
      ]])],
619
    [mysql_cv_sigwait=NONPOSIX],
620
    [mysql_cv_sigwait=other])])
1 by brian
clean slate
621
if test "$mysql_cv_sigwait" = "NONPOSIX"
622
then
623
  AC_DEFINE([HAVE_NONPOSIX_SIGWAIT], [1], [sigwait with one argument])
624
fi
625
fi
626
#---END:
627
628
# Check if pthread_attr_setscope() exists
236.1.39 by Monty Taylor
autoconf warning cleanups.
629
AC_CACHE_CHECK([for pthread_attr_setscope], [mysql_cv_pthread_attr_setscope],
630
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
631
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
632
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
633
#endif
634
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
635
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
636
#endif
236.1.39 by Monty Taylor
autoconf warning cleanups.
637
#include <pthread.h>
638
      ]], [[
639
pthread_attr_t thr_attr;
640
pthread_attr_setscope(&thr_attr,0);
641
      ]])],
642
    [mysql_cv_pthread_attr_setscope=yes],
643
    [mysql_cv_pthread_attr_setscope=no])])
1 by brian
clean slate
644
if test "$mysql_cv_pthread_attr_setscope" = "yes"
645
then
646
  AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE], [1], [pthread_attr_setscope])
647
fi
648
28.1.33 by Monty Taylor
Added -Wall
649
AC_LANG_PUSH([C++])
1 by brian
clean slate
650
AC_CHECK_HEADERS(cxxabi.h)
651
AC_CACHE_CHECK([checking for abi::__cxa_demangle], mysql_cv_cxa_demangle,
28.1.33 by Monty Taylor
Added -Wall
652
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
1 by brian
clean slate
653
  char *foo= 0; int bar= 0;
654
  foo= abi::__cxa_demangle(foo, foo, 0, &bar);
28.1.33 by Monty Taylor
Added -Wall
655
]])],[mysql_cv_cxa_demangle=yes],[mysql_cv_cxa_demangle=no])])
656
AC_LANG_POP([])
1 by brian
clean slate
657
658
if test "x$mysql_cv_cxa_demangle" = xyes; then
659
  AC_DEFINE(HAVE_ABI_CXA_DEMANGLE, 1,
660
            [Define to 1 if you have the `abi::__cxa_demangle' function.])
661
fi
662
663
#--------------------------------------------------------------------
664
# Check for requested features
665
#--------------------------------------------------------------------
666
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
667
DRIZZLE_CHECK_MAX_INDEXES
1 by brian
clean slate
668
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
669
dnl Has to be done late, as the plugin may need to check for existence of
670
dnl functions tested above
1126.6.2 by Monty Taylor
Split plugin builtins defines into their own header to ease rebuild issues.
671
PANDORA_PLUGINS([drizzled/plugin/config.h])
1093.9.12 by Monty Taylor
Moved InnoDB specific code to InnoDB.
672
492.1.7 by Monty Taylor
Moved test() to its own file.
673
dnl GCC Precompiled Header Support
584.4.3 by Monty Taylor
Disabled pre-compiled headers for now.
674
dnl re-enable later
632.1.25 by Monty Taylor
Removed AM_CONDITIONAL from SEARCH_FOR_LIB. Aligned naming of AM_CONDITIONALS.
675
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
676
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
492.1.7 by Monty Taylor
Moved test() to its own file.
677
992.1.17 by Monty Taylor
Moved extra/ into root Makefile.am
678
AC_CONFIG_FILES(Makefile dnl
815.1.1 by Monty Taylor
Add timegm which is missing on Solaris.
679
 gnulib/Makefile dnl
575.2.2 by Monty Taylor
Moved vio stuff into libdrizzle.
680
 po/Makefile.in dnl
1143.2.9 by Jay Pipes
Merge Monty's fixes for moving crc32 function into a library.
681
 drizzled/hash/Makefile dnl
988.1.1 by Jay Pipes
Changes libserialize to libdrizzledmessage per ML discussion. All GPB messages are now in the drizzled::message namespace.
682
 drizzled/message/Makefile dnl
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
683
 drizzled/Makefile dnl
28.1.31 by Monty Taylor
Deleted tons of pointless garbage from scripts.
684
 support-files/Makefile dnl
77.1.47 by Monty Taylor
Moved test to tests...
685
 tests/Makefile tests/install_test_db dnl
1025.1.1 by Trond Norbye
Add configuration files to integrate to Solaris SMF
686
 support-files/drizzle.server support-files/drizzle-log-rotate
687
 support-files/smf/Makefile dnl
688
 support-files/smf/install.sh dnl
689
 support-files/smf/drizzle.xml dnl
690
 support-files/smf/drizzle)
1 by brian
clean slate
691
512.2.2 by C.J. Adams-Collier
added checks to determine which threading plugins have been enabled on
692
scheduling_plugins_available="
693
  pool_of_threads 
694
  single_thread
695
"
696
697
for sched_plugin in $scheduling_plugins_available
698
do
699
  varname="\${with_plugin_${sched_plugin}}"
700
  result=`eval "echo $varname"`
701
  if test "x$result" = "xyes"
702
  then
703
    scheduling_plugins="$sched_plugin $scheduling_plugins"
704
  fi
705
done
706
1 by brian
clean slate
707
AC_OUTPUT
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
708
709
echo "---"
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
710
echo "Configuration summary for $PACKAGE_NAME version $VERSION RELEASE_COMMENT"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
711
echo ""
712
echo "   * Installation prefix:       $prefix"
1081.1.1 by Monty Taylor
Whole boat-load of build fixes.
713
echo "   * System type:               $host_vendor-$host_os"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
714
echo "   * Host CPU:                  $host_cpu"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
715
echo "   * C Compiler:                $CC_VERSION"
632.1.21 by Monty Taylor
Cleaned up compiler version checking.
716
echo "   * C++ Compiler:              $CXX_VERSION"
1085.1.3 by Monty Taylor
Split out warnings - start using the pandora build system.
717
echo "   * Build auth_pam:            $ac_cv_libpam"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
718
echo "   * Assertions enabled:        $ac_cv_assert"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
719
echo "   * Debug enabled:             $with_debug"
720
echo "   * Profiling enabled:         $ac_profiling"
721
echo "   * Coverage enabled:          $ac_coverage"
1085.1.3 by Monty Taylor
Split out warnings - start using the pandora build system.
722
echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
723
echo "   * C++ cstdint location:      $ac_cv_cxx_cstdint"
724
echo "   * C++ hash_map location:     $ac_cv_cxx_hash_map"
725
echo "   * C++ hash namespace:        $ac_cv_cxx_hash_namespace"
919.2.19 by Monty Taylor
Added check for shared_ptr in advance of actually thinking about using it. I think this should cover all platforms we care about... but let's doublecheck.
726
echo "   * C++ shared_ptr namespace:  $ac_cv_shared_ptr_namespace"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
727
echo ""
728
echo "---"
908.1.4 by Monty Taylor
Fix to fake-out libtoolize, since AC_INIT is in bzr_version.m4 now.
729
730
dnl libtoolize scans configure.ac  and needs to see some text
731
m4_define([LIBTOOLIZE_AC_INIT], [])