Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -121,11 +121,11 @@ 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 - #ifdef __GNU_LIBOBJC__ >= 20110608 + #if defined(__GNU_LIBOBJC__) && __GNU_LIBOBJC__ >= 20110608 yes #endif ], [ test x"$objc_runtime" = x"" && objc_runtime="GNU" ], [