bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SunOS 4.1.4 configure failure


From: Akim Demaille
Subject: Re: SunOS 4.1.4 configure failure
Date: Fri, 14 Nov 2003 10:07:57 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Paul, do you think something like this would be useful?

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * lib/m4sugar/m4sh.m4 (_AS_HEREDOC_CHECK): New.
        (AS_SHELL_SANITIZE): Call it.

Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.106
diff -u -u -r1.106 m4sh.m4
--- lib/m4sugar/m4sh.m4 5 Nov 2003 11:58:58 -0000 1.106
+++ lib/m4sugar/m4sh.m4 14 Nov 2003 09:04:59 -0000
@@ -95,6 +95,26 @@
 ## 1. Sanitizing the shell.  ##
 ## ------------------------- ##
 
+# _AS_HEREDOC_CHECK()
+# -------------------
+# Some editions of SunOS had a shell unable to cope with <<EOF properly.
+# This is too damaged a shell to continue.
+m4_define([_AS_HEREDOC_CHECK],
+[# Work in a sub shell to neutralize the error messages.
+if (
+     cat >conf$$ <<EOF
+token
+EOF
+   ) >/dev/null 2>&1 &&
+   test "`cat conf$$`" = token; then
+  rm -f conf$$
+else
+  AS_ERROR([cannot proceed:
+     this shell cannot perform simple here-doc manipulations
+     See http://mail.gnu.org/archive/html/autoconf/2002-08/msg00019.html])
+fi
+])# _AS_HEREDOC_CHECK
+
 
 # AS_REQUIRE(NAME-TO-CHECK, [BODY-TO-EXPAND = NAME-TO-CHECK])
 # -----------------------------------------------------------
@@ -182,6 +202,8 @@
 # Name of the executable.
 as_me=`AS_BASENAME("$[0]")`
 
+# Some editions of SunOS had a shell unable to cope with <<EOF properly.
+_AS_HEREDOC_CHECK
 ])
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]