From 263c57146c81d06dd031e0e16d14c4ba87d7c3f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 6 Jun 2009 21:14:52 +0200
Subject: Work around clashing 'link' command in cccl.


diff --git a/autoconf/cccl b/autoconf/cccl
index 9bbb25a..14c35a7 100755
--- a/autoconf/cccl
+++ b/autoconf/cccl
@@ -33,6 +33,10 @@ EOF
 	exit $1
 }
 
+# Put /usr/bin last in the path, to avoid clashes with MSVC's link
+# Ugly workaround, but should work
+PATH=`echo $PATH | sed -e "s#/usr/bin:##" | sed -e "s#/bin:##"`:/usr/bin
+
 case $MACHTYPE in
 	*-msys)
 		slash="//"
-- 
cgit v0.10.2-6-g49f6