|
Packit Service |
e31359 |
#!/bin/sh
|
|
Packit Service |
e31359 |
TESTLIBTOOLIZE="glibtoolize libtoolize"
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
LIBTOOLIZEFOUND="0"
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
srcdir=`dirname $0`
|
|
Packit Service |
e31359 |
test -z "$srcdir" && srcdir=.
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
olddir=`pwd`
|
|
Packit Service |
e31359 |
cd $srcdir
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
ACLOCAL_FLAGS="-I m4"
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
aclocal --version > /dev/null 2> /dev/null || {
|
|
Packit Service |
e31359 |
echo "error: aclocal not found"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
automake --version > /dev/null 2> /dev/null || {
|
|
Packit Service |
e31359 |
echo "error: automake not found"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
for i in $TESTLIBTOOLIZE; do
|
|
Packit Service |
e31359 |
if which $i > /dev/null 2>&1; then
|
|
Packit Service |
e31359 |
LIBTOOLIZE=$i
|
|
Packit Service |
e31359 |
LIBTOOLIZEFOUND="1"
|
|
Packit Service |
e31359 |
break
|
|
Packit Service |
e31359 |
fi
|
|
Packit Service |
e31359 |
done
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
if [ "$LIBTOOLIZEFOUND" = "0" ]; then
|
|
Packit Service |
e31359 |
echo "$0: need libtoolize tool to build cppunit" >&2
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
fi
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
rm -rf autom4te*.cache
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
$LIBTOOLIZE --force --copy || {
|
|
Packit Service |
e31359 |
echo "error: libtoolize failed"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
aclocal $ACLOCAL_FLAGS || {
|
|
Packit Service |
e31359 |
echo "error: aclocal $ACLOCAL_FLAGS failed"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
autoheader || {
|
|
Packit Service |
e31359 |
echo "error: autoheader failed"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
automake -a -c --foreign || {
|
|
Packit Service |
e31359 |
echo "warning: automake failed"
|
|
Packit Service |
e31359 |
}
|
|
Packit Service |
e31359 |
autoconf || {
|
|
Packit Service |
e31359 |
echo "error: autoconf failed"
|
|
Packit Service |
e31359 |
exit 1
|
|
Packit Service |
e31359 |
}
|