[project @ 2001-12-06 13:05:03 by sewardj]
[ghc-hetmet.git] / configure.in
index d7f637d..44451a7 100644 (file)
@@ -342,7 +342,7 @@ AC_SUBST(exeext)
 case $HostPlatform in
   i386-unknown-mingw32 | i386-unknown-cygwin32)
        # get rid off /cygdrive/ prefix
-       hardtop=`echo ${hardtop} | sed -e 's%/cygdrive/\(.\)/%\1:/%g' `
+       hardtop=`echo ${hardtop} | sed -e 's%^/cygdrive/\(.\)/%\1:/%' `
        hardtop_plat=`cygpath -w ${hardtop} | sed -e 's@\\\\@\\\\\\\\@g' `
        ;;
   *)