ObjFW  Check-in [1b60fffb9d]

Overview
Comment:Don't check for -fgnu89-inline when using Clang.

Clang 2.9 accepts it, even with -Werror, but always issues a warning
that it will ignore it.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1b60fffb9d4733523476ae47b66537169d56ba9a7176c702eddaa29d77e996ec
User & Date: js on 2011-12-24 19:28:37
Other Links: manifest | tags
Context
2011-12-26
16:24
Fix exception handling in of_asprintf. check-in: fa81b2657c user: js tags: trunk
2011-12-24
19:28
Don't check for -fgnu89-inline when using Clang. check-in: 1b60fffb9d user: js tags: trunk
2011-12-23
03:07
Add an uncaught exception handler for the Apple & new GNU runtime. check-in: 40c0aba35e user: js tags: trunk
Changes

Modified configure.ac from [d3e1ce0f80] to [9db1645873].

19
20
21
22
23
24
25




26
27


28
29
30
31
32
33
34

CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"

AX_CHECK_COMPILER_FLAGS(-std=gnu99, [OBJCFLAGS="$OBJCFLAGS -std=gnu99"])




AX_CHECK_COMPILER_FLAGS([-fgnu89-inline -Werror],
	[OBJCFLAGS="$OBJCFLAGS -fgnu89-inline"])


AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"])
AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"])
AX_CHECK_COMPILER_FLAGS(-fno-constant-cfstrings, [
	OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings"
	AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32, [







>
>
>
>
|
|
>
>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"

AX_CHECK_COMPILER_FLAGS(-std=gnu99, [OBJCFLAGS="$OBJCFLAGS -std=gnu99"])
case $OBJC in
	*clang*)
		;;
	*)
		AX_CHECK_COMPILER_FLAGS([-fgnu89-inline -Werror],
			[OBJCFLAGS="$OBJCFLAGS -fgnu89-inline"])
		;;
esac
AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"])
AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"])
AX_CHECK_COMPILER_FLAGS(-fno-constant-cfstrings, [
	OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings"
	AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32, [