X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/1f246cb782e0ef810d8235047af473ef19e0698d..ef7a71b768c583d795b5de6b0c49177e7dfb0dbf:/autogen.sh diff --git a/autogen.sh b/autogen.sh dissimilarity index 94% index a71bd9a00..2e39fb5d8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,12 +1,38 @@ -#!/bin/sh - -export ACLOCAL_AMFLAGS= -if test ! -f "`aclocal --print-ac-dir`/guile.m4"; then - if test -f "`guile-config info datadir`/aclocal/guile.m4"; then - ACLOCAL_AMFLAGS="-I `guile-config info datadir`/aclocal" - else - echo "warning: cannot find guile.m4"; - fi -fi - -autoreconf -vif +#!/bin/sh +# Usage: sh -x ./autogen.sh + +set -e + +[ -f GUILE-VERSION ] || { + echo "autogen.sh: run this command only at the top of guile-core." + exit 1 +} + +###################################################################### +### announce build tool versions +echo "" +autoconf --version +echo "" +automake --version +echo "" + +# Typical MacOS X installations rename 'libtoolize' to 'glibtoolize', so +# adjust to that. +if test "`uname -s`" = "Darwin"; then + glibtoolize --version +else + libtoolize --version +fi + +echo "" +${M4:-m4} --version +echo "" +flex --version +echo "" + +###################################################################### +### update infrastructure + +autoreconf -i --force --verbose + +echo "Now run configure and make."