From 3c87dfce403ad3c2fed7998b16bea34dcb0c9fde Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 14 Jan 2012 21:57:32 -0500 Subject: automake: src/mesa/drivers/dri/i915 --- configure.ac | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 009a8c08313..a0ea317cb36 100644 --- a/configure.ac +++ b/configure.ac @@ -1257,15 +1257,21 @@ case $DRI_DIRS in *i915*|*i965*) PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED]) - case $DRI_DIRS in - *i965*) - HAVE_I965_DRI=yes; - ;; - esac + for d in $(echo $DRI_DIRS | sed 's/,/ /g'); do + case $d in + i915) + HAVE_I915_DRI=yes; + ;; + i965) + HAVE_I965_DRI=yes; + ;; + esac + done ;; esac +AM_CONDITIONAL(HAVE_I915_DRI, test x$HAVE_I915_DRI = xyes) AM_CONDITIONAL(HAVE_I965_DRI, test x$HAVE_I965_DRI = xyes) case $DRI_DIRS in @@ -1904,6 +1910,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" dnl Substitute the config AC_CONFIG_FILES([configs/autoconf + src/mesa/drivers/dri/i915/Makefile src/mesa/drivers/dri/i965/Makefile tests/Makefile tests/glx/Makefile]) -- cgit v1.2.3