3 GLOBAL_ERROR_INDICATOR=0
5 check_for_application ()
9 if ! which "$PROG" >/dev/null 2>&1; then
11 WARNING: \`$PROG' not found!
12 Please make sure that \`$PROG' is installed and is in one of the
13 directories listed in the PATH environment variable.
15 GLOBAL_ERROR_INDICATOR=1
20 check_for_application lex yacc autoheader aclocal automake autoconf
22 # Actually we don't need the pkg-config executable, but we need the M4 macros.
23 # We check for `pkg-config' here and hope that M4 macros will then be
25 check_for_application pkg-config
28 if which libtoolize >/dev/null 2>&1
31 else if which glibtoolize >/dev/null 2>&1
33 libtoolize=glibtoolize
36 WARNING: Neither \`libtoolize' nor \`glibtoolize' have been found!
37 Please make sure that one of them is installed and is in one of the
38 directories listed in the PATH environment variable.
40 GLOBAL_ERROR_INDICATOR=1
43 if test "$GLOBAL_ERROR_INDICATOR" != "0"
52 && $libtoolize --ltdl --copy --force \
53 && automake --add-missing --copy \