summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-05 14:29:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:15 -0500
commitc91a27fd80a0c282b0668cb3a7a297173476b2cb (patch)
tree03676ce4e84980624ec0f020d24d0baa1c4949a5 /source4/lib
parentc2dfdbb64d19bd9520f194d472a4883c494b4c60 (diff)
downloadsamba-c91a27fd80a0c282b0668cb3a7a297173476b2cb.tar.gz
samba-c91a27fd80a0c282b0668cb3a7a297173476b2cb.tar.bz2
samba-c91a27fd80a0c282b0668cb3a7a297173476b2cb.zip
r18094: try to fix the samba4 build
metze (This used to be commit 3c00983e2cda2ea55585c25926014e7374d613ce)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/config.mk2
-rw-r--r--source4/lib/replace/samba.m427
2 files changed, 28 insertions, 1 deletions
diff --git a/source4/lib/replace/config.mk b/source4/lib/replace/config.mk
index 49a1e7fe1b..a05db5abad 100644
--- a/source4/lib/replace/config.mk
+++ b/source4/lib/replace/config.mk
@@ -14,6 +14,6 @@ OBJ_FILES = replace.o \
snprintf.o \
dlfcn.o \
getpass.o
-PUBLIC_DEPENDENCIES = REPLACE_READDIR DL
+PUBLIC_DEPENDENCIES = REPLACE_READDIR REPLACE_EXT
# End SUBSYSTEM LIBREPLACE
##############################
diff --git a/source4/lib/replace/samba.m4 b/source4/lib/replace/samba.m4
new file mode 100644
index 0000000000..6183b7e28f
--- /dev/null
+++ b/source4/lib/replace/samba.m4
@@ -0,0 +1,27 @@
+SAVE_LIBS="$LIBS"
+SAVE_CFLAGS="$CFLAGS"
+SAVE_CPPFLAGS="$CPPFLAGS"
+SAVE_LDFLAGS="$LDFLAGS"
+
+LIBS=""
+CFLAGS=""
+CPPFLAGS=""
+LDFLAGS=""
+
+m4_include(libreplace.m4)
+
+REPLACE_EXT_LIBS="$LIBS"
+REPLACE_EXT_CFLAGS="$CFLAGS"
+REPLACE_EXT_CPPFLAGS="$CPPFLAGS"
+REPLACE_EXT_LDFLAGS="$LDFLAGS"
+
+LIBS="$SAVE_LIBS"
+CFLAGS="$SAVE_CFLAGS"
+CPPFLAGS="$SAVE_CPPFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
+
+SMB_EXT_LIB(REPLACE_EXT,
+ [${REPLACE_EXT_LIBS}],
+ [${REPLACE_EXT_CFLAGS}],
+ [${REPLACE_EXT_CPPFLAGS}],
+ [${REPLACE_EXT_LDFLAGS}])