20
20
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
21
dnl Version from the AC_INIT call below is overridden later
22
dnl So don't update it here
23
AC_INIT([drizzle],[7],[http://bugs.launchpad.net/drizzle])
21
AC_INIT([drizzle],[RELEASE_VERSION],[http://bugs.launchpad.net/drizzle])
24
22
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
25
AC_CONFIG_AUX_DIR([config])
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, skip-visibility, version-from-vc)
29
dnl Set the default datadir location to /usr/local/var/drizzle. If a
30
dnl localstatedir is explicitly given, just use that.
31
AS_IF([test "x${localstatedir}" = 'x${prefix}/var'],[
32
localstatedir='${prefix}/var/drizzle'
23
AC_CONFIG_AUX_DIR(config)
24
AC_CONFIG_HEADERS([config.h])
25
AC_CONFIG_MACRO_DIR([m4])
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, use-gnulib, require-cxx, force-gcc42)
29
# Version with no dots
30
AC_DEFINE([DRIZZLE_VERSION_ID],RELEASE_ID,
31
[Version ID that can be easily used for numeric comparison])
33
AC_DEFINE([_BACKWARD_BACKWARD_WARNING_H],[1],[Hack to disable deprecation warning in gcc])
35
# The port that was assigned by IANA.
36
DRIZZLE_TCP_PORT_DEFAULT=4427
38
# Set this for plugins to use
39
ac_build_drizzle="yes"
35
42
AC_PATH_PROG(GPERF, gperf)
36
43
AS_IF([test "x$GPERF" = "x"],
37
44
AC_MSG_ERROR("Drizzle requires gperf to build."))
46
AC_PATH_PROG(LCOV, lcov)
47
AC_PATH_PROG(GENHTML, genhtml)
49
AM_CONDITIONAL(HAVE_LCOV,[test "x$LCOV" != "x"])
39
51
AC_CHECK_PROGS(YACC, ['bison -y'])
40
AS_IF([test "x$YACC" = "x" -a "$pandora_building_from_bzr" = "yes"],[
52
AS_IF([test "x$YACC" = "x" -a "$building_from_bzr" = "yes"],[
41
53
AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
57
AM_GNU_GETTEXT(external, need-formatstring-macros)
58
if test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"
60
AM_PATH_PROG_WITH_TEST(GMSGMERGE, gmsgmerge,
61
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
62
MSGMERGE="${GMSGMERGE}"
64
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
71
PANDORA_REQUIRE_PTHREAD
47
73
PANDORA_REQUIRE_LIBPROTOBUF
48
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
74
PANDORA_PROTOBUF_REQUIRE_VERSION([2.0.3])
49
75
PANDORA_REQUIRE_PROTOC
77
#--------------------------------------------------------------------
79
#--------------------------------------------------------------------
81
dnl Do this by hand. Need to check for uuid/uuid.h, but uuid may or may
82
dnl not be a lib is weird.
84
AC_CHECK_HEADERS(uuid/uuid.h)
85
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
87
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.])
89
AC_LIB_HAVE_LINKFLAGS(uuid,,
91
#include <uuid/uuid.h>
101
#--------------------------------------------------------------------
102
# Check for tcmalloc/mtmalloc
103
#--------------------------------------------------------------------
105
PANDORA_HAVE_BETTER_MALLOC
106
LIBS="${LIBS} ${BETTER_MALLOC_LIBS}"
108
#--------------------------------------------------------------------
109
# Check for libdrizzle
110
#--------------------------------------------------------------------
52
PANDORA_REQUIRE_PTHREAD
53
PANDORA_REQUIRE_LIBUUID
54
113
PANDORA_REQUIRE_LIBDRIZZLE
56
PANDORA_REQUIRE_LIBPCRE
57
PANDORA_REQUIRE_LIBREADLINE
61
PANDORA_USE_BETTER_MALLOC
64
AC_DEFINE([BUILDING_DRIZZLE],[1],
65
[Define indicating we are building and not consuming drizzle.])
117
#--------------------------------------------------------------------
119
#--------------------------------------------------------------------
121
AC_LIB_HAVE_LINKFLAGS(z,,
126
AS_IF([test x$ac_cv_libz = xno],
127
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.]))
129
#--------------------------------------------------------------------
130
# Check for libreadline or compatible (libedit on Mac OS X)
131
#--------------------------------------------------------------------
136
AS_IF([test "x$vl_cv_lib_readline" = "xno"],
137
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.]))
138
READLINE_LIBS="${LIBS}"
140
AC_SUBST(READLINE_LIBS)
142
DRIZZLE_CHECK_NEW_RL_INTERFACE
144
#--------------------------------------------------------------------
146
#--------------------------------------------------------------------
148
AC_LIB_HAVE_LINKFLAGS(pcre,,
154
AS_IF([test "x$ac_cv_libpcre" = "xno"],
161
AC_LIB_HAVE_LINKFLAGS(pcre,,
162
[#include <pcre/pcre.h>],
167
AS_IF([test "x$ac_cv_libpcre" = "xno"],
169
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.])
171
AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])
174
AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
178
AC_PATH_PROG(PERL, perl, no)
68
181
AC_ARG_WITH([server-suffix],
69
182
[AS_HELP_STRING([--with-server-suffix],
70
183
[Append value to the version string.])],
71
[ DRIZZLE_SERVER_SUFFIX="$withval" ]
72
[ DRIZZLE_SERVER_SUFFIX= ])
184
[ DRIZZLE_SERVER_SUFFIX=`echo "$withval" | sed -e 's/^\(...................................\)..*$/\1/'` ],
185
[ DRIZZLE_SERVER_SUFFIX= ]
74
187
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
75
188
[Append value to the version string])
190
# Force use of a curses libs
191
AC_ARG_WITH([named-curses-libs],
192
[AS_HELP_STRING([--with-named-curses-libs=ARG],
193
[Use specified curses libraries instead of those
194
automatically found by configure.])],
195
[ with_named_curses=$withval ],
196
[ with_named_curses=no ]
199
AC_ARG_WITH([tcp-port],
200
[AS_HELP_STRING([--with-tcp-port=port-number],
201
[Which port to use for Drizzle TCP services @<:@default=4427@:>@])],
202
[ DRIZZLE_TCP_PORT=$withval ],
203
[ DRIZZLE_TCP_PORT=$DRIZZLE_TCP_PORT_DEFAULT
204
# if we actually defaulted (as opposed to the pathological case of
205
# --with-tcp-port=<DRIZZLE_TCP_PORT_DEFAULT> which might in theory
206
# happen if whole batch of servers was built from a script), set
207
# the default to zero to indicate that; we don't lose information
208
# that way, because 0 obviously indicates that we can get the
209
# default value from DRIZZLE_TCP_PORT. this seems really evil, but
210
# testing for DRIZZLE_TCP_PORT==DRIZZLE_TCP_PORT_DEFAULT would make a
211
# a port of DRIZZLE_TCP_PORT_DEFAULT magic even if the builder did not
212
# intend it to mean "use the default, in fact, look up a good default
213
# from /etc/services if you can", but really, really meant 4427 when
214
# they passed in 4427. When they pass in a specific value, let them
215
# have it; don't second guess user and think we know better, this will
216
# just make people cross. this makes the the logic work like this
217
# (which is complicated enough):
219
# - if a port was set during build, use that as a default.
221
# - otherwise, try to look up a port in /etc/services; if that fails,
222
# use DRIZZLE_TCP_PORT_DEFAULT (at the time of this writing 4427)
224
# - allow the DRIZZLE_TCP_PORT environment variable to override that.
226
# - allow command-line parameters to override all of the above.
228
# the top-most DRIZZLE_TCP_PORT_DEFAULT is read from win/configure.js,
229
# so don't mess with that.
230
DRIZZLE_TCP_PORT_DEFAULT=0 ]
233
AC_SUBST(DRIZZLE_TCP_PORT)
234
AC_SUBST(DRIZZLE_TCP_PORT_DEFAULT)
235
AC_DEFINE_UNQUOTED([DRIZZLE_TCP_PORT],[$DRIZZLE_TCP_PORT],
236
[Drizzle port to use])
237
AC_DEFINE_UNQUOTED([DRIZZLE_TCP_PORT_DEFAULT],[$DRIZZLE_TCP_PORT_DEFAULT],
238
[If we defaulted to DRIZZLE_PORT, then this will be zero])
241
# Use this to set the place used for unix socket used to local communication.
78
242
AC_ARG_WITH([drizzled-user],
79
243
[AS_HELP_STRING([--with-drizzled-user=username],
80
244
[What user the drizzled daemon shall be run as.
81
245
@<:@default=drizzle@:>@])],
82
[ DRIZZLED_USER="$withval" ],
83
[ DRIZZLED_USER=drizzle ])
246
[ DRIZZLED_USER=$withval ],
247
[ DRIZZLED_USER=drizzle ]
84
249
AC_SUBST(DRIZZLED_USER)
251
# If we should allow LOAD DATA LOCAL
252
AC_MSG_CHECKING(If we should should enable LOAD DATA LOCAL by default)
253
AC_ARG_ENABLE(local-infile,
254
[ --enable-local-infile Enable LOAD DATA LOCAL INFILE (default: disabled)],
255
[ ENABLED_LOCAL_INFILE=$enableval ],
256
[ ENABLED_LOCAL_INFILE=no ]
258
if test "$ENABLED_LOCAL_INFILE" = "yes"
261
AC_DEFINE([ENABLED_LOCAL_INFILE], [1],
262
[If LOAD DATA LOCAL INFILE should be enabled by default])
267
#--------------------------------------------------------------------
268
# Check for system header files
269
#--------------------------------------------------------------------
275
AC_CHECK_HEADERS(fcntl.h float.h fpu_control.h ieeefp.h)
276
AC_CHECK_HEADERS(limits.h pwd.h select.h linux/config.h)
277
AC_CHECK_HEADERS(sys/fpu.h utime.h sys/utime.h )
278
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
279
AC_CHECK_HEADERS([curses.h term.h],[],[],
280
[[#ifdef HAVE_CURSES_H
284
AC_CHECK_HEADERS(termio.h termios.h sched.h alloca.h)
285
AC_CHECK_HEADERS(sys/prctl.h ieeefp.h)
286
AC_CHECK_HEADERS(execinfo.h)
288
#--------------------------------------------------------------------
289
# Check for system libraries. Adds the library to $LIBS
290
# and defines HAVE_LIBM etc
291
#--------------------------------------------------------------------
293
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
295
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
296
AC_CHECK_FUNC(yp_get_default_domain, [],
297
[AC_CHECK_LIB(nsl, yp_get_default_domain)])
298
AC_CHECK_FUNC(p2open, [], [AC_CHECK_LIB(gen, p2open)])
299
# This may get things to compile even if bind-8 is installed
300
AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
301
# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
302
AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
304
# Check rt for aio_read
305
AC_CHECK_LIB(rt, aio_read)
307
# For the sched_yield() function on Solaris
308
AC_CHECK_FUNC(sched_yield, [],
309
[AC_CHECK_LIB(posix4, [sched_yield],
310
[AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield function]) LIBS="$LIBS -lposix4"])])
312
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
314
AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
317
AC_CHECK_TYPES([fp_except], [], [], [
318
#include <sys/types.h>
324
AC_CHECK_LIB(dl,dlopen)
325
AC_CHECK_FUNCS(dlopen)
326
if test "$ac_cv_func_dlopen" != "yes"
328
AC_MSG_ERROR([Drizzle requires dlopen])
335
AC_ARG_WITH([atomic-ops],
336
[AS_HELP_STRING([--with-atomic-ops=rwlocks|smp|up],
337
[Implement atomic operations using pthread rwlocks or atomic CPU
338
instructions for multi-processor or uniprocessor
339
configuration. By default gcc built-in sync functions are used,
340
if available and 'smp' configuration otherwise.])],
341
[with_atomic_ops="$withval"],
342
[with_atomic_ops=smp])
344
case "$with_atomic_ops" in
345
"up") AC_DEFINE([MY_ATOMIC_MODE_DUMMY], [1],
346
[Assume single-CPU mode, no concurrency]) ;;
347
"rwlocks") AC_DEFINE([MY_ATOMIC_MODE_RWLOCKS], [1],
348
[Use pthread rwlocks for atomic ops]) ;;
351
[whether the compiler provides atomic builtins],
352
[ac_cv_gcc_atomic_builtins],
354
[AC_LANG_PROGRAM([],[[
355
int foo= -10; int bar= 10;
356
if (!__sync_fetch_and_add(&foo, bar) || foo)
358
bar= __sync_lock_test_and_set(&foo, bar);
359
if (bar || foo != 10)
361
bar= __sync_val_compare_and_swap(&bar, foo, 15);
366
[ac_cv_gcc_atomic_builtins=yes],
367
[ac_cv_gcc_atomic_builtins=no])])
369
if test "x$ac_cv_gcc_atomic_builtins" = "xyes"; then
370
AC_DEFINE(HAVE_GCC_ATOMIC_BUILTINS, 1,
371
[Define to 1 if compiler provides atomic builtins.])
374
*) AC_MSG_ERROR(["$with_atomic_ops" is not a valid value for --with-atomic-ops]) ;;
87
378
AC_ARG_WITH([comment],
88
379
[AS_HELP_STRING([--with-comment],
89
380
[Comment about compilation environment. @<:@default=off@:>@])],
90
381
[with_comment=$withval],
91
382
[with_comment=no])
92
AS_IF([test "$with_comment" != "no"],[
383
if test "$with_comment" != "no"
93
385
COMPILATION_COMMENT=$with_comment
95
COMPILATION_COMMENT="Source distribution (${PANDORA_RELEASE_COMMENT})"
387
COMPILATION_COMMENT="Source distribution (RELEASE_COMMENT)"
97
389
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
98
390
[Comment about compilation environment])
392
dnl Checks for typedefs, structures, and compiler characteristics.
395
# off_t is not a builtin type
396
AC_CHECK_SIZEOF(off_t, 4)
397
if test "$ac_cv_sizeof_off_t" -eq 0
399
AC_MSG_ERROR("Drizzle needs a off_t type.")
401
AC_CHECK_SIZEOF(size_t)
402
AC_DEFINE_UNQUOTED([SIZEOF_SIZE_T],[$ac_cv_sizeof_size_t],[Size of size_t as computed by sizeof()])
403
AC_CHECK_SIZEOF(long long)
404
AC_DEFINE_UNQUOTED(SIZEOF_LONG_LONG,[$ac_cv_sizeof_long_long],[Size of long long as computed by sizeof()])
407
dnl check if time_t is unsigned
412
DRIZZLE_STACK_DIRECTION
414
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
415
AC_CHECK_TYPES([uint, ulong])
417
DRIZZLE_PTHREAD_YIELD
420
dnl Checks for header files.
421
AC_CHECK_HEADERS(malloc.h)
423
dnl Checks for library functions.
426
AC_CHECK_FUNCS(issetugid)
428
# Already-done: stdlib.h string.h unistd.h termios.h
429
AC_CHECK_HEADERS(stdarg.h dirent.h locale.h ndir.h sys/dir.h \
430
sys/ndir.h sys/select.h \
431
sys/mman.h termcap.h termio.h asm/termbits.h grp.h \
434
# Already-done: strcasecmp
435
AC_CHECK_FUNCS(lstat select)
438
DRIZZLE_HAVE_TIOCGWINSZ
439
DRIZZLE_HAVE_TIOCSTAT
101
441
#########################################################################
443
dnl Checks for library functions.
448
AC_CHECK_FUNCS(fcntl)
449
if test "x$ac_cv_func_fcntl" != "xyes"
451
AC_MSG_ERROR("Drizzle requires fcntl.")
454
AC_CONFIG_LIBOBJ_DIR([gnulib])
458
fdatasync fpresetsticky fpsetmask fsync \
459
getpassphrase getpwnam \
460
getpwuid getrlimit getrusage index initgroups isnan \
461
localtime_r log log2 gethrtime gmtime_r \
463
mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
464
pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
465
pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
466
pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
467
pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
468
realpath rename rwlock_init setupterm \
473
backtrace backtrace_symbols backtrace_symbols_fd)
476
# Test whether madvise() is declared in C++ code -- it is not on some
477
# systems, such as Solaris
478
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
480
#include <sys/types.h>
481
#include <sys/mman.h>
487
AM_CONDITIONAL(BUILD_THR_RWLOCK,[test "$ac_cv_func_rwlock_init" -a "$ac_cv_funn_pthread_rwlock_rdlock"])
490
# Sanity check: We chould not have any fseeko symbol unless
491
# large_file_support=yes
492
AC_CHECK_FUNC(fseeko,
493
[if test "$large_file_support" = no -a "x$TARGET_LINUX" = "xtrue";
495
AC_MSG_ERROR("Found fseeko symbol but large_file_support is not enabled!")
499
# Check definition of pthread_getspecific
500
AC_CACHE_CHECK([args to pthread_getspecific], [mysql_cv_getspecific_args],
501
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
502
#if !defined(_REENTRANT)
505
#ifndef _POSIX_PTHREAD_SEMANTICS
506
#define _POSIX_PTHREAD_SEMANTICS
510
void *pthread_getspecific(pthread_key_t key);
511
pthread_getspecific((pthread_key_t) NULL);
513
[mysql_cv_getspecific_args=POSIX],
514
[mysql_cv_getspecific_args=other])])
515
if test "$mysql_cv_getspecific_args" = "other"
517
AC_DEFINE([HAVE_NONPOSIX_PTHREAD_GETSPECIFIC], [1],
518
[For some non posix threads])
521
# Check definition of pthread_mutex_init
522
AC_CACHE_CHECK([args to pthread_mutex_init], [mysql_cv_mutex_init_args],
523
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
527
#ifndef _POSIX_PTHREAD_SEMANTICS
528
#define _POSIX_PTHREAD_SEMANTICS
530
#include <pthread.h> ]], [[
531
pthread_mutexattr_t attr;
533
pthread_mutex_init(&mp,&attr); ]])],
534
[mysql_cv_mutex_init_args=POSIX],
535
[mysql_cv_mutex_init_args=other])])
536
if test "$mysql_cv_mutex_init_args" = "other"
538
AC_DEFINE([HAVE_NONPOSIX_PTHREAD_MUTEX_INIT], [1],
539
[For some non posix threads])
543
#---START: Used in for client configure
544
# Check definition of readdir_r
545
AC_CACHE_CHECK([args to readdir_r], [mysql_cv_readdir_r],
546
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
550
#ifndef _POSIX_PTHREAD_SEMANTICS
551
#define _POSIX_PTHREAD_SEMANTICS
554
#include <dirent.h>]], [[ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
555
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL); ]])],
556
[mysql_cv_readdir_r=POSIX],
557
[mysql_cv_readdir_r=other])])
558
if test "$mysql_cv_readdir_r" = "POSIX"
560
AC_DEFINE([HAVE_READDIR_R], [1], [POSIX readdir_r])
563
# Check definition of posix sigwait()
564
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
565
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
569
#ifndef _POSIX_PTHREAD_SEMANTICS
570
#define _POSIX_PTHREAD_SEMANTICS
581
[mysql_cv_sigwait=POSIX],
582
[mysql_cv_sigwait=other])])
583
if test "$mysql_cv_sigwait" = "POSIX"
585
AC_DEFINE([HAVE_SIGWAIT], [1], [POSIX sigwait])
588
if test "$mysql_cv_sigwait" != "POSIX"
590
unset mysql_cv_sigwait
591
# Check definition of posix sigwait()
592
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
593
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
597
#ifndef _POSIX_PTHREAD_SEMANTICS
598
#define _POSIX_PTHREAD_SEMANTICS
607
[mysql_cv_sigwait=NONPOSIX],
608
[mysql_cv_sigwait=other])])
609
if test "$mysql_cv_sigwait" = "NONPOSIX"
611
AC_DEFINE([HAVE_NONPOSIX_SIGWAIT], [1], [sigwait with one argument])
616
# Check if pthread_attr_setscope() exists
617
AC_CACHE_CHECK([for pthread_attr_setscope], [mysql_cv_pthread_attr_setscope],
618
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
622
#ifndef _POSIX_PTHREAD_SEMANTICS
623
#define _POSIX_PTHREAD_SEMANTICS
627
pthread_attr_t thr_attr;
628
pthread_attr_setscope(&thr_attr,0);
630
[mysql_cv_pthread_attr_setscope=yes],
631
[mysql_cv_pthread_attr_setscope=no])])
632
if test "$mysql_cv_pthread_attr_setscope" = "yes"
634
AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE], [1], [pthread_attr_setscope])
638
AC_CHECK_HEADERS(cxxabi.h)
639
AC_CACHE_CHECK([checking for abi::__cxa_demangle], mysql_cv_cxa_demangle,
640
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
641
char *foo= 0; int bar= 0;
642
foo= abi::__cxa_demangle(foo, foo, 0, &bar);
643
]])],[mysql_cv_cxa_demangle=yes],[mysql_cv_cxa_demangle=no])])
646
if test "x$mysql_cv_cxa_demangle" = xyes; then
647
AC_DEFINE(HAVE_ABI_CXA_DEMANGLE, 1,
648
[Define to 1 if you have the `abi::__cxa_demangle' function.])
651
#--------------------------------------------------------------------
652
# Check for requested features
653
#--------------------------------------------------------------------
655
DRIZZLE_CHECK_MAX_INDEXES
104
657
dnl Has to be done late, as the plugin may need to check for existence of
105
658
dnl functions tested above
106
PANDORA_PLUGINS([drizzled/plugin/load_list.h])
108
661
dnl GCC Precompiled Header Support
109
662
dnl re-enable later