masqmail-0.2

diff missing @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/missing	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,336 @@
     1.4 +#! /bin/sh
     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.8 +
     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.13 +
    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.18 +
    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.22 +# 02111-1307, USA.
    1.23 +
    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.28 +
    1.29 +if test $# -eq 0; then
    1.30 +  echo 1>&2 "Try \`$0 --help' for more information"
    1.31 +  exit 1
    1.32 +fi
    1.33 +
    1.34 +run=:
    1.35 +
    1.36 +# In the cases where this matters, `missing' is being run in the
    1.37 +# srcdir already.
    1.38 +if test -f configure.ac; then
    1.39 +  configure_ac=configure.ac
    1.40 +else
    1.41 +  configure_ac=configure.in
    1.42 +fi
    1.43 +
    1.44 +case "$1" in
    1.45 +--run)
    1.46 +  # Try to run requested program, and just exit if it succeeds.
    1.47 +  run=
    1.48 +  shift
    1.49 +  "$@" && exit 0
    1.50 +  ;;
    1.51 +esac
    1.52 +
    1.53 +# If it does not exist, or fails to run (possibly an outdated version),
    1.54 +# try to emulate it.
    1.55 +case "$1" in
    1.56 +
    1.57 +  -h|--h|--he|--hel|--help)
    1.58 +    echo "\
    1.59 +$0 [OPTION]... PROGRAM [ARGUMENT]...
    1.60 +
    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.63 +
    1.64 +Options:
    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.68 +
    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.81 +    ;;
    1.82 +
    1.83 +  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
    1.84 +    echo "missing 0.4 - GNU automake"
    1.85 +    ;;
    1.86 +
    1.87 +  -*)
    1.88 +    echo 1>&2 "$0: Unknown \`$1' option"
    1.89 +    echo 1>&2 "Try \`$0 --help' for more information"
    1.90 +    exit 1
    1.91 +    ;;
    1.92 +
    1.93 +  aclocal*)
    1.94 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
    1.95 +       # We have it, but it failed.
    1.96 +       exit 1
    1.97 +    fi
    1.98 +
    1.99 +    echo 1>&2 "\
   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.104 +    touch aclocal.m4
   1.105 +    ;;
   1.106 +
   1.107 +  autoconf)
   1.108 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
   1.109 +       # We have it, but it failed.
   1.110 +       exit 1
   1.111 +    fi
   1.112 +
   1.113 +    echo 1>&2 "\
   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.117 +         archive site."
   1.118 +    touch configure
   1.119 +    ;;
   1.120 +
   1.121 +  autoheader)
   1.122 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
   1.123 +       # We have it, but it failed.
   1.124 +       exit 1
   1.125 +    fi
   1.126 +
   1.127 +    echo 1>&2 "\
   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.134 +    touch_files=
   1.135 +    for f in $files; do
   1.136 +      case "$f" in
   1.137 +      *:*) touch_files="$touch_files "`echo "$f" |
   1.138 +				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
   1.139 +      *) touch_files="$touch_files $f.in";;
   1.140 +      esac
   1.141 +    done
   1.142 +    touch $touch_files
   1.143 +    ;;
   1.144 +
   1.145 +  automake*)
   1.146 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
   1.147 +       # We have it, but it failed.
   1.148 +       exit 1
   1.149 +    fi
   1.150 +
   1.151 +    echo 1>&2 "\
   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.159 +    ;;
   1.160 +
   1.161 +  autom4te)
   1.162 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
   1.163 +       # We have it, but it failed.
   1.164 +       exit 1
   1.165 +    fi
   1.166 +
   1.167 +    echo 1>&2 "\
   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.172 +         archive site."
   1.173 +
   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.177 +	touch $file
   1.178 +    else
   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.182 +	echo "#  $ $@"
   1.183 +	echo "exit 0"
   1.184 +	chmod +x $file
   1.185 +	exit 1
   1.186 +    fi
   1.187 +    ;;
   1.188 +
   1.189 +  bison|yacc)
   1.190 +    echo 1>&2 "\
   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.199 +	*.y)
   1.200 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
   1.201 +	    if [ -f "$SRCFILE" ]; then
   1.202 +	         cp "$SRCFILE" y.tab.c
   1.203 +	    fi
   1.204 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
   1.205 +	    if [ -f "$SRCFILE" ]; then
   1.206 +	         cp "$SRCFILE" y.tab.h
   1.207 +	    fi
   1.208 +	  ;;
   1.209 +	esac
   1.210 +    fi
   1.211 +    if [ ! -f y.tab.h ]; then
   1.212 +	echo >y.tab.h
   1.213 +    fi
   1.214 +    if [ ! -f y.tab.c ]; then
   1.215 +	echo 'main() { return 0; }' >y.tab.c
   1.216 +    fi
   1.217 +    ;;
   1.218 +
   1.219 +  lex|flex)
   1.220 +    echo 1>&2 "\
   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.225 +    rm -f lex.yy.c
   1.226 +    if [ $# -ne 1 ]; then
   1.227 +        eval LASTARG="\${$#}"
   1.228 +	case "$LASTARG" in
   1.229 +	*.l)
   1.230 +	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
   1.231 +	    if [ -f "$SRCFILE" ]; then
   1.232 +	         cp "$SRCFILE" lex.yy.c
   1.233 +	    fi
   1.234 +	  ;;
   1.235 +	esac
   1.236 +    fi
   1.237 +    if [ ! -f lex.yy.c ]; then
   1.238 +	echo 'main() { return 0; }' >lex.yy.c
   1.239 +    fi
   1.240 +    ;;
   1.241 +
   1.242 +  help2man)
   1.243 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
   1.244 +       # We have it, but it failed.
   1.245 +       exit 1
   1.246 +    fi
   1.247 +
   1.248 +    echo 1>&2 "\
   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.253 +
   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.257 +    fi
   1.258 +    if [ -f "$file" ]; then
   1.259 +	touch $file
   1.260 +    else
   1.261 +	test -z "$file" || exec >$file
   1.262 +	echo ".ab help2man is required to generate this page"
   1.263 +	exit 1
   1.264 +    fi
   1.265 +    ;;
   1.266 +
   1.267 +  makeinfo)
   1.268 +    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
   1.269 +       # We have makeinfo, but it failed.
   1.270 +       exit 1
   1.271 +    fi
   1.272 +
   1.273 +    echo 1>&2 "\
   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.284 +    fi
   1.285 +    touch $file
   1.286 +    ;;
   1.287 +
   1.288 +  tar)
   1.289 +    shift
   1.290 +    if test -n "$run"; then
   1.291 +      echo 1>&2 "ERROR: \`tar' requires --run"
   1.292 +      exit 1
   1.293 +    fi
   1.294 +
   1.295 +    # We have already tried tar in the generic part.
   1.296 +    # Look for gnutar/gtar before invocation to avoid ugly error
   1.297 +    # messages.
   1.298 +    if (gnutar --version > /dev/null 2>&1); then
   1.299 +       gnutar "$@" && exit 0
   1.300 +    fi
   1.301 +    if (gtar --version > /dev/null 2>&1); then
   1.302 +       gtar "$@" && exit 0
   1.303 +    fi
   1.304 +    firstarg="$1"
   1.305 +    if shift; then
   1.306 +	case "$firstarg" in
   1.307 +	*o*)
   1.308 +	    firstarg=`echo "$firstarg" | sed s/o//`
   1.309 +	    tar "$firstarg" "$@" && exit 0
   1.310 +	    ;;
   1.311 +	esac
   1.312 +	case "$firstarg" in
   1.313 +	*h*)
   1.314 +	    firstarg=`echo "$firstarg" | sed s/h//`
   1.315 +	    tar "$firstarg" "$@" && exit 0
   1.316 +	    ;;
   1.317 +	esac
   1.318 +    fi
   1.319 +
   1.320 +    echo 1>&2 "\
   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.324 +    exit 1
   1.325 +    ;;
   1.326 +
   1.327 +  *)
   1.328 +    echo 1>&2 "\
   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."
   1.335 +    exit 1
   1.336 +    ;;
   1.337 +esac
   1.338 +
   1.339 +exit 0