We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58b9963 + ceeda82 commit 11a77f7Copy full SHA for 11a77f7
1 file changed
configure.ac
@@ -159,9 +159,20 @@ then
159
output_objdir=.
160
fi
161
162
+
163
# Thread local storage
-AX_TLS([thread_ls_on=yes],[thread_ls_on=no])
164
-AS_IF([test "x$thread_ls_on" = "xyes"],[AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"])
+thread_ls_on="no"
165
+AC_ARG_ENABLE([threadlocal],
166
+ [AS_HELP_STRING([--enable-threadlocal],[Enable thread local support (default: enabled)])],
167
+ [ ENABLED_THREADLOCAL=$enableval ],
168
+ [ ENABLED_THREADLOCAL=yes ]
169
+ )
170
+if test "$ENABLED_THREADLOCAL" = "yes"
171
+then
172
+ AX_TLS([thread_ls_on=yes],[thread_ls_on=no])
173
+ AS_IF([test "x$thread_ls_on" = "xyes"],[AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"])
174
+fi
175
176
177
# DEBUG
178
AX_DEBUG
0 commit comments