X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmm%2Fboehm-gc%2Fautogen.sh;h=eea554f700242d515820641d0842b95e3d7cc477;hb=aa29c1d6ba46a2f6cdaa744c30c78e91c665ed76;hp=6c355f6c9f8c45b4604290d06270b64dc72ec417;hpb=4e42a57a72e187e09ec62b419d63c71d3be56064;p=cacao.git diff --git a/src/mm/boehm-gc/autogen.sh b/src/mm/boehm-gc/autogen.sh old mode 100755 new mode 100644 index 6c355f6c9..eea554f70 --- a/src/mm/boehm-gc/autogen.sh +++ b/src/mm/boehm-gc/autogen.sh @@ -1,11 +1,32 @@ -#!/bin/sh +#! /bin/sh -${CACAO_LIBTOOLIZE} --automake -if test `uname` = 'FreeBSD'; then - ${CACAO_ACLOCAL} -I . -I /usr/local/share/aclocal -I /usr/local/share/aclocal19 -else - ${CACAO_ACLOCAL} +set -e + +# These version are ok, pre-1.7 is not. Post 1.7 may produce a lot of +# warnings for unrelated projects, so prefer 1.7 for now. +am_version= +for v in 1.10 1.9 1.8 1.7; do + if type -p &>/dev/null automake-$v; then + am_version="-$v" + break + fi +done +if [ -z "$am_version" ]; then + case "`automake --version`" in + *\ 0.*|*\ 1.[0-6].*|*\ 1.[0-6]\ *) + echo "$0: Automake-1.7 or later is needed." + exit 2 + ;; + esac fi -${CACAO_AUTOHEADER} -${CACAO_AUTOMAKE} --add-missing -${CACAO_AUTOCONF} + +set -x +aclocal$am_version +autoconf +autoheader +automake$am_version -ac +libtoolize --automake --force --copy +set +x +echo +echo "Ready to run './configure'." +echo