~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Merged in build changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
AC_PREREQ(2.59)dnl              Minimum Autoconf version required.
5
5
 
6
 
AC_INIT(drizzle, [7.0.0], [http://bugs.launchpad.net/drizzle])
 
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])
104
104
# Set this for plugins to use
105
105
ac_build_drizzle="yes"
106
106
 
 
107
# We need to hack in some of the non-standard locations that solaris sticks
 
108
# stuff in. This makes me very sad. This hack also has to happen _after_
 
109
# the gettext checks, otherwise we break OpenSolaris.
 
110
case "$host_os" in
 
111
  solaris*)
 
112
    CPPFLAGS="${CPPFLAGS} -I/opt/csw/include -I/opt/local/include"
 
113
    LDFLAGS="${LDFLAGS} -L/opt/csw/lib -L/opt/csw/lib"
 
114
    ;;
 
115
esac
 
116
 
107
117
 
108
118
# Canonicalize the configuration name.
109
119
 
220
230
# We use libtool
221
231
AC_PROG_LIBTOOL
222
232
 
223
 
# Ensure that we have --preserve-dup-deps defines, otherwise we get link
224
 
# problems of 'mysql' with CXX=g++
225
 
LIBTOOL="$LIBTOOL --preserve-dup-deps"
226
 
AC_SUBST(LIBTOOL)dnl
227
 
 
228
233
AC_SUBST(NM)dnl
229
234
 
230
235
AC_PROG_INSTALL
244
249
fi
245
250
 
246
251
 
247
 
# We need to hack in some of the non-standard locations that solaris sticks
248
 
# stuff in. This makes me very sad.
249
 
case "$host_os" in
250
 
  solaris*)
251
 
    CPPFLAGS="${CPPFLAGS} -I/opt/csw/include -I/opt/local/include"
252
 
    LDFLAGS="${LDFLAGS} -L/opt/csw/lib -L/opt/csw/lib"
253
 
    ;;
254
 
esac
255
 
 
256
252
# The following is required for portable results of floating point calculations
257
253
# on PowerPC. The same must also be done for IA-64, but this options is missing
258
254
# in the IA-64 gcc backend.
486
482
# Check for libpcre
487
483
#--------------------------------------------------------------------
488
484
 
489
 
AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
490
 
AS_IF([test "x$ac_cv_libpcre" = "xno"],
491
 
      AC_MSG_ERROR([libpcre is required for Drizzle]))
 
485
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
 
486
PKG_CHECK_MODULES(PCRE, [libpcre >= 3], [found_pcre="yes"],[found_pcre="no"])
 
487
 
 
488
if test "$found_pcre" = "no"
 
489
then
 
490
  save_LIBS="${LIBS}"
 
491
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
 
492
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
 
493
        AC_MSG_ERROR([libpcre is required for Drizzle]))
 
494
  PCRE_LIBS="${LTLIBPCRE}"
 
495
  LIBS="${save_LIBS}"
 
496
fi
 
497
AC_SUBST(PCRE_LIBS)
 
498
AC_SUBST(PCRE_CFLAGS)
 
499
 
492
500
 
493
501
dnl Find paths to some shell programs
494
502
AC_PATH_PROG(LN, ln, ln)
871
879
DRIZZLE_CHECK_GETPW_FUNCS
872
880
DRIZZLE_HAVE_TIOCGWINSZ
873
881
DRIZZLE_HAVE_TIOCSTAT
874
 
DRIZZLE_TYPE_SIGHANDLER
875
882
 
876
883
#########################################################################
877
884
 
878
885
dnl Checks for library functions.
879
886
 
880
 
#
881
 
# The following code disables intrinsic function support while we test for
882
 
# library functions.  This is to avoid configure problems with Intel ecc
883
 
# compiler
884
 
 
885
 
ORG_CFLAGS="$CFLAGS"
886
 
if test "$GCC" != "yes"; then
887
 
  AC_SYS_COMPILER_FLAG(-nolib_inline,nolib_inline,CFLAGS,[],[])
888
 
fi
889
 
 
890
 
#AC_FUNC_MMAP
891
 
AC_TYPE_SIGNAL
892
 
DRIZZLE_TYPE_QSORT
893
887
AC_FUNC_UTIME_NULL
894
888
AC_FUNC_VPRINTF
895
889
 
1291
1285
 
1292
1286
  NO_EXCEPTIONS="-fno-exceptions"
1293
1287
  W_EXCEPTIONS="-fexceptions"
1294
 
  NO_UNUSED_MACROS="-Wno-unused-macros"
1295
1288
  NO_REDUNDANT_DECLS="-Wno-redundant-decls"
1296
1289
  # Disable exceptions as they seams to create problems with gcc and threads.
1297
1290
  # drizzled doesn't use run-time-type-checking, so we disable it.
1315
1308
 
1316
1309
AC_SUBST(NO_EXCEPTIONS)
1317
1310
AC_SUBST(W_EXCEPTIONS)
1318
 
AC_SUBST(NO_UNUSED_MACROS)
1319
1311
AC_SUBST(NO_REDUNDANT_DECLS)
1320
1312
 
1321
1313
AC_SUBST([GLOBAL_CPPFLAGS],['-I$(top_srcdir) -I$(top_builddir)'])