summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-06-01 11:19:40 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-06-01 11:19:40 +0000
commit0bfc8c57ca2f3c5e8f56e12604eb94e1dc47ec9f (patch)
tree21e5f7f65f51e47ab501506e005b1143f8d08f33
parent36652d00535c340fe33a8b170b8317204402e876 (diff)
downloadmariadb-git-0bfc8c57ca2f3c5e8f56e12604eb94e1dc47ec9f.tar.gz
various ndb make changes, see respective file
BitKeeper/deleted/.del-Makefile.am~d4e228ebd21fc066: Delete: ndb/include/Makefile.am acinclude.m4: static linking of ndbclient into mysqld configure.in: removed ndb/include/Makefile.am + fixed conditional compile of ndb shm, sci ndb/Makefile.am: dist-hook for make distdir in ndb ndb/config/type_ndbapitest.mk.am: use of libndbclient.so in testprograms ndb/config/type_ndbapitools.mk.am: static linking to binary distributed ndb tools ndb/src/Makefile.am: enable libndbclient.so ndb/src/common/transporter/Makefile.am: added support for optional inclusion of shared mem and sci in ndb transporter ndb/tools/Makefile.am: new type for tools which should be statically linked with libndbclient BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
-rw-r--r--BitKeeper/etc/logging_ok1
-rw-r--r--acinclude.m42
-rw-r--r--configure.in14
-rw-r--r--ndb/Makefile.am20
-rw-r--r--ndb/config/type_ndbapitest.mk.am1
-rw-r--r--ndb/config/type_ndbapitools.mk.am5
-rw-r--r--ndb/include/Makefile.am5
-rw-r--r--ndb/src/Makefile.am2
-rw-r--r--ndb/src/common/transporter/Makefile.am20
-rw-r--r--ndb/tools/Makefile.am2
10 files changed, 41 insertions, 31 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
index bfc8132bdee..8df4f7049c5 100644
--- a/BitKeeper/etc/logging_ok
+++ b/BitKeeper/etc/logging_ok
@@ -168,6 +168,7 @@ tom@basil-firewall.home.com
tomas@mc05.(none)
tomas@poseidon.(none)
tomas@poseidon.bredbandsbolaget.se
+tomas@poseidon.ndb.mysql.com
tonu@hundin.mysql.fi
tonu@volk.internalnet
tonu@x153.internalnet
diff --git a/acinclude.m4 b/acinclude.m4
index e42430806e0..a7f8c92038d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1397,7 +1397,7 @@ AC_DEFUN([MYSQL_CHECK_NDBCLUSTER], [
AC_DEFINE(HAVE_NDBCLUSTER_DB)
have_ndbcluster="yes"
ndbcluster_includes="-I../ndb/include -I../ndb/include/ndbapi"
- ndbcluster_libs="\$(top_builddir)/ndb/src/libndbclient.la"
+ ndbcluster_libs="\$(top_builddir)/ndb/src/.libs/libndbclient.a"
ndbcluster_system_libs=""
MYSQL_CHECK_NDB_OPTIONS
;;
diff --git a/configure.in b/configure.in
index 87b2862d5e3..b1234721354 100644
--- a/configure.in
+++ b/configure.in
@@ -2919,8 +2919,16 @@ AC_SUBST(mgmapiincludedir)
AC_SUBST(NDB_NDBAPICLIENT_INCLUDES)
AC_SUBST(NDB_MGMAPICLIENT_INCLUDES)
-AM_CONDITIONAL(HAVE_NDB_SHM, test X"$have_ndb_shm" = Xyes)
-AM_CONDITIONAL(HAVE_NDB_SCI, test X"$have_ndb_sci" = Xyes)
+ndb_transporter_opt_objs=""
+if test X"$have_ndb_shm" = Xyes
+then
+ ndb_transporter_opt_objs="$(ndb_transporter_opt_objs) SHM_Transporter.lo SHM_Transporter.unix.lo"
+fi
+if test X"$have_ndb_sci" = Xyes
+then
+ ndb_transporter_opt_objs="$(ndb_transporter_opt_objs) SCI_Transporter.lo"
+fi
+AC_SUBST(ndb_transporter_opt_objs)
#NDB_TYPE_COMMON="include \$(top_srcdir)/ndb/config/common.mk.am"
#NDB_TYPE_NDBAPI="include \$(top_srcdir)/ndb/config/type_ndbapi.mk.am"
@@ -2937,7 +2945,7 @@ AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
# Output results
AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl
- ndb/Makefile ndb/include/Makefile ndb/src/Makefile ndb/src/common/Makefile dnl
+ ndb/Makefile ndb/src/Makefile ndb/src/common/Makefile dnl
ndb/tools/Makefile dnl
ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile dnl
ndb/src/common/portlib/Makefile ndb/src/common/portlib/unix/Makefile dnl
diff --git a/ndb/Makefile.am b/ndb/Makefile.am
index c83c9f1fa48..27274ec1eb2 100644
--- a/ndb/Makefile.am
+++ b/ndb/Makefile.am
@@ -1,7 +1,4 @@
-## find * -name '*.hpp' -print | grep -v SCCS | grep -v odbc | sed 's/\.hpp/\.hpp \\/' > tmp.out
-## find * -name '*.h' -print | grep -v SCCS | grep -v odbc | sed 's/\.h/\.h \\/' >> tmp.out
-
-SUBDIRS = . include src test tools
+SUBDIRS = src test tools .
ndbinclude_HEADERS = \
include/ndb_types.h \
@@ -31,4 +28,17 @@ mgmapiinclude_HEADERS = \
include/mgmapi/mgmapi.h \
include/mgmapi/mgmapi_debug.h
-noinst_HEADERS =
+EXTRA_DIST = include
+
+dist-hook:
+ -rm -rf `find $(distdir) -type d -name SCCS`
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" != "."; then \
+ files="`find $$subdir -name '*\.h'` `find $$subdir -name '*\.hpp'`"; \
+ for f in $$files; do \
+ if test -d "$(distdir)/`dirname $$f`" -a ! -e "$(distdir)/$$f"; then \
+ cp $$f $(distdir)/$$f; \
+ fi; \
+ done; \
+ fi; \
+ done
diff --git a/ndb/config/type_ndbapitest.mk.am b/ndb/config/type_ndbapitest.mk.am
index 02288d06c2c..8aa92ceb6a7 100644
--- a/ndb/config/type_ndbapitest.mk.am
+++ b/ndb/config/type_ndbapitest.mk.am
@@ -1,4 +1,5 @@
+AM_LDFLAGS = -rpath @ndblibdir@
LDADD += $(top_srcdir)/ndb/test/src/libNDBT.a \
$(top_srcdir)/ndb/src/libndbclient.la
diff --git a/ndb/config/type_ndbapitools.mk.am b/ndb/config/type_ndbapitools.mk.am
new file mode 100644
index 00000000000..ac302ae9eb4
--- /dev/null
+++ b/ndb/config/type_ndbapitools.mk.am
@@ -0,0 +1,5 @@
+
+LDADD += $(top_srcdir)/ndb/test/src/libNDBT.a \
+ $(top_srcdir)/ndb/src/.libs/libndbclient.a
+
+INCLUDES += @NDB_NDBAPITEST_INCLUDES@
diff --git a/ndb/include/Makefile.am b/ndb/include/Makefile.am
deleted file mode 100644
index 5521035a479..00000000000
--- a/ndb/include/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-
-noinst_HEADERS =
-
-# Don't update the files from bitkeeper
-%::SCCS/s.%
diff --git a/ndb/src/Makefile.am b/ndb/src/Makefile.am
index 2999c617a06..08c5624038f 100644
--- a/ndb/src/Makefile.am
+++ b/ndb/src/Makefile.am
@@ -14,3 +14,5 @@ libndbclient_la_LIBADD = \
$(top_srcdir)/ndb/src/common/logger/liblogger.la \
$(top_srcdir)/ndb/src/common/portlib/unix/libportlib.la \
$(top_srcdir)/ndb/src/common/util/libgeneral.la
+
+AM_LDFLAGS = -rpath @ndblibdir@
diff --git a/ndb/src/common/transporter/Makefile.am b/ndb/src/common/transporter/Makefile.am
index 36411b99661..218b261606d 100644
--- a/ndb/src/common/transporter/Makefile.am
+++ b/ndb/src/common/transporter/Makefile.am
@@ -1,8 +1,6 @@
noinst_LTLIBRARIES = libtransporter.la
-#libtransporter_la_SOURCES = @NDB_TRANSPORTER_SOURCES@
-
libtransporter_la_SOURCES = \
Transporter.cpp \
SendBuffer.cpp \
@@ -10,20 +8,10 @@ libtransporter_la_SOURCES = \
TransporterRegistry.cpp \
Packer.cpp
-#libtransporter_la_SOURCES = \
-# Transporter.cpp \
-# SendBuffer.cpp \
-# TCP_Transporter.cpp \
-# TransporterRegistry.cpp \
-# Packer.cpp
-#
-#if HAVE_NDB_SHM
-# libtransporter_la_SOURCES += SHM_Transporter.cpp SHM_Transporter.unix.cpp
-#endif
-#
-#if HAVE_NDB_SCI
-# libtransporter_la_SOURCES += SCI_Transporter.cpp
-#endif
+EXTRA_libtransporter_la_SOURCES = SHM_Transporter.cpp SHM_Transporter.unix.cpp SCI_Transporter.cpp
+
+libtransporter_la_LIBADD = @ndb_transporter_opt_objs@
+libtransporter_la_DEPENDENCIES = @ndb_transporter_opt_objs@
INCLUDES_LOC = -I$(top_srcdir)/ndb/include/kernel -I$(top_srcdir)/ndb/include/transporter
diff --git a/ndb/tools/Makefile.am b/ndb/tools/Makefile.am
index 89937642f13..caaf0580650 100644
--- a/ndb/tools/Makefile.am
+++ b/ndb/tools/Makefile.am
@@ -11,7 +11,7 @@ select_all_SOURCES = select_all.cpp
select_count_SOURCES = select_count.cpp
include $(top_srcdir)/ndb/config/common.mk.am
-include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
+include $(top_srcdir)/ndb/config/type_ndbapitools.mk.am
# Don't update the files from bitkeeper
%::SCCS/s.%