common/autoconf/toolchain_windows.m4
changeset 14562 ab12d5824d04
parent 14111 2a82ecb35fc7
child 14565 c499bdf08f27
--- a/common/autoconf/toolchain_windows.m4	Wed Jul 05 18:30:50 2017 +0200
+++ b/common/autoconf/toolchain_windows.m4	Mon Dec 03 10:26:55 2012 +0100
@@ -200,8 +200,9 @@
       AC_MSG_ERROR([Your VC command prompt seems broken, INCLUDE and/or LIB is missing.])
     else
       AC_MSG_RESULT([ok])
-      VS_INCLUDE="$INCLUDE"
-      VS_LIB="$LIB"
+      # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
+      VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
+      VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
       VS_PATH="$PATH"
       AC_SUBST(VS_INCLUDE)
       AC_SUBST(VS_LIB)