summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/autoconf20
-rwxr-xr-xscripts/autoreconf32
2 files changed, 52 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
diff --git a/scripts/autoreconf b/scripts/autoreconf
new file mode 100755
index 000000000..ce2aa1120
--- /dev/null
+++ b/scripts/autoreconf
@@ -0,0 +1,32 @@
+#!/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 autoreconf-2.62)
+ac261=$(which autoreconf-2.61)
+
+if [ ! -z "$ac262" -a -x "$ac262" ];then
+ if [ -x /usr/bin/autoreconf ];then
+ env \
+ AUTOMAKE_VERSION=1.9 \
+ AUTOCONF_VERSION=2.62 \
+ /usr/bin/autoreconf "$@"
+ else
+ env \
+ AUTOMAKE_VERSION=1.9 \
+ AUTOCONF_VERSION=2.62 \
+ /usr/local/bin/autoreconf "$@"
+ fi
+elif [ ! -z "$ac261" -a -x "$ac261" ];then
+ if [ -x /usr/bin/autoreconf ];then
+ env \
+ AUTOMAKE_VERSION=1.9 \
+ AUTOCONF_VERSION=2.61 \
+ /usr/bin/autoreconf "$@"
+ else
+ env \
+ AUTOMAKE_VERSION=1.9 \
+ AUTOCONF_VERSION=2.61 \
+ /usr/local/bin/autoreconf "$@"
+ fi
+fi