xref: /aoo41x/main/libxslt/libxslt-mingw.patch (revision cdf0e10c)
1--- misc/libxslt-1.1.26/ltmain.sh	2010-06-06 14:43:28.785750000 +0900
2+++ misc/build/libxslt-1.1.26/ltmain.sh	2010-06-06 15:14:26.176375000 +0900
3@@ -2983,15 +2983,7 @@
4       *mingw* )
5         lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
6         case $build in
7-          *mingw* ) # actually, msys
8-            # awkward: cmd appends spaces to result
9-            lt_sed_strip_trailing_spaces="s/[ ]*\$//"
10-            func_to_host_path_tmp1=`( cmd //c echo "$1" |\
11-              $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
12-            func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
13-              $SED -e "$lt_sed_naive_backslashify"`
14-            ;;
15-          *cygwin* )
16+          *cygwin* | *mingw* )
17             func_to_host_path_tmp1=`cygpath -w "$1"`
18             func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
19               $SED -e "$lt_sed_naive_backslashify"`
20@@ -3062,15 +3054,7 @@
21         func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
22           $SED -e 's|^:*||' -e 's|:*$||'`
23         case $build in
24-          *mingw* ) # Actually, msys.
25-            # Awkward: cmd appends spaces to result.
26-            lt_sed_strip_trailing_spaces="s/[ ]*\$//"
27-            func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
28-              $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
29-            func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
30-              $SED -e "$lt_sed_naive_backslashify"`
31-            ;;
32-          *cygwin* )
33+          *cygwin* | *mingw* )
34             func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
35             func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
36               $SED -e "$lt_sed_naive_backslashify"`
37