Mesa (opengl-es-v2): Add es state tracker to autoconf.

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 5 15:59:14 UTC 2010


Module: Mesa
Branch: opengl-es-v2
Commit: e5d351dcfde58777162552cf5cd2a9cd8299f4cd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5d351dcfde58777162552cf5cd2a9cd8299f4cd

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Wed Dec 23 11:18:00 2009 +0800

Add es state tracker to autoconf.

mesa/es is needed in SRC_DIRS to build es state tracker.

Signed-off-by: Chia-I Wu <olvaffe at gmail.com>

---

 configure.ac |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index cc588d5..2984ee2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1154,14 +1154,22 @@ yes)
         test -d "$srcdir/src/gallium/state_trackers/$tracker" || \
             AC_MSG_ERROR([state tracker '$tracker' doesn't exist])
 
-        if test "$tracker" = egl && test "x$enable_egl" != xyes; then
-            AC_MSG_ERROR([cannot build egl state tracker without EGL library])
-        fi
-        if test "$tracker" = xorg; then
+        case "$tracker" in
+        egl)
+            if test "x$enable_egl" != xyes; then
+                AC_MSG_ERROR([cannot build egl state tracker without EGL library])
+            fi
+            ;;
+        xorg)
 	    PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
                   HAVE_XEXTPROTO_71="yes"; DEFINES="$DEFINES -DHAVE_XEXTPROTO_71",
                   HAVE_XEXTPROTO_71="no")
-        fi
+            ;;
+        es)
+            # mesa/es is required to build es state tracker
+            SRC_DIRS="mesa/es $SRC_DIRS"
+            ;;
+        esac
     done
     GALLIUM_STATE_TRACKERS_DIRS="$state_trackers"
     ;;




More information about the mesa-commit mailing list