Added checks form GNU toolchain programs
[alexxy/gromacs.git] / bootstrap
1 #!/bin/sh
2 # This is a script to create all the configuration files when
3 # you compile from the CVS source. You should NOT use it to
4 # compile the distribution.
5 #
6 # Step 1 - check if the necessary tools appear to be there.
7 #          Ideally we should check versions too, which we don't...
8 if ! autoconf --version | grep GNU >/dev/null 2>&1; then
9     echo "Cannot find GNU autoconf! Exiting..."
10     exit 0
11 fi
12 if ! automake --version | grep GNU >/dev/null 2>&1; then
13     echo "Cannot find GNU automake! Exiting..."
14     exit 0
15 fi
16 if ! libtool --version | grep GNU >/dev/null 2>&1; then
17     echo "Cannot find GNU libtool! Exiting..."
18     exit 0
19 fi
20
21 aclocal
22 # fix for OSX producing debug directories; replace rm -f with rm -rf in built-in scripts
23 cat aclocal.m4 | sed -e 's/rm="rm -f"/rm="rm -rf"/' | sed -e 's/rm -f /rm -rf /' > aclocal.tmp && mv aclocal.tmp aclocal.m4
24 autoheader
25 automake
26 autoconf