[project @ 2001-08-23 08:36:11 by rrt]
[ghc-hetmet.git] / ghc / rts / gmp / configure
index 3fc6599..784dac7 100644 (file)
@@ -3094,13 +3094,7 @@ 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
-  case $lt_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
+  ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   case "$ac_prog" in
     # Accept absolute paths.
     [\\/]* | [A-Za-z]:[\\/]*)
@@ -4436,7 +4430,16 @@ for tmp_fn in ${gmp_mpn_functions} ; do
 # SLPJ trace
   echo "...$tmp_fn..." 1>&6
 
-  rm -f mpn/${tmp_fn}.[Ssc] mpn/${tmp_fn}.asm
+# This line was
+#    rm -f mpn/${tmp_fn}.[Ssc] mpn/${tmp_fn}.asm
+# but I found that on my NT workstation the command
+# would unpredictably hang.  rm wasn't an active process,
+# but absolutlely nothing was happening.  
+# I *think* that expanding the [Ssc] cures the problem
+#    SLPJ May 01
+  rm -f mpn/${tmp_fn}.S mpn/${tmp_fn}.s mpn/${tmp_fn}.c mpn/${tmp_fn}.asm
+
+  echo "...$tmp_fn (done rm)..." 1>&6
 
   # functions that can be provided by multi-function files
   tmp_mulfunc=
@@ -4450,10 +4453,22 @@ for tmp_fn in ${gmp_mpn_functions} ; do
 
   found=no
   for tmp_dir in $path; do
+
+# SLPJ trace
+# We get stuck sometimes
+       echo "  ...dir $tmp_dir..." 1>&6
     for tmp_base in $tmp_fn $tmp_mulfunc; do
+
+# SLPJ trace
+# We get stuck sometimes
+       echo "   ...base $tmp_base..." 1>&6
       for tmp_ext in asm S s c; do
         tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
 
+# SLPJ trace
+# We get stuck sometimes
+       echo "   ...$tmp_file..." 1>&6
+
         if test -f $tmp_file; then
           found=yes
 
@@ -5127,7 +5142,7 @@ for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then
   ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
   ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
 
-  echo "linking $srcdir/$ac_source to $ac_dest"
+  echo "copying $srcdir/$ac_source to $ac_dest"
 
   if test ! -r $srcdir/$ac_source; then
     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
@@ -5153,10 +5168,11 @@ for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then
   esac
 
   # Make a symlink if possible; otherwise try a hard link.
-  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
-     ln $srcdir/$ac_source $ac_dest; then :
+  #if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
+  #   ln $srcdir/$ac_source $ac_dest; then :
+  if cp $srcdir/$ac_source $ac_dest; then :
   else
-    { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
+    { echo "configure: error: cannot copy $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
   fi
 fi; done
 EOF