diff options
author | Julien Cristau <jcristau@debian.org> | 2013-08-12 14:45:04 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-12 22:42:18 +0100 |
commit | b2df6cc8f0bcac6311f2b1d0c008add9b7d05787 (patch) | |
tree | 8302c86292bdcc801cde564c92ed3d38facf58cb /configure.ac | |
parent | d661332de946c356c10a75e29a48f2c2e3599fec (diff) |
configure: use CPPFLAGS for xaa.h check, not CFLAGS
CFLAGS aren't passed to the preprocessor, which then can't find the
header.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 318863e9..43c33ebc 100644 --- a/configure.ac +++ b/configure.ac @@ -263,10 +263,10 @@ AC_ARG_ENABLE(xaa, [XAA="$enableval"], [XAA=auto]) if test "x$XAA" != xno; then - save_CFLAGS=$CFLAGS - CFLAGS=$XORG_CFLAGS + save_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$XORG_CFLAGS AC_CHECK_HEADERS([xaa.h], XAA=yes, XAA=no) - CFLAGS=$save_CFLAGS + CPPFLAGS=$save_CPPFLAGS fi AC_MSG_CHECKING([whether to include XAA support]) AM_CONDITIONAL(XAA, test "x$XAA" = xyes) |