summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace')
-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('''