2
TESTLIBTOOLIZE="glibtoolize libtoolize"
7
test -z "$srcdir" && srcdir=.
12
aclocal --version > /dev/null 2> /dev/null || {
13
echo "error: aclocal not found"
16
automake --version > /dev/null 2> /dev/null || {
17
echo "error: automake not found"
21
for i in $TESTLIBTOOLIZE; do
22
if which $i > /dev/null 2>&1; then
29
if [ "$LIBTOOLIZEFOUND" = "0" ]; then
30
echo "$0: need libtoolize tool to build cups-filters" >&2
34
amcheck=`automake --version | grep 'automake (GNU automake) 1.5'`
35
if test "x$amcheck" = "xautomake (GNU automake) 1.5"; then
36
echo "warning: you appear to be using automake 1.5"
37
echo " this version has a bug - GNUmakefile.am dependencies are not generated"
40
rm -rf autom4te*.cache
42
$LIBTOOLIZE --force --copy || {
43
echo "error: libtoolize failed"
46
aclocal $ACLOCAL_FLAGS || {
47
echo "error: aclocal $ACLOCAL_FLAGS failed"
51
echo "error: autoheader failed"
54
automake -a -c --gnu --add-missing || {
55
echo "warning: automake failed"
58
echo "error: autoconf failed"