~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl -*- bash -*-
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
 
4
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
dnl  Copyright (C) 2009 Sun Microsystems
5
5
dnl
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])
26
26
 
27
 
PANDORA_CANONICAL_TARGET(less-warnings, require-cxx, force-gcc42, version-from-vc) 
 
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, version-from-vc, skip-visibility)
28
28
 
29
 
LIBDRIZZLE_LIBRARY_VERSION=1:0:0
 
29
LIBDRIZZLE_LIBRARY_VERSION=0:8:0
30
30
#                          | | |
31
31
#                   +------+ | +---+
32
32
#                   |        |     |
43
43
 
44
44
# libdrizzle versioning when linked with GNU ld.
45
45
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
46
 
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
 
46
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
47
47
  ])
48
48
AC_SUBST(LD_VERSION_SCRIPT)
49
49
 
 
50
 
50
51
dnl Set the default datadir location to /usr/local/var/drizzle. If a
51
52
dnl localstatedir is explicitly given, just use that.
52
53
AS_IF([test "x${localstatedir}" = 'x${prefix}/var'],[
57
58
AS_IF([test "x$GPERF" = "x"],
58
59
      AC_MSG_ERROR("Drizzle requires gperf to build."))
59
60
 
 
61
AC_CHECK_PROGS(YACC, ['bison -y'])
 
62
AS_IF([test "x$YACC" = "x" -a "$pandora_building_from_bzr" = "yes"],[
 
63
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
 
64
])
 
65
 
60
66
# libexecinfo provides backtrace_symbols on FreeBSD
61
67
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
62
68
 
 
69
PANDORA_RUN_CPPLINT
 
70
 
63
71
PANDORA_REQUIRE_LIBPROTOBUF
64
72
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
65
73
PANDORA_REQUIRE_PROTOC
73
81
PANDORA_REQUIRE_LIBDL
74
82
AC_LANG_POP
75
83
 
76
 
DRIZZLE_STACK_DIRECTION
77
 
 
78
84
PANDORA_USE_BETTER_MALLOC
79
85
 
80
86
PANDORA_DRIZZLE_BUILD
81
87
AC_DEFINE([BUILDING_DRIZZLED],[1],
82
88
          [Define indicating we are building and not consuming drizzle.])
83
89
 
84
 
PANDORA_HAVE_BOOST_TEST
 
90
PANDORA_HAVE_LIBGTEST
85
91
PANDORA_HAVE_LIBSQLITE3
86
92
 
87
93
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
132
138
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
133
139
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
134
140
 
135
 
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
136
 
  LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
137
 
  ])
138
 
 
139
 
WITH_VALGRIND
140
 
AS_IF([test "x${ac_gcc_profile_mode}" = "xyes" -a "x${pandora_cv_boost_profile}" = "xyes"],[
141
 
    AC_DEFINE([_GLIBCXX_PROFILE],[1],[Enable GCC Profile Mode])
142
 
    ])
143
 
 
144
 
 
145
141
AC_CONFIG_FILES(Makefile dnl
146
142
 tests/Makefile dnl
147
143
 drizzled/plugin/version.h dnl
148
 
 support-files/drizzle7.pc dnl
149
144
 support-files/libdrizzle.pc dnl
 
145
 support-files/drizzle.server support-files/drizzle-log-rotate
150
146
 support-files/smf/install.sh dnl
 
147
 support-files/drizzle.spec dnl
151
148
 support-files/smf/drizzle.xml dnl
152
149
 support-files/smf/drizzle)
153
150