From: rrt Date: Thu, 23 Aug 2001 10:29:53 +0000 (+0000) Subject: [project @ 2001-08-23 10:29:53 by rrt] X-Git-Tag: Approximately_9120_patches~1108 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=17c8f290f79fe40acb45c7cb610847a6f7757303;p=ghc-hetmet.git [project @ 2001-08-23 10:29:53 by rrt] reinstate some Windows-specific code I deleted by mistake. --- diff --git a/ghc/rts/gmp/configure b/ghc/rts/gmp/configure index aeff38a..8b7be87 100644 --- a/ghc/rts/gmp/configure +++ b/ghc/rts/gmp/configure @@ -3094,7 +3094,13 @@ if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" 1>&6 echo "configure:3090: checking for ld used by GCC" 1>&5 - ac_prog=`($CC -print-prog-name=ld) 2>&5` + case $target in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac case "$ac_prog" in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*)