summaryrefslogtreecommitdiff
path: root/source4/lib/replace/getpass.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-12 07:05:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:26 -0500
commit68201cc76b430c1122c0f3c665c9af649ba54311 (patch)
tree4072c4ecdd179f562d4c60cac37b8ad8986341d2 /source4/lib/replace/getpass.m4
parent566466319e3113ab872499c2ed7eb430ac2260ab (diff)
downloadsamba-68201cc76b430c1122c0f3c665c9af649ba54311.tar.gz
samba-68201cc76b430c1122c0f3c665c9af649ba54311.tar.bz2
samba-68201cc76b430c1122c0f3c665c9af649ba54311.zip
r18419: fix include paths of the configure tests
metze (This used to be commit 8774eeb0dc8a72a9871d42bf1652ce4f7d4a29b7)
Diffstat (limited to 'source4/lib/replace/getpass.m4')
-rw-r--r--source4/lib/replace/getpass.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/replace/getpass.m4 b/source4/lib/replace/getpass.m4
index d66be30564..3f008bbf4e 100644
--- a/source4/lib/replace/getpass.m4
+++ b/source4/lib/replace/getpass.m4
@@ -1,11 +1,12 @@
AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
SAVE_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
+CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
AC_TRY_COMPILE([
+#include "confdefs.h"
+#define _LIBREPLACE_REPLACE_H
#define REPLACE_GETPASS 1
-#define NO_CONFIG_H 1
#define main dont_declare_main
-#include "${srcdir-.}/lib/replace/getpass.c"
+#include "$libreplacedir/getpass.c"
#undef main
],[],samba_cv_REPLACE_GETPASS=yes,samba_cv_REPLACE_GETPASS=no)
CPPFLAGS="$SAVE_CPPFLAGS"