bootstrap 698 Bytes
Newer Older
anilsaharan's avatar
anilsaharan committed
1
INSTALL_HOME=
2 3
if [ $# -gt 0 ]; then
	INSTALL_HOME=$1
anilsaharan's avatar
anilsaharan committed
4 5 6
fi

if [ "$INSTALL_HOME"X == "X" ]; then
7
	INSTALL_HOME=$HOME/CUnitHome
anilsaharan's avatar
anilsaharan committed
8 9
fi

10
libtoolize --force --copy && \
anilsaharan's avatar
anilsaharan committed
11
aclocal && \
12
autoheader && \
13
automake --add-missing --include-deps --copy && \
anilsaharan's avatar
anilsaharan committed
14 15 16 17 18 19 20
autoconf

if [ $? -ne 0 ]; then
	echo "Automake/Autoconf returned with error."
	exit 1
fi

21 22
mkdir -p $INSTALL_HOME
if [ $# -gt 0 ]; then
23
	./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test
24
else
25
	./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console --enable-examples --enable-test
26
fi