Module: Mesa
Branch: master
Commit: 49e93e89455c4ef3d048cc2b3f126be47ff2b55f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=49e93e89455c4ef3d048cc2b3f126be47ff2b55f

Author: Emil Velikov <[email protected]>
Date:   Mon Feb  3 20:38:10 2014 +0000

configure: cleanup switch statement

Move all the cases within one switch statement and handle
i9{1,6}5 and r{adeon,200} independently.

Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Matt Turner <[email protected]>

---

 configure.ac |   47 ++++++++++++-----------------------------------
 1 file changed, 12 insertions(+), 35 deletions(-)

diff --git a/configure.ac b/configure.ac
index e1d4806..9c07080 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1076,49 +1076,26 @@ AC_SUBST([DRI_LIB_DEPS])
 AC_SUBST([GALLIUM_DRI_LIB_DEPS])
 
 case $DRI_DIRS in
-*i915*|*i965*)
+*i915*)
     PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
-
-    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
-
+    HAVE_I915_DRI=yes;
+    ;;
+*i965*)
+    PKG_CHECK_MODULES([INTEL], [libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
+    HAVE_I965_DRI=yes;
     ;;
-esac
-
-case $DRI_DIRS in
 *nouveau*)
     PKG_CHECK_MODULES([NOUVEAU], [libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED])
     HAVE_NOUVEAU_DRI=yes;
     ;;
-esac
-
-case $DRI_DIRS in
-*radeon*|*r200*)
+*radeon*)
     PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
-
-    for d in $(echo $DRI_DIRS | sed 's/,/ /g'); do
-        case $d in
-        radeon)
-            HAVE_RADEON_DRI=yes;
-            ;;
-        r200)
-            HAVE_R200_DRI=yes;
-            ;;
-        esac
-    done
-
+    HAVE_RADEON_DRI=yes;
+    ;;
+*r200*)
+    PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
+    HAVE_R200_DRI=yes;
     ;;
-esac
-
-case $DRI_DIRS in
 *swrast*)
     HAVE_SWRAST_DRI=yes;
     ;;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to