[Xfce4-commits] <xfce4-dev-tools:nick/bug8683> Use ?_VERSION for special versioned binary detection (bug #8683).
Nick Schermer
noreply at xfce.org
Fri Apr 13 18:38:02 CEST 2012
Updating branch refs/heads/nick/bug8683
to 220fb70daae8b609f8e24d415328f55a0c69d23d (commit)
from f912e35def91422d37296dbd1bb692c663d862c7 (commit)
commit 220fb70daae8b609f8e24d415328f55a0c69d23d
Author: Nick Schermer <nick at xfce.org>
Date: Fri Apr 13 18:34:17 2012 +0200
Use ?_VERSION for special versioned binary detection (bug #8683).
Use AUTOCONF_VERSION for automake-$ver, ACLOCAL_VERSION for
aclocal-$ver, AUTOMAKE_VERSION for automake-$ver and
AUTOHEADER_VERSION for autoheader-$ver.
This removes the custom checks for the //newest// binary
version, which gets constantly outdated.
scripts/xdt-autogen.in.in | 41 +++++++++++++++++++----------------------
1 files changed, 19 insertions(+), 22 deletions(-)
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index 0ba203f..2feb2c1 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -366,14 +366,13 @@ fi
##
-## Check for autoconf, first trying autoconf-2.59, then autoconf-2.58, then
-## autoconf-2.57, then autoconf-2.53, and finally simply autoconf.
+## Check for autoconf
##
-test -z "${XDT_PROG_AUTOCONF}" &&
-for i in autoconf-2.61 autoconf-2.60 autoconf-2.59 autoconf-2.58 autoconf-2.57 autoconf-2.53 autoconf; do
+if test -z "${XDT_PROG_AUTOCONF}"; then
+ test -z "${AUTOCONF_VERSION}" && i=autoconf || i=autoconf-${AUTOCONF_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOCONF=${i} && break
-done
+ XDT_PROG_AUTOCONF=${i}
+fi
test -z "${XDT_PROG_AUTOCONF}" && {
cat >&2 <<EOF
@@ -485,14 +484,13 @@ done
##
-## Check for aclocal, first trying aclocal-1.9, then aclocal-1.8, and finally
-## simply aclocal.
+## Check for aclocal
##
-test -z "${XDT_PROG_ACLOCAL}" &&
-for i in aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal-1.8 aclocal; do
+if test -z "${XDT_PROG_ACLOCAL}"; then
+ test -z "${ACLOCAL_VERSION}" && i=aclocal || i=aclocal-${ACLOCAL_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_ACLOCAL=${i} && break
-done
+ XDT_PROG_ACLOCAL=${i}
+fi
test -z "${XDT_PROG_ACLOCAL}" && {
cat >&2 <<EOF
@@ -511,10 +509,10 @@ EOF
test -z "${XDT_PROG_AUTOHEADER}" &&
for configure_ac_file in $CONFIGURE_AC_FILES; do
if $EGREP -q "^A(M|C)_CONFIG_HEADER" "${configure_ac_file}"; then
- for i in autoheader-2.61 autoheader-2.60 autoheader-2.59 autoheader-2.58 autoheader-2.57 autoheader-2.53 autoheader; do
- (${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOHEADER=${i} && break
- done
+ test -z "${AUTOHEADER_VERSION}" && i=autoheader || i=autoheader-${AUTOHEADER_VERSION}
+ (${i} --version) </dev/null >/dev/null 2>&1 &&
+ XDT_PROG_AUTOHEADER=${i}
+
test -z "${XDT_PROG_AUTOHEADER}" && {
cat >&2 <<EOF
xdt-autogen: You must have "autoconf" installed (which includes the
@@ -529,14 +527,13 @@ done
##
-## Check for automake, first trying automake-1.9, then automake-1.8, and finally
-## simply automake.
+## Check for automake
##
-test -z "${XDT_PROG_AUTOMAKE}" &&
-for i in automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake; do
+if test -z "${XDT_PROG_AUTOMAKE}"; then
+ test -z "${AUTOMAKE_VERSION}" && i=automake || i=automake-${AUTOMAKE_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOMAKE=${i} && break
-done
+ XDT_PROG_AUTOMAKE=${i}
+fi
test -z "${XDT_PROG_AUTOMAKE}" && {
cat >&2 <<EOF
More information about the Xfce4-commits
mailing list