[Mesa-dev] [PATCH 2/2] configure: cleanup GLX_USE_TLS handling

Emil Velikov emil.l.velikov at gmail.com
Mon Dec 5 19:02:29 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Mesa requires ax_pthread_ok = yes, thus we can fold/rewrite the
conditional to follow the more common "if test" pattern.

No functional change intended.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 52bd9a6..c5361be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1710,8 +1710,9 @@ AC_ARG_ENABLE([glx-tls],
     [GLX_USE_TLS=yes])
 AC_SUBST(GLX_TLS, ${GLX_USE_TLS})
 
-AS_IF([test "x$GLX_USE_TLS" = xyes -a "x$ax_pthread_ok" = xyes],
-      [DEFINES="${DEFINES} -DGLX_USE_TLS"])
+if test "x$GLX_USE_TLS" = xyes; then
+    DEFINES="$DEFINES -DGLX_USE_TLS"
+fi
 
 dnl Read-only text section on x86 hardened platforms
 AC_ARG_ENABLE([glx-read-only-text],
-- 
2.10.2



More information about the mesa-dev mailing list