looking for the executable.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
Suggested by Alexandre Oliva.
+2000-05-26 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh (autoconf, autoheader): Be more conscientious when
+ looking for the executable.
+ * autoupdate.sh: Likewise.
+ * autoheader.sh: Likewise.
+ Suggested by Alexandre Oliva.
+
2000-05-26 Akim Demaille <akim@epita.fr>
Thanks to --program-transform-name, `autoconf' might be install as
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
debug=false
localdir=.
tmp=
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
debug=false
localdir=.
tmp=
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
-if test -n "$AUTOHEADER"; then
- autoheader=$AUTOHEADER
-else
- autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
+for autoheader in "$AUTOHEADER" \
+ "$dir/@autoheader-name@" \
+ "$dir/autoheader" \
+ "@bindir@/@autoheader-name@"; do
+ test -f "$autoheader" && break
+done
automake_mode=--gnu
automake_deps=
force=no
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
-if test -n "$AUTOHEADER"; then
- autoheader=$AUTOHEADER
-else
- autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
+for autoheader in "$AUTOHEADER" \
+ "$dir/@autoheader-name@" \
+ "$dir/autoheader" \
+ "@bindir@/@autoheader-name@"; do
+ test -f "$autoheader" && break
+done
automake_mode=--gnu
automake_deps=
force=no
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
debug=false
localdir=.
tmp=
# Variables.
: ${AC_MACRODIR=@datadir@}
-if test -n "$AUTOCONF"; then
- autoconf=$AUTOCONF
-else
- autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
-fi
-if test -n "$AUTOHEADER"; then
- autoheader=$AUTOHEADER
-else
- autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
-fi
+dir=`echo "$0" | sed -e 's/[^/]*$//'`
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+for autoconf in "$AUTOCONF" \
+ "$dir/@autoconf-name@" \
+ "$dir/autoconf" \
+ "@bindir@/@autoconf-name@"; do
+ test -f "$autoconf" && break
+done
+for autoheader in "$AUTOHEADER" \
+ "$dir/@autoheader-name@" \
+ "$dir/autoheader" \
+ "@bindir@/@autoheader-name@"; do
+ test -f "$autoheader" && break
+done
automake_mode=--gnu
automake_deps=
force=no