ObjFW  Check-in [d1d0f77899]

Overview
Comment:configure: Disable dladdr on NetBSD
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d1d0f778998dfde3fbf333401974d0daeb9344deb8146bfb8b8c1c80681b9bfc
User & Date: js on 2014-04-30 22:36:40
Other Links: manifest | tags
Context
2014-05-02
20:30
tests/OFSet.m: Rename to OFSetTests.m check-in: fc1a1ccdb6 user: js tags: trunk
2014-04-30
22:36
configure: Disable dladdr on NetBSD check-in: d1d0f77899 user: js tags: trunk
18:57
PLATFORMS.md: Add SPARC check-in: 3decb68088 user: js tags: trunk
Changes

Modified configure.ac from [5cee4b1b52] to [ec91a3337d].

480
481
482
483
484
485
486









487


488
489
490
491
492
493
494
	AC_CHECK_FUNC(random, [
		AC_DEFINE(HAVE_RANDOM, 1, [Whether we have random()])
	])
])

AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl")
AC_CHECK_HEADERS(dlfcn.h)









AC_CHECK_FUNCS(dladdr)



AC_ARG_ENABLE(threads,
	AS_HELP_STRING([--disable-threads], [disable thread support]))
AS_IF([test x"$enable_threads" != x"no"], [
	case "$host_os" in
	mingw*)
		AC_MSG_CHECKING(for threads)







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







480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
	AC_CHECK_FUNC(random, [
		AC_DEFINE(HAVE_RANDOM, 1, [Whether we have random()])
	])
])

AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl")
AC_CHECK_HEADERS(dlfcn.h)
case "$host_os" in
	netbsd*)
		dnl dladdr exists on NetBSD, but it is completely broken.
		dnl When using it with code that uses __thread, it freezes the
		dnl process so that it has to be killed using SIGKILL.
		dnl When disabling __thread, it doesn't freeze, but all symbols
		dnl are wrong.
		;;
	*)
		AC_CHECK_FUNCS(dladdr)
		;;
esac

AC_ARG_ENABLE(threads,
	AS_HELP_STRING([--disable-threads], [disable thread support]))
AS_IF([test x"$enable_threads" != x"no"], [
	case "$host_os" in
	mingw*)
		AC_MSG_CHECKING(for threads)