From 50963b7bf88a1b505ddf9bc913d681b199c5a9d6 Mon Sep 17 00:00:00 2001 From: "Derek R. Price" Date: Fri, 1 Jul 2005 02:21:57 +0000 Subject: [PATCH] * config/ltmain.m4sh (func_mode_link) : Handle spaces in paths to executed programs. Quote path in error message. --- ChangeLog | 5 +++++ config/ltmain.m4sh | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e682aba73..fb06870e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-01 Derek R. Price + + * config/ltmain.m4sh (func_mode_link) : Handle + spaces in paths to executed programs. Quote path in error message. + 2005-06-29 Ralf Wildenhues * THANKS: Updated. diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index 923029853..3b2c35b8c 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -6166,13 +6166,13 @@ else # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $ECHO >> $output "\ - exec \$progdir\\\\\$program \${1+\"\$@\"} + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO >> $output "\ - exec \$progdir/\$program \${1+\"\$@\"} + exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac @@ -6182,7 +6182,7 @@ else fi else # The program doesn't exist. - \$ECHO \"\$0: error: \$progdir/\$program does not exist\" 1>&2 + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 -- 2.47.2