summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-10-13 13:37:52 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-10-13 08:58:35 +0200
commit5dcce64bbd64d1fbc81fa1135e77c87316691017 (patch)
treef05f5eb290be623e9f3ce663569fa4377dcff811 /lib/replace
parent88d997a63e93c4d0ed20e39a962d34b74c90b90c (diff)
downloadsamba-5dcce64bbd64d1fbc81fa1135e77c87316691017.tar.gz
samba-5dcce64bbd64d1fbc81fa1135e77c87316691017.tar.bz2
samba-5dcce64bbd64d1fbc81fa1135e77c87316691017.zip
config.h: define HAVE_LIBREPLACE
tdb2 wants to know if it should use replace.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Oct 13 08:58:35 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/libreplace.m42
-rw-r--r--lib/replace/wscript1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index d644e5062e..bc2993ad07 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -71,6 +71,8 @@ AC_CHECK_HEADERS(setjmp.h utime.h)
LIBREPLACE_PROVIDE_HEADER([stdint.h])
LIBREPLACE_PROVIDE_HEADER([stdbool.h])
+AC_DEFINE(HAVE_LIBREPLACE, 1, [We have libreplace])
+
AC_CHECK_TYPE(bool,
[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],,
[
diff --git a/lib/replace/wscript b/lib/replace/wscript
index c24d6e76b3..57b10a94cb 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -29,6 +29,7 @@ def configure(conf):
conf.env.standalone_replace = conf.IN_LAUNCH_DIR()
+ conf.DEFINE('HAVE_LIBREPLACE', 1)
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
# on Tru64 certain features are only available with _OSF_SOURCE set to 1