1,6 → 1,6 |
#! /bin/sh |
# Common stub for a few missing GNU programs while installing. |
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc. |
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. |
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
|
# This program is free software; you can redistribute it and/or modify |
78,7 → 78,7 |
;; |
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
echo "missing 0.3 - GNU automake" |
echo "missing 0.4 - GNU automake" |
;; |
|
-*) |
87,7 → 87,12 |
exit 1 |
;; |
|
aclocal) |
aclocal*) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
97,6 → 102,11 |
;; |
|
autoconf) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
you modified \`${configure_ac}'. You might want to install the |
106,6 → 116,11 |
;; |
|
autoheader) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
124,7 → 139,12 |
touch $touch_files |
;; |
|
automake) |
automake*) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
135,6 → 155,34 |
while read f; do touch "$f"; done |
;; |
|
autom4te) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is needed, and you do not seem to have it handy on your |
system. You might have modified some files without having the |
proper tools for further handling them. |
You can get \`$1Help2man' as part of \`Autoconf' from any GNU |
archive site." |
|
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` |
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` |
if test -f "$file"; then |
touch $file |
else |
test -z "$file" || exec >$file |
echo "#! /bin/sh" |
echo "# Created by GNU Automake missing as a replacement of" |
echo "# $ $@" |
echo "exit 0" |
chmod +x $file |
exit 1 |
fi |
;; |
|
bison|yacc) |
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
189,6 → 237,11 |
;; |
|
help2man) |
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
# We have it, but it failed. |
exit 1 |
fi |
|
echo 1>&2 "\ |
WARNING: \`$1' is missing on your system. You should only need it if |
you modified a dependency of a manual page. You may need the |
240,10 → 293,10 |
# Look for gnutar/gtar before invocation to avoid ugly error |
# messages. |
if (gnutar --version > /dev/null 2>&1); then |
gnutar ${1+"$@"} && exit 0 |
gnutar "$@" && exit 0 |
fi |
if (gtar --version > /dev/null 2>&1); then |
gtar ${1+"$@"} && exit 0 |
gtar "$@" && exit 0 |
fi |
firstarg="$1" |
if shift; then |
250,13 → 303,13 |
case "$firstarg" in |
*o*) |
firstarg=`echo "$firstarg" | sed s/o//` |
tar "$firstarg" ${1+"$@"} && exit 0 |
tar "$firstarg" "$@" && exit 0 |
;; |
esac |
case "$firstarg" in |
*h*) |
firstarg=`echo "$firstarg" | sed s/h//` |
tar "$firstarg" ${1+"$@"} && exit 0 |
tar "$firstarg" "$@" && exit 0 |
;; |
esac |
fi |