~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2008-12-24 01:49:53 UTC
  • mto: This revision was merged to the branch mainline in revision 751.
  • Revision ID: mordred@inaugust.com-20081224014953-rc9p7a162p74y889
Fixed connect.test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl -*- ksh -*-
 
1
dnl -*- bash -*-
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
 
4
4
AC_PREREQ(2.59)dnl              Minimum Autoconf version required.
7
7
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
8
8
AC_CONFIG_AUX_DIR(config)
9
9
AC_CONFIG_HEADERS([config.h])
 
10
 
 
11
# Setting CFLAGS here prevents AC_CANONICAL_TARGET from injecting them
 
12
SAVE_CFLAGS=${CFLAGS}
 
13
SAVE_CXXFLAGS=${CXXFLAGS}
 
14
CFLAGS=
 
15
CXXFLAGS=
 
16
 
10
17
AC_CANONICAL_TARGET
11
 
AM_INIT_AUTOMAKE(-Wall -Werror)
12
 
 
13
 
PROTOCOL_VERSION=10
14
 
DOT_FRM_VERSION=6
 
18
 
 
19
CFLAGS=${SAVE_CFLAGS}
 
20
CXXFLAGS=${SAVE_CXXFLAGS}
 
21
 
 
22
AM_INIT_AUTOMAKE(nostdinc -Wall -Werror)
 
23
if test "x${enable_dependency_tracking}" = "x"
 
24
then
 
25
  enable_dependency_tracking=yes
 
26
fi
 
27
 
 
28
 
15
29
# See the libtool docs for information on how to do shared lib versions.
16
 
SHARED_LIB_MAJOR_VERSION=16
 
30
SHARED_LIB_MAJOR_VERSION=1
17
31
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
 
32
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
 
33
AC_SUBST(SHARED_LIB_VERSION)
 
34
 
 
35
 
 
36
dnl Checks for programs.
 
37
AC_PROG_CC
 
38
 
 
39
ACX_USE_SYSTEM_EXTENSIONS
 
40
AC_PROG_CXX
 
41
AC_CXX_HEADER_STDCXX_98
 
42
if test "$ac_cv_cxx_stdcxx_98" = "no"
 
43
then
 
44
  AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
 
45
fi
 
46
AC_PROG_CPP
 
47
AM_PROG_CC_C_O
 
48
 
 
49
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
50
ifdef([AC_PROG_CC_C99],[
 
51
    AC_PROG_CC_C99([$1],[$2],[$3])
 
52
],[
 
53
if "x$GCC" = "xyes"
 
54
then
 
55
  C99_SUPPORT_HACK="-std=gnu99"
 
56
fi
 
57
if "x$SUNCC" = "xyes"
 
58
then
 
59
  C99_SUPPORT_HACK="-xc99"
 
60
fi
 
61
])
18
62
 
19
63
 
20
64
 
33
77
DRIZZLE_BASE_VERSION=`echo $DRIZZLE_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"`
34
78
DRIZZLE_VERSION_ID=`echo $DRIZZLE_NUMERIC_VERSION | \
35
79
    awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
 
80
AC_DEFINE_UNQUOTED(DRIZZLE_BASE_VERSION,["$DRIZZLE_BASE_VERSION"],
 
81
                   [Major and minor version])
 
82
AC_DEFINE_UNQUOTED([DRIZZLE_VERSION_ID],[$DRIZZLE_VERSION_ID],
 
83
                   [Version ID that can be easily used for numeric comparison])
36
84
 
37
85
# The port should be constant for a LONG time
38
86
DRIZZLE_TCP_PORT_DEFAULT=4427
39
87
 
40
 
dnl Include m4 
41
 
sinclude(m4/alloca.m4)
42
 
sinclude(m4/check_cpu.m4)
43
 
sinclude(m4/character_sets.m4)
44
 
sinclude(m4/compiler_flag.m4)
45
 
sinclude(m4/dtrace.m4)
46
 
sinclude(m4/plugins.m4)
47
 
sinclude(m4/large_file.m4)
48
 
sinclude(m4/misc.m4)
49
 
sinclude(m4/readline.m4)
50
 
sinclude(m4/ssl.m4)
51
 
sinclude(m4/pkg.m4)
52
 
sinclude(m4/lib-link.m4)
53
 
sinclude(m4/lib-prefix.m4)
54
 
sinclude(m4/gettext.m4)
55
 
sinclude(m4/progtest.m4)
56
 
sinclude(m4/po.m4)
57
 
sinclude(m4/nls.m4)
58
 
sinclude(m4/iconv.m4)
59
 
sinclude(m4/lib-ld.m4)
60
 
sinclude(m4/ac_cxx_header_stdcxx_98.m4)
61
 
 
 
88
m4_include(m4/dtrace.m4)
 
89
 
 
90
m4_include(m4/character_sets.m4)
 
91
AC_SUBST(AVAILABLE_LANGUAGES)
 
92
 
 
93
m4_include(m4/gettext.m4)
62
94
AM_GNU_GETTEXT([external])
63
 
AM_GNU_GETTEXT_VERSION(0.17)
64
 
 
65
 
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x"])
66
 
 
67
 
AC_SUBST(DRIZZLE_NO_DASH_VERSION)
68
 
AC_SUBST(DRIZZLE_BASE_VERSION)
69
 
AC_SUBST(DRIZZLE_VERSION_ID)
70
 
AC_SUBST(DRIZZLE_PREVIOUS_BASE_VERSION)
71
 
AC_SUBST(PROTOCOL_VERSION)
72
 
AC_DEFINE_UNQUOTED([PROTOCOL_VERSION], [$PROTOCOL_VERSION],
73
 
                   [mysql client protocol version])
74
 
AC_SUBST(DOT_FRM_VERSION)
75
 
AC_DEFINE_UNQUOTED([DOT_FRM_VERSION], [$DOT_FRM_VERSION],
76
 
                   [Version of .frm files])
77
 
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
78
 
AC_SUBST(SHARED_LIB_VERSION)
79
 
AC_SUBST(AVAILABLE_LANGUAGES)
 
95
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
 
96
 
 
97
# Set this for plugins to use
 
98
ac_build_drizzle="yes"
80
99
 
81
100
 
82
101
# Canonicalize the configuration name.
105
124
  i?86) BASE_MACHINE_TYPE=i386 ;;
106
125
esac
107
126
 
108
 
# Save some variables and the command line options for mysqlbug
109
 
SAVE_CC="$CC"
110
 
SAVE_CXX="$CXX"
111
 
SAVE_ASFLAGS="$ASFLAGS"
112
 
SAVE_CFLAGS="$CFLAGS"
113
 
SAVE_CXXFLAGS="$CXXFLAGS"
114
 
SAVE_LDFLAGS="$LDFLAGS"
115
 
SAVE_CXXLDFLAGS="$CXXLDFLAGS"
116
 
CONF_COMMAND="$0 $ac_configure_args"
117
 
AC_SUBST(CONF_COMMAND)
118
 
AC_SUBST(SAVE_CC)
119
 
AC_SUBST(SAVE_CXX)
120
 
AC_SUBST(SAVE_ASFLAGS)
121
 
AC_SUBST(SAVE_CFLAGS)
122
 
AC_SUBST(SAVE_CXXFLAGS)
123
 
AC_SUBST(SAVE_LDFLAGS)
124
 
AC_SUBST(SAVE_CXXLDFLAGS)
125
 
AC_SUBST(CXXLDFLAGS)
126
 
 
127
127
AM_SANITY_CHECK
128
128
# This is needed is SUBDIRS is set
129
129
AC_PROG_MAKE_SET
130
130
 
131
 
##############################################################################
132
 
# The below section needs to be done before AC_PROG_CC
133
 
##############################################################################
134
 
 
135
 
if test "x${CFLAGS-}" = x ; then
136
 
  cflags_is_set=no
137
 
else
138
 
  cflags_is_set=yes
139
 
fi
140
 
 
141
 
if test "x${CPPFLAGS-}" = x ; then
142
 
  cppflags_is_set=no
143
 
else
144
 
  cppflags_is_set=yes
145
 
fi
146
 
 
147
 
if test "x${LDFLAGS-}" = x ; then
148
 
  ldflags_is_set=no
149
 
else
150
 
  ldflags_is_set=yes
151
 
fi
152
 
 
153
 
################ End of section to be done before AC_PROG_CC #################
154
 
 
155
 
# The following hack should ensure that configure doesn't add optimizing
156
 
# or debugging flags to CFLAGS or CXXFLAGS
157
 
# C_EXTRA_FLAGS are flags that are automaticly added to both
158
 
# CFLAGS and CXXFLAGS
159
 
CFLAGS="$CFLAGS $C_EXTRA_FLAGS "
160
 
CXXFLAGS="$CXXFLAGS $C_EXTRA_FLAGS "
161
 
 
162
 
dnl Checks for programs.
163
 
AC_PROG_CC
164
 
ifdef([AC_PROG_CC_C99],[
165
 
  AC_PROG_CC_C99([],[AC_MSG_ERROR([C99 support required for compiling Drizzle])])
166
 
  C99_SUPPORT_HACK=""
167
 
],[C99_SUPPORT_HACK="-std=gnu99"])
168
 
AC_PROG_CXX
169
 
AC_CXX_HEADER_STDCXX_98
170
 
if test "$ac_cv_cxx_stdcxx_98" = "no"
171
 
then
172
 
  AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
173
 
fi
174
 
AC_PROG_CPP
175
 
AM_PROG_CC_C_O
176
 
 
177
 
# Print version of CC and CXX compiler (if they support --version)
178
 
case $SYSTEM_TYPE in
 
131
 
 
132
case "$target_os" in
 
133
  *linux*)
 
134
  TARGET_LINUX="true"
 
135
  AC_SUBST(TARGET_LINUX)
 
136
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
 
137
    ;;
179
138
  *apple-darwin*)
 
139
    TARGET_OSX="true"
 
140
    AC_SUBST(TARGET_OSX)
180
141
    AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
181
142
    ;;
 
143
  *solaris*)
 
144
    TARGET_SOLARIS="true"
 
145
    AC_SUBST(TARGET_SOLARIS)
 
146
    AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
 
147
    ;;
182
148
  *)
183
 
CC_VERSION=`$CC --version | sed 1q`
184
149
    ;;
185
150
esac
186
 
if test $? -eq "0"
187
 
then
188
 
  AC_MSG_CHECKING("C Compiler version")
189
 
  AC_MSG_RESULT("$CC $CC_VERSION")
190
 
else
191
 
CC_VERSION=""
192
 
fi
193
 
AC_SUBST(CC_VERSION)
 
151
 
 
152
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to 
 
153
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
 
154
if test "x${CFLAGS}" = "x-g -O2"
 
155
then
 
156
  CFLAGS=
 
157
fi
 
158
if test "x${CXXFLAGS}" = "x-g -O2"
 
159
then
 
160
  CXXFLAGS=
 
161
fi
 
162
 
 
163
DRIZZLE_CHECK_C_VERSION
194
164
DRIZZLE_CHECK_CXX_VERSION
195
165
 
 
166
AC_SYS_LARGEFILE
 
167
 
196
168
AC_PROG_AWK
197
169
 
198
170
if test "$ac_cv_c_compiler_gnu" = "yes"
203
175
  AC_PATH_PROG(AS, as, as)
204
176
fi
205
177
 
 
178
dnl TODO: This needs to go away and be replaced with _ISOC99_SOURCE
 
179
if test "$ac_cv_c_compiler_gnu" = "yes" -o "$target_os" = "linux-gnu"
 
180
then
 
181
  AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
 
182
fi
 
183
 
 
184
dnl  Solaris 9 include file <sys/feature_tests.h> refers to X/Open document
 
185
 
 
186
dnl  System Interfaces and Headers, Issue 5
 
187
 
 
188
dnl  saying we should define _XOPEN_SOURCE=500 to get POSIX.1c prototypes,
 
189
dnl  but apparently other systems (namely FreeBSD) don't agree.
 
190
 
 
191
dnl  On a newer Solaris 10, the above file recognizes also _XOPEN_SOURCE=600.
 
192
dnl  Furthermore, it tests that if a program requires older standard
 
193
dnl  (_XOPEN_SOURCE<600 or _POSIX_C_SOURCE<200112L) it cannot be
 
194
dnl  run on a new compiler (that defines _STDC_C99) and issues an #error.
 
195
dnl  It's also an #error if a program requires new standard (_XOPEN_SOURCE=600
 
196
dnl  or _POSIX_C_SOURCE=200112L) and a compiler does not define _STDC_C99.
 
197
 
 
198
dnl  To add more to this mess, Sun Studio C compiler defines _STDC_C99 while
 
199
dnl  C++ compiler does not!
 
200
 
 
201
dnl TODO: Can _ISOC99_SOURCE be defined on all platforms and remove the 
 
202
dnl       Need for all of this? 
 
203
if test "$GCC" = "yes"
 
204
then
 
205
  case "$target_os" in
 
206
    *solaris*)
 
207
    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
 
208
    CXXFLAGS="${CXXFLAGS} -D__C99FEATURES__"
 
209
    ;;
 
210
  esac
 
211
fi
 
212
 
206
213
# We use libtool
207
 
#AC_LIBTOOL_WIN32_DLL
208
214
AC_PROG_LIBTOOL
209
215
 
210
216
# Ensure that we have --preserve-dup-deps defines, otherwise we get link
217
223
AC_PROG_INSTALL
218
224
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
219
225
 
220
 
# Not critical since the generated file is distributed
221
 
AC_CHECK_PROGS(YACC, ['bison -y -p MYSQL'])
 
226
# Look for "(group|user)add". 
 
227
# TODO: If the programs do not exist, inform the DBA that the user
 
228
#       was not created at the end of the install routine.
 
229
AC_CHECK_PROGS(GROUPADD, groupadd addgroup)
 
230
AC_CHECK_PROGS(USERADD, useradd adduser)
 
231
 
 
232
dnl Not critical since the generated file is distributed
 
233
AC_CHECK_PROGS(YACC, ['bison -y'])
222
234
if test -z "$YACC" && test -d ".bzr"
223
235
then
224
236
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
239
251
])
240
252
AC_MSG_RESULT($mysql_cv_sys_os)
241
253
 
242
 
# This should be rewritten to use $target_os
243
 
case "$target_os" in
244
 
  *solaris*)
245
 
    TARGET_SOLARIS="true"
246
 
    AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
247
 
    AC_SUBST(TARGET_SOLARIS)
248
 
  ;;
249
 
esac
250
254
 
251
255
# The following is required for portable results of floating point calculations
252
256
# on PowerPC. The same must also be done for IA-64, but this options is missing
261
265
    ;;
262
266
  esac
263
267
fi
 
268
# Build optimized or debug version ?
 
269
# First check for gcc and g++
 
270
SYMBOLS_FLAGS="-g"
 
271
DEBUG_OPTIMIZE_CC=""
 
272
OPTIMIZE_CFLAGS="-O"
 
273
DEBUG_OPTIMIZE_CXX=""
 
274
OPTIMIZE_CXXFLAGS="-O"
 
275
if test "$GCC" = "yes"
 
276
then
 
277
  SYMBOLS_FLAGS="-ggdb3"
 
278
  DEBUG_OPTIMIZE_CC="-O0"
 
279
  OPTIMIZE_CFLAGS="-O3"
 
280
  DEBUG_OPTIMIZE_CXX="-O0"
 
281
  OPTIMIZE_CXXFLAGS="-O3"
 
282
fi
 
283
if test "$SUNCC" = "yes"
 
284
then
 
285
  dnl I'm cheating here and sticking C99 support in SYMBOLS_FLAGS
 
286
  SYMBOLS_FLAGS=""
 
287
  DEBUG_OPTIMIZE_CC=""
 
288
  if test "$target_cpu" = "sparc"
 
289
  then
 
290
    MEMALIGN_FLAGS="-xmemalign=8s"
 
291
  fi
 
292
  OPTIMIZE_CFLAGS="-xO4 -xlibmil -xdepend -Xa -mt -xstrconst -D_FORTEC_ ${MEMALIGN_FLAGS}"
 
293
  DEBUG_OPTIMIZE_CXX=""
 
294
  #Put back in once isnan is figured out
 
295
  OPTIMIZE_CXXFLAGS="-xO4 -xlibmil -mt -D_FORTEC_ -xlang=c99 -compat=5 -library=stlport4 ${MEMALIGN_FLAGS}"
 
296
fi
 
297
 
 
298
dnl TODO: Remove this define once we are using 2.61 across the board.
 
299
# AX_HEADER_ASSERT
 
300
# ----------------
 
301
# Check whether to enable assertions.
 
302
AC_DEFUN([AX_HEADER_ASSERT],
 
303
[
 
304
  AC_MSG_CHECKING([whether to enable assertions])
 
305
  AC_ARG_ENABLE([assert],
 
306
    [AS_HELP_STRING([--disable-assert],
 
307
       [Turn off assertions])],
 
308
    [ac_cv_assert="no"],
 
309
    [ac_cv_assert="yes"])
 
310
  AC_MSG_RESULT([$ac_cv_assert])
 
311
])
 
312
 
 
313
AX_HEADER_ASSERT
 
314
 
 
315
CFLAGS="${SYMBOLS_FLAGS} ${CFLAGS}"
 
316
CXXFLAGS="${SYMBOLS_FLAGS} ${CXXFLAGS}"
 
317
 
 
318
AC_ARG_WITH([debug],
 
319
    [AS_HELP_STRING([--with-debug],
 
320
       [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
 
321
    [with_debug=$withval],
 
322
    [with_debug=no])
 
323
if test "$with_debug" = "yes"
 
324
then
 
325
  # Medium debug.
 
326
  CFLAGS="$DEBUG_OPTIMIZE_CC -DDEBUG $CFLAGS ${SAVE_CFLAGS}"
 
327
  CXXFLAGS="$DEBUG_OPTIMIZE_CXX -DDEBUG $CXXFLAGS ${SAVE_CXXFLAGS}"
 
328
else
 
329
  # Optimized version. No debug
 
330
  CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS} ${SAVE_CFLAGS}"
 
331
  CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS ${SAVE_CXXFLAGS}"
 
332
fi
264
333
 
265
334
AC_SUBST(CC)
266
335
AC_SUBST(CFLAGS)
273
342
 
274
343
export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
275
344
 
276
 
if test "$GCC" = "yes"
277
 
then
278
 
  # Disable exceptions as they seams to create problems with gcc and threads.
279
 
  # drizzled doesn't use run-time-type-checking, so we disable it.
280
 
  AM_CXXFLAGS="${AM_CXXFLAGS} -fno-exceptions -fno-rtti"
281
 
fi
 
345
AC_CXX_STL_HASH
 
346
AC_CXX_CSTDINT
 
347
AC_CXX_CINTTYPES
 
348
AC_CXX_CMATH
282
349
 
283
350
DRIZZLE_PROG_AR
284
351
 
285
352
# libdrizzle versioning when linked with GNU ld.
286
 
if $LD --version 2>/dev/null|grep -q GNU; then
287
 
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
 
353
if test "x$EGREP" != "x"
 
354
then
 
355
  if test "$lt_cv_prog_gnu_ld" = "yes" -a $LD --version 2>/dev/null|${EGREP} -q GNU
 
356
  then
 
357
    LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
 
358
  fi
288
359
fi
289
360
AC_SUBST(LD_VERSION_SCRIPT)
290
361
 
293
364
#--------------------------------------------------------------------
294
365
 
295
366
AC_LANG_PUSH([C++])
296
 
AC_CHECK_HEADERS([google/protobuf/message.h])
297
 
if test "x$ac_cv_header_google_protobuf_message_h" != "xyes"
 
367
SEARCH_FOR_LIB(protobuf, printf, google/protobuf/message.h,
 
368
               AC_MSG_ERROR([protobuf is required for Drizzle]))
 
369
 
 
370
AC_PATH_PROG([PROTOC],[protoc],[no],[$PROTOBUF_PATH])
 
371
if test "x$PROTOC" = "xno"
298
372
then
299
 
  AC_MSG_ERROR([Couldn't find message.h. Try installing Google Protocol Buffer development packages])
 
373
  AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
300
374
fi
301
375
 
302
 
save_CFLAGS="$CFLAGS"
303
 
save_LIBS="$LIBS"
304
 
CFLAGS=""
305
 
LIBS="-lprotobuf"
306
 
 
307
 
AC_CACHE_CHECK([for Message in libprotobuf], ac_libprotobuf_works, [
308
 
  AC_TRY_LINK([
309
 
#include <google/protobuf/descriptor.pb.h>
310
 
  ],[
311
 
    google::protobuf::FileDescriptorProto testFdp;
312
 
  ], ac_libprotobuf_works=yes, [
313
 
        AC_ERROR([could not find Google's libprotobuf])
314
 
  ])
315
 
 
316
 
])
317
 
 
318
 
PROTOBUF_LIBS="${LIBS}"
319
 
AC_SUBST(PROTOBUF_LIBS)
320
 
CFLAGS="$save_CFLAGS"
321
 
LIBS="$save_LIBS"
322
376
AC_LANG_POP()
323
377
 
324
378
#--------------------------------------------------------------------
 
379
# Check for libuuid
 
380
#--------------------------------------------------------------------
 
381
 
 
382
dnl Do this by hand instead of with SEARCH_FOR_LIB, because uuid is weird.
 
383
AC_CHECK_HEADERS(uuid/uuid.h)
 
384
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
 
385
then
 
386
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
 
387
fi
 
388
AC_CHECK_LIB(uuid, uuid_generate)
 
389
 
 
390
#--------------------------------------------------------------------
325
391
# Check for libevent
326
392
#--------------------------------------------------------------------
327
393
 
328
 
AC_MSG_CHECKING(for libevent)
329
 
AC_ARG_WITH(libevent,
330
 
  [AS_HELP_STRING([--with-libevent],
331
 
       [Use libevent build directory])],
332
 
  [ with_libevent=$withval ],
333
 
  [ with_libevent=yes ])
334
 
 
335
 
if test "$with_libevent" = "yes"
336
 
then
337
 
    AC_CHECK_HEADERS(event.h)
338
 
    if test "x$ac_cv_header_event_h" != "xyes"
339
 
    then
340
 
      AC_MSG_ERROR([Couldn't find event.h. Try installing libevent development packages])
341
 
    fi
342
 
    my_save_LIBS="$LIBS"
343
 
    LIBS=""
344
 
    AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
345
 
    LIBEVENT_LIBS="${LIBS}"
346
 
    LIBS="${my_save_LIBS}"
347
 
    LIBEVENT_CFLAGS=""
348
 
else
349
 
    AC_MSG_RESULT($withval)
350
 
    if test -f $withval/event.h -a -f $withval/libevent.a; then
351
 
       owd=`pwd`
352
 
       if cd $withval; then withval=`pwd`; cd $owd; fi
353
 
       LIBEVENT_CFLAGS="-I$withval"
354
 
       LIBEVENT_LIBS="-L$withval -levent"
355
 
    elif test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
356
 
       owd=`pwd`
357
 
       if cd $withval; then withval=`pwd`; cd $owd; fi
358
 
       LIBEVENT_CFLAGS="-I$withval/include"
359
 
       LIBEVENT_LIBS="-L$withval/lib -levent"
360
 
    else
361
 
       AC_MSG_ERROR([event.h or libevent.a not found in $withval])
362
 
    fi
363
 
fi
364
 
 
365
 
AC_SUBST(LIBEVENT_CFLAGS)
366
 
AC_SUBST(LIBEVENT_LIBS)
367
 
 
368
 
AC_CACHE_CHECK([for bufferevent in libevent], ac_libevent_works, [
369
 
  save_CFLAGS="$CFLAGS"
 
394
SEARCH_FOR_LIB(event, event_loop, event.h, 
 
395
               AC_MSG_ERROR([libevent is required for Drizzle]))
 
396
 
 
397
 
 
398
AC_CACHE_CHECK([for bufferevent in libevent], ac_cv_libevent_works, [
 
399
  save_CPPFLAGS="$CPPFLAGS"
370
400
  save_LIBS="$LIBS"
371
 
  CFLAGS="$LIBEVENT_CFLAGS"
372
 
  LIBS="$LIBEVENT_LIBS"
 
401
  CPPFLAGS="$EVENT_CFLAGS"
 
402
  LIBS="$EVENT_LIBS"
373
403
  AC_TRY_LINK([
374
404
#include <sys/types.h>
375
405
#include <sys/time.h>
377
407
#include <event.h>],[
378
408
        struct bufferevent bev;
379
409
        bufferevent_settimeout(&bev, 1, 1);
380
 
  ], ac_libevent_works=yes, [
381
 
        AC_ERROR([you need to install a more recent version of libevent,
 
410
  ], ac_cv_libevent_works=yes, [
 
411
        AC_MSG_ERROR([you need to install a more recent version of libevent,
382
412
        check http://www.monkey.org/~provos/libevent/])
383
413
  ])
384
414
 
385
 
  CFLAGS="$save_CFLAGS"
 
415
  CPPFLAGS="$save_CPPFLAGS"
386
416
  LIBS="$save_LIBS"
387
417
])
388
418
 
399
429
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
400
430
 
401
431
#--------------------------------------------------------------------
402
 
# Check for tcmalloc
 
432
# Check for tcmalloc/mtmalloc
403
433
#--------------------------------------------------------------------
404
434
 
405
435
AC_ARG_ENABLE([tcmalloc],
408
438
    [ac_enable_tcmalloc="$enableval"],
409
439
    [ac_enable_tcmalloc="no"])
410
440
 
411
 
if test "x$ac_enable_tcmalloc" = "xyes"
 
441
if test "x$ac_enable_tcmalloc" != "xno"
412
442
then
413
443
  AC_CHECK_LIB(tcmalloc,malloc,[],[])
414
444
fi
415
445
 
 
446
if test "x$ac_cv_lib_tcmalloc_malloc" != "xyes"
 
447
then
 
448
  AC_CHECK_LIB(mtmalloc,malloc,[],[])
 
449
fi
 
450
 
416
451
#--------------------------------------------------------------------
417
452
# Check for libz
418
453
#--------------------------------------------------------------------
419
454
 
420
 
my_save_LIBS="$LIBS"
421
 
LIBS=""
422
 
AC_CHECK_HEADERS(zlib.h)
423
 
if test "x$ac_cv_header_zlib_h" != "xyes"
424
 
then
425
 
  AC_MSG_ERROR([Couldn't find zlib.h. Try installing zlib development packages])
426
 
fi
427
 
AC_CHECK_LIB(z, crc32, [], [AC_MSG_ERROR(could not find libz)])
428
 
ZLIB_LIBS="$LIBS"
429
 
LIBS="$my_save_LIBS"
430
 
AC_SUBST(ZLIB_LIBS)
431
 
 
 
455
SEARCH_FOR_LIB(z, crc32, zlib.h, 
 
456
               AC_MSG_ERROR([libz is required for Drizzle]))
 
457
 
 
458
#--------------------------------------------------------------------
 
459
# Check for libncurses
 
460
#--------------------------------------------------------------------
 
461
 
 
462
 
 
463
SEARCH_FOR_LIB(ncurses, tgetent, ncurses/ncurses.h, [
 
464
        SEARCH_FOR_LIB(tinfo, tgetent, ncurses/ncurses.h,
 
465
                AC_MSG_ERROR([Couldn't find ncurses])
 
466
        )
 
467
        ]
 
468
)
432
469
 
433
470
#--------------------------------------------------------------------
434
471
# Check for libreadline or compatible (libedit on Mac OS X)
435
472
#--------------------------------------------------------------------
436
473
 
437
 
AC_CHECK_HEADERS(readline/history.h readline/readline.h)
438
 
if test "x$ac_cv_header_readline_readline_h" != "xyes"
439
 
then
440
 
  AC_MSG_ERROR([Couldn't find readline/readline.h. Try installing readline development packages.])
441
 
fi
 
474
 
 
475
SEARCH_FOR_LIB(readline, rl_initialize, readline/readline.h,
 
476
               AC_MSG_ERROR([libreadline is required for Drizzle]),
 
477
               [$NCURSES_LIBS]) 
 
478
 
 
479
save_CPPFLAGS="$CPPFLAGS"
 
480
CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
 
481
AC_CHECK_HEADERS(readline/history.h)
442
482
AC_CHECK_TYPES([HIST_ENTRY], [], [], [AC_INCLUDES_DEFAULT[
443
483
#ifdef HAVE_READLINE_HISTORY_H
444
484
#include <readline/history.h>
453
493
]])
454
494
 
455
495
DRIZZLE_CHECK_NEW_RL_INTERFACE
456
 
 
457
 
my_save_LIBS="$LIBS"
458
 
LIBS=""
459
 
AC_CHECK_LIB(readline, rl_initialize, [],
460
 
  [AC_CHECK_LIB(ncurses, tgetent, [], [AC_MSG_ERROR(Couldn't find ncurses)]) 
461
 
   AC_SEARCH_LIBS(rl_initialize, readline, [],
462
 
    [AC_MSG_ERROR(Couldn't find libreadline.)])])
463
 
READLINE_LIBS="$LIBS"
464
 
LIBS="$my_save_LIBS"
465
 
AC_SUBST(READLINE_LIBS)
 
496
CPPFLAGS="$save_CPPFLAGS"
466
497
 
467
498
 
468
499
#--------------------------------------------------------------------
469
500
# Check for libpcre
470
501
#--------------------------------------------------------------------
471
502
 
472
 
AC_LANG_PUSH([C++])
473
503
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
474
 
PKG_CHECK_MODULES(PCRE, [libpcrecpp >= 3], [found_pcre="yes"],[found_pcre="no"])
 
504
PKG_CHECK_MODULES(PCRE, [libpcre >= 3], [found_pcre="yes"],[found_pcre="no"])
475
505
 
476
506
if test "$found_pcre" = "no"
477
507
then
478
 
  dnl Only check the header here, because autoconf can't handle
479
 
  dnl checking for C++ methods without C linkages
480
 
  AC_CHECK_HEADERS(pcrecpp.h)
481
 
  if test "x$ac_cv_header_pcrecpp_h" != "xyes" 
482
 
  then
483
 
    AC_MSG_ERROR([Couldn't find pcrecpp.h. Try installing the development package associated with libpcre on your system.])
484
 
  else
485
 
    # Found headers, now see if we can link
486
 
    AC_MSG_CHECKING(for libpcrecpp)
487
 
    save_LDFLAGS="$LDFLAGS"
488
 
    LDFLAGS="-lpcrecpp -lpcre"
489
 
    AC_TRY_LINK([
490
 
#include <pcrecpp.h>
491
 
    ],
492
 
    [pcrecpp::RE_Options opt;],
493
 
    [found_pcre="yes"],
494
 
    [AC_MSG_ERROR([Couldn't link libpcrecpp])])
495
 
 
496
 
    PCRE_LIBS="$LDFLAGS"
497
 
    LDFLAGS="$save_LDFLAGS"
498
 
    AC_MSG_RESULT([yes])
499
 
  fi
 
508
  SEARCH_FOR_LIB(pcre, pcre_compile, pcre.h, 
 
509
                 AC_MSG_ERROR([libpcre is required for Drizzle]))
500
510
fi
501
 
AC_LANG_POP([])
502
511
AC_SUBST(PCRE_LIBS)
503
512
AC_SUBST(PCRE_CFLAGS)
504
513
 
584
593
  FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
585
594
else
586
595
  case $SYSTEM_TYPE in
587
 
    *freebsd*|*dragonfly*)
 
596
    *freebsd*|*dragonfly*|*cygwin*)
588
597
      FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
589
598
      ;;
590
599
    *darwin*)
636
645
    [ DRIZZLE_SERVER_SUFFIX=`echo "$withval" | sed -e  's/^\(...................................\)..*$/\1/'` ],
637
646
    [ DRIZZLE_SERVER_SUFFIX= ]
638
647
    )
639
 
AC_SUBST(DRIZZLE_SERVER_SUFFIX)
 
648
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
 
649
                   [Append value to the version string])
640
650
 
641
651
# Force use of a curses libs
642
652
AC_ARG_WITH([named-curses-libs],
683
693
AC_SUBST(DRIZZLE_TCP_PORT)
684
694
# We might want to document the assigned port in the manual.
685
695
AC_SUBST(DRIZZLE_TCP_PORT_DEFAULT)
 
696
AC_DEFINE_UNQUOTED([DRIZZLE_PORT],[$DRIZZLE_TCP_PORT],
 
697
                   [Drizzle port to use])
 
698
AC_DEFINE_UNQUOTED([DRIZZLE_PORT_DEFAULT],[$DRIZZLE_TCP_PORT_DEFAULT],
 
699
                   [If we defaulted to DRIZZLE_PORT, then this will be zero])
686
700
 
687
701
# Use this to set the place used for unix socket used to local communication.
688
 
AC_ARG_WITH([mysqld-user],
689
 
    [AS_HELP_STRING([--with-mysqld-user=username],
690
 
            [What user the mysqld daemon shall be run as.
691
 
                @<:@default=mysql@:>@])],
692
 
    [ MYSQLD_USER=$withval ],
693
 
    [ MYSQLD_USER=mysql ]
 
702
AC_ARG_WITH([drizzled-user],
 
703
    [AS_HELP_STRING([--with-drizzled-user=username],
 
704
            [What user the drizzled daemon shall be run as.
 
705
                @<:@default=drizzle@:>@])],
 
706
    [ DRIZZLED_USER=$withval ],
 
707
    [ DRIZZLED_USER=drizzle ]
694
708
    )
695
 
AC_SUBST(MYSQLD_USER)
 
709
AC_SUBST(DRIZZLED_USER)
696
710
 
697
711
# If we should allow LOAD DATA LOCAL
698
712
AC_MSG_CHECKING(If we should should enable LOAD DATA LOCAL by default)
710
724
  AC_MSG_RESULT([no])
711
725
fi
712
726
 
713
 
DRIZZLE_SYS_LARGEFILE
714
 
 
715
727
# Types that must be checked AFTER large file support is checked
716
728
AC_TYPE_SIZE_T
717
729
 
726
738
AC_CHECK_HEADERS(fcntl.h float.h fpu_control.h ieeefp.h)
727
739
AC_CHECK_HEADERS(limits.h pwd.h select.h linux/config.h)
728
740
AC_CHECK_HEADERS(sys/fpu.h utime.h sys/utime.h )
729
 
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h)
730
 
AC_CHECK_HEADERS(sys/timeb.h sys/vadvise.h sys/wait.h term.h)
 
741
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
 
742
AC_CHECK_HEADERS([curses.h term.h],[],[],
 
743
[[#ifdef HAVE_CURSES_H
 
744
# include <curses.h>
 
745
#endif
 
746
]])
731
747
AC_CHECK_HEADERS(termio.h termios.h sched.h alloca.h)
732
 
AC_CHECK_HEADERS(sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h)
733
 
AC_CHECK_HEADERS(sys/prctl.h sys/resource.h sys/param.h port.h ieeefp.h)
 
748
AC_CHECK_HEADERS(sys/prctl.h ieeefp.h)
734
749
AC_CHECK_HEADERS(execinfo.h)
735
750
 
736
 
AC_CHECK_HEADERS([xfs/xfs.h])
737
 
 
738
751
#--------------------------------------------------------------------
739
752
# Check for system libraries. Adds the library to $LIBS
740
753
# and defines HAVE_LIBM etc
741
754
#--------------------------------------------------------------------
742
755
 
743
756
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
744
 
AC_CHECK_FUNCS(log2)
745
757
 
746
758
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
747
759
AC_CHECK_FUNC(yp_get_default_domain, [],
765
777
  AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
766
778
fi
767
779
 
768
 
AC_CHECK_TYPES([int8, uint8, int16, uint16, int32, uint32, int64, uint64,
769
 
                uchar, uint, ulong],[],[], [
770
 
#include <sys/types.h>
771
 
])
772
780
AC_CHECK_TYPES([fp_except], [], [], [
773
781
#include <sys/types.h>
774
782
#include <ieeefp.h>
777
785
my_save_LIBS="$LIBS"
778
786
LIBS=""
779
787
AC_CHECK_LIB(dl,dlopen)
780
 
AC_CHECK_FUNCS(dlopen dlerror)
 
788
AC_CHECK_FUNCS(dlopen)
781
789
if test "$ac_cv_func_dlopen" != "yes"
782
790
then
783
791
  AC_MSG_ERROR([Drizzle requires dlopen])
788
796
 
789
797
AC_CHECK_FUNCS(strtok_r)
790
798
 
791
 
# Build optimized or debug version ?
792
 
# First check for gcc and g++
793
 
if test "$ac_cv_c_compiler_gnu" = "yes"
794
 
then
795
 
  SYMBOLS_CFLAGS="-ggdb3"
796
 
  DEBUG_OPTIMIZE_CC="-O0"
797
 
  OPTIMIZE_CFLAGS="-O2"
798
 
else
799
 
  SYMBOLS_CFLAGS="-g"
800
 
  DEBUG_OPTIMIZE_CC=""
801
 
  OPTIMIZE_CFLAGS="-O"
802
 
fi
803
 
if test "$ac_cv_prog_cxx_g" = "yes"
804
 
then
805
 
  SYMBOLS_CXXFLAGS="-ggdb3"
806
 
  DEBUG_OPTIMIZE_CXX="-O0"
807
 
  OPTIMIZE_CXXFLAGS="-O2"
808
 
else
809
 
  SYMBOLS_CXXFLAGS="-g"
810
 
  DEBUG_OPTIMIZE_CXX=""
811
 
  OPTIMIZE_CXXFLAGS="-O"
812
 
fi
813
 
 
814
 
# If the user specified CFLAGS, we won't add any optimizations
815
 
if test -n "$SAVE_CFLAGS"
816
 
then
817
 
  OPTIMIZE_CFLAGS=""
818
 
  DEBUG_OPTIMIZE_CC=""
819
 
fi
820
 
# Ditto for CXXFLAGS
821
 
if test -n "$SAVE_CXXFLAGS"
822
 
then
823
 
  OPTIMIZE_CXXFLAGS=""
824
 
  DEBUG_OPTIMIZE_CXX=""
825
 
fi
826
 
 
827
 
dnl TODO: Remove this define once we are using 2.61 across the board.
828
 
# AC_HEADER_ASSERT
829
 
# ----------------
830
 
# Check whether to enable assertions.
831
 
ifdef([AC_HEADER_ASSERT], [], [AC_DEFUN([AC_HEADER_ASSERT],
832
 
[
833
 
  AC_MSG_CHECKING([whether to enable assertions])
834
 
  AC_ARG_ENABLE([assert],
835
 
    [  --disable-assert        turn off assertions],
836
 
    [AC_MSG_RESULT([no])
837
 
     AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
838
 
    [AC_MSG_RESULT(yes)])
839
 
])])
840
 
 
841
 
AC_HEADER_ASSERT
842
 
 
843
 
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
844
 
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
845
 
 
846
 
AC_ARG_WITH([debug],
847
 
    [AS_HELP_STRING([--with-debug],
848
 
       [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
849
 
    [with_debug=$withval],
850
 
    [with_debug=no])
851
 
if test "$with_debug" = "yes"
852
 
then
853
 
  # Medium debug.
854
 
  CFLAGS="$DEBUG_OPTIMIZE_CC $CFLAGS"
855
 
  CXXFLAGS="$DEBUG_OPTIMIZE_CXX $CXXFLAGS"
856
 
else
857
 
  # Optimized version. No debug
858
 
  CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
859
 
  CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
860
 
fi
861
799
 
862
800
 
863
801
AC_ARG_WITH([fast-mutexes],
885
823
else
886
824
  COMPILATION_COMMENT="Source distribution"
887
825
fi
888
 
AC_SUBST(COMPILATION_COMMENT)
889
 
 
890
 
if expr "$target_os" : "[[Ll]]inux.*" > /dev/null
891
 
then
892
 
  TARGET_LINUX="true"
893
 
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
894
 
else
895
 
  TARGET_LINUX="false"
896
 
fi
 
826
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
 
827
                   [Comment about compilation environment])
897
828
 
898
829
dnl Checks for typedefs, structures, and compiler characteristics.
899
830
AC_C_CONST
900
831
AC_C_INLINE
 
832
AC_C_VOLATILE
901
833
AC_TYPE_OFF_T
902
834
AC_HEADER_TIME
903
835
AC_STRUCT_TM
904
 
# AC_CHECK_SIZEOF return 0 when it does not find the size of a
905
 
# type. We want a error instead.
906
 
AC_CHECK_SIZEOF(char, 1)
907
 
if test "$ac_cv_sizeof_char" -eq 0
908
 
then
909
 
  AC_MSG_ERROR([No size for char type.])
910
 
fi
911
 
AC_CHECK_SIZEOF(char*, 4)
912
 
AC_CHECK_SIZEOF(short, 2)
913
 
AC_CHECK_SIZEOF(int, 4)
914
 
if test "$ac_cv_sizeof_int" -eq 0
915
 
then
916
 
  AC_MSG_ERROR("No size for int type.")
917
 
fi
918
 
AC_CHECK_SIZEOF(long, 4)
919
 
if test "$ac_cv_sizeof_long" -eq 0
920
 
then
921
 
  AC_MSG_ERROR("No size for long type.")
922
 
fi
923
 
AC_CHECK_SIZEOF(long long, 8)
924
 
if test "$ac_cv_sizeof_long_long" -eq 0
925
 
then
926
 
  AC_MSG_ERROR("Drizzle needs a long long type.")
927
 
fi
928
836
# off_t is not a builtin type
929
837
AC_CHECK_SIZEOF(off_t, 4)
930
838
if test "$ac_cv_sizeof_off_t" -eq 0
939
847
DRIZZLE_CHECK_TIME_T
940
848
 
941
849
 
942
 
# do we need #pragma interface/#pragma implementation ?
943
 
# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
944
 
AC_MSG_CHECKING(the need for @%:@pragma interface/implementation)
945
 
# instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't
946
 
# follow any standard), we'll use well-defined preprocessor macros:
947
 
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
948
 
#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
949
 
#error USE_PRAGMA_IMPLEMENTATION
950
 
#endif
951
 
]])],[AC_MSG_RESULT(no) ],[AC_MSG_RESULT(yes) ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION"])
952
 
 
953
850
# This always gives a warning. Ignore it unless you are cross compiling
954
851
AC_C_BIGENDIAN
955
852
#---START: Used in for client configure
966
863
DRIZZLE_TIMESPEC_TS
967
864
# Do we have the tzname variable
968
865
DRIZZLE_TZNAME
969
 
# Do the c++ compiler have a bool type
970
 
DRIZZLE_CXX_BOOL
971
866
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
972
 
AC_CHECK_TYPES([size_t], [], [], [#include <stdio.h>])
973
 
AC_CHECK_TYPES([u_int32_t])
 
867
AC_CHECK_TYPES([uint, ulong])
974
868
 
975
869
DRIZZLE_PTHREAD_YIELD
976
870
 
977
871
 
978
872
dnl Checks for header files.
979
 
AC_CHECK_HEADERS(malloc.h sys/cdefs.h)
 
873
AC_CHECK_HEADERS(malloc.h)
980
874
 
981
875
dnl Checks for library functions.
982
876
AC_FUNC_ALLOCA
983
877
AC_PROG_GCC_TRADITIONAL
984
878
AC_TYPE_SIGNAL
985
 
AC_CHECK_FUNCS(re_comp regcomp strdup)
986
 
 
987
 
dnl Sun compilers have their own vis.h that is about something
988
 
dnl totally different. So, not to change the libedit source, we
989
 
dnl do some additional checks before we define HAVE_VIS_H.
990
 
AC_CHECK_HEADER(vis.h,
991
 
  [AC_CHECK_FUNC(strvis,
992
 
    [AC_DEFINE([HAVE_VIS_H], [1],[Found vis.h and the strvis() function])])])
993
 
 
994
 
AC_CHECK_FUNCS(strlcat strlcpy)
 
879
 
995
880
AC_CHECK_FUNCS(issetugid)
996
 
AC_CHECK_FUNCS(getline flockfile)
997
881
 
998
882
# from old readline settting:
999
883
 
1001
885
AC_SUBST(MAKE_SHELL)
1002
886
 
1003
887
# Already-done: stdlib.h string.h unistd.h termios.h
1004
 
AC_CHECK_HEADERS(varargs.h stdarg.h dirent.h locale.h ndir.h sys/dir.h \
1005
 
 sys/file.h sys/ndir.h sys/ptem.h sys/pte.h sys/select.h sys/stream.h \
1006
 
 sys/mman.h curses.h termcap.h termio.h termbits.h asm/termbits.h grp.h \
1007
 
paths.h semaphore.h)
 
888
AC_CHECK_HEADERS(stdarg.h dirent.h locale.h ndir.h sys/dir.h \
 
889
 sys/ndir.h sys/select.h \
 
890
 sys/mman.h termcap.h termio.h asm/termbits.h grp.h \
 
891
 paths.h)
1008
892
 
1009
893
# Already-done: strcasecmp
1010
 
AC_CHECK_FUNCS(lstat putenv select setenv setlocale strcoll tcgetattr)
 
894
AC_CHECK_FUNCS(lstat select)
1011
895
 
1012
896
AC_HEADER_STAT
1013
897
DRIZZLE_SIGNAL_CHECK
1014
898
DRIZZLE_CHECK_GETPW_FUNCS
1015
899
DRIZZLE_HAVE_TIOCGWINSZ
1016
 
DRIZZLE_HAVE_FIONREAD
1017
900
DRIZZLE_HAVE_TIOCSTAT
1018
 
DRIZZLE_STRUCT_DIRENT_D_INO
1019
 
DRIZZLE_STRUCT_DIRENT_D_NAMLEN
1020
901
DRIZZLE_TYPE_SIGHANDLER
1021
 
DRIZZLE_CHECK_MULTIBYTE
1022
902
if test "$with_named_curses" = "no"
1023
903
then
1024
904
  DRIZZLE_CHECK_LIB_TERMCAP
1027
907
fi
1028
908
AC_SUBST(TERMCAP_LIBS)
1029
909
 
1030
 
# Check if the termcap function 'tgoto' is already declared in
1031
 
# system header files or if it need to be declared locally
1032
 
AC_CHECK_DECLS(tgoto,,,[
1033
 
#ifdef HAVE_CURSES_H
1034
 
# include <curses.h>
1035
 
#elif HAVE_NCURSES_H
1036
 
# include <ncurses.h>
1037
 
#endif
1038
 
#ifdef HAVE_TERM_H
1039
 
# include <term.h>
1040
 
#endif
1041
 
])
1042
 
 
1043
910
# End of readline/libedit stuff
1044
911
#########################################################################
1045
912
 
1068
935
fi
1069
936
 
1070
937
AC_CONFIG_LIBOBJ_DIR([mystrings])
1071
 
AC_REPLACE_FUNCS([strtoll strstr strtoull stpcpy stpncpy getpagesize])
1072
938
 
1073
 
AC_CHECK_FUNCS(bsearch \
 
939
AC_CHECK_FUNCS( \
1074
940
  cuserid fchmod \
1075
 
  fdatasync finite fpresetsticky fpsetmask fsync ftruncate \
1076
 
  getcwd getpass getpassphrase getpwnam \
1077
 
  getpwuid getrlimit getrusage getwd index initgroups isnan \
 
941
  fdatasync fpresetsticky fpsetmask fsync \
 
942
  getpassphrase getpwnam \
 
943
  getpwuid getrlimit getrusage index initgroups isnan \
1078
944
  localtime_r gethrtime gmtime_r \
1079
 
  locking longjmp lrand48 madvise mallinfo \
1080
 
  memmove \
1081
 
  mkstemp mlockall perror poll pread pthread_attr_create mmap mmap64 \
 
945
  madvise \
 
946
  mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
1082
947
  pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
1083
948
  pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
1084
949
  pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
1085
950
  pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
1086
 
  realpath rename rint rwlock_init setupterm \
1087
 
  shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
1088
 
  sighold sigset sigthreadmask port_create sleep \
1089
 
  snprintf socket strcasecmp strerror strsignal strpbrk \
1090
 
  tell tempnam vidattr \
1091
 
  posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd)
 
951
  realpath rename rwlock_init setupterm \
 
952
  sigaction \
 
953
  sigthreadmask \
 
954
  snprintf strpbrk \
 
955
  tell tempnam \
 
956
  backtrace backtrace_symbols backtrace_symbols_fd)
1092
957
 
1093
958
AC_LANG_PUSH(C++)
1094
959
# Test whether madvise() is declared in C++ code -- it is not on some
1095
960
# systems, such as Solaris
1096
 
AC_CHECK_DECLS(madvise, [], [], [#if HAVE_SYS_MMAN_H
 
961
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
 
962
#if HAVE_SYS_MMAN_H
1097
963
#include <sys/types.h>
1098
964
#include <sys/mman.h>
1099
 
#endif])
 
965
#endif
 
966
]])
1100
967
AC_LANG_POP()
1101
968
 
1102
969
 
1103
970
AM_CONDITIONAL(BUILD_THR_RWLOCK,[test "$ac_cv_func_rwlock_init" -a "$ac_cv_funn_pthread_rwlock_rdlock"])
1104
971
 
1105
 
# Check that isinf() is available in math.h and can be used in both C and C++
1106
 
# code
1107
 
AC_MSG_CHECKING(for isinf in math.h)
1108
 
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[
1109
 
    float f = 0.0; 
1110
 
    int r = isinf(f); 
1111
 
    return r;
1112
 
  ]])],[
1113
 
    AC_MSG_RESULT(yes)
1114
 
    AC_MSG_CHECKING(whether isinf() can be used in C++ code)
1115
 
    AC_LANG_PUSH([C++])
1116
 
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[
1117
 
      float f = 0.0;
1118
 
      int r = isinf(f);
1119
 
      return r;
1120
 
    ]])],[
1121
 
      AC_MSG_RESULT(yes)
1122
 
      AC_DEFINE(HAVE_ISINF, [1], [isinf() macro or function])
1123
 
    ],[
1124
 
      AC_MSG_RESULT(no)
1125
 
    ])
1126
 
    AC_LANG_POP([])
1127
 
  ],[
1128
 
  AC_MSG_RESULT(no)])
1129
 
 
1130
972
 
1131
973
CFLAGS="$ORG_CFLAGS"
1132
974
 
1133
975
# Sanity check: We chould not have any fseeko symbol unless
1134
976
# large_file_support=yes
1135
977
AC_CHECK_FUNC(fseeko,
1136
 
[if test "$large_file_support" = no -a "$TARGET_LINUX" = "true";
 
978
[if test "$large_file_support" = no -a "x$TARGET_LINUX" = "xtrue";
1137
979
then
1138
980
  AC_MSG_ERROR("Found fseeko symbol but large_file_support is not enabled!")
1139
981
fi]
1141
983
 
1142
984
# Check definition of pthread_getspecific
1143
985
AC_CACHE_CHECK([args to pthread_getspecific], [mysql_cv_getspecific_args],
1144
 
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if !defined(_REENTRANT)
 
986
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
987
#if !defined(_REENTRANT)
1145
988
#define _REENTRANT
1146
989
#endif
 
990
#ifndef _POSIX_PTHREAD_SEMANTICS 
1147
991
#define _POSIX_PTHREAD_SEMANTICS 
 
992
#endif
1148
993
#include <pthread.h> ]], [[ void *pthread_getspecific(pthread_key_t key);
1149
994
pthread_getspecific((pthread_key_t) NULL); ]])],
1150
995
    [mysql_cv_getspecific_args=POSIX],
1157
1002
 
1158
1003
  # Check definition of pthread_mutex_init
1159
1004
  AC_CACHE_CHECK([args to pthread_mutex_init], [mysql_cv_mutex_init_args],
1160
 
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _REENTRANT
 
1005
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
1006
#ifndef _REENTRANT
 
1007
#define _REENTRANT
 
1008
#endif
 
1009
#ifndef _POSIX_PTHREAD_SEMANTICS
1161
1010
#define _POSIX_PTHREAD_SEMANTICS 
 
1011
#endif
1162
1012
#include <pthread.h> ]], [[ 
1163
1013
  pthread_mutexattr_t attr;
1164
1014
  pthread_mutex_t mp;
1175
1025
#---START: Used in for client configure
1176
1026
# Check definition of readdir_r
1177
1027
AC_CACHE_CHECK([args to readdir_r], [mysql_cv_readdir_r],
1178
 
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _REENTRANT
 
1028
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1029
#ifndef _REENTRANT
 
1030
#define _REENTRANT
 
1031
#endif
 
1032
#ifndef _POSIX_PTHREAD_SEMANTICS 
1179
1033
#define _POSIX_PTHREAD_SEMANTICS 
 
1034
#endif
1180
1035
#include <pthread.h>
1181
1036
#include <dirent.h>]], [[ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
1182
1037
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL); ]])],
1190
1045
# Check definition of posix sigwait()
1191
1046
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1192
1047
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1048
#ifndef _REENTRANT
1193
1049
#define _REENTRANT
 
1050
#endif
 
1051
#ifndef _POSIX_PTHREAD_SEMANTICS
1194
1052
#define _POSIX_PTHREAD_SEMANTICS 
 
1053
#endif
1195
1054
#include <pthread.h>
1196
1055
#include <signal.h>
1197
1056
      ]], [[
1214
1073
# Check definition of posix sigwait()
1215
1074
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1216
1075
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1076
#ifndef _REENTRANT
1217
1077
#define _REENTRANT
 
1078
#endif
 
1079
#ifndef _POSIX_PTHREAD_SEMANTICS
1218
1080
#define _POSIX_PTHREAD_SEMANTICS 
 
1081
#endif
1219
1082
#include <pthread.h>
1220
1083
#include <signal.h>
1221
1084
      ]], [[
1235
1098
# Check if pthread_attr_setscope() exists
1236
1099
AC_CACHE_CHECK([for pthread_attr_setscope], [mysql_cv_pthread_attr_setscope],
1237
1100
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1101
#ifndef _REENTRANT
1238
1102
#define _REENTRANT
 
1103
#endif
 
1104
#ifndef _POSIX_PTHREAD_SEMANTICS
1239
1105
#define _POSIX_PTHREAD_SEMANTICS 
 
1106
#endif
1240
1107
#include <pthread.h>
1241
1108
      ]], [[
1242
1109
pthread_attr_t thr_attr;
1249
1116
  AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE], [1], [pthread_attr_setscope])
1250
1117
fi
1251
1118
 
1252
 
# Check for bad includes
1253
 
AC_MSG_CHECKING("can netinet files be included")
1254
 
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
1255
 
#include <sys/socket.h>
1256
 
#include <netinet/in_systm.h>
1257
 
#include <netinet/in.h>
1258
 
#include <netinet/ip.h>
1259
 
#include <netinet/tcp.h>]], [[ printf("1\n"); ]])],[netinet_inc=yes],[netinet_inc=no])
1260
 
if test "$netinet_inc" = "no"
1261
 
then
1262
 
  AC_DEFINE([HAVE_BROKEN_NETINET_INCLUDES], [1], [Can netinet be included])
1263
 
fi
1264
 
AC_MSG_RESULT("$netinet_inc")
1265
 
 
1266
1119
AC_LANG_PUSH([C++])
1267
1120
AC_CHECK_HEADERS(cxxabi.h)
1268
1121
AC_CACHE_CHECK([checking for abi::__cxa_demangle], mysql_cv_cxa_demangle,
1281
1134
# Check for requested features
1282
1135
#--------------------------------------------------------------------
1283
1136
 
1284
 
DRIZZLE_CHECK_BIG_TABLES
1285
1137
DRIZZLE_CHECK_MAX_INDEXES
1286
1138
DRIZZLE_CHECK_VIO
1287
1139
 
1296
1148
AC_SUBST(mysql_plugin_dirs)
1297
1149
AC_SUBST(mysql_plugin_libs)
1298
1150
AC_SUBST(mysql_plugin_defs)
 
1151
AC_SUBST(DRIZZLED_PLUGIN_DEP_LIBS)
 
1152
 
1299
1153
 
1300
1154
AC_ARG_ENABLE([profiling],
1301
1155
    [AS_HELP_STRING([--enable-profiling],
1339
1193
    [ac_warn_strict_aliasing="$enableval"],
1340
1194
    [ac_warn_strict_aliasing="no"])
1341
1195
 
 
1196
AC_ARG_ENABLE([cast-warnings],
 
1197
    [AS_HELP_STRING([--enable-cast-warnings],
 
1198
       [Enable warnings about use of old C-style casts @<:@default=off@:>@])],
 
1199
    [ac_warn_cast="$enableval"],
 
1200
    [ac_warn_cast="no"])
 
1201
 
 
1202
AC_ARG_ENABLE([effective-style],
 
1203
    [AS_HELP_STRING([--enable-effective-style],
 
1204
       [Enable warnings violating Effective C++ Style Guidelines @<:@default=off@:>@])],
 
1205
    [ac_warn_effc="$enableval"],
 
1206
    [ac_warn_effc="no"])
 
1207
 
 
1208
AC_ARG_ENABLE([go-crazy],
 
1209
    [AS_HELP_STRING([--enable-go-crazy],
 
1210
       [Enables extra little warnings that might be too much @<:@default=off@:>@])],
 
1211
    [ac_warn_go_crazy="$enableval"],
 
1212
    [ac_warn_go_crazy="no"])
 
1213
 
 
1214
AC_ARG_ENABLE([datarace],
 
1215
    [AS_HELP_STRING([--enable-datarace],
 
1216
       [Enables Sun Studio data race detection @<:@default=off@:>@])],
 
1217
    [ac_datarace="$enableval"],
 
1218
    [ac_datarace="no"])
 
1219
 
1342
1220
 
1343
1221
if test "$GCC" = "yes"
1344
1222
then
1345
1223
 
 
1224
  if test "$ac_warn_fail" = "yes"
 
1225
  then
 
1226
    W_FAIL="-Werror"
 
1227
  fi
 
1228
  BASE_WARNINGS="-Wall -Wextra ${W_FAIL}"
 
1229
 
1346
1230
  if test "$ac_warn_longlong" = "yes"
1347
1231
  then
1348
1232
    W_LONGLONG="-Wlong-long"
1373
1257
 
1374
1258
  if test "$ac_warn_pedantic" = "yes"
1375
1259
  then
 
1260
    save_CXXFLAGS="${CXXFLAGS}"
 
1261
    CXXFLAGS="${CXXFLAGS} ${W_FAIL} -Wredundant-decls"
 
1262
    AC_CACHE_CHECK([whether it is safe to use -Wredundant-decls],
 
1263
      [ac_cv_safe_to_use_Wredundant_decls_],
 
1264
      [AC_LANG_PUSH(C++)
 
1265
       AC_COMPILE_IFELSE(
 
1266
         [AC_LANG_PROGRAM([
 
1267
template <typename E> struct C { void foo(); };
 
1268
template <typename E> void C<E>::foo() { }
 
1269
template <> void C<int>::foo();
 
1270
            AC_INCLUDES_DEFAULT])],
 
1271
          [ac_cv_safe_to_use_Wredundant_decls_=yes],
 
1272
          [ac_cv_safe_to_use_Wredundant_decls_=no])
 
1273
        AC_LANG_POP()])
 
1274
    if test $ac_cv_safe_to_use_Wredundant_decls_ = yes
 
1275
    then
 
1276
      GXX_W_REDUNDANT_DECLS="-Wredundant-decls"
 
1277
    else
 
1278
      GXX_W_REDUNDANT_DECLS="-Wno-redundant-decls"
 
1279
    fi
 
1280
    
1376
1281
    GCC_PEDANTIC="-pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls ${W_STRICT_ALIASING}"
1377
 
    GXX_PEDANTIC="-pedantic -Wundef -Wredundant-decls ${W_LONGLONG} ${W_STRICT_ALIASING}"
 
1282
    GXX_PEDANTIC="-pedantic -Wundef ${GXX_W_REDUNDANT_DECLS} ${W_LONGLONG} ${W_STRICT_ALIASING}"
 
1283
 
 
1284
    AC_CACHE_CHECK([whether __attribute__ visibility "hidden" is supported],
 
1285
      [ac_cv_can_use_hidden_],
 
1286
      [AC_LANG_PUSH(C++)
 
1287
       AC_COMPILE_IFELSE(
 
1288
         [AC_LANG_PROGRAM([
 
1289
          AC_INCLUDES_DEFAULT
 
1290
__attribute__((visibility ("hidden")))
 
1291
void testme() {  };],[
 
1292
     testme();])],  
 
1293
         [ac_cv_can_use_hidden_=yes],
 
1294
         [ac_cv_can_use_hidden_=no])
 
1295
       AC_LANG_POP()])
 
1296
    if test "$ac_cv_can_use_hidden_" = "yes"
 
1297
    then
 
1298
      AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
 
1299
                [Define to 1 if you have support for __attribute__((visibility("hidden")))])
 
1300
    fi
 
1301
 
 
1302
    CXXFLAGS="${save_CXXFLAGS}"
1378
1303
  fi
1379
1304
 
1380
1305
  if test "$ac_warn_unreachable" = "yes"
1381
1306
  then
1382
1307
    W_UNREACHABLE="-Wunreachable-code"
1383
1308
  fi
1384
 
 
1385
 
  if test "$ac_warn_fail" = "yes"
1386
 
  then
1387
 
    W_FAIL="-Werror"
1388
 
  fi
1389
 
 
1390
 
  BASE_WARNINGS="-W -Wall -Wextra"
1391
 
  GCC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${W_FAIL} ${GPROF_PROFILING} ${GPROF_COVERAGE}"
1392
 
  GXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${W_FAIL} ${GPROF_PROFILING} ${GPROF_COVERAGE}"
1393
 
 
1394
 
  AM_CXXFLAGS="${GXX_WARNINGS} ${AM_CXXFLAGS}"
1395
 
  AM_CFLAGS="${GCC_WARNINGS} ${AM_CFLAGS}"
1396
 
fi
 
1309
  if test "$ac_warn_cast" = "yes"
 
1310
  then
 
1311
    W_CAST="-Wold-style-cast"
 
1312
  fi
 
1313
 
 
1314
  if test "$ac_warn_effc" = "yes"
 
1315
  then
 
1316
    W_EFFC="-Weffc++"
 
1317
  fi
 
1318
 
 
1319
  if test "$ac_warn_gocrazy" = "yes"
 
1320
  then
 
1321
    W_CRAZY="-Wshadow -Wconversion -Winvalid-pch"
 
1322
  fi
 
1323
 
 
1324
  CC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CRAZY}"
 
1325
  CXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CAST} ${W_EFFC} ${W_CRAZY}"
 
1326
 
 
1327
  NO_EXCEPTIONS="-fno-exceptions"
 
1328
  W_EXCEPTIONS="-fexceptions"
 
1329
  NO_UNUSED_MACROS="-Wno-unused-macros"
 
1330
  NO_REDUNDANT_DECLS="-Wno-redundant-decls"
 
1331
  # Disable exceptions as they seams to create problems with gcc and threads.
 
1332
  # drizzled doesn't use run-time-type-checking, so we disable it.
 
1333
  AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"
 
1334
  CPPFLAGS="${CPPFLAGS} -fpch-deps"
 
1335
fi
 
1336
if test "$SUNCC" = "yes"
 
1337
then
 
1338
  if test "$ac_datarace" = "yes"
 
1339
  then
 
1340
    CFLAGS="${CFLAGS} -xinstrument=datarace"
 
1341
    CXXFLAGS="${CXXFLAGS} -xinstrument=datarace"
 
1342
  fi
 
1343
  CC_WARNINGS="-v -xc99=all -errtags=yes"
 
1344
  CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup -compat=5"
 
1345
  NO_EXCEPTIONS="-features=no%except"
 
1346
  W_EXCEPTIONS="-features=except"
 
1347
fi
 
1348
AM_CXXFLAGS="${CXX_WARNINGS} ${NO_EXCEPTIONS}  ${AM_CXXFLAGS}"
 
1349
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
 
1350
 
 
1351
AC_SUBST(NO_EXCEPTIONS)
 
1352
AC_SUBST(W_EXCEPTIONS)
 
1353
AC_SUBST(NO_UNUSED_MACROS)
 
1354
AC_SUBST(NO_REDUNDANT_DECLS)
1397
1355
 
1398
1356
AC_SUBST([GLOBAL_CPPFLAGS],['-I$(top_srcdir) -I$(top_builddir)'])
1399
1357
AC_SUBST([AM_CPPFLAGS],['${GLOBAL_CPPFLAGS}'])
1415
1373
esac
1416
1374
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
1417
1375
 
 
1376
AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
 
1377
 
 
1378
dnl GCC Precompiled Header Support
 
1379
dnl re-enable later
 
1380
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
 
1381
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
 
1382
 
1418
1383
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
1419
1384
 mystrings/Makefile storage/Makefile dnl
1420
 
 vio/Makefile po/Makefile.in dnl
 
1385
 po/Makefile.in dnl
1421
1386
 libdrizzle/Makefile client/Makefile dnl
1422
1387
 drizzled/Makefile dnl
1423
 
 drizzled/field/Makefile dnl
1424
1388
 drizzled/serialize/Makefile dnl
1425
1389
 drizzled/sql_builtin.cc dnl
1426
 
 drizzled/share/Makefile dnl
1427
1390
 support-files/Makefile dnl
1428
1391
 tests/Makefile tests/install_test_db dnl
1429
 
 drizzled/version.h plugin/Makefile dnl
 
1392
 plugin/Makefile dnl
1430
1393
 drizzled/drizzled_safe support-files/libdrizzle.pc dnl
1431
1394
 support-files/drizzle.server support-files/drizzle-log-rotate)
1432
1395
 
1436
1399
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS' AM_CFLAGS='$AM_CFLAGS' AM_CXXFLAGS='$AM_CXXFLAGS'")
1437
1400
 
1438
1401
AC_OUTPUT
 
1402
 
 
1403
echo "---"
 
1404
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
 
1405
echo ""
 
1406
echo "   * Installation prefix:       $prefix"
 
1407
echo "   * System type:               $SYSTEM_TYPE"
 
1408
echo "   * Host CPU:                  $host_cpu"
 
1409
echo "   * C Compiler:                $CC_VERSION"
 
1410
echo "   * C++ Compiler:              $CXX_VERSION"
 
1411
echo "   * Build auth_pam:            $ac_cv_header_security_pam_appl_h"
 
1412
echo "   * Assertions enabled:        $ac_cv_assert"
 
1413
echo "   * Debug enabled:             $with_debug"
 
1414
echo "   * Profiling enabled:         $ac_profiling"
 
1415
echo "   * Coverage enabled:          $ac_coverage"
 
1416
echo "   * Warnings as failure:       $ac_warn_fail"
 
1417
echo "   * C++ cstdint location:      $ac_cv_cxx_cstdint"
 
1418
echo "   * C++ hash_map location:     $ac_cv_cxx_hash_map"
 
1419
echo "   * C++ hash namespace:        $ac_cv_cxx_hash_namespace"
 
1420
echo "   * C++ cmath location:        $ac_cv_cxx_cmath"
 
1421
echo "   * C++ cmath namespace:       $ac_cv_cxx_cmath_namespace"
 
1422
echo ""
 
1423
echo "---"