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 | |
---|
1 | AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
|
---|
2 | SAVE_CPPFLAGS="$CPPFLAGS"
|
---|
3 | CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
|
---|
4 | AC_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)
|
---|
12 | CPPFLAGS="$SAVE_CPPFLAGS"
|
---|
13 | ])
|
---|
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"
|
---|
17 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.