summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-12 08:29:53 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-12 08:52:03 +0200
commit0d307f25a051544047563a40de4df344c17f0d9f (patch)
tree5589966d7ef063f0169664fc426a5c300b0c4d7d
parente37b834a62a45c890cf05f208ffc077a1cf10d16 (diff)
downloadsamba-0d307f25a051544047563a40de4df344c17f0d9f.tar.gz
samba-0d307f25a051544047563a40de4df344c17f0d9f.tar.bz2
samba-0d307f25a051544047563a40de4df344c17f0d9f.zip
lib/replace/wscript: implement the same getpass detection logic as the autoconf version
metze
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 7dbf468d11..43e8e9ac40 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -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',