http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55061
--- Comment #15 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-10-25 15:05:18 UTC --- It unclear how to recraft the test. Adding... --- unwind_ipinfo.m4.orig 2012-10-25 10:30:59.000000000 -0400 +++ unwind_ipinfo.m4 2012-10-25 11:04:37.000000000 -0400 @@ -26,6 +26,21 @@ changequote(,) case ${target} in *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; + *-*-darwin9*|*-*-darwin9.*) + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fno-exceptions" + AC_MSG_CHECKING([for _Unwind_GetIPInfo]) + AC_CACHE_VAL(gcc_cv_getipinfo, [ + AC_TRY_COMPILE([, [_Unwind_GetIPInfo();], + [gcc_cv_getipinfo=yes], + [gcc_cv_getipinfo=no]) + ]) + ]) + CXXFLAGS="$ac_save_CXXFLAGS" + AC_LANG_RESTORE + ;; *) have_unwind_getipinfo=yes ;; esac changequote([,]) produces the autoconf error... # autoconf -I../config -I. /sw/bin/m4:configure.ac:130: recursion limit of 1024 exceeded, use -L<N> to change it autom4te-2.64: /sw/bin/m4 failed with exit status: 1