ObjFW  Diff

Differences From Artifact [30254b5fb3]:

To Artifact [b6a1472c42]:


436
437
438
439
440
441
442

443







444
445
446
447
448
449
450
436
437
438
439
440
441
442
443

444
445
446
447
448
449
450
451
452
453
454
455
456
457







+
-
+
+
+
+
+
+
+







		], [
			AC_MSG_ERROR(No supported threads found!)
		])
		;;
	esac

	AC_DEFINE(OF_THREADS, 1, [Whether we have threads])
	AC_SUBST(THREADING_SOURCES, "	\
	AC_SUBST(OFTHREAD_M, "OFThread.m")
		OFThread.m		\
		OFThreadPool.m		\
		OFTLSKey.m		\
		OFMutex.m		\
		OFRecursiveMutex.m	\
		OFCondition.m		\
	")
	AC_SUBST(OFTHREADTESTS_M, "OFThreadTests.m")
	AC_SUBST(OFHTTPREQUESTTESTS_M, "OFHTTPRequestTests.m")
	AC_SUBST(THREADING_H, "threading.h")

	AC_MSG_CHECKING(whether __thread works)
	AC_TRY_LINK([
		/* It seems __thread is buggy with GCC 4.1 */