source: trunk-3.0/source/lib/replace/getpass.m4@ 101

Last change on this file since 101 was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 576 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.