119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
AC_MSG_CHECKING(which Objective C runtime we use)
AS_IF([test x"$ac_cv_header_objc_objc_h" = x"yes"], [
dnl Only accept it if it's from gcc >= 4.7, as the one in 4.6 is buggy
dnl when using the new API.
AC_EGREP_CPP(yes, [
#import <objc/objc.h>
#ifdef __GNU_LIBOBJC__ >= 20110608
yes
#endif
], [
test x"$objc_runtime" = x"" && objc_runtime="GNU"
], [
dnl TODO: This is ugly. Let's think of a better check.
AC_EGREP_CPP(yes, [
|
|
|
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
AC_MSG_CHECKING(which Objective C runtime we use)
AS_IF([test x"$ac_cv_header_objc_objc_h" = x"yes"], [
dnl Only accept it if it's from gcc >= 4.7, as the one in 4.6 is buggy
dnl when using the new API.
AC_EGREP_CPP(yes, [
#import <objc/objc.h>
#if defined(__GNU_LIBOBJC__) && __GNU_LIBOBJC__ >= 20110608
yes
#endif
], [
test x"$objc_runtime" = x"" && objc_runtime="GNU"
], [
dnl TODO: This is ugly. Let's think of a better check.
AC_EGREP_CPP(yes, [
|