summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-23 07:28:09 +1000
committerAndrew Tridgell <tridge@samba.org>2010-08-23 15:55:38 +1000
commit0d7557e2dc489a16949451fa2372a206ffa055a6 (patch)
treeb4fa269cf777ae38c1693cba00cca3d899870b3f /lib/replace/wscript
parent6cf29b3e4f3880882eb7df45dbcfaf7bd2b8d9f4 (diff)
downloadsamba-0d7557e2dc489a16949451fa2372a206ffa055a6.tar.gz
samba-0d7557e2dc489a16949451fa2372a206ffa055a6.tar.bz2
samba-0d7557e2dc489a16949451fa2372a206ffa055a6.zip
libreplace: fixed the strptime() waf test
Thanks to Jelmer for pointing this out
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 9cdfd7f344..66b0e87d38 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -202,8 +202,9 @@ def configure(conf):
conf.DEFINE('HAVE_EPOLL', 1)
if not conf.CHECK_CODE('''#define LIBREPLACE_CONFIGURE_TEST_STRPTIME
- #include "$libreplacedir/test/strptime.c"''',
+ #include "test/strptime.c"''',
define='HAVE_STRPTIME',
+ addmain=False,
msg='Checking for working strptime'):
conf.DEFINE('REPLACE_STRPTIME', 1)
@@ -288,13 +289,6 @@ def configure(conf):
cflags=conf.env.VISIBILITY_CFLAGS,
define='HAVE_VISIBILITY_ATTR')
- if not conf.CHECK_CODE('''#define LIBREPLACE_CONFIGURE_TEST_STRPTIME
- #include "$libreplacedir/test/strptime.c"''',
- define='HAVE_STRPTIME',
- msg='Checking for working strptime'):
- conf.DEFINE('REPLACE_STRPTIME', 1)
-
-
# look for a method of finding the list of network interfaces
for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']:
if conf.CHECK_CODE('''