]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_CHECK_PROG): Added protection against spaces
authorPavel Roskin <proski@gnu.org>
Wed, 27 Sep 2000 18:17:36 +0000 (18:17 +0000)
committerPavel Roskin <proski@gnu.org>
Wed, 27 Sep 2000 18:17:36 +0000 (18:17 +0000)
in $PATH.
* acspecific.m4 (AC_PROG_INSTALL): Likewise.

ChangeLog
acgeneral.m4
acspecific.m4
lib/autoconf/general.m4
lib/autoconf/specific.m4

index fba49b2cb39a4f81c44df237bf471c96dffd51ec..6b2fd777994fe34cd0bdef27f348d0af393b5a04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-09-27  Pavel Roskin  <proski@gnu.org>
+
+       * acgeneral.m4 (AC_CHECK_PROG): Added protection against spaces
+       in $PATH.
+       * acspecific.m4 (AC_PROG_INSTALL): Likewise.
+
 2000-09-27  Pavel Roskin  <proski@gnu.org>
 
        * acgeneral.m4 (AC_CHECK_LIB): only call AH_CHECK_LIB if
index 01a85da660edf403eb6d109521e2d549ab7653b4..742b31ef66c3d10b8a3cea84cf5f11774e468f3d 100644 (file)
@@ -2988,7 +2988,7 @@ else
 m4_ifvanl([$6],
 [  ac_prog_rejected=no])dnl
   AC_SHELL_PATH_WALK([$5],
-[test -f $ac_dir/$ac_word || continue
+[test -f "$ac_dir/$ac_word" || continue
 m4_ifvanl([$6],
 [if test "$ac_dir/$ac_word" = "$6"; then
   ac_prog_rejected=yes
@@ -3058,7 +3058,7 @@ AC_CACHE_VAL(ac_cv_path_$1,
   *)
   AC_SHELL_PATH_WALK([$4],
 [if test -f "$ac_dir/$ac_word"; then
-   ac_cv_path_$1=$ac_dir/$ac_word
+   ac_cv_path_$1="$ac_dir/$ac_word"
    break
 fi])
 dnl If no 3rd arg is given, leave the cache variable unset,
index 7a962e3685d24e47475e6c625933a3257ee20b1a..1c93e85316fc7ebdb9226fcd12e1ac3abdce8ece 100644 (file)
@@ -221,13 +221,13 @@ AC_CACHE_VAL(ac_cv_path_install,
       # Don't use installbsd from OSF since it installs stuff as root
       # by default.
       for ac_prog in ginstall scoinst install; do
-        if test -f $ac_dir/$ac_prog; then
+        if test -f "$ac_dir/$ac_prog"; then
          if test $ac_prog = install &&
-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
-           grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
+           grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
index 01a85da660edf403eb6d109521e2d549ab7653b4..742b31ef66c3d10b8a3cea84cf5f11774e468f3d 100644 (file)
@@ -2988,7 +2988,7 @@ else
 m4_ifvanl([$6],
 [  ac_prog_rejected=no])dnl
   AC_SHELL_PATH_WALK([$5],
-[test -f $ac_dir/$ac_word || continue
+[test -f "$ac_dir/$ac_word" || continue
 m4_ifvanl([$6],
 [if test "$ac_dir/$ac_word" = "$6"; then
   ac_prog_rejected=yes
@@ -3058,7 +3058,7 @@ AC_CACHE_VAL(ac_cv_path_$1,
   *)
   AC_SHELL_PATH_WALK([$4],
 [if test -f "$ac_dir/$ac_word"; then
-   ac_cv_path_$1=$ac_dir/$ac_word
+   ac_cv_path_$1="$ac_dir/$ac_word"
    break
 fi])
 dnl If no 3rd arg is given, leave the cache variable unset,
index 7a962e3685d24e47475e6c625933a3257ee20b1a..1c93e85316fc7ebdb9226fcd12e1ac3abdce8ece 100644 (file)
@@ -221,13 +221,13 @@ AC_CACHE_VAL(ac_cv_path_install,
       # Don't use installbsd from OSF since it installs stuff as root
       # by default.
       for ac_prog in ginstall scoinst install; do
-        if test -f $ac_dir/$ac_prog; then
+        if test -f "$ac_dir/$ac_prog"; then
          if test $ac_prog = install &&
-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
-           grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
+           grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else