configure: Update for autoconf 2.71

FossilOrigin-Name: 7237f5df863f2a7eb42ec40b46cbd8dce5207ce47a349c024a6e6964f604fc66
This commit is contained in:
Jonathan Schleifer 2023-04-17 18:17:19 +00:00
parent 75f88beebf
commit 307a330cfc

View file

@ -80,26 +80,27 @@ AS_IF([test x"$GOBJC" = x"yes"], [
old_OBJCFLAGS="$OBJCFLAGS" old_OBJCFLAGS="$OBJCFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wcast-align" OBJCFLAGS="$OBJCFLAGS -Wcast-align"
AC_MSG_CHECKING(whether -Wcast-align is buggy) AC_MSG_CHECKING(whether -Wcast-align is buggy)
AC_TRY_COMPILE([ AC_COMPILE_IFELSE([
#ifdef __has_attribute AC_LANG_SOURCE([
# if __has_attribute(objc_root_class) #ifdef __has_attribute
__attribute__((__objc_root_class__)) # if __has_attribute(objc_root_class)
# endif __attribute__((__objc_root_class__))
#endif # endif
@interface Foo #endif
{ @interface Foo
struct objc_class *_isa; {
} struct objc_class *_isa;
@end }
@end
@implementation Foo @implementation Foo
- (void)foo - (void)foo
{ {
struct objc_class *c = _isa; struct objc_class *c = _isa;
(void)c; (void)c;
} }
@end @end
], [ ])
], [ ], [
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
], [ ], [