mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-19 07:40:37 +01:00
configure.ac: Keep environment CFLAGS when testing
DRI2 detection could fail if configure is invoked with a sysroot passed
as CFLAGS. Ideally configure should invoke gcc with the sysroot argument
passed to the configure script, but for some reason this is not done by
AC_COMPILE_IFELSE.
Fix this by ensuring CFLAGS are preserved when checking for stuff.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 4cc3288073)
This commit is contained in:
parent
1c811298eb
commit
acbfff1d3b
1 changed files with 2 additions and 2 deletions
|
|
@ -890,7 +890,7 @@ if test "x$CONFIG_UDEV" = xyes; then
|
|||
fi
|
||||
SAVE_LIBS=$LIBS
|
||||
SAVE_CFLAGS=$CFLAGS
|
||||
CFLAGS=$UDEV_CFLAGS
|
||||
CFLAGS="$CFLAGS $UDEV_CFLAGS"
|
||||
LIBS=$UDEV_LIBS
|
||||
AC_CHECK_FUNCS([udev_monitor_filter_add_match_tag])
|
||||
AC_CHECK_FUNCS([udev_enumerate_add_match_tag])
|
||||
|
|
@ -1303,7 +1303,7 @@ fi
|
|||
|
||||
if test "x$DRI2" = xyes; then
|
||||
save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
|
||||
CFLAGS="$CFLAGS $GL_CFLAGS $LIBDRM_CFLAGS"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <GL/gl.h>
|
||||
#include <GL/internal/dri_interface.h>
|
||||
#ifndef __DRI_DRI2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue