mesa: Fix xcb-dri2 link flags leaking into LIBS.
authorEric Anholt <eric@anholt.net>
Fri, 3 Feb 2012 04:28:14 +0000 (05:28 +0100)
committerEric Anholt <eric@anholt.net>
Sat, 4 Feb 2012 21:04:35 +0000 (22:04 +0100)
Fixes the build of builtin_compiler on my 32-bit build where xcb-dri2
is in a custom prefix but the custom prefix flags weren't available.
It shouldn't have been in LIBS anyway.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configure.ac

index 316c715f0c7c7082352af272fa4b2fc9a8602282..e859d4cc6f1cecf4d62e199803723ce9a85ba0fe 100644 (file)
@@ -1415,8 +1415,10 @@ if test "x$enable_egl" = xyes; then
                 EGL_DRIVER_DRI2=dri2
                 DEFINES="$DEFINES -DHAVE_XCB_DRI2"
                 # workaround a bug in xcb-dri2 generated by xcb-proto 1.6
+               save_LIBS="$LIBS"
                 AC_CHECK_LIB(xcb-dri2, xcb_dri2_connect_alignment_pad, [],
                           [DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"])
+               LIBS="$save_LIBS"
             fi
        fi