1#!/bin/sh
2
3bail_out()
4{
5	echo
6	echo "  Something went wrong, bailing out!"
7	echo
8	exit 1
9}
10
11echo "Running libtoolize -f -c"
12libtoolize -f -c || bail_out
13
14echo "Running aclocal -I macros"
15aclocal -I macros || bail_out
16
17echo "Running libtoolize --automake"
18libtoolize --automake || bail_out
19
20echo "Running autoheader -f"
21autoheader -f || bail_out
22
23echo "Running automake"
24automake --add-missing -c  > /dev/null || bail_out
25
26echo "Running autoconf"
27autoconf || bail_out
28
29echo
30echo "  All autostuff worked fine. "
31echo
32