Fix Makefile whitespace errors
[shapes.git] / config / oldtool
blob022450f4e5851aafd2e46fe94c200a5dbab8dfe6
1 #!/bin/sh
3 if test $# -eq 0; then
4 echo 1>&2 "Try \`$0 --help' for more information"
5 exit 1
6 fi
8 case "$1" in
9 bison)
10 echo 1>&2 "\
11 ERROR: \`bison' on your system reports an old version, but version
12 $2 is required. You should only need it if you modified a
13 .yy file. You may need the \`Bison' package in order for those
14 modifications to take effect. You can get \`Bison' from any
15 GNU archive site."
18 flex)
19 echo 1>&2 "\
20 ERROR: \`flex' on your system reports an old version, but version
21 $2 is required. You should only need it if you modified
22 an .ll file. You may need the \`Flex' package in order for
23 those modifications to take effect. You can get directions for
24 how to obtain a recent \`Flex' from any GNU archive site."
27 FlexLexer.h)
28 echo 1>&2 "\
29 ERROR: \`flex' on your system is considered broken because of problems
30 with the FlexLexer.h on the include path. You should only need
31 it if you modified an .ll file. Please make sure that your
32 FlexLexer.h and \`flex' program are related by file location
33 (if your FlexLexer.h is at <prefix>/include/FlexLexer.h, <prefix>
34 should also be a prefix of the result of \`which flex'), and
35 that they correspond to the same version of \`flex'. You can get
36 directions for how to obtain a recent \`Flex' from any GNU
37 archive site."
40 SAXON)
41 echo 1>&2 "\
42 ERROR: Needed \`SAXON', but it wasn't found during configuration."
45 -h|--help)
46 echo "\
47 $0 [--help] PROGRAM [VERSION]
49 Print error message telling that PROGRAM is too old and exit with error status.
51 Options:
52 -h, --help display this help and exit
54 Supported PROGRAM values:
55 bison
56 flex
57 FlexLexer.h
58 SAXON"
59 exit 0
61 esac
63 exit -1