summaryrefslogtreecommitdiff
path: root/lib/replace/samba.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-17 14:11:12 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-17 14:11:12 +0200
commit94855cd69248f0f90b6c828588afa012adc8bd45 (patch)
tree6a164679824d29f5e825d78720cc905c8982d8be /lib/replace/samba.m4
parent323346f7b01314bdec418d585fae236f736068fa (diff)
downloadsamba-94855cd69248f0f90b6c828588afa012adc8bd45.tar.gz
samba-94855cd69248f0f90b6c828588afa012adc8bd45.tar.bz2
samba-94855cd69248f0f90b6c828588afa012adc8bd45.zip
Move common libraries from root to lib/.
Diffstat (limited to 'lib/replace/samba.m4')
-rw-r--r--lib/replace/samba.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/replace/samba.m4 b/lib/replace/samba.m4
new file mode 100644
index 0000000000..07c4d38887
--- /dev/null
+++ b/lib/replace/samba.m4
@@ -0,0 +1,35 @@
+AC_LIBREPLACE_BROKEN_CHECKS
+AC_LIBREPLACE_NETWORK_CHECKS
+
+SMB_EXT_LIB(LIBREPLACE_EXT, [${LIBDL}])
+SMB_ENABLE(LIBREPLACE_EXT)
+
+SMB_EXT_LIB(LIBREPLACE_NETWORK, [${LIBREPLACE_NETWORK_LIBS}])
+SMB_ENABLE(LIBREPLACE_NETWORK)
+
+# remove leading ./
+LIBREPLACE_DIR=`echo ${libreplacedir} |sed -e 's/^\.\///g'`
+
+# remove leading srcdir .. we are looking for the relative
+# path within the samba source tree or wherever libreplace is.
+# We need to make sure the object is not forced to end up in
+# the source directory because we might be using a separate
+# build directory.
+LIBREPLACE_DIR=`echo ${LIBREPLACE_DIR} | sed -e "s|^$srcdir/||g"`
+
+LIBREPLACE_OBJS=""
+for obj in ${LIBREPLACEOBJ}; do
+ LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
+done
+
+SMB_SUBSYSTEM(LIBREPLACE,
+ [${LIBREPLACE_OBJS}],
+ [LIBREPLACE_EXT LIBREPLACE_NETWORK],
+ [-Ilib/replace])
+
+LIBREPLACE_HOSTCC_OBJS=`echo ${LIBREPLACE_OBJS} |sed -e 's/\.o/\.ho/g'`
+
+SMB_SUBSYSTEM(LIBREPLACE_HOSTCC,
+ [${LIBREPLACE_HOSTCC_OBJS}],
+ [],
+ [-Ilib/replace])