From 781ab03649067441ab2681fbb84b0dbd7c80b055 Mon Sep 17 00:00:00 2001 From: sof Date: Tue, 27 Nov 2001 07:49:15 +0000 Subject: [PATCH] [project @ 2001-11-27 07:49:15 by sof] hardtop: newer versions of bash (and ash) have 'pwd' return paths of the following form: /cygdrive// Transform these into :/, as that format is easier to work with under mingw. --- configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 6aadb65..d7f637d 100644 --- a/configure.in +++ b/configure.in @@ -44,8 +44,7 @@ hardtop=`echo $hardtop | sed 's|^/tmp_mnt.*\(/local/.*\)$|\1|' | sed 's|^/tmp_mn echo '' echo "*** The top of your build tree is: $hardtop" -AC_SUBST(hardtop) - +# subst of hardtop is done below after we've computed hardtop_plat. dnl-------------------------------------------------------------------- dnl * Choose host(/target/build) platform @@ -342,12 +341,15 @@ AC_SUBST(exeext) # (but with b-slashes being escaped). case $HostPlatform in i386-unknown-mingw32 | i386-unknown-cygwin32) + # get rid off /cygdrive/ prefix + hardtop=`echo ${hardtop} | sed -e 's%/cygdrive/\(.\)/%\1:/%g' ` hardtop_plat=`cygpath -w ${hardtop} | sed -e 's@\\\\@\\\\\\\\@g' ` ;; *) hardtop_plat=${hardtop} ;; esac +AC_SUBST(hardtop) AC_SUBST(hardtop_plat) dnl -------------------------------------------------------------- -- 1.7.10.4