Hi Charles,
* Charles Wilson wrote on Sat, May 31, 2008 at 07:11:58PM CEST:
> * libltdl/config/ltmain.m4sh (func_to_host_path)
> [host=mingw, build!=mingw|cygwin]: check that winepath
> stdout is non-empty and exit code is 0, instead of checking
> stderr.
> Reported by: Roumen Petrov
OK, thanks!
> --- a/libltdl/config/ltmain.m4sh
> +++ b/libltdl/config/ltmain.m4sh
> @@ -2555,17 +2555,21 @@ func_to_host_path ()
> + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
> func_to_host_path_winepath_exitcode=$?
> if test "$func_to_host_path_winepath_exitcode" -eq 0 &&\
[...]
> + test -n "${func_to_host_path_tmp1}" ; then
You could simplfify these four lines to
func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
if test $? -eq 0 && test -n "${func_to_host_path_tmp1}"; then
if the exit status isn't important to you for debugging purposes.
Cheers,
Ralf