diff options
author | Zack Weinberg <zackw@panix.com> | 2020-08-18 16:47:42 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2020-08-18 16:47:42 -0400 |
commit | fa0754f704d7442cb2780d740fa4aabe2ba19f86 (patch) | |
tree | 7da004fc0e571ef5107316990afd74c694002313 | |
parent | 5d3c99e56247d5a6496729931774cff08cf8dc0f (diff) | |
download | autoconf-fa0754f704d7442cb2780d740fa4aabe2ba19f86.tar.gz |
_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.
-rw-r--r-- | lib/autoconf/lang.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |