Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bootstrap to work where aclocal is installed as aclocal-1.10

Some platforms installs multiple versions of the autotools, but
doesn't make any of them available without a "version".

Change-Id: Ib3336438423e548691d843d2112347022d808001
  • Loading branch information...
commit f12fbe8e3271db8e170556c73b9c63b52031b951 1 parent a191e6c
@trondn trondn authored
Showing with 35 additions and 2 deletions.
  1. +35 −2 bootstrap
37 bootstrap
@@ -1,7 +1,40 @@
+#!/bin/sh -e
git log >ChangeLog
-mkdir m4
+mkdir -p m4
+# Seach a list of names for the first occurence of a program.
+# Some systems may use aclocal-1.10, others may have aclocal etc.
+# Exit with status code 0 if the program exists (and print the
+# path to stdout), exit with status code 1 if it can't be
+# located
+find_program() {
+ set +e
+ for f in "$@"
+ do
+ file=`which ${f} 2>/dev/null | grep -v '^no '`
+ if test -n "x${file}" -a -x "${file}"
+ then
+ echo ${file}
+ set -e
+ exit 0
+ fi
+ done
+ echo "Failed to locate required program:" 1>&2
+ echo "\t$@" 1>&2
+ set -e
+ exit 1
+LIBTOOLIZE=`find_program glibtoolize libtoolize`
+ACLOCAL=`find_program aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal`
+AUTOHEADER=`find_program autoheader`
+AUTOMAKE=`find_program automake-1.11 automake-1.10 automake-1.9 automake`
+AUTOCONF=`find_program autoconf`
autoreconf -i --force --verbose
Please sign in to comment.
Something went wrong with that request. Please try again.