ObjFW  Diff

Differences From Artifact [8730f14296]:

To Artifact [542c5cd378]:


494
495
496
497
498
499
500
501
502
503




504
505
506
507
508
509
510
494
495
496
497
498
499
500



501
502
503
504
505
506
507
508
509
510
511







-
-
-
+
+
+
+







		;;
	esac

	AC_DEFINE(OF_HAVE_THREADS, 1, [Whether we have threads])
	AC_SUBST(USE_SRCS_THREADS, '${SRCS_THREADS}')
	AC_SUBST(USE_INCLUDES_THREADS, '${INCLUDES_THREADS}')

	AC_ARG_ENABLE(tls,
		AS_HELP_STRING([--disable-tls], [disable thread local storage]))
	AS_IF([test x"$enable_tls" != x"no"], [
	AC_ARG_ENABLE(compiler-tls,
		AS_HELP_STRING([--disable-compiler-tls],
			[disable compiler thread local storage]))
	AS_IF([test x"$enable_compiler_tls" != x"no"], [
		AC_MSG_CHECKING(whether __thread works)
		AC_TRY_LINK([
			/* It seems __thread is buggy with GCC 4.1 */
			#if __GNUC__ == 4 && __GNUC_MINOR__ < 2
			# error buggy
			#endif