summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-23 17:14:43 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-23 09:29:18 +0200
commitdebb2b2b9e9a495b0f9f31753ac5e75e4b2d5364 (patch)
tree44514ee35ca208c7ea865f63019a4ed36771f561 /lib/replace/wscript
parent60a06ff09cb62d4102a89194ce8fef5c4c5a2f16 (diff)
downloadsamba-debb2b2b9e9a495b0f9f31753ac5e75e4b2d5364.tar.gz
samba-debb2b2b9e9a495b0f9f31753ac5e75e4b2d5364.tar.bz2
samba-debb2b2b9e9a495b0f9f31753ac5e75e4b2d5364.zip
lib/replace: Fix detection of rpcsrv/yp_prot.h on FreeBSD
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 732c664b6e..a31afa6ce3 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -89,7 +89,10 @@ struct foo bar = { .y = 'X', .x = 1 };
conf.CHECK_HEADERS('rpcsvc/nis.h rpcsvc/ypclnt.h sys/prctl.h sys/sysctl.h')
conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
- conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h rpcsvc/yp_prot.h')
+ conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
+
+ conf.CHECK_CODE('', headers='rpc/rpc.h rpcsvc/yp_prot.h', define='HAVE_RPCSVC_YP_PROT_H')
+
conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h')
conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h')