summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-25 18:18:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:45 -0500
commit1254bdc86d3d09237aa982d3afa7322d3c5cbb4a (patch)
tree05a43696c91fd5b6d3ee35e7665a6cc427a690ad
parente2a5072b9676a3b39654ec8dcd30b575e9d87dfb (diff)
downloadsamba-1254bdc86d3d09237aa982d3afa7322d3c5cbb4a.tar.gz
samba-1254bdc86d3d09237aa982d3afa7322d3c5cbb4a.tar.bz2
samba-1254bdc86d3d09237aa982d3afa7322d3c5cbb4a.zip
r18905: I'm not really proud of this but I don't want to maintain
2 separate CPPFLAGS variables. So just cleanup the SAMBA_CPPFLAGS for out of tree builds. This has been tested locally and works. Maybe metze can find a better way tomorrow. (This used to be commit 8aa681df992b8f856f454673f95d4266aba4671c)
-rw-r--r--source3/configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 32af8700ca..db1822948f 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -238,7 +238,10 @@ SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/librpc"
SAMBA_CONFIGURE_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/popt"
-SAMBA_CPPFLAGS=`echo ${SAMBA_CPPFLAGS} | sed -e "s;${srcdir};\$\(srcdir\);g"`
+## cleanup the $(srcdir) in the Makefile if we are outside of the tree
+if test "x${srcdir-.}" != "x."; then
+ SAMBA_CPPFLAGS=`echo ${SAMBA_CPPFLAGS} | sed -e "s;${srcdir};\$\(srcdir\);g"`
+fi
AC_SUBST(configdir)
AC_SUBST(lockdir)