mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
Work around cygwin bash igncr mode.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to bash carriage returns if ac_cr lost \r from ``. * THANKS: Update. Suggested by Eric Blake. Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
parent
dbcfd3b29f
commit
60e637d68f
@ -1,3 +1,11 @@
|
||||
2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
|
||||
|
||||
Work around cygwin bash igncr mode.
|
||||
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
|
||||
bash carriage returns if ac_cr lost \r from ``.
|
||||
* THANKS: Update.
|
||||
Suggested by Eric Blake.
|
||||
|
||||
2009-03-24 Eric Blake <ebb9@byu.net>
|
||||
|
||||
Fix underquoted example in manual.
|
||||
|
1
THANKS
1
THANKS
@ -9,6 +9,7 @@ contributions significant enough to warrant copyright assignment.
|
||||
|
||||
Aaron Crane aaronc@pobox.com
|
||||
Aaron M. Ucko amu@alum.mit.edu
|
||||
Aaron W. LaFramboise aaronenvelope277@aaronwl.com
|
||||
Adam J. Richter adam@yggdrasil.com
|
||||
Aharon Robbins arnold@gnu.org
|
||||
Akim Demaille akim@freefriends.org
|
||||
|
@ -377,6 +377,12 @@ else
|
||||
ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
|
||||
fi]])
|
||||
ac_cr=`echo X | tr X '\015'`
|
||||
# On cygwin, bash can eat \r inside `` if the user requested igncr.
|
||||
# But we know of no other shell where ac_cr would be empty at this
|
||||
# point, so we can use a bashism as a fallback.
|
||||
if test "x$ac_cr" = x; then
|
||||
eval ac_cr=\$\'\\r\'
|
||||
fi
|
||||
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
||||
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
||||
ac_cs_awk_cr='\\r'
|
||||
|
Loading…
Reference in New Issue
Block a user