Fix sh.test failure.

* libltdl/config/ltmain.m4sh (func_to_host_path): Fix sh.test
failure.
Report by Paolo Bonzini.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2008-07-31 19:46:14 +02:00
parent e36b1bcd8a
commit f5ffcb6dc5
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/config/ltmain.m4sh (func_to_host_path): Fix sh.test
failure.
Report by Paolo Bonzini.
2008-07-31 Paolo Bonzini <bonzini@gnu.org>
* ltmain.m4sh (func_emit_cwrapperexe_src): Factor

View File

@ -2563,7 +2563,7 @@ func_to_host_path ()
# error code of zero AND non-empty stdout, which explains
# the odd construction:
func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
if test $? -eq 0 && test -n "${func_to_host_path_tmp1}"; then
if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
$SED -e "$lt_sed_naive_backslashify"`
else