107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32 -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])
AX_CHECK_COMPILER_FLAGS(-Wobjc-property-synthesis -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wobjc-property-synthesis"])
case "$OBJC" in
*clang*)
ASFLAGS="$ASFLAGS -no-integrated-as"
;;
esac
AC_MSG_CHECKING(whether Objective C compiler supports properties)
AC_TRY_COMPILE([
@interface Foo
{
id bar;
}
|
<
<
<
<
<
<
|
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32 -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])
AX_CHECK_COMPILER_FLAGS(-Wobjc-property-synthesis -Werror,
[OBJCFLAGS="$OBJCFLAGS -Wobjc-property-synthesis"])
AC_MSG_CHECKING(whether Objective C compiler supports properties)
AC_TRY_COMPILE([
@interface Foo
{
id bar;
}
|