ObjFW  Check-in [39cb0f9e7d]

Overview
Comment:configure: Check that __thread works with PIC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 39cb0f9e7dc572967243ac809f65e3014df45b3fc4ae483937f661eab4f479ed
User & Date: js on 2013-07-31 22:55:27
Other Links: manifest | tags
Context
2013-08-01
18:53
Add objc_msg_lookup_stret for MIPS/ELF. check-in: 5d814a5ef5 user: js tags: trunk
2013-07-31
22:55
configure: Check that __thread works with PIC. check-in: 39cb0f9e7d user: js tags: trunk
22:54
Add of_forward_stret for PPC/ELF. check-in: 8f337d1890 user: js tags: trunk
Changes

Modified configure.ac from [58bf1c6235] to [ac39a0ebce].

488
489
490
491
492
493
494








495
496










497
498
499
500
501
502
503
		# error buggy
		#endif

		__thread int x = 0;
	], [
		x++;
	], [








		AC_MSG_RESULT(yes)
		AC_DEFINE(OF_HAVE_COMPILER_TLS, 1, [Whether __thread works])










	], [
		AC_MSG_RESULT(no)
	])

	atomic_ops="none"

	AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)







>
>
>
>
>
>
>
>
|
|
>
>
>
>
>
>
>
>
>
>







488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
		# error buggy
		#endif

		__thread int x = 0;
	], [
		x++;
	], [
		AS_IF([test x"$enable_shared" != x"no"], [
			old_OBJCFLAGS="$OBJCFLAGS"
			OBJCFLAGS="$OBJCFLAGS -fPIC"
			AC_TRY_COMPILE([
				__thread int x = 0;
			], [
				x++;
			], [
				AC_MSG_RESULT(yes)
				AC_DEFINE(OF_HAVE_COMPILER_TLS, 1,
					[Whether __thread works])
			], [
				AC_MSG_RESULT(no)
			])
			OBJCFLAGS="$old_OBJCFLAGS"
		], [
			AC_MSG_RESULT(yes)
			AC_DEFINE(OF_HAVE_COMPILER_TLS, 1,
				[Whether __thread works])
		])
	], [
		AC_MSG_RESULT(no)
	])

	atomic_ops="none"

	AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)