2
2
dnl Process this file with autoconf to produce a configure script.
4
dnl Copyright (C) 2009 Sun Microsystems, Inc.
4
dnl Copyright (C) 2009 Sun Microsystems
6
6
dnl This program is free software; you can redistribute it and/or modify
7
7
dnl it under the terms of the GNU General Public License as published by
20
20
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
21
21
dnl Version from the AC_INIT call below is overridden later
22
22
dnl So don't update it here
23
AC_INIT([drizzle7],[7],[http://bugs.launchpad.net/drizzle])
23
AC_INIT([drizzle],[7],[http://bugs.launchpad.net/drizzle])
24
24
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
25
25
AC_CONFIG_AUX_DIR([config])
27
PANDORA_CANONICAL_TARGET(less-warnings, require-cxx, force-gcc42, version-from-vc)
29
LIBDRIZZLE_LIBRARY_VERSION=1:0:0
33
# current:revision:age
35
# | | +- increment if interfaces have been added
36
# | | set to zero if interfaces have been
37
# | | removed or changed
38
# | +- increment if source code has changed
39
# | set to zero if current is incremented
40
# +- increment if interfaces have been added, removed or
42
AC_SUBST(LIBDRIZZLE_LIBRARY_VERSION)
44
# libdrizzle versioning when linked with GNU ld.
45
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
46
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
48
AC_SUBST(LD_VERSION_SCRIPT)
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, skip-visibility, version-from-vc)
50
29
dnl Set the default datadir location to /usr/local/var/drizzle. If a
51
30
dnl localstatedir is explicitly given, just use that.
57
36
AS_IF([test "x$GPERF" = "x"],
58
37
AC_MSG_ERROR("Drizzle requires gperf to build."))
60
# libexecinfo provides backtrace_symbols on FreeBSD
61
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
39
AC_CHECK_PROGS(YACC, ['bison -y'])
40
AS_IF([test "x$YACC" = "x" -a "$pandora_building_from_bzr" = "yes"],[
41
AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
63
46
PANDORA_REQUIRE_LIBPROTOBUF
64
47
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
82
63
AC_DEFINE([BUILDING_DRIZZLED],[1],
83
64
[Define indicating we are building and not consuming drizzle.])
85
PANDORA_HAVE_BOOST_TEST
86
PANDORA_HAVE_LIBSQLITE3
88
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
91
68
AC_ARG_WITH([server-suffix],
92
69
[AS_HELP_STRING([--with-server-suffix],
133
110
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
134
111
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
136
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
137
LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
141
AS_IF([test "x${ac_gcc_profile_mode}" = "xyes" -a "x${pandora_cv_boost_profile}" = "xyes"],[
142
AC_DEFINE([_GLIBCXX_PROFILE],[1],[Enable GCC Profile Mode])
146
113
AC_CONFIG_FILES(Makefile dnl
147
116
tests/Makefile dnl
148
117
drizzled/plugin/version.h dnl
149
support-files/drizzle7.pc dnl
150
support-files/libdrizzle.pc dnl
118
support-files/drizzle.server support-files/drizzle-log-rotate
151
119
support-files/smf/install.sh dnl
120
support-files/drizzle.spec dnl
152
121
support-files/smf/drizzle.xml dnl
153
122
support-files/smf/drizzle)