Files
xen/tools/m4/set_cflags_ldflags.m4
T
Roger Pau Monne cc6ba55e07 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>
2012-06-29 15:31:57 +01:00

21 lines
485 B
Plaintext

AC_DEFUN([AX_SET_FLAGS],
[for cppflag in $PREPEND_INCLUDES
do
PREPEND_CPPFLAGS="$PREPEND_CPPFLAGS -I$cppflag"
done
for ldflag in $PREPEND_LIB
do
PREPEND_LDFLAGS="$PREPEND_LDFLAGS -L$ldflag"
done
for cppflag in $APPEND_INCLUDES
do
APPEND_CPPFLAGS="$APPEND_CPPFLAGS -I$cppflag"
done
for ldflag in $APPEND_LIB
do
APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
done
CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS"
LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS"])