1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Common stub for a few missing GNU programs while installing. |
# Common stub for a few missing GNU programs while installing. |
3 |
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. |
|
4 |
|
scriptversion=2003-09-02.23 |
5 |
|
|
6 |
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 |
7 |
|
# Free Software Foundation, Inc. |
8 |
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
9 |
|
|
10 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
42 |
configure_ac=configure.in |
configure_ac=configure.in |
43 |
fi |
fi |
44 |
|
|
45 |
|
msg="missing on your system" |
46 |
|
|
47 |
case "$1" in |
case "$1" in |
48 |
--run) |
--run) |
49 |
# Try to run requested program, and just exit if it succeeds. |
# Try to run requested program, and just exit if it succeeds. |
50 |
run= |
run= |
51 |
shift |
shift |
52 |
"$@" && exit 0 |
"$@" && exit 0 |
53 |
|
# Exit code 63 means version mismatch. This often happens |
54 |
|
# when the user try to use an ancient version of a tool on |
55 |
|
# a file that requires a minimum version. In this case we |
56 |
|
# we should proceed has if the program had been absent, or |
57 |
|
# if --run hadn't been passed. |
58 |
|
if test $? = 63; then |
59 |
|
run=: |
60 |
|
msg="probably too old" |
61 |
|
fi |
62 |
;; |
;; |
63 |
esac |
esac |
64 |
|
|
89 |
lex create \`lex.yy.c', if possible, from existing .c |
lex create \`lex.yy.c', if possible, from existing .c |
90 |
makeinfo touch the output file |
makeinfo touch the output file |
91 |
tar try tar, gnutar, gtar, then tar without non-portable flags |
tar try tar, gnutar, gtar, then tar without non-portable flags |
92 |
yacc create \`y.tab.[ch]', if possible, from existing .[ch]" |
yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
93 |
|
|
94 |
|
Send bug reports to <bug-automake@gnu.org>." |
95 |
;; |
;; |
96 |
|
|
97 |
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
98 |
echo "missing 0.4 - GNU automake" |
echo "missing $scriptversion (GNU Automake)" |
99 |
;; |
;; |
100 |
|
|
101 |
-*) |
-*) |
111 |
fi |
fi |
112 |
|
|
113 |
echo 1>&2 "\ |
echo 1>&2 "\ |
114 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
115 |
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
116 |
to install the \`Automake' and \`Perl' packages. Grab them from |
to install the \`Automake' and \`Perl' packages. Grab them from |
117 |
any GNU archive site." |
any GNU archive site." |
125 |
fi |
fi |
126 |
|
|
127 |
echo 1>&2 "\ |
echo 1>&2 "\ |
128 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
129 |
you modified \`${configure_ac}'. You might want to install the |
you modified \`${configure_ac}'. You might want to install the |
130 |
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
131 |
archive site." |
archive site." |
139 |
fi |
fi |
140 |
|
|
141 |
echo 1>&2 "\ |
echo 1>&2 "\ |
142 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
143 |
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
144 |
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
145 |
from any GNU archive site." |
from any GNU archive site." |
163 |
fi |
fi |
164 |
|
|
165 |
echo 1>&2 "\ |
echo 1>&2 "\ |
166 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
167 |
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
168 |
You might want to install the \`Automake' and \`Perl' packages. |
You might want to install the \`Automake' and \`Perl' packages. |
169 |
Grab them from any GNU archive site." |
Grab them from any GNU archive site." |
179 |
fi |
fi |
180 |
|
|
181 |
echo 1>&2 "\ |
echo 1>&2 "\ |
182 |
WARNING: \`$1' is needed, and you do not seem to have it handy on your |
WARNING: \`$1' is needed, but is $msg. |
183 |
system. You might have modified some files without having the |
You might have modified some files without having the |
184 |
proper tools for further handling them. |
proper tools for further handling them. |
185 |
You can get \`$1' as part of \`Autoconf' from any GNU |
You can get \`$1' as part of \`Autoconf' from any GNU |
186 |
archive site." |
archive site." |
202 |
|
|
203 |
bison|yacc) |
bison|yacc) |
204 |
echo 1>&2 "\ |
echo 1>&2 "\ |
205 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' $msg. You should only need it if |
206 |
you modified a \`.y' file. You may need the \`Bison' package |
you modified a \`.y' file. You may need the \`Bison' package |
207 |
in order for those modifications to take effect. You can get |
in order for those modifications to take effect. You can get |
208 |
\`Bison' from any GNU archive site." |
\`Bison' from any GNU archive site." |
232 |
|
|
233 |
lex|flex) |
lex|flex) |
234 |
echo 1>&2 "\ |
echo 1>&2 "\ |
235 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
236 |
you modified a \`.l' file. You may need the \`Flex' package |
you modified a \`.l' file. You may need the \`Flex' package |
237 |
in order for those modifications to take effect. You can get |
in order for those modifications to take effect. You can get |
238 |
\`Flex' from any GNU archive site." |
\`Flex' from any GNU archive site." |
260 |
fi |
fi |
261 |
|
|
262 |
echo 1>&2 "\ |
echo 1>&2 "\ |
263 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
264 |
you modified a dependency of a manual page. You may need the |
you modified a dependency of a manual page. You may need the |
265 |
\`Help2man' package in order for those modifications to take |
\`Help2man' package in order for those modifications to take |
266 |
effect. You can get \`Help2man' from any GNU archive site." |
effect. You can get \`Help2man' from any GNU archive site." |
285 |
fi |
fi |
286 |
|
|
287 |
echo 1>&2 "\ |
echo 1>&2 "\ |
288 |
WARNING: \`$1' is missing on your system. You should only need it if |
WARNING: \`$1' is $msg. You should only need it if |
289 |
you modified a \`.texi' or \`.texinfo' file, or any other file |
you modified a \`.texi' or \`.texinfo' file, or any other file |
290 |
indirectly affecting the aspect of the manual. The spurious |
indirectly affecting the aspect of the manual. The spurious |
291 |
call might also be the consequence of using a buggy \`make' (AIX, |
call might also be the consequence of using a buggy \`make' (AIX, |
340 |
|
|
341 |
*) |
*) |
342 |
echo 1>&2 "\ |
echo 1>&2 "\ |
343 |
WARNING: \`$1' is needed, and you do not seem to have it handy on your |
WARNING: \`$1' is needed, and is $msg. |
344 |
system. You might have modified some files without having the |
You might have modified some files without having the |
345 |
proper tools for further handling them. Check the \`README' file, |
proper tools for further handling them. Check the \`README' file, |
346 |
it often tells you about the needed prerequirements for installing |
it often tells you about the needed prerequisites for installing |
347 |
this package. You may also peek at any GNU archive site, in case |
this package. You may also peek at any GNU archive site, in case |
348 |
some other package would contain this missing \`$1' program." |
some other package would contain this missing \`$1' program." |
349 |
exit 1 |
exit 1 |
351 |
esac |
esac |
352 |
|
|
353 |
exit 0 |
exit 0 |
354 |
|
|
355 |
|
# Local variables: |
356 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |
357 |
|
# time-stamp-start: "scriptversion=" |
358 |
|
# time-stamp-format: "%:y-%02m-%02d.%02H" |
359 |
|
# time-stamp-end: "$" |
360 |
|
# End: |