Ignore:
Timestamp:
Sep 15, 2006, 7:09:38 AM (19 years ago)
Author:
bird
Message:

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/config/missing

    • Property svn:executable set to *
    r151 r503  
    22# Common stub for a few missing GNU programs while installing.
    33
    4 scriptversion=2003-09-02.23
    5 
    6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 
     4scriptversion=2005-06-08.21
     5
     6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
    77#   Free Software Foundation, Inc.
    88# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
     
    2020# You should have received a copy of the GNU General Public License
    2121# along with this program; if not, write to the Free Software
    22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    23 # 02111-1307, USA.
     22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
     23# 02110-1301, USA.
    2424
    2525# As a special exception to the GNU General Public License, if you
     
    6161  fi
    6262  ;;
    63 esac
    64 
    65 # If it does not exist, or fails to run (possibly an outdated version),
    66 # try to emulate it.
    67 case "$1" in
    6863
    6964  -h|--h|--he|--hel|--help)
     
    9388
    9489Send bug reports to <bug-automake@gnu.org>."
     90    exit $?
    9591    ;;
    9692
    9793  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
    9894    echo "missing $scriptversion (GNU Automake)"
     95    exit $?
    9996    ;;
    10097
     
    105102    ;;
    106103
    107   aclocal*)
     104esac
     105
     106# Now exit if we have it, but it failed.  Also exit now if we
     107# don't have it and --version was passed (most likely to detect
     108# the program).
     109case "$1" in
     110  lex|yacc)
     111    # Not GNU programs, they don't have --version.
     112    ;;
     113
     114  tar)
     115    if test -n "$run"; then
     116       echo 1>&2 "ERROR: \`tar' requires --run"
     117       exit 1
     118    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
     119       exit 1
     120    fi
     121    ;;
     122
     123  *)
    108124    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    109125       # We have it, but it failed.
    110126       exit 1
    111     fi
    112 
     127    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
     128       # Could not run --version or --help.  This is probably someone
     129       # running `$TOOL --version' or `$TOOL --help' to check whether
     130       # $TOOL exists and not knowing $TOOL uses missing.
     131       exit 1
     132    fi
     133    ;;
     134esac
     135
     136# If it does not exist, or fails to run (possibly an outdated version),
     137# try to emulate it.
     138case "$1" in
     139  aclocal*)
    113140    echo 1>&2 "\
    114141WARNING: \`$1' is $msg.  You should only need it if
     
    120147
    121148  autoconf)
    122     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    123        # We have it, but it failed.
    124        exit 1
    125     fi
    126 
    127149    echo 1>&2 "\
    128150WARNING: \`$1' is $msg.  You should only need it if
     
    134156
    135157  autoheader)
    136     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    137        # We have it, but it failed.
    138        exit 1
    139     fi
    140 
    141158    echo 1>&2 "\
    142159WARNING: \`$1' is $msg.  You should only need it if
     
    158175
    159176  automake*)
    160     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    161        # We have it, but it failed.
    162        exit 1
    163     fi
    164 
    165177    echo 1>&2 "\
    166178WARNING: \`$1' is $msg.  You should only need it if
     
    174186
    175187  autom4te)
    176     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    177        # We have it, but it failed.
    178        exit 1
    179     fi
    180 
    181188    echo 1>&2 "\
    182189WARNING: \`$1' is needed, but is $msg.
     
    255262
    256263  help2man)
    257     if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    258        # We have it, but it failed.
    259        exit 1
    260     fi
    261 
    262264    echo 1>&2 "\
    263265WARNING: \`$1' is $msg.  You should only need it if
     
    280282
    281283  makeinfo)
    282     if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
    283        # We have makeinfo, but it failed.
    284        exit 1
    285     fi
    286 
    287284    echo 1>&2 "\
    288285WARNING: \`$1' is $msg.  You should only need it if
     
    292289         DU, IRIX).  You might want to install the \`Texinfo' package or
    293290         the \`GNU make' package.  Grab either from any GNU archive site."
     291    # The file to touch is that specified with -o ...
    294292    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
    295293    if test -z "$file"; then
    296       file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
    297       file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
    298     fi
     294      # ... or it is the one specified with @setfilename ...
     295      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
     296      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
     297      # ... or it is derived from the source name (dir/f.texi becomes f.info)
     298      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
     299    fi
     300    # If the file does not exist, the user really needs makeinfo;
     301    # let's fail without touching anything.
     302    test -f $file || exit 1
    299303    touch $file
    300304    ;;
     
    302306  tar)
    303307    shift
    304     if test -n "$run"; then
    305       echo 1>&2 "ERROR: \`tar' requires --run"
    306       exit 1
    307     fi
    308308
    309309    # We have already tried tar in the generic part.
Note: See TracChangeset for help on using the changeset viewer.