1 AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
2 SAVE_CPPFLAGS="$CPPFLAGS"
3 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
6 #define _LIBREPLACE_REPLACE_H
7 #define REPLACE_GETPASS 1
8 #define main dont_declare_main
9 #include "$libreplacedir/getpass.c"
11 ],[],samba_cv_REPLACE_GETPASS=yes,samba_cv_REPLACE_GETPASS=no)
12 CPPFLAGS="$SAVE_CPPFLAGS"
14 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
15 AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced])
16 LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"