From a2d12914af20e8644b059a54192a90da6ddc9f06 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Thu, 15 Mar 2012 13:10:20 +0100 Subject: [PATCH] configure: Keep passed-in CFLAGS for DRI tests When the user passes extra CFLAGS and CPPFLAGS to the configure script, they should be kept when performing subsequent checks with additional flags. This is required to properly build in cross-compilation setups where the user may pass in flags like --sysroot in order to pick up the cross-built dependencies. Signed-off-by: Thierry Reding --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 03a35bd..7ca3075 100644 --- a/configure.ac +++ b/configure.ac @@ -192,8 +192,8 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` if test "x$enable_dri" != "xno"; then save_CFLAGS="$CFLAGS" save_CPPFLAGS="$CPPFLAGS" - CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS" - CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS" + CFLAGS="$CFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS" + CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS" AC_CHECK_HEADERS([dri.h sarea.h dristruct.h],, [DRI=no], [/* for dri.h */ #include -- 1.7.9.4