From: Tom Fogal Date: Tue, 22 Feb 2011 05:32:18 +0000 (-0700) Subject: Fix GLX_USE_TLS define. X-Git-Tag: mesa-7.11-rc1~1888 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4484297505431cfa9d0360f888ea4fb4194c698a;p=platform%2Fupstream%2Fmesa.git Fix GLX_USE_TLS define. It was only getting set in the case of DRI drivers. --- diff --git a/configure.ac b/configure.ac index e1702ba..fbc7436 100644 --- a/configure.ac +++ b/configure.ac @@ -890,6 +890,9 @@ AC_ARG_ENABLE([glx-tls], [GLX_USE_TLS=no]) AC_SUBST(GLX_TLS, ${GLX_USE_TLS}) +AS_IF([test "x$GLX_USE_TLS" = xyes], + [DEFINES="${DEFINES} -DGLX_USE_TLS -DPTHREADS"]) + dnl dnl More DRI setup dnl @@ -945,11 +948,6 @@ esac dnl Set DRI_DIRS, DEFINES and LIB_DEPS if test "$mesa_driver" = dri -o "$mesa_driver" = no; then - # Use TLS in GLX? - if test "x$GLX_USE_TLS" = xyes; then - DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS" - fi - # Platform specific settings and drivers to build case "$host_os" in linux*)