diff options
author | Nick Clifton <nickc@redhat.com> | 2008-04-04 11:45:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-04-04 11:45:58 +0000 |
commit | 981b79bf04163746a9c72d9b14464e04361f6cff (patch) | |
tree | ae60e9562c1b9f53ccfd3444e39ddead10a83d8f /configure | |
parent | 3cc6e11800a7b19b770363017554ffef1f549fc2 (diff) | |
download | newlib-981b79bf04163746a9c72d9b14464e04361f6cff.zip newlib-981b79bf04163746a9c72d9b14464e04361f6cff.tar.gz newlib-981b79bf04163746a9c72d9b14464e04361f6cff.tar.bz2 |
PR binutils/4334
* acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): New macro to check that
cygwin builds are not running in textmode.
* configure.ac: Run ACX_CHECK_CYGWIN_CAT_WORKS for cygwin hosted
builds.
* configure: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -2780,6 +2780,32 @@ case "${host}" in host_makefile_frag="config/mh-djgpp" ;; *-cygwin*) + +echo "$as_me:$LINENO: checking to see if cat works as expected" >&5 +echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6 +echo a >cygwin-cat-check +if test `cat cygwin-cat-check` == a ; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters. + Please either mount the build directory in binary mode or run the following + commands before running any configure script: +set -o igncr +export SHELLOPTS + " >&5 +echo "$as_me: error: The cat command does not ignore carriage return characters. + Please either mount the build directory in binary mode or run the following + commands before running any configure script: +set -o igncr +export SHELLOPTS + " >&2;} + { (exit 1); exit 1; }; } +fi +rm cygwin-cat-check + host_makefile_frag="config/mh-cygwin" ;; *-mingw*) |