1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/missing Wed Mar 26 11:56:12 2008 +0000
1.5 +# Common stub for a few missing GNU programs while installing.
1.6 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
1.7 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1.9 +# This program is free software; you can redistribute it and/or modify
1.10 +# it under the terms of the GNU General Public License as published by
1.11 +# the Free Software Foundation; either version 2, or (at your option)
1.12 +# any later version.
1.14 +# This program is distributed in the hope that it will be useful,
1.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 +# GNU General Public License for more details.
1.19 +# You should have received a copy of the GNU General Public License
1.20 +# along with this program; if not, write to the Free Software
1.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.24 +# As a special exception to the GNU General Public License, if you
1.25 +# distribute this file as part of a program that contains a
1.26 +# configuration script generated by Autoconf, you may include it under
1.27 +# the same distribution terms that you use for the rest of that program.
1.29 +if test $# -eq 0; then
1.30 + echo 1>&2 "Try \`$0 --help' for more information"
1.36 +# In the cases where this matters, `missing' is being run in the
1.38 +if test -f configure.ac; then
1.39 + configure_ac=configure.ac
1.41 + configure_ac=configure.in
1.46 + # Try to run requested program, and just exit if it succeeds.
1.53 +# If it does not exist, or fails to run (possibly an outdated version),
1.54 +# try to emulate it.
1.57 + -h|--h|--he|--hel|--help)
1.59 +$0 [OPTION]... PROGRAM [ARGUMENT]...
1.61 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
1.62 +error status if there is no known handling for PROGRAM.
1.65 + -h, --help display this help and exit
1.66 + -v, --version output version information and exit
1.67 + --run try to run the given command, and emulate it if it fails
1.69 +Supported PROGRAM values:
1.70 + aclocal touch file \`aclocal.m4'
1.71 + autoconf touch file \`configure'
1.72 + autoheader touch file \`config.h.in'
1.73 + automake touch all \`Makefile.in' files
1.74 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
1.75 + flex create \`lex.yy.c', if possible, from existing .c
1.76 + help2man touch the output file
1.77 + lex create \`lex.yy.c', if possible, from existing .c
1.78 + makeinfo touch the output file
1.79 + tar try tar, gnutar, gtar, then tar without non-portable flags
1.80 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
1.83 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
1.84 + echo "missing 0.4 - GNU automake"
1.88 + echo 1>&2 "$0: Unknown \`$1' option"
1.89 + echo 1>&2 "Try \`$0 --help' for more information"
1.94 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.95 + # We have it, but it failed.
1.100 +WARNING: \`$1' is missing on your system. You should only need it if
1.101 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
1.102 + to install the \`Automake' and \`Perl' packages. Grab them from
1.103 + any GNU archive site."
1.108 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.109 + # We have it, but it failed.
1.114 +WARNING: \`$1' is missing on your system. You should only need it if
1.115 + you modified \`${configure_ac}'. You might want to install the
1.116 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
1.122 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.123 + # We have it, but it failed.
1.128 +WARNING: \`$1' is missing on your system. You should only need it if
1.129 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
1.130 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
1.131 + from any GNU archive site."
1.132 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
1.133 + test -z "$files" && files="config.h"
1.135 + for f in $files; do
1.137 + *:*) touch_files="$touch_files "`echo "$f" |
1.138 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
1.139 + *) touch_files="$touch_files $f.in";;
1.142 + touch $touch_files
1.146 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.147 + # We have it, but it failed.
1.152 +WARNING: \`$1' is missing on your system. You should only need it if
1.153 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
1.154 + You might want to install the \`Automake' and \`Perl' packages.
1.155 + Grab them from any GNU archive site."
1.156 + find . -type f -name Makefile.am -print |
1.157 + sed 's/\.am$/.in/' |
1.158 + while read f; do touch "$f"; done
1.162 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.163 + # We have it, but it failed.
1.168 +WARNING: \`$1' is needed, and you do not seem to have it handy on your
1.169 + system. You might have modified some files without having the
1.170 + proper tools for further handling them.
1.171 + You can get \`$1' as part of \`Autoconf' from any GNU
1.174 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
1.175 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
1.176 + if test -f "$file"; then
1.179 + test -z "$file" || exec >$file
1.180 + echo "#! /bin/sh"
1.181 + echo "# Created by GNU Automake missing as a replacement of"
1.191 +WARNING: \`$1' is missing on your system. You should only need it if
1.192 + you modified a \`.y' file. You may need the \`Bison' package
1.193 + in order for those modifications to take effect. You can get
1.194 + \`Bison' from any GNU archive site."
1.195 + rm -f y.tab.c y.tab.h
1.196 + if [ $# -ne 1 ]; then
1.197 + eval LASTARG="\${$#}"
1.198 + case "$LASTARG" in
1.200 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
1.201 + if [ -f "$SRCFILE" ]; then
1.202 + cp "$SRCFILE" y.tab.c
1.204 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
1.205 + if [ -f "$SRCFILE" ]; then
1.206 + cp "$SRCFILE" y.tab.h
1.211 + if [ ! -f y.tab.h ]; then
1.214 + if [ ! -f y.tab.c ]; then
1.215 + echo 'main() { return 0; }' >y.tab.c
1.221 +WARNING: \`$1' is missing on your system. You should only need it if
1.222 + you modified a \`.l' file. You may need the \`Flex' package
1.223 + in order for those modifications to take effect. You can get
1.224 + \`Flex' from any GNU archive site."
1.226 + if [ $# -ne 1 ]; then
1.227 + eval LASTARG="\${$#}"
1.228 + case "$LASTARG" in
1.230 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
1.231 + if [ -f "$SRCFILE" ]; then
1.232 + cp "$SRCFILE" lex.yy.c
1.237 + if [ ! -f lex.yy.c ]; then
1.238 + echo 'main() { return 0; }' >lex.yy.c
1.243 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
1.244 + # We have it, but it failed.
1.249 +WARNING: \`$1' is missing on your system. You should only need it if
1.250 + you modified a dependency of a manual page. You may need the
1.251 + \`Help2man' package in order for those modifications to take
1.252 + effect. You can get \`Help2man' from any GNU archive site."
1.254 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
1.255 + if test -z "$file"; then
1.256 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
1.258 + if [ -f "$file" ]; then
1.261 + test -z "$file" || exec >$file
1.262 + echo ".ab help2man is required to generate this page"
1.268 + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
1.269 + # We have makeinfo, but it failed.
1.274 +WARNING: \`$1' is missing on your system. You should only need it if
1.275 + you modified a \`.texi' or \`.texinfo' file, or any other file
1.276 + indirectly affecting the aspect of the manual. The spurious
1.277 + call might also be the consequence of using a buggy \`make' (AIX,
1.278 + DU, IRIX). You might want to install the \`Texinfo' package or
1.279 + the \`GNU make' package. Grab either from any GNU archive site."
1.280 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
1.281 + if test -z "$file"; then
1.282 + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
1.283 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
1.290 + if test -n "$run"; then
1.291 + echo 1>&2 "ERROR: \`tar' requires --run"
1.295 + # We have already tried tar in the generic part.
1.296 + # Look for gnutar/gtar before invocation to avoid ugly error
1.298 + if (gnutar --version > /dev/null 2>&1); then
1.299 + gnutar "$@" && exit 0
1.301 + if (gtar --version > /dev/null 2>&1); then
1.302 + gtar "$@" && exit 0
1.306 + case "$firstarg" in
1.308 + firstarg=`echo "$firstarg" | sed s/o//`
1.309 + tar "$firstarg" "$@" && exit 0
1.312 + case "$firstarg" in
1.314 + firstarg=`echo "$firstarg" | sed s/h//`
1.315 + tar "$firstarg" "$@" && exit 0
1.321 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
1.322 + You may want to install GNU tar or Free paxutils, or check the
1.323 + command line arguments."
1.329 +WARNING: \`$1' is needed, and you do not seem to have it handy on your
1.330 + system. You might have modified some files without having the
1.331 + proper tools for further handling them. Check the \`README' file,
1.332 + it often tells you about the needed prerequisites for installing
1.333 + this package. You may also peek at any GNU archive site, in case
1.334 + some other package would contain this missing \`$1' program."