ObjFW  Check-in [c16de18443]

Overview
Comment:configure: Also check for _Unwind_* in libc++
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c16de18443e864e51096406ae084356bf33d45901222c7e6b1c9dc1d7db40d5a
User & Date: js on 2018-04-08 18:56:29
Other Links: manifest | tags
Context
2018-04-08
19:32
exception.m: Handle read of unaligned values check-in: 681e1a13f3 user: js tags: trunk
18:56
configure: Also check for _Unwind_* in libc++ check-in: c16de18443 user: js tags: trunk
18:18
Make usage of several _Unwind_* functions optional check-in: 879e69dd3d user: js tags: trunk
Changes

Modified configure.ac from [e4bc8d17f8] to [29e54223dd].

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
76
77
78
79
80
81
82














83
84
85
86
87
88
89







-
-
-
-
-
-
-
-
-
-
-
-
-
-







AC_PROG_OBJCPP
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_EGREP

BUILDSYS_CHECK_IOS

case "$host" in
	dnl OpenBSD 6.2 switched to clang for i386 and AMD64, and clang does no
	dnl longer link in libgcc. Unwinding is unfortunately in libc++abi, so
	dnl we need that. We add -pthread as libc++abi requires threads.
	i386-*-openbsd6.[[23456789]] | i386-*-openbsd[[789]].* | \
	x86_64-*-openbsd6.[[23456789]] | x86_64-*-openbsd[[789]].*)
		case "$OBJC" in
			*clang*)
				LIBS="$LIBS -lc++abi -pthread"
				;;
		esac
		;;
esac

AC_ARG_WITH(wii,
	AS_HELP_STRING([--with-wii], [build for Wii]))
AS_IF([test x"$with_wii" = x"yes"], [
	AS_IF([test x"$DEVKITPRO" = x""], [
		AC_MSG_ERROR([DEVKITPRO is not set! Please set DEVKITPRO.])
	])

467
468
469
470
471
472
473








474
475
476
477
478
479
480
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474







+
+
+
+
+
+
+
+







			esac

			AC_MSG_RESULT($exception_type)
		], [
			AC_MSG_RESULT(exceptions unavailable!)
			AC_MSG_ERROR([Exceptions not accepted by compiler!])
		])

		AC_CHECK_FUNC(_Unwind_RaiseException, [], [
			AC_CHECK_LIB(c++, _Unwind_RaiseException, [
				LIBS="-lc++ -lc++abi -lpthread $LIBS"
			], [
				AC_MSG_ERROR([_Unwind_RaiseException missing!])
			], [-lc++abi -lpthread])
		])

		AC_CHECK_FUNCS(_Unwind_GetDataRelBase _Unwind_GetTextRelBase)
		;;
	"Apple runtime")
		AC_DEFINE(OF_APPLE_RUNTIME, 1,
			[Whether we use the Apple ObjC runtime])