~mordred/drizzle/add-drizzle-namespace

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Brian Aker
  • Date: 2009-05-03 22:35:33 UTC
  • mfrom: (997.2.26 mordred)
  • Revision ID: brian@gaz-20090503223533-lv7lwqelv08dnv2j
Merge of Monty's code

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
 
5
dnl
 
6
dnl  This program is free software; you can redistribute it and/or modify
 
7
dnl  it under the terms of the GNU General Public License as published by
 
8
dnl  the Free Software Foundation; version 2 of the License.
 
9
dnl
 
10
dnl  This program is distributed in the hope that it will be useful,
 
11
dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
dnl  GNU General Public License for more details.
 
14
dnl
 
15
dnl  You should have received a copy of the GNU General Public License
 
16
dnl  along with this program; if not, write to the Free Software
 
17
dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 
 
19
 
4
20
AC_PREREQ(2.59)dnl              Minimum Autoconf version required.
5
21
 
6
22
m4_include(m4/bzr_version.m4)
200
216
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
201
217
fi
202
218
 
203
 
  isainfo_b=`isainfo -b`
 
219
AC_CHECK_PROGS(ISAINFO, [isainfo], [no])
 
220
AS_IF([test "x$ISAINFO" != "xno"],
 
221
      [isainfo_b=`isainfo -b`],
 
222
      [isainfo_b="x"])
204
223
 
205
224
# Build optimized or debug version ?
206
225
# First check for gcc and g++
248
267
 
249
268
  if test "x$use_additional" != "xyes"
250
269
  then
251
 
    LDFLAGS="${LDFLAGS} -L/usr/local/lib/${isainfo_b} -L/usr/local/lib -L/opt/csw/lib/${isainfo_b} -L/opt/csw/lib"
252
 
    CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/opt/csw/include"
 
270
    AS_IF([test "$isainfo_b" != "none"],[
 
271
      LDFLAGS="${LDFLAGS} -L/usr/local/lib/${isainfo_b} -L/usr/local/lib -L/opt/csw/lib/${isainfo_b} -L/opt/csw/lib"
 
272
      ],[
 
273
      LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/opt/csw/lib"
 
274
      ])
 
275
      CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/opt/csw/include"
253
276
  fi
254
 
  LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_b}"
 
277
  AS_IF([test "$isainfo_b" != "none"],
 
278
        [LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_b}"])
255
279
 
256
280
  CXXFLAGS="-xlang=c99 -g -mt -compat=5 -library=stlport4 -template=no%extdef ${IS_64} ${MEMALIGN_FLAGS} ${CXXFLAGS}"
257
281
  CFLAGS="-g -mt -xc99=all ${IS_64} ${MEMALIGN_FLAGS} ${CFLAGS}"
732
756
# For the sched_yield() function on Solaris
733
757
AC_CHECK_FUNC(sched_yield, [],
734
758
  [AC_CHECK_LIB(posix4, [sched_yield],
735
 
    [AC_DEFINE(HAVE_SCHED_YIELD) LIBS="$LIBS -lposix4"])])
 
759
    [AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield function]) LIBS="$LIBS -lposix4"])])
736
760
 
737
761
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
738
762
then
1105
1129
# functions tested above
1106
1130
#--------------------------------------------------------------------
1107
1131
 
1108
 
DRIZZLE_CONFIGURE_PLUGINS([none])
 
1132
m4_include(config/plugin.ac)
 
1133
dnl Add code here to read set plugin lists and  set drizzled_default_plugin_list
 
1134
AC_DEFINE_UNQUOTED([DRIZZLED_PLUGIN_LIST],[$drizzled_default_plugin_list],
 
1135
                   [List of plugins that should be loaded on startup if no
 
1136
                    value is given for --plugin-load])
 
1137
 
 
1138
drizzled_builtin_list=`echo $drizzled_builtin_list | sed 's/, *$//'`
 
1139
AC_DEFINE_UNQUOTED([DRIZZLED_BUILTIN_LIST],[$drizzled_builtin_list],
 
1140
                   [List of plugins to be loaded in sql_builtin.cc])
 
1141
AC_SUBST(drizzled_plugin_libs)
1109
1142
 
1110
1143
AC_SUBST(mysql_plugin_dirs)
1111
1144
AC_SUBST(mysql_plugin_libs)
1368
1401
      AC_LANG_PROGRAM(
1369
1402
        [[
1370
1403
__attribute__((visibility ("hidden")))
1371
 
void testme() {  };
 
1404
void testme() {  }
1372
1405
        ]],[[testme()]]
1373
1406
      )],  
1374
1407
      [ac_cv_can_use_hidden_=yes],
1402
1435
 
1403
1436
AC_CONFIG_FILES(Makefile dnl
1404
1437
 gnulib/Makefile dnl
1405
 
 storage/Makefile dnl
1406
1438
 po/Makefile.in dnl
 
1439
 drizzled/message/Makefile dnl
1407
1440
 drizzled/Makefile dnl
1408
 
 drizzled/message/Makefile dnl
1409
 
 drizzled/sql_builtin.cc dnl
1410
1441
 support-files/Makefile dnl
1411
1442
 tests/Makefile tests/install_test_db dnl
1412
 
 plugin/Makefile dnl
1413
1443
 drizzled/drizzled_safe dnl
1414
1444
 support-files/drizzle.server support-files/drizzle-log-rotate)
1415
1445