1AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[ 2SAVE_CPPFLAGS="$CPPFLAGS" 3CPPFLAGS="$CPPFLAGS -I$libreplacedir/" 4AC_TRY_COMPILE([ 5#include "confdefs.h" 6#define _LIBREPLACE_REPLACE_H 7#define REPLACE_GETPASS 1 8#define main dont_declare_main 9#include "$libreplacedir/getpass.c" 10#undef main 11],[],samba_cv_REPLACE_GETPASS=yes,samba_cv_REPLACE_GETPASS=no) 12CPPFLAGS="$SAVE_CPPFLAGS" 13]) 14if 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" 17fi 18