summaryrefslogtreecommitdiff
path: root/scripts/autoreconf
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-17 20:10:15 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-17 20:10:15 +0100
commitf9011c1275b13f39e4ab4552173bfb91b2ffae56 (patch)
tree6a6cc8e0762a2da326e1657bda7308d6ffd3dc42 /scripts/autoreconf
parentdc06fc81176cf7bd6024e6bfc0666abdd0207fbf (diff)
fix build on OpenBSD host
- add a wrapper script for autoconf and autoreconf to avoid ifdef gluecode for every OS/autoconf combination - need to add more autoconf version for NetBSD/MirBSD
Diffstat (limited to 'scripts/autoreconf')
-rwxr-xr-xscripts/autoreconf32
1 files changed, 32 insertions, 0 deletions
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