Line | |
---|
1 | AC_CHECK_FUNC(getpass, samba_cv_HAVE_GETPASS=yes)
|
---|
2 | AC_CHECK_FUNC(getpassphrase, samba_cv_HAVE_GETPASSPHRASE=yes)
|
---|
3 | if test x"$samba_cv_HAVE_GETPASS" = x"yes" -a x"$samba_cv_HAVE_GETPASSPHRASE" = x"yes"; then
|
---|
4 | AC_DEFINE(REPLACE_GETPASS_BY_GETPASSPHRASE, 1, [getpass returns <9 chars where getpassphrase returns <265 chars])
|
---|
5 | AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced])
|
---|
6 | LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
|
---|
7 | else
|
---|
8 |
|
---|
9 | AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
|
---|
10 | SAVE_CPPFLAGS="$CPPFLAGS"
|
---|
11 | CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
|
---|
12 | AC_TRY_COMPILE([
|
---|
13 | #include "confdefs.h"
|
---|
14 | #define _LIBREPLACE_REPLACE_H
|
---|
15 | #define REPLACE_GETPASS 1
|
---|
16 | #define main dont_declare_main
|
---|
17 | #include "$libreplacedir/getpass.c"
|
---|
18 | #undef main
|
---|
19 | ],[],samba_cv_REPLACE_GETPASS=yes,samba_cv_REPLACE_GETPASS=no)
|
---|
20 | CPPFLAGS="$SAVE_CPPFLAGS"
|
---|
21 | ])
|
---|
22 | if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
|
---|
23 | AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced])
|
---|
24 | LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
|
---|
25 | fi
|
---|
26 |
|
---|
27 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.