implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / autogen.sh
1 #! /bin/sh
2
3 set -e
4
5 # These version are ok, pre-1.7 is not.  Post 1.7 may produce a lot of
6 # warnings for unrelated projects, so prefer 1.7 for now.
7 am_version=
8 for v in 1.10 1.9 1.8 1.7; do
9     if type -p &>/dev/null automake-$v; then
10         am_version="-$v"
11         break
12     fi
13 done
14 if [ -z "$am_version" ]; then
15     case "`automake --version`" in
16         *\ 0.*|*\ 1.[0-6].*|*\ 1.[0-6]\ *)
17             echo "$0: Automake-1.7 or later is needed."
18             exit 2
19             ;;
20     esac
21 fi
22
23 set -x
24 aclocal$am_version
25 autoconf
26 autoheader
27 automake$am_version -ac
28 libtoolize --automake --force
29 set +x
30 echo
31 echo "Ready to run './configure'."
32 echo