diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-06-29 15:31:57 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-06-29 15:31:57 +0100 |
commit | cc6ba55e078df848b5fccc366f19388549f128c5 (patch) | |
tree | bb37f5b9d9bdacedf834126f5b35571ec40cbd52 /tools/configure | |
parent | 65f28015b498ab0e58e3f2d381f761a774d691fc (diff) | |
download | xen-cc6ba55e078df848b5fccc366f19388549f128c5.tar.gz xen-cc6ba55e078df848b5fccc366f19388549f128c5.tar.bz2 xen-cc6ba55e078df848b5fccc366f19388549f128c5.zip |
autoconf: correctly parse *_INCLUDES and *_LIB env vars
Parse those options correctly, since the "+=" operator is not valid.
Also added CPPFLAGS, so headers checks don't give strange results.
Please rerun configure after applying.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Cc: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/configure b/tools/configure index 4a37fe60f9..5a156145e8 100755 --- a/tools/configure +++ b/tools/configure @@ -2594,23 +2594,23 @@ debug=$ax_cv_debug -for cflag in $PREPEND_INCLUDES +for cppflag in $PREPEND_INCLUDES do - PREPEND_CFLAGS+=" -I$cflag" + PREPEND_CPPFLAGS="$PREPEND_CPPFLAGS -I$cppflag" done for ldflag in $PREPEND_LIB do - PREPEND_LDFLAGS+=" -L$ldflag" + PREPEND_LDFLAGS="$PREPEND_LDFLAGS -L$ldflag" done -for cflag in $APPEND_INCLUDES +for cppflag in $APPEND_INCLUDES do - APPEND_CFLAGS+=" -I$cflag" + APPEND_CPPFLAGS="$APPEND_CPPFLAGS -I$cppflag" done for ldflag in $APPEND_LIB do - APPEND_LDFLAGS+=" -L$ldflag" + APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag" done -CFLAGS="$PREPEND_CFLAGS $CFLAGS $APPEND_CFLAGS" +CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS" LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS" |