]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Improve AC_CONFIG_AUX_DIRS a bit.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 13 Sep 2008 13:19:25 +0000 (15:19 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 13 Sep 2008 13:19:25 +0000 (15:19 +0200)
* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
lib/autoconf/general.m4

index cc3d2cba2d51200605928060fb027fb7583e2751..f01284df2ada19aee459233e9b194824f896de4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
+
        Mention Solaris sh ':' redirection bug.
        * doc/autoconf.texi (File Descriptors): Redirecting ':'
        in a loop causes bogus optimization with Solaris sh.
index c94e0484b1123924a1735c9810191d053d0aea0f..986b7af4f7605c19a9b25a44bcede0b3a1cbde08 100644 (file)
@@ -1650,22 +1650,16 @@ AC_DEFUN([AC_CONFIG_AUX_DIR_DEFAULT],
 AC_DEFUN([AC_CONFIG_AUX_DIRS],
 [ac_aux_dir=
 for ac_dir in $1; do
-  if test -f "$ac_dir/install-sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install-sh -c"
-    break
-  elif test -f "$ac_dir/install.sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install.sh -c"
-    break
-  elif test -f "$ac_dir/shtool"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/shtool install -c"
-    break
-  fi
+  for ac_t in install-sh install.sh shtool; do
+    if test -f "$ac_dir/$ac_t"; then
+      ac_aux_dir=$ac_dir
+      ac_install_sh="$ac_aux_dir/$ac_t -c"
+      break 2
+    fi
+  done
 done
 if test -z "$ac_aux_dir"; then
-  AC_MSG_ERROR([cannot find install-sh or install.sh in $1])
+  AC_MSG_ERROR([cannot find install-sh, install.sh, or shtool in $1])
 fi
 
 # These three variables are undocumented and unsupported,