~ubuntu-branches/ubuntu/lucid/knetfilter/lucid

« back to all changes in this revision

Viewing changes to admin/missing

  • Committer: Bazaar Package Importer
  • Author(s): Angel Ramos
  • Date: 2005-03-17 17:40:18 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050317174018-qychsdv5ifzdmblo
Tags: 3.3.1-3
Renamed mark.xpm icon. Solved conflict with kxsldbg. Thanks again
Javier. (Closes: #301886, #302534).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Common stub for a few missing GNU programs while installing.
3
 
# Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
4
4
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
5
5
 
6
6
# This program is free software; you can redistribute it and/or modify
18
18
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
19
# 02111-1307, USA.
20
20
 
 
21
# As a special exception to the GNU General Public License, if you
 
22
# distribute this file as part of a program that contains a
 
23
# configuration script generated by Autoconf, you may include it under
 
24
# the same distribution terms that you use for the rest of that program.
 
25
 
21
26
if test $# -eq 0; then
22
27
  echo 1>&2 "Try \`$0 --help' for more information"
23
28
  exit 1
25
30
 
26
31
run=:
27
32
 
 
33
# In the cases where this matters, `missing' is being run in the
 
34
# srcdir already.
 
35
if test -f configure.ac; then
 
36
  configure_ac=configure.ac
 
37
else
 
38
  configure_ac=configure.in
 
39
fi
 
40
 
28
41
case "$1" in
29
42
--run)
30
43
  # Try to run requested program, and just exit if it succeeds.
57
70
  automake     touch all \`Makefile.in' files
58
71
  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
59
72
  flex         create \`lex.yy.c', if possible, from existing .c
 
73
  help2man     touch the output file
60
74
  lex          create \`lex.yy.c', if possible, from existing .c
61
75
  makeinfo     touch the output file
62
76
  tar          try tar, gnutar, gtar, then tar without non-portable flags
64
78
    ;;
65
79
 
66
80
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67
 
    echo "missing 0.2 - GNU automake"
 
81
    echo "missing 0.4 - GNU automake"
68
82
    ;;
69
83
 
70
84
  -*)
73
87
    exit 1
74
88
    ;;
75
89
 
76
 
  aclocal)
 
90
  aclocal*)
 
91
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
92
       # We have it, but it failed.
 
93
       exit 1
 
94
    fi
 
95
 
77
96
    echo 1>&2 "\
78
97
WARNING: \`$1' is missing on your system.  You should only need it if
79
 
         you modified \`acinclude.m4' or \`configure.in'.  You might want
 
98
         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
80
99
         to install the \`Automake' and \`Perl' packages.  Grab them from
81
100
         any GNU archive site."
82
101
    touch aclocal.m4
83
102
    ;;
84
103
 
85
104
  autoconf)
 
105
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
106
       # We have it, but it failed.
 
107
       exit 1
 
108
    fi
 
109
 
86
110
    echo 1>&2 "\
87
111
WARNING: \`$1' is missing on your system.  You should only need it if
88
 
         you modified \`configure.in'.  You might want to install the
 
112
         you modified \`${configure_ac}'.  You might want to install the
89
113
         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
90
114
         archive site."
91
115
    touch configure
92
116
    ;;
93
117
 
94
118
  autoheader)
 
119
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
120
       # We have it, but it failed.
 
121
       exit 1
 
122
    fi
 
123
 
95
124
    echo 1>&2 "\
96
125
WARNING: \`$1' is missing on your system.  You should only need it if
97
 
         you modified \`acconfig.h' or \`configure.in'.  You might want
 
126
         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
98
127
         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
99
128
         from any GNU archive site."
100
 
    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
 
129
    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
101
130
    test -z "$files" && files="config.h"
102
131
    touch_files=
103
132
    for f in $files; do
110
139
    touch $touch_files
111
140
    ;;
112
141
 
113
 
  automake)
 
142
  automake*)
 
143
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
144
       # We have it, but it failed.
 
145
       exit 1
 
146
    fi
 
147
 
114
148
    echo 1>&2 "\
115
149
WARNING: \`$1' is missing on your system.  You should only need it if
116
 
         you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
 
150
         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
117
151
         You might want to install the \`Automake' and \`Perl' packages.
118
152
         Grab them from any GNU archive site."
119
153
    find . -type f -name Makefile.am -print |
121
155
           while read f; do touch "$f"; done
122
156
    ;;
123
157
 
 
158
  autom4te)
 
159
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
160
       # We have it, but it failed.
 
161
       exit 1
 
162
    fi
 
163
 
 
164
    echo 1>&2 "\
 
165
WARNING: \`$1' is needed, and you do not seem to have it handy on your
 
166
         system.  You might have modified some files without having the
 
167
         proper tools for further handling them.
 
168
         You can get \`$1Help2man' as part of \`Autoconf' from any GNU
 
169
         archive site."
 
170
 
 
171
    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
 
172
    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
 
173
    if test -f "$file"; then
 
174
        touch $file
 
175
    else
 
176
        test -z "$file" || exec >$file
 
177
        echo "#! /bin/sh"
 
178
        echo "# Created by GNU Automake missing as a replacement of"
 
179
        echo "#  $ $@"
 
180
        echo "exit 0"
 
181
        chmod +x $file
 
182
        exit 1
 
183
    fi
 
184
    ;;
 
185
 
124
186
  bison|yacc)
125
187
    echo 1>&2 "\
126
188
WARNING: \`$1' is missing on your system.  You should only need it if
174
236
    fi
175
237
    ;;
176
238
 
 
239
  help2man)
 
240
    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
 
241
       # We have it, but it failed.
 
242
       exit 1
 
243
    fi
 
244
 
 
245
    echo 1>&2 "\
 
246
WARNING: \`$1' is missing on your system.  You should only need it if
 
247
         you modified a dependency of a manual page.  You may need the
 
248
         \`Help2man' package in order for those modifications to take
 
249
         effect.  You can get \`Help2man' from any GNU archive site."
 
250
 
 
251
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
 
252
    if test -z "$file"; then
 
253
        file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
 
254
    fi
 
255
    if [ -f "$file" ]; then
 
256
        touch $file
 
257
    else
 
258
        test -z "$file" || exec >$file
 
259
        echo ".ab help2man is required to generate this page"
 
260
        exit 1
 
261
    fi
 
262
    ;;
 
263
 
177
264
  makeinfo)
 
265
    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
 
266
       # We have makeinfo, but it failed.
 
267
       exit 1
 
268
    fi
 
269
 
178
270
    echo 1>&2 "\
179
271
WARNING: \`$1' is missing on your system.  You should only need it if
180
272
         you modified a \`.texi' or \`.texinfo' file, or any other file
197
289
      exit 1
198
290
    fi
199
291
 
200
 
    # we have already tried tar in the generic part
201
 
    gnutar ${1+"$@"} && exit 0
202
 
    gtar ${1+"$@"} && exit 0
 
292
    # We have already tried tar in the generic part.
 
293
    # Look for gnutar/gtar before invocation to avoid ugly error
 
294
    # messages.
 
295
    if (gnutar --version > /dev/null 2>&1); then
 
296
       gnutar "$@" && exit 0
 
297
    fi
 
298
    if (gtar --version > /dev/null 2>&1); then
 
299
       gtar "$@" && exit 0
 
300
    fi
203
301
    firstarg="$1"
204
302
    if shift; then
205
303
        case "$firstarg" in
206
304
        *o*)
207
305
            firstarg=`echo "$firstarg" | sed s/o//`
208
 
            tar "$firstarg" ${1+"$@"} && exit 0
 
306
            tar "$firstarg" "$@" && exit 0
209
307
            ;;
210
308
        esac
211
309
        case "$firstarg" in
212
310
        *h*)
213
311
            firstarg=`echo "$firstarg" | sed s/h//`
214
 
            tar "$firstarg" ${1+"$@"} && exit 0
 
312
            tar "$firstarg" "$@" && exit 0
215
313
            ;;
216
314
        esac
217
315
    fi