[project @ 2003-05-20 03:46:48 by sof]
authorsof <unknown>
Tue, 20 May 2003 03:46:48 +0000 (03:46 +0000)
committersof <unknown>
Tue, 20 May 2003 03:46:48 +0000 (03:46 +0000)
--with-gcc=<path>: for mingw32 plat, canonicalise path using cygpath

configure.in

index 6e8d6c1..db0fc1f 100644 (file)
@@ -432,6 +432,10 @@ AC_ARG_WITH(gcc,
         Use a different command instead of 'gcc' for the GNU C compiler.
 ],
 [WhatGccIsCalled="$withval"
+ if test "x$HostPlatform" = "xi386-unknown-mingw32"; then
+    # Canonicalise to <drive>:/path/to/gcc
+    withval=`cygpath -w ${withval} | sed -e 's@\\\\@/@g' `
+ fi;
  CC="$withval"],
 [WhatGccIsCalled="gcc"]
 )