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 /config | |
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 'config')
-rw-r--r-- | config/ChangeLog | 6 | ||||
-rw-r--r-- | config/acx.m4 | 23 |
2 files changed, 29 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 9152d8a..3556e08 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,9 @@ +2008-04-04 Nick Clifton <nickc@redhat.com> + + PR binutils/4334 + * acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): New macro to check that + cygwin builds are not running in textmode. + 2008-03-27 Paolo Bonzini <bonzini@gnu.org> * extensions.m4: New. diff --git a/config/acx.m4 b/config/acx.m4 index c8a32c9..d186a4c 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -595,3 +595,26 @@ AC_DEFUN([ACX_BUGURL],[ AC_SUBST(REPORT_BUGS_TO) AC_SUBST(REPORT_BUGS_TEXI) ]) + +dnl #### +dnl # ACX_CHECK_CYGWIN_CAT_WORKS +dnl # On Cygwin hosts, check that the cat command ignores +dnl # carriage returns as otherwise builds will not work. +dnl # See binutils PR 4334 for more details. +AC_DEFUN([ACX_CHECK_CYGWIN_CAT_WORKS],[ +AC_MSG_CHECKING([to see if cat works as expected]) +echo a >cygwin-cat-check +if test `cat cygwin-cat-check` == a ; then + rm cygwin-cat-check + AC_MSG_RESULT(yes) +else + rm cygwin-cat-check + AC_MSG_RESULT(no) + AC_MSG_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 + ]) +fi +]) |