lib/replace/wscript: implement the same getpass detection logic as the autoconf version
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 06:29:53 +0000 (08:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 06:52:03 +0000 (08:52 +0200)
metze

lib/replace/wscript

index 7dbf468d1136e8838c339f6712dc4fa6b5d75330..43e8e9ac40473f45c3cce4dc568448bc3090ffae 100644 (file)
@@ -281,8 +281,8 @@ def configure(conf):
         # if we have both, then we prefer getpassphrase
         conf.DEFINE('REPLACE_GETPASS_BY_GETPASSPHRASE', 1)
         conf.DEFINE('REPLACE_GETPASS', 1)
-
-    conf.CHECK_CODE('''#include "getpass.c"
+    else:
+        conf.CHECK_CODE('''#include "getpass.c"
                        int main(void) { return 0; }''',
                     addmain=False,
                     define='REPLACE_GETPASS',