Mesa (master): loader: fix running with --disable-egl builds

Dave Airlie airlied at kemper.freedesktop.org
Tue Jan 28 21:53:09 UTC 2014


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Jan 28 15:52:13 2014 +1000

loader: fix running with --disable-egl builds

I sometimes build without EGL just for speed purposes, however
it no longer finds my drivers when I do due to the HAVE_LIBUDEV
defines being wrong.

Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 configure.ac |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index d266d96..ba158e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -867,6 +867,10 @@ xyesno)
     ;;
 esac
 
+if test "$have_libudev" = yes; then
+    DEFINES="$DEFINES -DHAVE_LIBUDEV"
+fi
+
 # This is outside the case (above) so that it is invoked even for non-GLX
 # builds.
 AM_CONDITIONAL(HAVE_XF86VIDMODE, test "x$HAVE_XF86VIDMODE" = xyes)
@@ -1203,9 +1207,6 @@ if test "x$enable_egl" = xyes; then
 
     if test "$enable_static" != yes; then
         # build egl_glx when libGL is built
-        if test "$have_libudev" = yes; then
-            DEFINES="$DEFINES -DHAVE_LIBUDEV"
-        fi
 
         if test "x$enable_dri" = xyes; then
 	    HAVE_EGL_DRIVER_DRI2=1




More information about the mesa-commit mailing list