🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ian Lance Taylor Tue, 11 Aug 1992 05:22
autoconf-1.0: avoiding core dump message on SunOS 4.1.1
#260
Author: Ian Lance Taylor
Date: Tue, 11 Aug 1992 05:22
21 lines
1199 bytes
If a program tested by AC_TEST_PROGRAM dumps core on SunOS 4.1.1, a
message reporting the core dump is written to stderr.  This seems to
happen because the exit status is passed back through the subshell and
the && and is caught and handled by the topmost shell.  I've worked
out a way to avoid the message, and have tested it on a number of
different machines.  Here is the patch.

--- acgeneral.m4.~1~	Mon Jul 20 01:09:47 1992
+++ acgeneral.m4	Tue Aug 11 01:16:14 1992
@@ -321,7 +321,7 @@
 [$1]
 EOF
 eval $compile
-if test -s conftest && (./conftest 2>/dev/null) 2>/dev/null; then
+if test -s conftest && (./conftest 2>/dev/null; exit) 2>/dev/null; then
   ifelse([$2], , :, [$2])
 ifelse([$3], , , [else
   $3

Ian Taylor
ian@airs.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads