diff options
author | unknown <tim@threads.polyesthetic.msg> | 2001-02-19 20:13:17 -0500 |
---|---|---|
committer | unknown <tim@threads.polyesthetic.msg> | 2001-02-19 20:13:17 -0500 |
commit | fc58b42fbfa0f0381efc68e5dd0f5e83f75500c1 (patch) | |
tree | 3e16ad05aae1c1841b1980db8b815b2f3f44ff94 /acinclude.m4 | |
parent | dc7eafea57a321c92716b5b84c574a0347ade74f (diff) | |
download | mariadb-git-fc58b42fbfa0f0381efc68e5dd0f5e83f75500c1.tar.gz |
Portability and bug fixes for Innobase.
Add --with-innobase-db to configure.
acconfig.h:
HAVE_INNOBASE_DB
acinclude.m4:
add MYSQL_CHECK_INNOBASE
configure.in:
use MYSQL_CHECK_INNOBASE and configure innobase directory
innobase/configure.in:
add AM_MAINTAINER_MODE
innobase/include/lock0types.h:
define lock_t
innobase/include/os0file.h:
define S_IRWX[UGO] if needed
innobase/include/os0sync.h:
use pthread_cond_t instead of mutex
innobase/include/sync0types.h:
define mutex_t
innobase/os/os0sync.c:
use pthread_cond_t instead of mutex
sql/Makefile.am:
add @innobase_{includes,libs}@
sql/ha_innobase.cc:
fix casts
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index dedcdce3cc8..1806b1fc418 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -849,6 +849,83 @@ dnl END OF MYSQL_CHECK_BDB SECTION dnl --------------------------------------------------------------------------- dnl --------------------------------------------------------------------------- +dnl Macro: MYSQL_CHECK_INNOBASE +dnl Sets HAVE_INNOBASE_DB if --with-innobase-db is used +dnl --------------------------------------------------------------------------- + +AC_DEFUN([MYSQL_CHECK_INNOBASE], [ + AC_ARG_WITH([innobase-db], + [\ + --with-innobase-db Use Innobase DB], + [innobase="$withval"], + [innobase=no]) + + AC_MSG_CHECKING([for Innobase DB]) + + have_innobase_db=no + innobase_includes= + innobase_libs= + case "$innobase" in + yes ) + AC_MSG_RESULT([Using Innobase DB]) + AC_DEFINE(HAVE_INNOBASE_DB) + have_innobase_db="yes" + innobase_includes="-I../innobase/include" +dnl Some libs are listed several times, in order for gcc to sort out +dnl circular references. + innobase_libs="\ + ../innobase/usr/libusr.a\ + ../innobase/odbc/libodbc.a\ + ../innobase/srv/libsrv.a\ + ../innobase/que/libque.a\ + ../innobase/dict/libdict.a\ + ../innobase/ibuf/libibuf.a\ + ../innobase/row/librow.a\ + ../innobase/pars/libpars.a\ + ../innobase/btr/libbtr.a\ + ../innobase/trx/libtrx.a\ + ../innobase/read/libread.a\ + ../innobase/usr/libusr.a\ + ../innobase/buf/libbuf.a\ + ../innobase/ibuf/libibuf.a\ + ../innobase/eval/libeval.a\ + ../innobase/log/liblog.a\ + ../innobase/fsp/libfsp.a\ + ../innobase/fut/libfut.a\ + ../innobase/fil/libfil.a\ + ../innobase/lock/liblock.a\ + ../innobase/mtr/libmtr.a\ + ../innobase/page/libpage.a\ + ../innobase/rem/librem.a\ + ../innobase/thr/libthr.a\ + ../innobase/com/libcom.a\ + ../innobase/sync/libsync.a\ + ../innobase/data/libdata.a\ + ../innobase/mach/libmach.a\ + ../innobase/ha/libha.a\ + ../innobase/dyn/libdyn.a\ + ../innobase/mem/libmem.a\ + ../innobase/sync/libsync.a\ + ../innobase/ut/libut.a\ + ../innobase/os/libos.a\ + ../innobase/ut/libut.a" + + AC_CHECK_LIB(rt, aio_read, [innobase_libs="$innobase_libs -lrt"]) + ;; + * ) + AC_MSG_RESULT([Not using Innobase DB]) + ;; + esac + + AC_SUBST(innobase_includes) + AC_SUBST(innobase_libs) +]) + +dnl --------------------------------------------------------------------------- +dnl END OF MYSQL_CHECK_INNOBASE SECTION +dnl --------------------------------------------------------------------------- + +dnl --------------------------------------------------------------------------- dnl Got this from the GNU tar 1.13.11 distribution dnl by Paul Eggert <eggert@twinsun.com> dnl --------------------------------------------------------------------------- |