automake: cleanup pipe-loader handling when using sw/xlib winsys
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 1 Apr 2014 16:42:41 +0000 (17:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 25 Apr 2014 20:09:17 +0000 (21:09 +0100)
Rather than defining our own set of variables, use NEED_WINSYS_XLIB
and based on it include the sw/xlib winsys.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac
src/gallium/targets/gbm/Makefile.am
src/gallium/targets/opencl/Makefile.am
src/gallium/targets/xa/Makefile.am
src/gallium/tests/trivial/Makefile.am

index b18f8cceba78b323aab9d9767cdc4a03527af689..0950ed65eea9e7268850c9435fa03c813ed39dce 100644 (file)
@@ -1935,9 +1935,7 @@ AM_CONDITIONAL(NEED_GALLIUM_LLVMPIPE_DRIVER, test "x$HAVE_GALLIUM_I915" = xyes -
 if test "x$enable_gallium_loader" = xyes; then
     GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/null"
 
-    if test "x$enable_gallium_xlib_loader" = xyes; then
-        GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib"
-        NEED_WINSYS_XLIB="yes"
+    if test "x$NEED_WINSYS_XLIB" = xyes; then
         GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_XLIB"
     fi
 
@@ -1963,7 +1961,6 @@ if test "x$enable_gallium_loader" = xyes; then
     AC_SUBST([GALLIUM_PIPE_LOADER_CLIENT_DEFINES])
     AC_SUBST([GALLIUM_PIPE_LOADER_CLIENT_LIBS])
 fi
-AM_CONDITIONAL(NEED_PIPE_LOADER_XLIB, test "x$enable_gallium_xlib_loader" = xyes)
 
 AM_CONDITIONAL(HAVE_I915_DRI, test x$HAVE_I915_DRI = xyes)
 AM_CONDITIONAL(HAVE_I965_DRI, test x$HAVE_I965_DRI = xyes)
index 3b7929066b1d18693636fa0ad4c35ca452609767..0bd1d68ca692c658cd9010fd769871d9c4da76f0 100644 (file)
@@ -56,7 +56,7 @@ gbm_gallium_drm_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
 endif
 
-if NEED_PIPE_LOADER_XLIB
+if NEED_WINSYS_XLIB
 gbm_gallium_drm_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
        -lX11 -lXext -lXfixes \
index f23c26b330159610af0ae32c4179a1c99ff87b14..29909da29f2bce5435b34ce15ece48e4e04b3da0 100644 (file)
@@ -37,7 +37,7 @@ lib@OPENCL_LIBNAME@_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
 endif
 
-if NEED_PIPE_LOADER_XLIB
+if NEED_WINSYS_XLIB
 lib@OPENCL_LIBNAME@_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
        -lX11 -lXext -lXfixes \
index 4b351d907bbe77ed766505d11516a0aa3dc3bed6..2619e57e142316e70d8267877213b3f490ed9fc2 100644 (file)
@@ -53,7 +53,7 @@ libxatracker_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
 endif
 
-if NEED_PIPE_LOADER_XLIB
+if NEED_WINSYS_XLIB
 libxatracker_la_LIBADD += \
        $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
        -lX11 -lXext -lXfixes \
index 9381429bd6cb2ac57e193a068f0fe5dea2199e79..3c26cd36c065379ef26ca48f526d34779ae44f84 100644 (file)
@@ -18,7 +18,7 @@ LDADD = $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(GALLIUM_COMMON_LIB_DEPS)
 
-if NEED_PIPE_LOADER_XLIB
+if NEED_WINSYS_XLIB
 LDADD += \
        $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
        -lX11 -lXext -lXfixes \