3729
|
1 #! /bin/sh |
|
2 # Common stub for a few missing GNU programs while installing. |
|
3 # Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
|
4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
|
5 |
|
6 # This program is free software; you can redistribute it and/or modify |
|
7 # it under the terms of the GNU General Public License as published by |
|
8 # the Free Software Foundation; either version 2, or (at your option) |
|
9 # any later version. |
|
10 |
|
11 # This program is distributed in the hope that it will be useful, |
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 # GNU General Public License for more details. |
|
15 |
|
16 # You should have received a copy of the GNU General Public License |
|
17 # along with this program; if not, write to the Free Software |
5307
|
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
19 # 02110-1301, USA. |
3729
|
20 |
|
21 if test $# -eq 0; then |
|
22 echo 1>&2 "Try \`$0 --help' for more information" |
|
23 exit 1 |
|
24 fi |
|
25 |
|
26 fail_missing=false |
|
27 |
|
28 case "$1" in |
|
29 |
|
30 -h|--h|--he|--hel|--help) |
|
31 echo "\ |
|
32 $0 [OPTION]... PROGRAM [ARGUMENT]... |
|
33 |
|
34 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
|
35 error status if there is no known handling for PROGRAM. |
|
36 |
|
37 Options: |
|
38 -h, --help display this help and exit |
|
39 -v, --version output version information and exit |
|
40 |
|
41 Supported PROGRAM values: |
|
42 aclocal touch file \`aclocal.m4' |
|
43 autoconf touch file \`configure' |
|
44 autoheader touch file \`config.h.in' |
|
45 automake touch all \`Makefile.in' files |
|
46 bison create \`y.tab.[ch]', if possible, from existing .[ch] |
|
47 flex create \`lex.yy.c', if possible, from existing .c |
|
48 gperf |
|
49 lex create \`lex.yy.c', if possible, from existing .c |
|
50 makeinfo touch the output file |
|
51 yacc create \`y.tab.[ch]', if possible, from existing .[ch]" |
|
52 ;; |
|
53 |
|
54 -v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
|
55 echo "missing - GNU libit 0.0" |
|
56 ;; |
|
57 |
|
58 -*) |
|
59 echo 1>&2 "$0: Unknown \`$1' option" |
|
60 echo 1>&2 "Try \`$0 --help' for more information" |
|
61 exit 1 |
|
62 ;; |
|
63 |
|
64 aclocal) |
|
65 echo 1>&2 "\ |
|
66 WARNING: \`$1' is missing on your system. You should only need it if |
|
67 you modified \`acinclude.m4' or \`configure.in'. You might want |
|
68 to install the \`Automake' and \`Perl' packages. Grab them from |
|
69 any GNU archive site." |
|
70 fail_missing=true |
|
71 ;; |
|
72 |
|
73 autoconf) |
|
74 echo 1>&2 "\ |
|
75 WARNING: \`$1' is missing on your system. You should only need it if |
|
76 you modified \`configure.in'. You might want to install the |
|
77 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
|
78 archive site." |
|
79 fail_missing=true |
|
80 ;; |
|
81 |
|
82 autoheader) |
|
83 echo 1>&2 "\ |
|
84 WARNING: \`$1' is missing on your system. You should only need it if |
|
85 you modified \`acconfig.h' or \`configure.in'. You might want |
|
86 to install the \`Autoconf' and \`GNU m4' packages. Grab them |
|
87 from any GNU archive site." |
|
88 fail_missing=true |
|
89 ;; |
|
90 |
|
91 automake) |
|
92 echo 1>&2 "\ |
|
93 WARNING: \`$1' is missing on your system. You should only need it if |
|
94 you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. |
|
95 You might want to install the \`Automake' and \`Perl' packages. |
|
96 Grab them from any GNU archive site." |
|
97 fail_missing=true |
|
98 ;; |
|
99 |
|
100 bison|yacc) |
|
101 echo 1>&2 "\ |
|
102 WARNING: \`$1' is missing on your system. You should only need it if |
|
103 you modified a \`.y' file. You may need the \`Bison' package |
|
104 in order for those modifications to take effect. You can get |
|
105 \`Bison' from any GNU archive site." |
|
106 fail_missing=true |
|
107 ;; |
|
108 |
|
109 lex|flex) |
|
110 echo 1>&2 "\ |
|
111 WARNING: \`$1' is missing on your system. You should only need it if |
|
112 you modified a \`.l' file. You may need the \`Flex' package |
|
113 in order for those modifications to take effect. You can get |
|
114 \`Flex' from any GNU archive site." |
|
115 fail_missing=true |
|
116 ;; |
|
117 |
|
118 gperf) |
|
119 echo 1>&2 "\ |
|
120 WARNING: \`$1' is missing on your system. You should only need it if |
|
121 you modified a \`.gperf' file. You may need the \`gperf' package |
|
122 in order for those modifications to take effect. You can get |
|
123 \`gperf' from any GNU archive site." |
|
124 fail_missing=true |
|
125 ;; |
|
126 |
|
127 makeinfo) |
|
128 echo 1>&2 "\ |
|
129 WARNING: \`$1' is missing on your system. You should only need it if |
|
130 you modified a \`.texi' or \`.texinfo' file, or any other file |
|
131 indirectly affecting the aspect of the manual. The spurious |
|
132 call might also be the consequence of using a buggy \`make' (AIX, |
|
133 DU, IRIX). You might want to install the \`Texinfo' package or |
|
134 the \`GNU make' package. Grab either from any GNU archive site." |
|
135 fail_missing=true |
|
136 ;; |
|
137 |
|
138 *) |
|
139 echo 1>&2 "\ |
|
140 WARNING: \`$1' is needed, and you do not seem to have it handy on your |
|
141 system. You might have modified some files without having the |
|
142 proper tools for further handling them. Check the \`README' file, |
|
143 it often tells you about the needed prerequirements for installing |
|
144 this package. You may also peek at any GNU archive site, in case |
|
145 some other package would contain this missing \`$1' program." |
|
146 fail_missing=true |
|
147 ;; |
|
148 esac |
|
149 |
|
150 if $fail_missing; then |
|
151 echo 1>&2 "\ |
|
152 |
|
153 You may also need \`$1' if you obtained this package from the CVS |
|
154 archive because files that can be automatically generated are not |
|
155 considered source files and are not checked in to the CVS archive. |
|
156 |
|
157 You may also need \`$1' if you ran make maintainer-clean and |
|
158 removed files that can be automatically generated but that are |
|
159 normally distributed as part of the package for convenience." |
|
160 exit 1 |
|
161 fi |
|
162 |
|
163 exit 0 |