From: Zack Weinberg Date: Tue, 18 Aug 2020 20:47:42 +0000 (-0400) Subject: _AC_COMPILER_EXEEXT_CROSS: exit 77 if test program does not run X-Git-Tag: v2.69c~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa0754f704d7442cb2780d740fa4aabe2ba19f86;p=thirdparty%2Fautoconf.git _AC_COMPILER_EXEEXT_CROSS: exit 77 if test program does not run This causes our testsuite to report a skipped test, rather than a failure, if the detected compiler for _AC_LANG produces broken executables. It matches the behavior of _AC_COMPILER_EXEEXT_DEFAULT, which has exited with that code for a long time if it hits the “_AC_LANG compiler cannot *create* executables” failure case. Partially addresses bug #110267. The Solaris 10 machine I have access to, has a broken gccgo installation that generates executables that crash on startup. Without this patch, test “358: Go” fails. With this patch, it is skipped. --- diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 631e3cbc..27eaa129 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -608,7 +608,7 @@ if test "$cross_compiling" != yes; then cross_compiling=yes else AC_MSG_FAILURE([cannot run _AC_LANG compiled programs. -If you meant to cross compile, use `--host'.]) +If you meant to cross compile, use `--host'.], 77) fi fi fi