ObjFW  Check-in [80fae284b9]

Overview
Comment:configure: Only link -lpthread if available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 80fae284b99cb3d124b975b20c8d3a862fb4f0ba6884e067f21913efc2022d0a
User & Date: js on 2016-01-05 17:09:10
Other Links: manifest | tags
Context
2016-01-05
17:11
undef __{unsafe_unretained,bridge,autoreleasing} check-in: 3d11f9ee8f user: js tags: trunk
17:09
configure: Only link -lpthread if available check-in: 80fae284b9 user: js tags: trunk
14:58
OFHTTPClient: Allow override of all headers check-in: b9c811a236 user: js tags: trunk
Changes

Modified configure.ac from [049df84b49] to [dfcebab81d].

572
573
574
575
576
577
578
579

580
581
582
583
584
585
586

		AX_CHECK_COMPILER_FLAGS(-pthread, [
			CPPFLAGS="$CPPFLAGS -pthread"
		], [
			CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"
		])

		LIBS="$LIBS -lpthread"

		AC_TRY_LINK([
			#include <pthread.h>
		], [
			pthread_create(NULL, NULL, NULL, NULL);
		], [], [
			AC_MSG_ERROR(No supported threads found!)
		])







|
>







572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587

		AX_CHECK_COMPILER_FLAGS(-pthread, [
			CPPFLAGS="$CPPFLAGS -pthread"
		], [
			CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"
		])

		AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread")

		AC_TRY_LINK([
			#include <pthread.h>
		], [
			pthread_create(NULL, NULL, NULL, NULL);
		], [], [
			AC_MSG_ERROR(No supported threads found!)
		])