2
2
dnl Process this file with autoconf to produce a configure script.
4
4
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
6
AC_INIT(drizzle, [7.0.0], [http://bugs.launchpad.net/drizzle])
7
7
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
8
8
AC_CONFIG_AUX_DIR(config)
9
9
AC_CONFIG_HEADERS([config.h])
11
# Save some variables and the command line options for mysqlbug
14
SAVE_ASFLAGS="$ASFLAGS"
16
SAVE_CXXFLAGS="$CXXFLAGS"
17
SAVE_LDFLAGS="$LDFLAGS"
18
SAVE_CXXLDFLAGS="$CXXLDFLAGS"
19
CONF_COMMAND="$0 $ac_configure_args"
20
AC_SUBST(CONF_COMMAND)
23
AC_SUBST(SAVE_ASFLAGS)
25
AC_SUBST(SAVE_CXXFLAGS)
26
AC_SUBST(SAVE_LDFLAGS)
27
AC_SUBST(SAVE_CXXLDFLAGS)
30
10
AC_CANONICAL_TARGET
31
AM_INIT_AUTOMAKE(-Wall -Wno-portability -Werror)
11
AM_INIT_AUTOMAKE(drizzle, 7.0.0, no-define)
33
13
PROTOCOL_VERSION=10
35
15
# See the libtool docs for information on how to do shared lib versions.
36
SHARED_LIB_MAJOR_VERSION=1
16
SHARED_LIB_MAJOR_VERSION=16
37
17
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
39
##############################################################################
40
# The below section needs to be done before AC_PROG_CC
41
##############################################################################
43
if test "x${CFLAGS-}" = x ; then
49
if test "x${CPPFLAGS-}" = x ; then
55
if test "x${LDFLAGS-}" = x ; then
61
################ End of section to be done before AC_PROG_CC #################
63
dnl Checks for programs.
65
ifdef([AC_PROG_CC_C99],[
66
dnl TODO: Need to fix this to use c99 instead of gnu99
67
AC_PROG_CC_C99([],[AC_MSG_ERROR([C99 support required for compiling Drizzle])])
69
],[C99_SUPPORT_HACK="-std=gnu99"])
71
ifdef([AC_USE_SYSTEM_EXTENSIONS],[
72
AC_USE_SYSTEM_EXTENSIONS
75
AH_VERBATIM([__EXTENSIONS__],
76
[/* Enable extensions on Solaris. */
77
#ifndef __EXTENSIONS__
78
# undef __EXTENSIONS__
80
#ifndef _POSIX_PTHREAD_SEMANTICS
81
# undef _POSIX_PTHREAD_SEMANTICS
83
#ifndef _TANDEM_SOURCE
84
# undef _TANDEM_SOURCE
87
AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
88
[ac_cv_safe_to_define___extensions__],
91
# define __EXTENSIONS__ 1
92
AC_INCLUDES_DEFAULT])],
93
[ac_cv_safe_to_define___extensions__=yes],
94
[ac_cv_safe_to_define___extensions__=no])])
95
test $ac_cv_safe_to_define___extensions__ = yes &&
96
AC_DEFINE([__EXTENSIONS__])
97
AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
98
AC_DEFINE([_TANDEM_SOURCE])
102
AC_CXX_HEADER_STDCXX_98
103
if test "$ac_cv_cxx_stdcxx_98" = "no"
105
AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
110
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
112
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to
113
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
114
if test "x${CFLAGS}" = "x-g -O2"
118
if test "x${CXXFLAGS}" = "x-g -O2"
124
21
# Set all version vars based on $VERSION. How do we do this more elegant ?
126
23
# We take some made up examples
128
25
# VERSION 5.1.40sp1-alpha 5.0.34a
129
# DRIZZLE_NO_DASH_VERSION 5.1.40sp1 5.0.34a
130
# DRIZZLE_NUMERIC_VERSION 5.1.40 5.0.34
131
# DRIZZLE_BASE_VERSION 5.1 5.0
132
# DRIZZLE_VERSION_ID 50140 50034
26
# MYSQL_NO_DASH_VERSION 5.1.40sp1 5.0.34a
27
# MYSQL_NUMERIC_VERSION 5.1.40 5.0.34
28
# MYSQL_BASE_VERSION 5.1 5.0
29
# MYSQL_VERSION_ID 50140 50034
134
DRIZZLE_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"`
135
DRIZZLE_NUMERIC_VERSION=`echo $DRIZZLE_NO_DASH_VERSION | sed -e "s|[[a-z]][[a-z0-9]]*$||"`
136
DRIZZLE_BASE_VERSION=`echo $DRIZZLE_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"`
137
DRIZZLE_VERSION_ID=`echo $DRIZZLE_NUMERIC_VERSION | \
31
MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"`
32
MYSQL_NUMERIC_VERSION=`echo $MYSQL_NO_DASH_VERSION | sed -e "s|[[a-z]][[a-z0-9]]*$||"`
33
MYSQL_BASE_VERSION=`echo $MYSQL_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"`
34
MYSQL_VERSION_ID=`echo $MYSQL_NUMERIC_VERSION | \
138
35
awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
140
37
# The port should be constant for a LONG time
141
DRIZZLE_TCP_PORT_DEFAULT=4427
38
MYSQL_TCP_PORT_DEFAULT=4427
41
sinclude(m4/alloca.m4)
42
sinclude(m4/check_cpu.m4)
43
sinclude(m4/character_sets.m4)
44
sinclude(m4/compiler_flag.m4)
143
45
sinclude(m4/dtrace.m4)
144
sinclude(m4/character_sets.m4)
46
sinclude(m4/plugins.m4)
47
sinclude(m4/large_file.m4)
49
sinclude(m4/readline.m4)
52
sinclude(m4/lib-link.m4)
53
sinclude(m4/lib-prefix.m4)
145
54
sinclude(m4/gettext.m4)
55
sinclude(m4/progtest.m4)
59
sinclude(m4/lib-ld.m4)
60
sinclude(m4/ac_cxx_header_stdcxx_98.m4)
147
62
AM_GNU_GETTEXT([external])
148
AM_GNU_GETTEXT_VERSION(0.17)
150
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
152
AC_SUBST(DRIZZLE_NO_DASH_VERSION)
153
AC_DEFINE_UNQUOTED(DRIZZLE_BASE_VERSION,["$DRIZZLE_BASE_VERSION"],
154
[Major and minor version])
155
AC_SUBST(DRIZZLE_VERSION_ID)
156
AC_DEFINE_UNQUOTED([DRIZZLE_VERSION_ID],[$DRIZZLE_VERSION_ID],
157
[Version ID that can be easily used for numeric comparison])
158
AC_SUBST(DRIZZLE_PREVIOUS_BASE_VERSION)
64
AC_SUBST(MYSQL_NO_DASH_VERSION)
65
AC_SUBST(MYSQL_BASE_VERSION)
66
AC_SUBST(MYSQL_VERSION_ID)
67
AC_SUBST(MYSQL_PREVIOUS_BASE_VERSION)
159
68
AC_SUBST(PROTOCOL_VERSION)
160
69
AC_DEFINE_UNQUOTED([PROTOCOL_VERSION], [$PROTOCOL_VERSION],
161
70
[mysql client protocol version])
162
71
AC_SUBST(DOT_FRM_VERSION)
163
AC_DEFINE_UNQUOTED([FRM_VER], [$DOT_FRM_VERSION],
72
AC_DEFINE_UNQUOTED([DOT_FRM_VERSION], [$DOT_FRM_VERSION],
164
73
[Version of .frm files])
165
AC_DEFINE_UNQUOTED([DRIZZLE_CONFIG_NAME],["drizzled"],[Name of server config section])
167
74
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
168
75
AC_SUBST(SHARED_LIB_VERSION)
169
76
AC_SUBST(AVAILABLE_LANGUAGES)
171
dnl Ok. This is sort of lame, but we need to be nice to plugins Makefile.am's.
172
AM_CONDITIONAL(BUILDING_DRIZZLE,[test "x" = "x"])
176
AC_DEFINE([IO_SIZE], [4096], [Io buffer size; Must be a power of 2 and
177
a multiple of 512. May be
178
smaller what the disk page size. This influences the speed of the
179
isam btree library. eg to big to slow.])
180
AC_DEFINE([SC_MAXWIDTH],[256], [Max width of screen (for error messages)])
181
AC_DEFINE([FN_LEN],[256 ], [Max file name len ])
182
AC_DEFINE([FN_EXTLEN],[20], [Max length of extension (part of FN_LEN) ])
183
AC_DEFINE([FN_REFLEN],[512], [Max length of full path-name ])
184
AC_DEFINE([FN_EXTCHAR],['.'], [File extension character])
185
AC_DEFINE([FN_HOMELIB],['~'], [~/ is used as abbrev for home dir ])
186
AC_DEFINE([FN_CURLIB],['.'], [./ is used as abbrev for current dir ])
187
AC_DEFINE([FN_PARENTDIR],[".."], [Parent directory; Must be a string ])
189
AC_DEFINE([MASTER],[1],[Compile without unireg])
191
AH_VERBATIM([QUOTE_ARG],[
192
/* Quote argument (before cpp) */
194
# define QUOTE_ARG(x) #x
196
/* Quote argument, (after cpp) */
197
#ifndef STRINGIFY_ARG
198
# define STRINGIFY_ARG(x) QUOTE_ARG(x)
202
AH_VERBATIM([builtin_expect],[
204
* The macros below are borrowed from include/linux/compiler.h in the
205
* Linux kernel. Use them to indicate the likelyhood of the truthfulness
206
* of a condition. This serves two purposes - newer versions of gcc will be
207
* able to optimize for branch predication, which could yield siginficant
208
* performance gains in frequently executed sections of the code, and the
209
* other reason to use them is for documentation
211
#if !defined(__GNUC__)
212
#define __builtin_expect(x, expected_value) (x)
215
#define likely(x) __builtin_expect((x),1)
216
#define unlikely(x) __builtin_expect((x),0)
219
dnl InnoDB depends on some Drizzle's internals which other plugins should not
220
dnl need. This is because of InnoDB's foreign key support, "safe" binlog
221
dnl truncation, and other similar legacy features.
223
dnl We define accessors for these internals unconditionally, but do not
224
dnl expose them in mysql/plugin.h. They are declared in ha_innodb.h for
227
AC_DEFINE([INNODB_COMPATIBILITY_HOOKS],[1],[TODO: Remove the need for this])
228
dnl TODO: Make a test for when this needs to be set.
229
AC_DEFINE([_REENTRANT],[1],[Some thread libraries require this])
231
AH_VERBATIM([posix_pthread],[
232
/* We want posix threads */
233
#ifndef _POSIX_PTHREAD_SEMANTICS
234
#define _POSIX_PTHREAD_SEMANTICS
239
79
# Canonicalize the configuration name.
262
102
i?86) BASE_MACHINE_TYPE=i386 ;;
105
# Save some variables and the command line options for mysqlbug
108
SAVE_ASFLAGS="$ASFLAGS"
109
SAVE_CFLAGS="$CFLAGS"
110
SAVE_CXXFLAGS="$CXXFLAGS"
111
SAVE_LDFLAGS="$LDFLAGS"
112
SAVE_CXXLDFLAGS="$CXXLDFLAGS"
113
CONF_COMMAND="$0 $ac_configure_args"
114
AC_SUBST(CONF_COMMAND)
117
AC_SUBST(SAVE_ASFLAGS)
118
AC_SUBST(SAVE_CFLAGS)
119
AC_SUBST(SAVE_CXXFLAGS)
120
AC_SUBST(SAVE_LDFLAGS)
121
AC_SUBST(SAVE_CXXLDFLAGS)
266
125
# This is needed is SUBDIRS is set
273
AC_SUBST(TARGET_LINUX)
274
AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
279
AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
282
TARGET_SOLARIS="true"
283
AC_SUBST(TARGET_SOLARIS)
284
AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
128
##############################################################################
129
# The below section needs to be done before AC_PROG_CC
130
##############################################################################
132
if test "x${CFLAGS-}" = x ; then
138
if test "x${CPPFLAGS-}" = x ; then
144
if test "x${LDFLAGS-}" = x ; then
150
################ End of section to be done before AC_PROG_CC #################
152
# The following hack should ensure that configure doesn't add optimizing
153
# or debugging flags to CFLAGS or CXXFLAGS
154
# C_EXTRA_FLAGS are flags that are automaticly added to both
155
# CFLAGS and CXXFLAGS
156
CFLAGS="$CFLAGS $C_EXTRA_FLAGS "
157
CXXFLAGS="$CXXFLAGS $C_EXTRA_FLAGS "
159
dnl Checks for programs.
161
ifdef([AC_PROG_CC_C99],[
162
AC_PROG_CC_C99([],[AC_MSG_ERROR([C99 support required for compiling Drizzle])])
164
],[C99_SUPPORT_HACK="-std=gnu99"])
166
AC_CXX_HEADER_STDCXX_98
167
if test "$ac_cv_cxx_stdcxx_98" = "no"
169
AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
174
# Print version of CC and CXX compiler (if they support --version)
177
CC_VERSION=`$CC -version | grep -i version`
180
CC_VERSION=`$CC --version | sed 1q`
290
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to
291
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
292
if test "x${CFLAGS}" = "x-g -O2"
296
if test "x${CXXFLAGS}" = "x-g -O2"
301
DRIZZLE_CHECK_C_VERSION
302
DRIZZLE_CHECK_CXX_VERSION
305
#ifdef _FILE_OFFSET_BITS
306
# undef _FILE_OFFSET_BITS
185
AC_MSG_CHECKING("C Compiler version")
186
AC_MSG_RESULT("$CC $CC_VERSION")
191
MYSQL_CHECK_CXX_VERSION
318
200
AC_PATH_PROG(AS, as, as)
321
dnl TODO: This needs to go away and be replaced with _ISOC99_SOURCE
322
if test "$ac_cv_c_compiler_gnu" = "yes" -o "$target_os" = "linux-gnu"
324
AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
327
dnl Solaris 9 include file <sys/feature_tests.h> refers to X/Open document
329
dnl System Interfaces and Headers, Issue 5
331
dnl saying we should define _XOPEN_SOURCE=500 to get POSIX.1c prototypes,
332
dnl but apparently other systems (namely FreeBSD) don't agree.
334
dnl On a newer Solaris 10, the above file recognizes also _XOPEN_SOURCE=600.
335
dnl Furthermore, it tests that if a program requires older standard
336
dnl (_XOPEN_SOURCE<600 or _POSIX_C_SOURCE<200112L) it cannot be
337
dnl run on a new compiler (that defines _STDC_C99) and issues an #error.
338
dnl It's also an #error if a program requires new standard (_XOPEN_SOURCE=600
339
dnl or _POSIX_C_SOURCE=200112L) and a compiler does not define _STDC_C99.
341
dnl To add more to this mess, Sun Studio C compiler defines _STDC_C99 while
342
dnl C++ compiler does not!
344
dnl TODO: Can _ISOC99_SOURCE be defined on all platforms and remove the
345
dnl Need for all of this?
346
if test "$GCC" = "yes"
350
CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
351
CXXFLAGS="${CXXFLAGS} -D__C99FEATURES__"
204
#AC_LIBTOOL_WIN32_DLL
359
207
# Ensure that we have --preserve-dup-deps defines, otherwise we get link
407
254
case "$host_cpu" in
408
255
*ppc* | *powerpc*)
409
AM_CFLAGS="$CFLAGS -mno-fused-madd"
410
AM_CXXFLAGS="$CXXFLAGS -mno-fused-madd"
256
CFLAGS="$CFLAGS -mno-fused-madd"
257
CXXFLAGS="$CXXFLAGS -mno-fused-madd"
414
# Build optimized or debug version ?
415
# First check for gcc and g++
419
DEBUG_OPTIMIZE_CXX=""
420
OPTIMIZE_CXXFLAGS="-O"
421
if test "$GCC" = "yes"
423
SYMBOLS_FLAGS="-ggdb3"
424
DEBUG_OPTIMIZE_CC="-O0"
425
OPTIMIZE_CFLAGS="-O3"
426
DEBUG_OPTIMIZE_CXX="-O0"
427
OPTIMIZE_CXXFLAGS="-O3"
429
if test "$SUNCC" = "yes"
431
dnl I'm cheating here and sticking C99 support in SYMBOLS_FLAGS
434
OPTIMIZE_CFLAGS="-xO4 -xlibmil -xdepend -Xa -mt -xstrconst -D_FORTEC_"
435
DEBUG_OPTIMIZE_CXX=""
436
#Put back in once isnan is figured out
437
OPTIMIZE_CXXFLAGS="-xO4 -xlibmil -mt -D_FORTEC_ -xlang=c99 -compat=5 -library=stlport4"
440
dnl TODO: Remove this define once we are using 2.61 across the board.
443
# Check whether to enable assertions.
444
AC_DEFUN([AX_HEADER_ASSERT],
446
AC_MSG_CHECKING([whether to enable assertions])
447
AC_ARG_ENABLE([assert],
448
[AS_HELP_STRING([--disable-assert],
449
[Turn off assertions])],
451
[ac_cv_assert="yes"])
452
AC_MSG_RESULT([$ac_cv_assert])
457
CFLAGS="${SYMBOLS_FLAGS} ${CFLAGS}"
458
CXXFLAGS="${SYMBOLS_FLAGS} ${CXXFLAGS}"
461
[AS_HELP_STRING([--with-debug],
462
[Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
463
[with_debug=$withval],
465
if test "$with_debug" = "yes"
468
CFLAGS="$DEBUG_OPTIMIZE_CC -DDEBUG $CFLAGS ${SAVE_CFLAGS}"
469
CXXFLAGS="$DEBUG_OPTIMIZE_CXX -DDEBUG $CXXFLAGS ${SAVE_CXXFLAGS}"
471
# Optimized version. No debug
472
CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS} ${SAVE_CFLAGS}"
473
CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS ${SAVE_CXXFLAGS}"
485
271
export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
494
# libdrizzle versioning when linked with GNU ld.
495
if test "$lt_cv_prog_gnu_ld" = "yes" -a $LD --version 2>/dev/null|grep -q GNU; then
496
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
273
if test "$GCC" = "yes"
275
# mysqld requires -fno-implicit-templates.
276
# Disable exceptions as they seams to create problems with gcc and threads.
277
# mysqld doesn't use run-time-type-checking, so we disable it.
278
# We should use -Wno-invalid-offsetof flag to disable some warnings from gcc
279
# regarding offset() usage in C++ which are done in a safe manner in the
281
CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
282
AC_DEFINE([HAVE_EXPLICIT_TEMPLATE_INSTANTIATION],
283
[1], [Defined by configure. Use explicit template instantiation.])
288
# libmysqlclient versioning when linked with GNU ld.
289
if $LD --version 2>/dev/null|grep -q GNU; then
290
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libdrizzle/libdrizzle.ver"
291
AC_CONFIG_FILES(libdrizzle/libdrizzle.ver)
498
293
AC_SUBST(LD_VERSION_SCRIPT)
500
#--------------------------------------------------------------------
501
# Check for Google Proto Buffers
502
#--------------------------------------------------------------------
504
AC_MSG_CHECKING(for Google Protocol Buffers)
505
AC_ARG_WITH(protobuf,
506
[AS_HELP_STRING([--with-protobuf@<:@=DIR@:>@],
507
[search for protobuf in DIR/include and DIR/lib])],
508
[ with_protobuf=$withval ],
509
[ with_protobuf=yes ])
511
save_CPPFLAGS="$CPPFLAGS"
514
if test "$with_protobuf" = "yes"
520
CPPFLAGS="-I$withval/include"
521
LIBS="-L$withval/lib -lprotobuf"
522
PROTO_PATH="${withval}/bin:$PATH"
525
AC_CHECK_TOOL([PROTOC],[protoc],[no],[$PROTO_PATH])
526
if test "x$PROTOC" = "xno"
528
AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
532
AC_CHECK_HEADERS([google/protobuf/message.h])
533
if test "x$ac_cv_header_google_protobuf_message_h" != "xyes"
535
AC_MSG_ERROR([Couldn't find message.h. Try installing Google Protocol Buffer development packages])
537
AC_MSG_RESULT("$wthval")
539
AC_CACHE_CHECK([for Message in libprotobuf], ac_cv_libprotobuf_works, [
541
#include <google/protobuf/descriptor.pb.h>
543
google::protobuf::FileDescriptorProto testFdp;
544
], ac_cv_libprotobuf_works=yes, [
545
AC_MSG_ERROR([could not find Google's libprotobuf])
550
PROTOBUF_LIBS="${LIBS}"
551
PROTOBUF_CPPFLAGS="${CPPFLAGS}"
552
AC_SUBST(PROTOBUF_LIBS)
553
AC_SUBST(PROTOBUF_CPPFLAGS)
554
CPPFLAGS="$save_CPPFLAGS"
558
#--------------------------------------------------------------------
560
#--------------------------------------------------------------------
562
dnl Do this by hand instead of with SEARCH_FOR_LIB, because uuid is weird.
563
AC_CHECK_HEADERS(uuid/uuid.h)
564
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
566
AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
568
AC_CHECK_LIB(uuid, uuid_generate)
570
296
#--------------------------------------------------------------------
571
297
# Check for libevent
572
298
#--------------------------------------------------------------------
574
SEARCH_FOR_LIB(event, event_loop, event.h,
575
AC_MSG_ERROR([libevent is required for Drizzle]))
578
AC_CACHE_CHECK([for bufferevent in libevent], ac_cv_libevent_works, [
579
save_CPPFLAGS="$CPPFLAGS"
300
AC_MSG_CHECKING(for libevent)
301
AC_ARG_WITH(libevent,
302
[AS_HELP_STRING([--with-libevent],
303
[Use libevent build directory])],
304
[ with_libevent=$withval ],
305
[ with_libevent=yes ])
307
if test "$with_libevent" = "yes"
309
AC_CHECK_HEADERS(event.h)
310
if test "x$ac_cv_header_event_h" != "xyes"
312
AC_MSG_ERROR([Couldn't find event.h. Try installing libevent development packages])
316
AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
317
LIBEVENT_LIBS="${LIBS}"
318
LIBS="${my_save_LIBS}"
321
AC_MSG_RESULT($withval)
322
if test -f $withval/event.h -a -f $withval/libevent.a; then
324
if cd $withval; then withval=`pwd`; cd $owd; fi
325
LIBEVENT_CFLAGS="-I$withval"
326
LIBEVENT_LIBS="-L$withval -levent"
327
elif test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
329
if cd $withval; then withval=`pwd`; cd $owd; fi
330
LIBEVENT_CFLAGS="-I$withval/include"
331
LIBEVENT_LIBS="-L$withval/lib -levent"
333
AC_MSG_ERROR([event.h or libevent.a not found in $withval])
337
AC_SUBST(LIBEVENT_CFLAGS)
338
AC_SUBST(LIBEVENT_LIBS)
340
AC_CACHE_CHECK([for bufferevent in libevent], ac_libevent_works, [
341
save_CFLAGS="$CFLAGS"
580
342
save_LIBS="$LIBS"
581
CPPFLAGS="$EVENT_CPPFLAGS"
343
CFLAGS="$LIBEVENT_CFLAGS"
344
LIBS="$LIBEVENT_LIBS"
584
346
#include <sys/types.h>
585
347
#include <sys/time.h>
849
618
[ with_named_curses=no ]
621
# compile with strings functions in assembler
622
AC_ARG_ENABLE([assembler],
623
[AS_HELP_STRING([--enable-assembler],
624
[Use assembler versions of some string functions if available.])],
625
[ ENABLE_ASSEMBLER=$enableval ],
626
[ ENABLE_ASSEMBLER=no ]
629
AC_MSG_CHECKING(if we should use assembler functions)
630
# For now we only support assembler on i386 and sparc systems
631
AM_CONDITIONAL(ASSEMBLER_x86, test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "i386" && $AS mystrings/strings-x86.s -o checkassembler >/dev/null 2>&1 && test -f checkassembler && (rm -f checkassembler; exit 0;))
632
AM_CONDITIONAL(ASSEMBLER_sparc32, test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparc")
633
AM_CONDITIONAL(ASSEMBLER_sparc64, test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparcv9")
634
AM_CONDITIONAL(ASSEMBLER, test "$ASSEMBLER_x86_TRUE" = "" -o "$ASSEMBLER_sparc32_TRUE" = "")
636
if test "$ASSEMBLER_TRUE" = ""
852
643
AC_ARG_WITH([tcp-port],
853
644
[AS_HELP_STRING([--with-tcp-port=port-number],
854
645
[Which port to use for Drizzle services @<:@default=4427@:>@])],
855
[ DRIZZLE_TCP_PORT=$withval ],
856
[ DRIZZLE_TCP_PORT=$DRIZZLE_TCP_PORT_DEFAULT
646
[ MYSQL_TCP_PORT=$withval ],
647
[ MYSQL_TCP_PORT=$MYSQL_TCP_PORT_DEFAULT
857
648
# if we actually defaulted (as opposed to the pathological case of
858
# --with-tcp-port=<DRIZZLE_TCP_PORT_DEFAULT> which might in theory
649
# --with-tcp-port=<MYSQL_TCP_PORT_DEFAULT> which might in theory
859
650
# happen if whole batch of servers was built from a script), set
860
651
# the default to zero to indicate that; we don't lose information
861
652
# that way, because 0 obviously indicates that we can get the
862
# default value from DRIZZLE_TCP_PORT. this seems really evil, but
863
# testing for DRIZZLE_TCP_PORT==DRIZZLE_TCP_PORT_DEFAULT would make a
864
# a port of DRIZZLE_TCP_PORT_DEFAULT magic even if the builder did not
653
# default value from MYSQL_TCP_PORT. this seems really evil, but
654
# testing for MYSQL_TCP_PORT==MYSQL_TCP_PORT_DEFAULT would make a
655
# a port of MYSQL_TCP_PORT_DEFAULT magic even if the builder did not
865
656
# intend it to mean "use the default, in fact, look up a good default
866
657
# from /etc/services if you can", but really, really meant 4427 when
867
658
# they passed in 4427. When they pass in a specific value, let them
872
663
# - if a port was set during build, use that as a default.
874
665
# - otherwise, try to look up a port in /etc/services; if that fails,
875
# use DRIZZLE_TCP_PORT_DEFAULT (at the time of this writing 4427)
666
# use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 4427)
877
# - allow the DRIZZLE_TCP_PORT environment variable to override that.
668
# - allow the MYSQL_TCP_PORT environment variable to override that.
879
670
# - allow command-line parameters to override all of the above.
881
# the top-most DRIZZLE_TCP_PORT_DEFAULT is read from win/configure.js,
672
# the top-most MYSQL_TCP_PORT_DEFAULT is read from win/configure.js,
882
673
# so don't mess with that.
883
DRIZZLE_TCP_PORT_DEFAULT=0 ]
674
MYSQL_TCP_PORT_DEFAULT=0 ]
885
AC_SUBST(DRIZZLE_TCP_PORT)
676
AC_SUBST(MYSQL_TCP_PORT)
886
677
# We might want to document the assigned port in the manual.
887
AC_SUBST(DRIZZLE_TCP_PORT_DEFAULT)
888
AC_DEFINE_UNQUOTED([DRIZZLE_PORT],[$DRIZZLE_TCP_PORT],
889
[Drizzle port to use])
890
AC_DEFINE_UNQUOTED([DRIZZLE_PORT_DEFAULT],[$DRIZZLE_TCP_PORT_DEFAULT],
891
[If we defaulted to DRIZZLE_PORT, then this will be zero])
678
AC_SUBST(MYSQL_TCP_PORT_DEFAULT)
893
680
# Use this to set the place used for unix socket used to local communication.
894
AC_ARG_WITH([drizzled-user],
895
[AS_HELP_STRING([--with-drizzled-user=username],
896
[What user the drizzled daemon shall be run as.
897
@<:@default=drizzle@:>@])],
898
[ DRIZZLED_USER=$withval ],
899
[ DRIZZLED_USER=drizzle ]
681
AC_ARG_WITH([mysqld-user],
682
[AS_HELP_STRING([--with-mysqld-user=username],
683
[What user the mysqld daemon shall be run as.
684
@<:@default=mysql@:>@])],
685
[ MYSQLD_USER=$withval ],
686
[ MYSQLD_USER=mysql ]
901
AC_SUBST(DRIZZLED_USER)
688
AC_SUBST(MYSQLD_USER)
903
690
# If we should allow LOAD DATA LOCAL
904
691
AC_MSG_CHECKING(If we should should enable LOAD DATA LOCAL by default)
930
719
AC_CHECK_HEADERS(fcntl.h float.h fpu_control.h ieeefp.h)
931
720
AC_CHECK_HEADERS(limits.h pwd.h select.h linux/config.h)
932
721
AC_CHECK_HEADERS(sys/fpu.h utime.h sys/utime.h )
933
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
934
AC_CHECK_HEADERS([curses.h term.h],[],[],
935
[[#ifdef HAVE_CURSES_H
722
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h)
723
AC_CHECK_HEADERS(sys/timeb.h sys/vadvise.h sys/wait.h term.h)
939
724
AC_CHECK_HEADERS(termio.h termios.h sched.h alloca.h)
940
AC_CHECK_HEADERS(sys/prctl.h ieeefp.h)
725
AC_CHECK_HEADERS(sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h)
726
AC_CHECK_HEADERS(sys/prctl.h sys/resource.h sys/param.h port.h ieeefp.h)
941
727
AC_CHECK_HEADERS(execinfo.h)
729
AC_CHECK_HEADERS([xfs/xfs.h])
943
731
#--------------------------------------------------------------------
944
732
# Check for system libraries. Adds the library to $LIBS
945
733
# and defines HAVE_LIBM etc
946
734
#--------------------------------------------------------------------
948
736
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
950
739
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
951
740
AC_CHECK_FUNC(yp_get_default_domain, [],
989
782
AC_CHECK_FUNCS(strtok_r)
784
# Build optimized or debug version ?
785
# First check for gcc and g++
786
if test "$ac_cv_c_compiler_gnu" = "yes"
788
SYMBOLS_CFLAGS="-ggdb3"
789
DEBUG_OPTIMIZE_CC="-O0"
790
OPTIMIZE_CFLAGS="-O2"
796
if test "$ac_cv_prog_cxx_g" = "yes"
798
SYMBOLS_CXXFLAGS="-ggdb3"
799
DEBUG_OPTIMIZE_CXX="-O0"
800
OPTIMIZE_CXXFLAGS="-O2"
802
SYMBOLS_CXXFLAGS="-g"
803
DEBUG_OPTIMIZE_CXX=""
804
OPTIMIZE_CXXFLAGS="-O"
807
# If the user specified CFLAGS, we won't add any optimizations
808
if test -n "$SAVE_CFLAGS"
814
if test -n "$SAVE_CXXFLAGS"
817
DEBUG_OPTIMIZE_CXX=""
820
dnl TODO: Remove this define once we are using 2.61 across the board.
823
# Check whether to enable assertions.
824
ifdef([AC_HEADER_ASSERT], [], [AC_DEFUN([AC_HEADER_ASSERT],
826
AC_MSG_CHECKING([whether to enable assertions])
827
AC_ARG_ENABLE([assert],
828
[ --disable-assert turn off assertions],
830
AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
831
[AC_MSG_RESULT(yes)])
836
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
837
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
840
[AS_HELP_STRING([--with-debug],
841
[Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
842
[with_debug=$withval],
844
if test "$with_debug" = "yes"
847
CFLAGS="$DEBUG_OPTIMIZE_CC $CFLAGS"
848
CXXFLAGS="$DEBUG_OPTIMIZE_CXX $CXXFLAGS"
850
# Optimized version. No debug
851
CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
852
CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
993
856
AC_ARG_WITH([fast-mutexes],
1016
879
COMPILATION_COMMENT="Source distribution"
1018
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
1019
[Comment about compilation environment])
881
AC_SUBST(COMPILATION_COMMENT)
883
if expr "$target_os" : "[[Ll]]inux.*" > /dev/null
886
AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
1021
891
dnl Checks for typedefs, structures, and compiler characteristics.
897
# AC_CHECK_SIZEOF return 0 when it does not find the size of a
898
# type. We want a error instead.
899
AC_CHECK_SIZEOF(char, 1)
900
if test "$ac_cv_sizeof_char" -eq 0
902
AC_MSG_ERROR([No size for char type.])
904
AC_CHECK_SIZEOF(char*, 4)
905
AC_CHECK_SIZEOF(short, 2)
906
AC_CHECK_SIZEOF(int, 4)
907
if test "$ac_cv_sizeof_int" -eq 0
909
AC_MSG_ERROR("No size for int type.")
911
AC_CHECK_SIZEOF(long, 4)
912
if test "$ac_cv_sizeof_long" -eq 0
914
AC_MSG_ERROR("No size for long type.")
916
AC_CHECK_SIZEOF(long long, 8)
917
if test "$ac_cv_sizeof_long_long" -eq 0
919
AC_MSG_ERROR("Drizzle needs a long long type.")
1028
921
# off_t is not a builtin type
1029
922
AC_CHECK_SIZEOF(off_t, 4)
1030
923
if test "$ac_cv_sizeof_off_t" -eq 0
1036
929
dnl check if time_t is unsigned
1039
DRIZZLE_CHECK_TIME_T
935
# do we need #pragma interface/#pragma implementation ?
936
# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
937
AC_MSG_CHECKING(the need for @%:@pragma interface/implementation)
938
# instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't
939
# follow any standard), we'll use well-defined preprocessor macros:
940
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
941
#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
942
#error USE_PRAGMA_IMPLEMENTATION
944
]])],[AC_MSG_RESULT(no) ],[AC_MSG_RESULT(yes) ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION"])
1042
946
# This always gives a warning. Ignore it unless you are cross compiling
1044
948
#---START: Used in for client configure
1045
949
# Check base type of last arg to accept
1048
952
# Figure out what type of struct rlimit to use with setrlimit
1049
DRIZZLE_TYPE_STRUCT_RLIMIT
953
MYSQL_TYPE_STRUCT_RLIMIT
1050
954
# Find where the stack goes
1051
DRIZZLE_STACK_DIRECTION
955
MYSQL_STACK_DIRECTION
1052
956
# We want to skip alloca on irix unconditionally. It may work on some version..
1054
958
# Do struct timespec have members tv_sec or ts_sec
1055
959
DRIZZLE_TIMESPEC_TS
1056
960
# Do we have the tzname variable
962
# Do the c++ compiler have a bool type
1058
964
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
1059
AC_CHECK_TYPES([uint, ulong])
965
AC_CHECK_TYPES([size_t], [], [], [#include <stdio.h>])
966
AC_CHECK_TYPES([u_int32_t])
1061
DRIZZLE_PTHREAD_YIELD
1064
971
dnl Checks for header files.
1065
AC_CHECK_HEADERS(malloc.h)
972
AC_CHECK_HEADERS(malloc.h sys/cdefs.h)
1067
974
dnl Checks for library functions.
1069
976
AC_PROG_GCC_TRADITIONAL
978
AC_CHECK_FUNCS(re_comp regcomp strdup)
980
dnl Sun compilers have their own vis.h that is about something
981
dnl totally different. So, not to change the libedit source, we
982
dnl do some additional checks before we define HAVE_VIS_H.
983
AC_CHECK_HEADER(vis.h,
984
[AC_CHECK_FUNC(strvis,
985
[AC_DEFINE([HAVE_VIS_H], [1],[Found vis.h and the strvis() function])])])
987
AC_CHECK_FUNCS(strlcat strlcpy)
1072
988
AC_CHECK_FUNCS(issetugid)
989
AC_CHECK_FUNCS(getline flockfile)
1074
991
# from old readline settting:
1129
1063
AC_CONFIG_LIBOBJ_DIR([mystrings])
1064
AC_REPLACE_FUNCS([strtoll strstr strtoull strmov getpagesize])
1066
AC_CHECK_FUNCS(bsearch \
1132
1067
cuserid fchmod \
1133
fdatasync fpresetsticky fpsetmask fsync \
1134
getpassphrase getpwnam \
1135
getpwuid getrlimit getrusage index initgroups isnan \
1068
fdatasync finite fpresetsticky fpsetmask fsync ftruncate \
1069
getcwd getpass getpassphrase getpwnam \
1070
getpwuid getrlimit getrusage getwd index initgroups isnan \
1136
1071
localtime_r gethrtime gmtime_r \
1138
mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
1072
locking longjmp lrand48 madvise mallinfo \
1074
mkstemp mlockall perror poll pread pthread_attr_create mmap mmap64 \
1139
1075
pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
1140
1076
pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
1141
1077
pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
1142
1078
pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
1143
realpath rename rwlock_init setupterm \
1148
backtrace backtrace_symbols backtrace_symbols_fd)
1151
# Test whether madvise() is declared in C++ code -- it is not on some
1152
# systems, such as Solaris
1153
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
1155
#include <sys/types.h>
1156
#include <sys/mman.h>
1079
realpath rename rint rwlock_init setupterm \
1080
shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
1081
sighold sigset sigthreadmask port_create sleep \
1082
snprintf socket stpcpy strcasecmp strerror strsignal strnlen strpbrk \
1083
tell tempnam vidattr \
1084
posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd)
1162
1086
AM_CONDITIONAL(BUILD_THR_RWLOCK,[test "$ac_cv_func_rwlock_init" -a "$ac_cv_funn_pthread_rwlock_rdlock"])
1088
# Check that isinf() is available in math.h and can be used in both C and C++
1090
AC_MSG_CHECKING(for isinf in math.h)
1091
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[
1097
AC_MSG_CHECKING(whether isinf() can be used in C++ code)
1099
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[
1105
AC_DEFINE(HAVE_ISINF, [1], [isinf() macro or function])
1165
1114
CFLAGS="$ORG_CFLAGS"
1167
1116
# Sanity check: We chould not have any fseeko symbol unless
1168
1117
# large_file_support=yes
1169
1118
AC_CHECK_FUNC(fseeko,
1170
[if test "$large_file_support" = no -a "x$TARGET_LINUX" = "xtrue";
1119
[if test "$large_file_support" = no -a "$TARGET_LINUX" = "true";
1172
1121
AC_MSG_ERROR("Found fseeko symbol but large_file_support is not enabled!")
1359
1322
[ac_warn_strict_aliasing="$enableval"],
1360
1323
[ac_warn_strict_aliasing="no"])
1362
AC_ARG_ENABLE([cast-warnings],
1363
[AS_HELP_STRING([--enable-cast-warnings],
1364
[Enable warnings about use of old C-style casts @<:@default=off@:>@])],
1365
[ac_warn_cast="$enableval"],
1366
[ac_warn_cast="no"])
1368
AC_ARG_ENABLE([effective-style],
1369
[AS_HELP_STRING([--enable-effective-style],
1370
[Enable warnings violating Effective C++ Style Guidelines @<:@default=off@:>@])],
1371
[ac_warn_effc="$enableval"],
1372
[ac_warn_effc="no"])
1374
AC_ARG_ENABLE([go-crazy],
1375
[AS_HELP_STRING([--enable-go-crazy],
1376
[Enables extra little warnings that might be too much @<:@default=off@:>@])],
1377
[ac_warn_go_crazy="$enableval"],
1378
[ac_warn_go_crazy="no"])
1381
1326
if test "$GCC" = "yes"
1385
if test "$ac_warn_fail" = "yes"
1389
BASE_WARNINGS="-W -Wall -Wextra ${W_FAIL}"
1391
1329
if test "$ac_warn_longlong" = "yes"
1393
1331
W_LONGLONG="-Wlong-long"
1419
1357
if test "$ac_warn_pedantic" = "yes"
1421
save_CXXFLAGS="${CXXFLAGS}"
1422
CXXFLAGS="${CXXFLAGS} ${W_FAIL} -Wredundant-decls"
1423
AC_CACHE_CHECK([whether it is safe to use -Wredundant-decls],
1424
[ac_cv_safe_to_use_Wredundant_decls_],
1428
template <typename E> struct C { void foo(); };
1429
template <typename E> void C<E>::foo() { }
1430
template <> void C<int>::foo();
1431
AC_INCLUDES_DEFAULT])],
1432
[ac_cv_safe_to_use_Wredundant_decls_=yes],
1433
[ac_cv_safe_to_use_Wredundant_decls_=no])
1435
if test $ac_cv_safe_to_use_Wredundant_decls_ = yes
1437
GXX_W_REDUNDANT_DECLS="-Wredundant-decls"
1439
GXX_W_REDUNDANT_DECLS="-Wno-redundant-decls"
1442
1359
GCC_PEDANTIC="-pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls ${W_STRICT_ALIASING}"
1443
GXX_PEDANTIC="-pedantic -Wundef ${GXX_W_REDUNDANT_DECLS} ${W_LONGLONG} ${W_STRICT_ALIASING}"
1445
AC_CACHE_CHECK([whether __attribute__ visibility "hidden" is supported],
1446
[ac_cv_can_use_hidden_],
1451
__attribute__((visibility ("hidden")))
1452
void testme() { };],[
1454
[ac_cv_can_use_hidden_=yes],
1455
[ac_cv_can_use_hidden_=no])
1457
if test "$ac_cv_can_use_hidden_" = "yes"
1459
AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
1460
[Define to 1 if you have support for __attribute__((visibility("hidden")))])
1463
CXXFLAGS="${save_CXXFLAGS}"
1360
GXX_PEDANTIC="-pedantic -Wundef -Wredundant-decls ${W_LONGLONG} ${W_STRICT_ALIASING}"
1466
1363
if test "$ac_warn_unreachable" = "yes"
1468
1365
W_UNREACHABLE="-Wunreachable-code"
1470
if test "$ac_warn_cast" = "yes"
1472
W_CAST="-Wold-style-cast"
1475
if test "$ac_warn_effc" = "yes"
1480
if test "$ac_warn_gocrazy" = "yes"
1482
W_CRAZY="-Wshadow -Wconversion -Winvalid-pch"
1485
CC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CRAZY}"
1486
CXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CAST} ${W_EFFC} ${W_CRAZY}"
1488
NO_EXCEPTIONS="-fno-exceptions"
1489
W_EXCEPTIONS="-fexceptions"
1490
NO_UNUSED_MACROS="-Wno-unused-macros"
1491
NO_REDUNDANT_DECLS="-Wno-redundant-decls"
1492
# Disable exceptions as they seams to create problems with gcc and threads.
1493
# drizzled doesn't use run-time-type-checking, so we disable it.
1494
AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"
1495
CPPFLAGS="${CPPFLAGS} -fpch-deps"
1497
if test "$SUNCC" = "yes"
1499
CC_WARNINGS="-v -xc99=all -errtags=yes"
1500
CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup -compat=5"
1501
NO_EXCEPTIONS="-features=no%except"
1502
W_EXCEPTIONS="-features=except"
1504
AM_CXXFLAGS="${CXX_WARNINGS} ${NO_EXCEPTIONS} ${AM_CXXFLAGS}"
1505
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
1507
AC_SUBST(NO_EXCEPTIONS)
1508
AC_SUBST(W_EXCEPTIONS)
1509
AC_SUBST(NO_UNUSED_MACROS)
1510
AC_SUBST(NO_REDUNDANT_DECLS)
1368
if test "$ac_warn_fail" = "yes"
1373
BASE_WARNINGS="-W -Wall -Wextra"
1374
GCC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${W_FAIL} ${GPROF_PROFILING} ${GPROF_COVERAGE}"
1375
GXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${W_FAIL} ${GPROF_PROFILING} ${GPROF_COVERAGE}"
1377
CXXFLAGS="$CXXFLAGS ${GXX_WARNINGS}"
1378
CFLAGS="$CFLAGS ${GCC_WARNINGS} "
1512
1381
AC_SUBST([GLOBAL_CPPFLAGS],['-I$(top_srcdir) -I$(top_builddir)'])
1513
1382
AC_SUBST([AM_CPPFLAGS],['${GLOBAL_CPPFLAGS}'])
1514
AC_SUBST([AM_CFLAGS])
1515
AC_SUBST([AM_CXXFLAGS])
1517
1384
# Some usefull subst
1530
1397
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
1532
dnl GCC Precompiled Header Support
1534
dnl AM_CONDITIONAL([GCC_PCH],[test "$GCC" = "yes"])
1535
AM_CONDITIONAL([GCC_PCH],[test "no" = "yes"])
1537
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
1538
mystrings/Makefile storage/Makefile dnl
1399
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile mysys/tests/Makefile dnl
1400
mystrings/Makefile mystrings/tests/Makefile storage/Makefile dnl
1401
vio/Makefile po/Makefile.in dnl
1540
1402
libdrizzle/Makefile client/Makefile dnl
1541
1403
drizzled/Makefile dnl
1542
1404
drizzled/field/Makefile dnl
1543
drizzled/item/Makefile dnl
1544
drizzled/serialize/Makefile dnl
1545
drizzled/functions/Makefile dnl
1546
drizzled/functions/str/Makefile dnl
1547
drizzled/functions/time/Makefile dnl
1548
drizzled/util/Makefile dnl
1549
1405
drizzled/sql_builtin.cc dnl
1406
drizzled/share/Makefile dnl
1550
1407
support-files/Makefile dnl
1551
1408
tests/Makefile tests/install_test_db dnl
1409
drizzled/version.h plugin/Makefile dnl
1553
1410
drizzled/drizzled_safe support-files/libdrizzle.pc dnl
1554
1411
support-files/drizzle.server support-files/drizzle-log-rotate)
1556
1413
AC_CONFIG_COMMANDS([default], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
1558
1415
# Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
1559
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS' AM_CFLAGS='$AM_CFLAGS' AM_CXXFLAGS='$AM_CXXFLAGS'")
1416
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS'")
1564
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
1566
echo " * Installation prefix: $prefix"
1567
echo " * System type: $SYSTEM_TYPE"
1568
echo " * Host CPU: $host_cpu"
1569
echo " * C Compiler: $CC_VERSION"
1570
echo " * C++ Compiler: $CXX"
1571
echo " * Build auth_pam: $ac_cv_header_security_pam_appl_h"
1572
echo " * Assertions enabled: $ac_cv_assert"
1573
echo " * Debug enabled: $with_debug"
1574
echo " * Profiling enabled: $ac_profiling"
1575
echo " * Coverage enabled: $ac_coverage"
1576
echo " * Warnings as failure: $ac_warn_fail"
1577
echo " * C++ cstdint location: $ac_cv_cxx_cstdint"
1578
echo " * C++ hash_map location: $ac_cv_cxx_hash_map"
1579
echo " * C++ hash namespace: $ac_cv_cxx_hash_namespace"
1580
echo " * C++ cmath location: $ac_cv_cxx_cmath"
1581
echo " * C++ cmath namespace: $ac_cv_cxx_cmath_namespace"