summaryrefslogtreecommitdiff
path: root/scripts/autoconf
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-17 22:02:40 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-17 22:02:40 +0100
commit4e434808f57408d58b48e2c9c2fa0401ccb0f967 (patch)
tree13de16aec026c7494921c9894870699bec20e75b /scripts/autoconf
parenta7398b69f0946733ea2bd7e90176c1cab07376d0 (diff)
parentf9011c1275b13f39e4ab4552173bfb91b2ffae56 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/autoconf')
-rwxr-xr-xscripts/autoconf20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/autoconf b/scripts/autoconf
new file mode 100755
index 000000000..85f9bd0b4
--- /dev/null
+++ b/scripts/autoconf
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+ac262=$(which autoconf-2.62)
+ac261=$(which autoconf-2.61)
+
+if [ ! -z "$ac262" -a -x "$ac262" ];then
+ if [ -x /usr/bin/autoconf ];then
+ AUTOCONF_VERSION=2.62 /usr/bin/autoconf "$@"
+ else
+ AUTOCONF_VERSION=2.62 /usr/local/bin/autoconf "$@"
+ fi
+elif [ ! -z "$ac261" -a -x "$ac261" ];then
+ if [ -x /usr/bin/autoconf ];then
+ AUTOCONF_VERSION=2.61 /usr/bin/autoconf "$@"
+ else
+ AUTOCONF_VERSION=2.61 /usr/local/bin/autoconf "$@"
+ fi
+fi