diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-12 08:29:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-12 08:52:03 +0200 |
commit | 0d307f25a051544047563a40de4df344c17f0d9f (patch) | |
tree | 5589966d7ef063f0169664fc426a5c300b0c4d7d /lib/replace/wscript | |
parent | e37b834a62a45c890cf05f208ffc077a1cf10d16 (diff) | |
download | samba-0d307f25a051544047563a40de4df344c17f0d9f.tar.gz samba-0d307f25a051544047563a40de4df344c17f0d9f.tar.bz2 samba-0d307f25a051544047563a40de4df344c17f0d9f.zip |
lib/replace/wscript: implement the same getpass detection logic as the autoconf version
metze
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 4 |
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', |