glx: Add missing glproto dependency for gallium-xlib glx
authorChuck Atkins <chuck.atkins@kitware.com>
Fri, 6 Jan 2017 13:27:44 +0000 (08:27 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 12 Jan 2017 22:01:55 +0000 (22:01 +0000)
Cc: mesa-stable@lists.freedesktop.org
Cc: Bruce Cherniak <bruce.cherniak@intel.com>
Signed-of-by: Chuck Atkins <chuck.atkins@kitware.com>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac
src/gallium/state_trackers/glx/xlib/Makefile.am

index 49c5e256f2b599d032e60ddbcb2114881f7f5a60..bc92fb5535c1285c04de8c5ec74546c360d690ff 100644 (file)
@@ -1598,6 +1598,9 @@ AC_ARG_ENABLE([driglx-direct],
 dnl
 dnl libGL configuration per driver
 dnl
+if test "x$enable_glx" != xno; then
+    PKG_CHECK_MODULES([GLPROTO], [glproto >= $GLPROTO_REQUIRED])
+fi
 case "x$enable_glx" in
 xxlib | xgallium-xlib)
     # Xlib-based GLX
@@ -1611,7 +1614,6 @@ xxlib | xgallium-xlib)
     ;;
 xdri)
     # DRI-based GLX
-    PKG_CHECK_MODULES([GLPROTO], [glproto >= $GLPROTO_REQUIRED])
 
     # find the DRI deps for libGL
     dri_modules="x11 xext xdamage xfixes x11-xcb xcb xcb-glx >= $XCBGLX_REQUIRED"
index a7e6c0c871a0c778d48681436d13b61dfa2a17fb..112030be486ce505ffbf79c286c023facc10954a 100644 (file)
@@ -25,6 +25,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_CFLAGS) \
+       $(GLPROTO_CFLAGS) \
        $(X11_INCLUDES)
 AM_CPPFLAGS = \
        -I$(top_srcdir)/include \