OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts/] [configure] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52 for rtems-scripts ss-20020807.
4
#
5
# Report bugs to .
6
#
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
 
12
# Avoid depending upon Character Ranges.
13
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16
as_cr_digits='0123456789'
17
as_cr_alnum=$as_cr_Letters$as_cr_digits
18
 
19
# Sed expression to map a string onto a valid variable name.
20
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
 
22
# Sed expression to map a string onto a valid CPP name.
23
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
 
25
# Be Bourne compatible
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
  emulate sh
28
  NULLCMD=:
29
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
  set -o posix
31
fi
32
 
33
# Name of the executable.
34
as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
 
36
if expr a : '\(a\)' >/dev/null 2>&1; then
37
  as_expr=expr
38
else
39
  as_expr=false
40
fi
41
 
42
rm -f conf$$ conf$$.exe conf$$.file
43
echo >conf$$.file
44
if ln -s conf$$.file conf$$ 2>/dev/null; then
45
  # We could just check for DJGPP; but this test a) works b) is more generic
46
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47
  if test -f conf$$.exe; then
48
    # Don't use ln at all; we don't have any links
49
    as_ln_s='cp -p'
50
  else
51
    as_ln_s='ln -s'
52
  fi
53
elif ln conf$$.file conf$$ 2>/dev/null; then
54
  as_ln_s=ln
55
else
56
  as_ln_s='cp -p'
57
fi
58
rm -f conf$$ conf$$.exe conf$$.file
59
 
60
as_executable_p="test -f"
61
 
62
# Support unset when possible.
63
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64
  as_unset=unset
65
else
66
  as_unset=false
67
fi
68
 
69
# NLS nuisances.
70
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
 
79
# IFS
80
# We need space, tab and new line, in precisely that order.
81
as_nl='
82
'
83
IFS="   $as_nl"
84
 
85
# CDPATH.
86
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
 
88
# Name of the host.
89
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90
# so uname gets run too.
91
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
 
93
exec 6>&1
94
 
95
#
96
# Initializations.
97
#
98
ac_default_prefix=/usr/local
99
cross_compiling=no
100
subdirs=
101
MFLAGS= MAKEFLAGS=
102
SHELL=${CONFIG_SHELL-/bin/sh}
103
 
104
# Maximum number of lines to put in a shell here document.
105
# This variable seems obsolete.  It should probably be removed, and
106
# only ac_max_sed_lines should be used.
107
: ${ac_max_here_lines=38}
108
 
109
ac_unique_file="binutils"
110
ac_default_prefix=/opt/rtems
111
ac_default_prefix=/opt/rtems
112
 
113
# Initialize some variables set by options.
114
ac_init_help=
115
ac_init_version=false
116
# The variables have the same names as the options, with
117
# dashes changed to underlines.
118
cache_file=/dev/null
119
exec_prefix=NONE
120
no_create=
121
no_recursion=
122
prefix=NONE
123
program_prefix=NONE
124
program_suffix=NONE
125
program_transform_name=s,x,x,
126
silent=
127
site=
128
srcdir=
129
verbose=
130
x_includes=NONE
131
x_libraries=NONE
132
 
133
# Installation directory options.
134
# These are left unexpanded so users can "make install exec_prefix=/foo"
135
# and all the variables that are supposed to be based on exec_prefix
136
# by default will actually change.
137
# Use braces instead of parens because sh, perl, etc. also accept them.
138
bindir='${exec_prefix}/bin'
139
sbindir='${exec_prefix}/sbin'
140
libexecdir='${exec_prefix}/libexec'
141
datadir='${prefix}/share'
142
sysconfdir='${prefix}/etc'
143
sharedstatedir='${prefix}/com'
144
localstatedir='${prefix}/var'
145
libdir='${exec_prefix}/lib'
146
includedir='${prefix}/include'
147
oldincludedir='/usr/include'
148
infodir='${prefix}/info'
149
mandir='${prefix}/man'
150
 
151
# Identity of this package.
152
PACKAGE_NAME='rtems-scripts'
153
PACKAGE_TARNAME='rtems-scripts'
154
PACKAGE_VERSION='ss-20020807'
155
PACKAGE_STRING='rtems-scripts ss-20020807'
156
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
157
 
158
ac_prev=
159
for ac_option
160
do
161
  # If the previous option needs an argument, assign it.
162
  if test -n "$ac_prev"; then
163
    eval "$ac_prev=\$ac_option"
164
    ac_prev=
165
    continue
166
  fi
167
 
168
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
169
 
170
  # Accept the important Cygnus configure options, so we can diagnose typos.
171
 
172
  case $ac_option in
173
 
174
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
175
    ac_prev=bindir ;;
176
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177
    bindir=$ac_optarg ;;
178
 
179
  -build | --build | --buil | --bui | --bu)
180
    ac_prev=build_alias ;;
181
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
182
    build_alias=$ac_optarg ;;
183
 
184
  -cache-file | --cache-file | --cache-fil | --cache-fi \
185
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
186
    ac_prev=cache_file ;;
187
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
188
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
189
    cache_file=$ac_optarg ;;
190
 
191
  --config-cache | -C)
192
    cache_file=config.cache ;;
193
 
194
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
195
    ac_prev=datadir ;;
196
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
197
  | --da=*)
198
    datadir=$ac_optarg ;;
199
 
200
  -disable-* | --disable-*)
201
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
202
    # Reject names that are not valid shell variable names.
203
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
204
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
205
   { (exit 1); exit 1; }; }
206
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
207
    eval "enable_$ac_feature=no" ;;
208
 
209
  -enable-* | --enable-*)
210
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
211
    # Reject names that are not valid shell variable names.
212
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
213
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
214
   { (exit 1); exit 1; }; }
215
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
216
    case $ac_option in
217
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
218
      *) ac_optarg=yes ;;
219
    esac
220
    eval "enable_$ac_feature='$ac_optarg'" ;;
221
 
222
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
223
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
224
  | --exec | --exe | --ex)
225
    ac_prev=exec_prefix ;;
226
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
227
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
228
  | --exec=* | --exe=* | --ex=*)
229
    exec_prefix=$ac_optarg ;;
230
 
231
  -gas | --gas | --ga | --g)
232
    # Obsolete; use --with-gas.
233
    with_gas=yes ;;
234
 
235
  -help | --help | --hel | --he | -h)
236
    ac_init_help=long ;;
237
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
238
    ac_init_help=recursive ;;
239
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
240
    ac_init_help=short ;;
241
 
242
  -host | --host | --hos | --ho)
243
    ac_prev=host_alias ;;
244
  -host=* | --host=* | --hos=* | --ho=*)
245
    host_alias=$ac_optarg ;;
246
 
247
  -includedir | --includedir | --includedi | --included | --include \
248
  | --includ | --inclu | --incl | --inc)
249
    ac_prev=includedir ;;
250
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251
  | --includ=* | --inclu=* | --incl=* | --inc=*)
252
    includedir=$ac_optarg ;;
253
 
254
  -infodir | --infodir | --infodi | --infod | --info | --inf)
255
    ac_prev=infodir ;;
256
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257
    infodir=$ac_optarg ;;
258
 
259
  -libdir | --libdir | --libdi | --libd)
260
    ac_prev=libdir ;;
261
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
262
    libdir=$ac_optarg ;;
263
 
264
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265
  | --libexe | --libex | --libe)
266
    ac_prev=libexecdir ;;
267
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268
  | --libexe=* | --libex=* | --libe=*)
269
    libexecdir=$ac_optarg ;;
270
 
271
  -localstatedir | --localstatedir | --localstatedi | --localstated \
272
  | --localstate | --localstat | --localsta | --localst \
273
  | --locals | --local | --loca | --loc | --lo)
274
    ac_prev=localstatedir ;;
275
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278
    localstatedir=$ac_optarg ;;
279
 
280
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281
    ac_prev=mandir ;;
282
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283
    mandir=$ac_optarg ;;
284
 
285
  -nfp | --nfp | --nf)
286
    # Obsolete; use --without-fp.
287
    with_fp=no ;;
288
 
289
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290
  | --no-cr | --no-c)
291
    no_create=yes ;;
292
 
293
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295
    no_recursion=yes ;;
296
 
297
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299
  | --oldin | --oldi | --old | --ol | --o)
300
    ac_prev=oldincludedir ;;
301
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304
    oldincludedir=$ac_optarg ;;
305
 
306
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307
    ac_prev=prefix ;;
308
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309
    prefix=$ac_optarg ;;
310
 
311
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
312
  | --program-pre | --program-pr | --program-p)
313
    ac_prev=program_prefix ;;
314
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
315
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316
    program_prefix=$ac_optarg ;;
317
 
318
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
319
  | --program-suf | --program-su | --program-s)
320
    ac_prev=program_suffix ;;
321
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
322
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323
    program_suffix=$ac_optarg ;;
324
 
325
  -program-transform-name | --program-transform-name \
326
  | --program-transform-nam | --program-transform-na \
327
  | --program-transform-n | --program-transform- \
328
  | --program-transform | --program-transfor \
329
  | --program-transfo | --program-transf \
330
  | --program-trans | --program-tran \
331
  | --progr-tra | --program-tr | --program-t)
332
    ac_prev=program_transform_name ;;
333
  -program-transform-name=* | --program-transform-name=* \
334
  | --program-transform-nam=* | --program-transform-na=* \
335
  | --program-transform-n=* | --program-transform-=* \
336
  | --program-transform=* | --program-transfor=* \
337
  | --program-transfo=* | --program-transf=* \
338
  | --program-trans=* | --program-tran=* \
339
  | --progr-tra=* | --program-tr=* | --program-t=*)
340
    program_transform_name=$ac_optarg ;;
341
 
342
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343
  | -silent | --silent | --silen | --sile | --sil)
344
    silent=yes ;;
345
 
346
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347
    ac_prev=sbindir ;;
348
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349
  | --sbi=* | --sb=*)
350
    sbindir=$ac_optarg ;;
351
 
352
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
353
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354
  | --sharedst | --shareds | --shared | --share | --shar \
355
  | --sha | --sh)
356
    ac_prev=sharedstatedir ;;
357
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360
  | --sha=* | --sh=*)
361
    sharedstatedir=$ac_optarg ;;
362
 
363
  -site | --site | --sit)
364
    ac_prev=site ;;
365
  -site=* | --site=* | --sit=*)
366
    site=$ac_optarg ;;
367
 
368
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369
    ac_prev=srcdir ;;
370
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371
    srcdir=$ac_optarg ;;
372
 
373
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374
  | --syscon | --sysco | --sysc | --sys | --sy)
375
    ac_prev=sysconfdir ;;
376
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378
    sysconfdir=$ac_optarg ;;
379
 
380
  -target | --target | --targe | --targ | --tar | --ta | --t)
381
    ac_prev=target_alias ;;
382
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383
    target_alias=$ac_optarg ;;
384
 
385
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
386
    verbose=yes ;;
387
 
388
  -version | --version | --versio | --versi | --vers | -V)
389
    ac_init_version=: ;;
390
 
391
  -with-* | --with-*)
392
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
393
    # Reject names that are not valid shell variable names.
394
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395
      { echo "$as_me: error: invalid package name: $ac_package" >&2
396
   { (exit 1); exit 1; }; }
397
    ac_package=`echo $ac_package| sed 's/-/_/g'`
398
    case $ac_option in
399
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400
      *) ac_optarg=yes ;;
401
    esac
402
    eval "with_$ac_package='$ac_optarg'" ;;
403
 
404
  -without-* | --without-*)
405
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
406
    # Reject names that are not valid shell variable names.
407
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
      { echo "$as_me: error: invalid package name: $ac_package" >&2
409
   { (exit 1); exit 1; }; }
410
    ac_package=`echo $ac_package | sed 's/-/_/g'`
411
    eval "with_$ac_package=no" ;;
412
 
413
  --x)
414
    # Obsolete; use --with-x.
415
    with_x=yes ;;
416
 
417
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418
  | --x-incl | --x-inc | --x-in | --x-i)
419
    ac_prev=x_includes ;;
420
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422
    x_includes=$ac_optarg ;;
423
 
424
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
425
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426
    ac_prev=x_libraries ;;
427
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429
    x_libraries=$ac_optarg ;;
430
 
431
  -*) { echo "$as_me: error: unrecognized option: $ac_option
432
Try \`$0 --help' for more information." >&2
433
   { (exit 1); exit 1; }; }
434
    ;;
435
 
436
  *=*)
437
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
438
    # Reject names that are not valid shell variable names.
439
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
440
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
441
   { (exit 1); exit 1; }; }
442
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
443
    eval "$ac_envvar='$ac_optarg'"
444
    export $ac_envvar ;;
445
 
446
  *)
447
    # FIXME: should be removed in autoconf 3.0.
448
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
449
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
450
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
451
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
452
    ;;
453
 
454
  esac
455
done
456
 
457
if test -n "$ac_prev"; then
458
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
459
  { echo "$as_me: error: missing argument to $ac_option" >&2
460
   { (exit 1); exit 1; }; }
461
fi
462
 
463
# Be sure to have absolute paths.
464
for ac_var in exec_prefix prefix
465
do
466
  eval ac_val=$`echo $ac_var`
467
  case $ac_val in
468
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
469
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
470
   { (exit 1); exit 1; }; };;
471
  esac
472
done
473
 
474
# Be sure to have absolute paths.
475
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
476
              localstatedir libdir includedir oldincludedir infodir mandir
477
do
478
  eval ac_val=$`echo $ac_var`
479
  case $ac_val in
480
    [\\/$]* | ?:[\\/]* ) ;;
481
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
482
   { (exit 1); exit 1; }; };;
483
  esac
484
done
485
 
486
# There might be people who depend on the old broken behavior: `$host'
487
# used to hold the argument of --host etc.
488
build=$build_alias
489
host=$host_alias
490
target=$target_alias
491
 
492
# FIXME: should be removed in autoconf 3.0.
493
if test "x$host_alias" != x; then
494
  if test "x$build_alias" = x; then
495
    cross_compiling=maybe
496
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
497
    If a cross compiler is detected then cross compile mode will be used." >&2
498
  elif test "x$build_alias" != "x$host_alias"; then
499
    cross_compiling=yes
500
  fi
501
fi
502
 
503
ac_tool_prefix=
504
test -n "$host_alias" && ac_tool_prefix=$host_alias-
505
 
506
test "$silent" = yes && exec 6>/dev/null
507
 
508
# Find the source files, if location was not specified.
509
if test -z "$srcdir"; then
510
  ac_srcdir_defaulted=yes
511
  # Try the directory containing this script, then its parent.
512
  ac_prog=$0
513
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
514
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515
  srcdir=$ac_confdir
516
  if test ! -r $srcdir/$ac_unique_file; then
517
    srcdir=..
518
  fi
519
else
520
  ac_srcdir_defaulted=no
521
fi
522
if test ! -r $srcdir/$ac_unique_file; then
523
  if test "$ac_srcdir_defaulted" = yes; then
524
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
525
   { (exit 1); exit 1; }; }
526
  else
527
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
528
   { (exit 1); exit 1; }; }
529
  fi
530
fi
531
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
532
ac_env_build_alias_set=${build_alias+set}
533
ac_env_build_alias_value=$build_alias
534
ac_cv_env_build_alias_set=${build_alias+set}
535
ac_cv_env_build_alias_value=$build_alias
536
ac_env_host_alias_set=${host_alias+set}
537
ac_env_host_alias_value=$host_alias
538
ac_cv_env_host_alias_set=${host_alias+set}
539
ac_cv_env_host_alias_value=$host_alias
540
ac_env_target_alias_set=${target_alias+set}
541
ac_env_target_alias_value=$target_alias
542
ac_cv_env_target_alias_set=${target_alias+set}
543
ac_cv_env_target_alias_value=$target_alias
544
 
545
#
546
# Report the --help message.
547
#
548
if test "$ac_init_help" = "long"; then
549
  # Omit some internal or obsolete options to make the list less imposing.
550
  # This message is too long to be a string in the A/UX 3.1 sh.
551
  cat <
552
\`configure' configures rtems-scripts ss-20020807 to adapt to many kinds of systems.
553
 
554
Usage: $0 [OPTION]... [VAR=VALUE]...
555
 
556
To assign environment variables (e.g., CC, CFLAGS...), specify them as
557
VAR=VALUE.  See below for descriptions of some of the useful variables.
558
 
559
Defaults for the options are specified in brackets.
560
 
561
Configuration:
562
  -h, --help              display this help and exit
563
      --help=short        display options specific to this package
564
      --help=recursive    display the short help of all the included packages
565
  -V, --version           display version information and exit
566
  -q, --quiet, --silent   do not print \`checking...' messages
567
      --cache-file=FILE   cache test results in FILE [disabled]
568
  -C, --config-cache      alias for \`--cache-file=config.cache'
569
  -n, --no-create         do not create output files
570
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
571
 
572
EOF
573
 
574
  cat <
575
Installation directories:
576
  --prefix=PREFIX         install architecture-independent files in PREFIX
577
                          [$ac_default_prefix]
578
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
579
                          [PREFIX]
580
 
581
By default, \`make install' will install all the files in
582
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
583
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
584
for instance \`--prefix=\$HOME'.
585
 
586
For better control, use the options below.
587
 
588
Fine tuning of the installation directories:
589
  --bindir=DIR           user executables [EPREFIX/bin]
590
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
591
  --libexecdir=DIR       program executables [EPREFIX/libexec]
592
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
593
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
594
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
595
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
596
  --libdir=DIR           object code libraries [EPREFIX/lib]
597
  --includedir=DIR       C header files [PREFIX/include]
598
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
599
  --infodir=DIR          info documentation [PREFIX/info]
600
  --mandir=DIR           man documentation [PREFIX/man]
601
EOF
602
 
603
  cat <<\EOF
604
 
605
Program names:
606
  --program-prefix=PREFIX            prepend PREFIX to installed program names
607
  --program-suffix=SUFFIX            append SUFFIX to installed program names
608
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
609
 
610
System types:
611
  --build=BUILD     configure for building on BUILD [guessed]
612
  --host=HOST       build programs to run on HOST [BUILD]
613
EOF
614
fi
615
 
616
if test -n "$ac_init_help"; then
617
  case $ac_init_help in
618
     short | recursive ) echo "Configuration of rtems-scripts ss-20020807:";;
619
   esac
620
  cat <<\EOF
621
 
622
Report bugs to .
623
EOF
624
fi
625
 
626
if test "$ac_init_help" = "recursive"; then
627
  # If there are subdirs, report their specific --help.
628
  ac_popdir=`pwd`
629
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
630
    cd $ac_subdir
631
    # A "../" for each directory in /$ac_subdir.
632
    ac_dots=`echo $ac_subdir |
633
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
634
 
635
    case $srcdir in
636
    .) # No --srcdir option.  We are building in place.
637
      ac_sub_srcdir=$srcdir ;;
638
    [\\/]* | ?:[\\/]* ) # Absolute path.
639
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
640
    *) # Relative path.
641
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
642
    esac
643
 
644
    # Check for guested configure; otherwise get Cygnus style configure.
645
    if test -f $ac_sub_srcdir/configure.gnu; then
646
      echo
647
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
648
    elif test -f $ac_sub_srcdir/configure; then
649
      echo
650
      $SHELL $ac_sub_srcdir/configure  --help=recursive
651
    elif test -f $ac_sub_srcdir/configure.ac ||
652
           test -f $ac_sub_srcdir/configure.in; then
653
      echo
654
      $ac_configure --help
655
    else
656
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
657
    fi
658
    cd $ac_popdir
659
  done
660
fi
661
 
662
test -n "$ac_init_help" && exit 0
663
if $ac_init_version; then
664
  cat <<\EOF
665
rtems-scripts configure ss-20020807
666
generated by GNU Autoconf 2.52
667
 
668
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
669
Free Software Foundation, Inc.
670
This configure script is free software; the Free Software Foundation
671
gives unlimited permission to copy, distribute and modify it.
672
EOF
673
  exit 0
674
fi
675
exec 5>config.log
676
cat >&5 <
677
This file contains any messages produced by compilers while
678
running configure, to aid debugging if configure makes a mistake.
679
 
680
It was created by rtems-scripts $as_me ss-20020807, which was
681
generated by GNU Autoconf 2.52.  Invocation command line was
682
 
683
  $ $0 $@
684
 
685
EOF
686
{
687
cat <<_ASUNAME
688
## ---------- ##
689
## Platform.  ##
690
## ---------- ##
691
 
692
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
693
uname -m = `(uname -m) 2>/dev/null || echo unknown`
694
uname -r = `(uname -r) 2>/dev/null || echo unknown`
695
uname -s = `(uname -s) 2>/dev/null || echo unknown`
696
uname -v = `(uname -v) 2>/dev/null || echo unknown`
697
 
698
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
699
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
700
 
701
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
702
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
703
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
704
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
705
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
706
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
707
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
708
 
709
PATH = $PATH
710
 
711
_ASUNAME
712
} >&5
713
 
714
cat >&5 <
715
## ------------ ##
716
## Core tests.  ##
717
## ------------ ##
718
 
719
EOF
720
 
721
# Keep a trace of the command line.
722
# Strip out --no-create and --no-recursion so they do not pile up.
723
# Also quote any args containing shell meta-characters.
724
ac_configure_args=
725
ac_sep=
726
for ac_arg
727
do
728
  case $ac_arg in
729
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
730
  | --no-cr | --no-c) ;;
731
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
732
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
733
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
734
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
735
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
736
    ac_sep=" " ;;
737
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
738
     ac_sep=" " ;;
739
  esac
740
  # Get rid of the leading space.
741
done
742
 
743
# When interrupted or exit'd, cleanup temporary files, and complete
744
# config.log.  We remove comments because anyway the quotes in there
745
# would cause problems or look ugly.
746
trap 'exit_status=$?
747
  # Save into config.log some information that might help in debugging.
748
  echo >&5
749
  echo "## ----------------- ##" >&5
750
  echo "## Cache variables.  ##" >&5
751
  echo "## ----------------- ##" >&5
752
  echo >&5
753
  # The following way of writing the cache mishandles newlines in values,
754
{
755
  (set) 2>&1 |
756
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
757
    *ac_space=\ *)
758
      sed -n \
759
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
760
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
761
      ;;
762
    *)
763
      sed -n \
764
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
765
      ;;
766
    esac;
767
} >&5
768
  sed "/^$/d" confdefs.h >conftest.log
769
  if test -s conftest.log; then
770
    echo >&5
771
    echo "## ------------ ##" >&5
772
    echo "## confdefs.h.  ##" >&5
773
    echo "## ------------ ##" >&5
774
    echo >&5
775
    cat conftest.log >&5
776
  fi
777
  (echo; echo) >&5
778
  test "$ac_signal" != 0 &&
779
    echo "$as_me: caught signal $ac_signal" >&5
780
  echo "$as_me: exit $exit_status" >&5
781
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
782
    exit $exit_status
783
     ' 0
784
for ac_signal in 1 2 13 15; do
785
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
786
done
787
ac_signal=0
788
 
789
# confdefs.h avoids OS command line length limits that DEFS can exceed.
790
rm -rf conftest* confdefs.h
791
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
792
echo >confdefs.h
793
 
794
# Let the site file select an alternate cache file if it wants to.
795
# Prefer explicitly selected file to automatically selected ones.
796
if test -z "$CONFIG_SITE"; then
797
  if test "x$prefix" != xNONE; then
798
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
799
  else
800
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
801
  fi
802
fi
803
for ac_site_file in $CONFIG_SITE; do
804
  if test -r "$ac_site_file"; then
805
    { echo "$as_me:805: loading site script $ac_site_file" >&5
806
echo "$as_me: loading site script $ac_site_file" >&6;}
807
    cat "$ac_site_file" >&5
808
    . "$ac_site_file"
809
  fi
810
done
811
 
812
if test -r "$cache_file"; then
813
  # Some versions of bash will fail to source /dev/null (special
814
  # files actually), so we avoid doing that.
815
  if test -f "$cache_file"; then
816
    { echo "$as_me:816: loading cache $cache_file" >&5
817
echo "$as_me: loading cache $cache_file" >&6;}
818
    case $cache_file in
819
      [\\/]* | ?:[\\/]* ) . $cache_file;;
820
      *)                      . ./$cache_file;;
821
    esac
822
  fi
823
else
824
  { echo "$as_me:824: creating cache $cache_file" >&5
825
echo "$as_me: creating cache $cache_file" >&6;}
826
  >$cache_file
827
fi
828
 
829
# Check that the precious variables saved in the cache have kept the same
830
# value.
831
ac_cache_corrupted=false
832
for ac_var in `(set) 2>&1 |
833
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
834
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
835
  eval ac_new_set=\$ac_env_${ac_var}_set
836
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
837
  eval ac_new_val="\$ac_env_${ac_var}_value"
838
  case $ac_old_set,$ac_new_set in
839
    set,)
840
      { echo "$as_me:840: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
841
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
842
      ac_cache_corrupted=: ;;
843
    ,set)
844
      { echo "$as_me:844: error: \`$ac_var' was not set in the previous run" >&5
845
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
846
      ac_cache_corrupted=: ;;
847
    ,);;
848
    *)
849
      if test "x$ac_old_val" != "x$ac_new_val"; then
850
        { echo "$as_me:850: error: \`$ac_var' has changed since the previous run:" >&5
851
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
852
        { echo "$as_me:852:   former value:  $ac_old_val" >&5
853
echo "$as_me:   former value:  $ac_old_val" >&2;}
854
        { echo "$as_me:854:   current value: $ac_new_val" >&5
855
echo "$as_me:   current value: $ac_new_val" >&2;}
856
        ac_cache_corrupted=:
857
      fi;;
858
  esac
859
  # Pass precious variables to config.status.  It doesn't matter if
860
  # we pass some twice (in addition to the command line arguments).
861
  if test "$ac_new_set" = set; then
862
    case $ac_new_val in
863
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
864
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
865
      ac_configure_args="$ac_configure_args '$ac_arg'"
866
      ;;
867
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
868
       ;;
869
    esac
870
  fi
871
done
872
if $ac_cache_corrupted; then
873
  { echo "$as_me:873: error: changes in the environment can compromise the build" >&5
874
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
875
  { { echo "$as_me:875: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
876
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
877
   { (exit 1); exit 1; }; }
878
fi
879
 
880
ac_ext=c
881
ac_cpp='$CPP $CPPFLAGS'
882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
885
 
886
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
887
  *c*,-n*) ECHO_N= ECHO_C='
888
' ECHO_T='      ' ;;
889
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
890
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
891
esac
892
echo "#! $SHELL" >conftest.sh
893
echo  "exit 0"   >>conftest.sh
894
chmod +x conftest.sh
895
if { (echo "$as_me:895: PATH=\".;.\"; conftest.sh") >&5
896
  (PATH=".;."; conftest.sh) 2>&5
897
  ac_status=$?
898
  echo "$as_me:898: \$? = $ac_status" >&5
899
  (exit $ac_status); }; then
900
  ac_path_separator=';'
901
else
902
  ac_path_separator=:
903
fi
904
PATH_SEPARATOR="$ac_path_separator"
905
rm -f conftest.sh
906
 
907
for ac_prog in gmake make
908
do
909
  # Extract the first word of "$ac_prog", so it can be a program name with args.
910
set dummy $ac_prog; ac_word=$2
911
echo "$as_me:911: checking for $ac_word" >&5
912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
913
if test "${ac_cv_prog_MAKE+set}" = set; then
914
  echo $ECHO_N "(cached) $ECHO_C" >&6
915
else
916
  if test -n "$MAKE"; then
917
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
918
else
919
  ac_save_IFS=$IFS; IFS=$ac_path_separator
920
ac_dummy="$PATH"
921
for ac_dir in $ac_dummy; do
922
  IFS=$ac_save_IFS
923
  test -z "$ac_dir" && ac_dir=.
924
  $as_executable_p "$ac_dir/$ac_word" || continue
925
ac_cv_prog_MAKE="$ac_prog"
926
echo "$as_me:926: found $ac_dir/$ac_word" >&5
927
break
928
done
929
 
930
fi
931
fi
932
MAKE=$ac_cv_prog_MAKE
933
if test -n "$MAKE"; then
934
  echo "$as_me:934: result: $MAKE" >&5
935
echo "${ECHO_T}$MAKE" >&6
936
else
937
  echo "$as_me:937: result: no" >&5
938
echo "${ECHO_T}no" >&6
939
fi
940
 
941
  test -n "$MAKE" && break
942
done
943
 
944
ENDIF=endif
945
 
946
RTEMS_TOPdir="..";
947
 
948
test -n "$with_target_subdir" || with_target_subdir="."
949
 
950
if test "$with_target_subdir" = "." ; then
951
# Native
952
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
953
else
954
# Cross
955
dots=`echo $with_target_subdir|\
956
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
957
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
958
fi
959
 
960
if test "$with_target_subdir" = "." ; then
961
# Native
962
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
963
else
964
# Cross
965
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
966
fi
967
 
968
echo "$as_me:968: checking for RTEMS Version" >&5
969
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
970
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
971
  :
972
else
973
  { { echo "$as_me:973: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
974
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
975
   { (exit 1); exit 1; }; }
976
fi
977
 
978
echo "$as_me:978: result: ss-20020807" >&5
979
echo "${ECHO_T}ss-20020807" >&6
980
 
981
am__api_version="1.6"
982
ac_aux_dir=
983
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984
  if test -f $ac_dir/install-sh; then
985
    ac_aux_dir=$ac_dir
986
    ac_install_sh="$ac_aux_dir/install-sh -c"
987
    break
988
  elif test -f $ac_dir/install.sh; then
989
    ac_aux_dir=$ac_dir
990
    ac_install_sh="$ac_aux_dir/install.sh -c"
991
    break
992
  elif test -f $ac_dir/shtool; then
993
    ac_aux_dir=$ac_dir
994
    ac_install_sh="$ac_aux_dir/shtool install -c"
995
    break
996
  fi
997
done
998
if test -z "$ac_aux_dir"; then
999
  { { echo "$as_me:999: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1000
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1001
   { (exit 1); exit 1; }; }
1002
fi
1003
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1004
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1005
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1006
 
1007
# Find a good install program.  We prefer a C program (faster),
1008
# so one script is as good as another.  But avoid the broken or
1009
# incompatible versions:
1010
# SysV /etc/install, /usr/sbin/install
1011
# SunOS /usr/etc/install
1012
# IRIX /sbin/install
1013
# AIX /bin/install
1014
# AmigaOS /C/install, which installs bootblocks on floppy discs
1015
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1016
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1017
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1018
# ./install, which can be erroneously created by make from ./install.sh.
1019
echo "$as_me:1019: checking for a BSD compatible install" >&5
1020
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1021
if test -z "$INSTALL"; then
1022
if test "${ac_cv_path_install+set}" = set; then
1023
  echo $ECHO_N "(cached) $ECHO_C" >&6
1024
else
1025
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1026
  for ac_dir in $PATH; do
1027
    IFS=$ac_save_IFS
1028
    # Account for people who put trailing slashes in PATH elements.
1029
    case $ac_dir/ in
1030
    / | ./ | .// | /cC/* \
1031
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1032
    | /usr/ucb/* ) ;;
1033
    *)
1034
      # OSF1 and SCO ODT 3.0 have their own names for install.
1035
      # Don't use installbsd from OSF since it installs stuff as root
1036
      # by default.
1037
      for ac_prog in ginstall scoinst install; do
1038
        if $as_executable_p "$ac_dir/$ac_prog"; then
1039
          if test $ac_prog = install &&
1040
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1041
            # AIX install.  It has an incompatible calling convention.
1042
            :
1043
          elif test $ac_prog = install &&
1044
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1045
            # program-specific install script used by HP pwplus--don't use.
1046
            :
1047
          else
1048
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1049
            break 2
1050
          fi
1051
        fi
1052
      done
1053
      ;;
1054
    esac
1055
  done
1056
 
1057
fi
1058
  if test "${ac_cv_path_install+set}" = set; then
1059
    INSTALL=$ac_cv_path_install
1060
  else
1061
    # As a last resort, use the slow shell script.  We don't cache a
1062
    # path for INSTALL within a source directory, because that will
1063
    # break other packages using the cache if that directory is
1064
    # removed, or if the path is relative.
1065
    INSTALL=$ac_install_sh
1066
  fi
1067
fi
1068
echo "$as_me:1068: result: $INSTALL" >&5
1069
echo "${ECHO_T}$INSTALL" >&6
1070
 
1071
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072
# It thinks the first close brace ends the variable substitution.
1073
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074
 
1075
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1076
 
1077
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1078
 
1079
echo "$as_me:1079: checking whether build environment is sane" >&5
1080
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1081
# Just in case
1082
sleep 1
1083
echo timestamp > conftest.file
1084
# Do `set' in a subshell so we don't clobber the current shell's
1085
# arguments.  Must try -L first in case configure is actually a
1086
# symlink; some systems play weird games with the mod time of symlinks
1087
# (eg FreeBSD returns the mod time of the symlink's containing
1088
# directory).
1089
if (
1090
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1091
   if test "$*" = "X"; then
1092
      # -L didn't work.
1093
      set X `ls -t $srcdir/configure conftest.file`
1094
   fi
1095
   rm -f conftest.file
1096
   if test "$*" != "X $srcdir/configure conftest.file" \
1097
      && test "$*" != "X conftest.file $srcdir/configure"; then
1098
 
1099
      # If neither matched, then we have a broken ls.  This can happen
1100
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1101
      # broken ls alias from the environment.  This has actually
1102
      # happened.  Such a system could not be considered "sane".
1103
      { { echo "$as_me:1103: error: ls -t appears to fail.  Make sure there is not a broken
1104
alias in your environment" >&5
1105
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1106
alias in your environment" >&2;}
1107
   { (exit 1); exit 1; }; }
1108
   fi
1109
 
1110
   test "$2" = conftest.file
1111
   )
1112
then
1113
   # Ok.
1114
   :
1115
else
1116
   { { echo "$as_me:1116: error: newly created file is older than distributed files!
1117
Check your system clock" >&5
1118
echo "$as_me: error: newly created file is older than distributed files!
1119
Check your system clock" >&2;}
1120
   { (exit 1); exit 1; }; }
1121
fi
1122
echo "$as_me:1122: result: yes" >&5
1123
echo "${ECHO_T}yes" >&6
1124
test "$program_prefix" != NONE &&
1125
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1126
# Use a double $ so make ignores it.
1127
test "$program_suffix" != NONE &&
1128
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1129
# Double any \ or $.  echo might interpret backslashes.
1130
# By default was `s,x,x', remove it if useless.
1131
cat <<\_ACEOF >conftest.sed
1132
s/[\\$]/&&/g;s/;s,x,x,$//
1133
_ACEOF
1134
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1135
rm conftest.sed
1136
 
1137
# expand $ac_aux_dir to an absolute path
1138
am_aux_dir=`cd $ac_aux_dir && pwd`
1139
 
1140
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1141
# Use eval to expand $SHELL
1142
if eval "$MISSING --run true"; then
1143
  am_missing_run="$MISSING --run "
1144
else
1145
  am_missing_run=
1146
  { echo "$as_me:1146: WARNING: \`missing' script is too old or missing" >&5
1147
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1148
fi
1149
 
1150
for ac_prog in mawk gawk nawk awk
1151
do
1152
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1153
set dummy $ac_prog; ac_word=$2
1154
echo "$as_me:1154: checking for $ac_word" >&5
1155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1156
if test "${ac_cv_prog_AWK+set}" = set; then
1157
  echo $ECHO_N "(cached) $ECHO_C" >&6
1158
else
1159
  if test -n "$AWK"; then
1160
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1161
else
1162
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1163
ac_dummy="$PATH"
1164
for ac_dir in $ac_dummy; do
1165
  IFS=$ac_save_IFS
1166
  test -z "$ac_dir" && ac_dir=.
1167
  $as_executable_p "$ac_dir/$ac_word" || continue
1168
ac_cv_prog_AWK="$ac_prog"
1169
echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1170
break
1171
done
1172
 
1173
fi
1174
fi
1175
AWK=$ac_cv_prog_AWK
1176
if test -n "$AWK"; then
1177
  echo "$as_me:1177: result: $AWK" >&5
1178
echo "${ECHO_T}$AWK" >&6
1179
else
1180
  echo "$as_me:1180: result: no" >&5
1181
echo "${ECHO_T}no" >&6
1182
fi
1183
 
1184
  test -n "$AWK" && break
1185
done
1186
 
1187
echo "$as_me:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1188
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1189
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1190
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1191
  echo $ECHO_N "(cached) $ECHO_C" >&6
1192
else
1193
  cat >conftest.make <<\EOF
1194
all:
1195
        @echo 'ac_maketemp="${MAKE}"'
1196
EOF
1197
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1198
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1199
if test -n "$ac_maketemp"; then
1200
  eval ac_cv_prog_make_${ac_make}_set=yes
1201
else
1202
  eval ac_cv_prog_make_${ac_make}_set=no
1203
fi
1204
rm -f conftest.make
1205
fi
1206
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1207
  echo "$as_me:1207: result: yes" >&5
1208
echo "${ECHO_T}yes" >&6
1209
  SET_MAKE=
1210
else
1211
  echo "$as_me:1211: result: no" >&5
1212
echo "${ECHO_T}no" >&6
1213
  SET_MAKE="MAKE=${MAKE-make}"
1214
fi
1215
 
1216
 # test to see if srcdir already configured
1217
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1218
   test -f $srcdir/config.status; then
1219
  { { echo "$as_me:1219: error: source directory already configured; run \"make distclean\" there first" >&5
1220
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1221
   { (exit 1); exit 1; }; }
1222
fi
1223
 
1224
# Define the identity of the package.
1225
 PACKAGE=rtems-scripts
1226
 VERSION=ss-20020807
1227
 
1228
# Some tools Automake needs.
1229
 
1230
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1231
 
1232
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1233
 
1234
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1235
 
1236
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1237
 
1238
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1239
 
1240
AMTAR=${AMTAR-"${am_missing_run}tar"}
1241
 
1242
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1243
 
1244
# Installed binaries are usually stripped using `strip' when the user
1245
# run `make install-strip'.  However `strip' might not be the right
1246
# tool to use in cross-compilation environments, therefore Automake
1247
# will honor the `STRIP' environment variable to overrule this program.
1248
if test "$cross_compiling" != no; then
1249
  if test -n "$ac_tool_prefix"; then
1250
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1251
set dummy ${ac_tool_prefix}strip; ac_word=$2
1252
echo "$as_me:1252: checking for $ac_word" >&5
1253
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254
if test "${ac_cv_prog_STRIP+set}" = set; then
1255
  echo $ECHO_N "(cached) $ECHO_C" >&6
1256
else
1257
  if test -n "$STRIP"; then
1258
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1259
else
1260
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1261
ac_dummy="$PATH"
1262
for ac_dir in $ac_dummy; do
1263
  IFS=$ac_save_IFS
1264
  test -z "$ac_dir" && ac_dir=.
1265
  $as_executable_p "$ac_dir/$ac_word" || continue
1266
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1267
echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1268
break
1269
done
1270
 
1271
fi
1272
fi
1273
STRIP=$ac_cv_prog_STRIP
1274
if test -n "$STRIP"; then
1275
  echo "$as_me:1275: result: $STRIP" >&5
1276
echo "${ECHO_T}$STRIP" >&6
1277
else
1278
  echo "$as_me:1278: result: no" >&5
1279
echo "${ECHO_T}no" >&6
1280
fi
1281
 
1282
fi
1283
if test -z "$ac_cv_prog_STRIP"; then
1284
  ac_ct_STRIP=$STRIP
1285
  # Extract the first word of "strip", so it can be a program name with args.
1286
set dummy strip; ac_word=$2
1287
echo "$as_me:1287: checking for $ac_word" >&5
1288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1290
  echo $ECHO_N "(cached) $ECHO_C" >&6
1291
else
1292
  if test -n "$ac_ct_STRIP"; then
1293
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1294
else
1295
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1296
ac_dummy="$PATH"
1297
for ac_dir in $ac_dummy; do
1298
  IFS=$ac_save_IFS
1299
  test -z "$ac_dir" && ac_dir=.
1300
  $as_executable_p "$ac_dir/$ac_word" || continue
1301
ac_cv_prog_ac_ct_STRIP="strip"
1302
echo "$as_me:1302: found $ac_dir/$ac_word" >&5
1303
break
1304
done
1305
 
1306
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1307
fi
1308
fi
1309
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1310
if test -n "$ac_ct_STRIP"; then
1311
  echo "$as_me:1311: result: $ac_ct_STRIP" >&5
1312
echo "${ECHO_T}$ac_ct_STRIP" >&6
1313
else
1314
  echo "$as_me:1314: result: no" >&5
1315
echo "${ECHO_T}no" >&6
1316
fi
1317
 
1318
  STRIP=$ac_ct_STRIP
1319
else
1320
  STRIP="$ac_cv_prog_STRIP"
1321
fi
1322
 
1323
fi
1324
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1325
 
1326
# We need awk for the "check" target.  The system "awk" is bad on
1327
# some platforms.
1328
 
1329
# Make sure we can run config.sub.
1330
$ac_config_sub sun4 >/dev/null 2>&1 ||
1331
  { { echo "$as_me:1331: error: cannot run $ac_config_sub" >&5
1332
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1333
   { (exit 1); exit 1; }; }
1334
 
1335
echo "$as_me:1335: checking build system type" >&5
1336
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1337
if test "${ac_cv_build+set}" = set; then
1338
  echo $ECHO_N "(cached) $ECHO_C" >&6
1339
else
1340
  ac_cv_build_alias=$build_alias
1341
test -z "$ac_cv_build_alias" &&
1342
  ac_cv_build_alias=`$ac_config_guess`
1343
test -z "$ac_cv_build_alias" &&
1344
  { { echo "$as_me:1344: error: cannot guess build type; you must specify one" >&5
1345
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1346
   { (exit 1); exit 1; }; }
1347
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1348
  { { echo "$as_me:1348: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1349
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1350
   { (exit 1); exit 1; }; }
1351
 
1352
fi
1353
echo "$as_me:1353: result: $ac_cv_build" >&5
1354
echo "${ECHO_T}$ac_cv_build" >&6
1355
build=$ac_cv_build
1356
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1357
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1358
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359
 
1360
echo "$as_me:1360: checking host system type" >&5
1361
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1362
if test "${ac_cv_host+set}" = set; then
1363
  echo $ECHO_N "(cached) $ECHO_C" >&6
1364
else
1365
  ac_cv_host_alias=$host_alias
1366
test -z "$ac_cv_host_alias" &&
1367
  ac_cv_host_alias=$ac_cv_build_alias
1368
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1369
  { { echo "$as_me:1369: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1370
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1371
   { (exit 1); exit 1; }; }
1372
 
1373
fi
1374
echo "$as_me:1374: result: $ac_cv_host" >&5
1375
echo "${ECHO_T}$ac_cv_host" >&6
1376
host=$ac_cv_host
1377
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
 
1381
# Check for .exe suffix.
1382
# With autoconf > 2.13 AC_EXEEXT is not what we want to use.
1383
echo "$as_me:1383: checking for executable suffix" >&5
1384
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1385
case "$host" in
1386
i?86-*cygwin*)
1387
  EXEEXT=.exe ;;
1388
esac
1389
 
1390
echo "$as_me:1390: result: $EXEEXT" >&5
1391
echo "${ECHO_T}$EXEEXT" >&6
1392
 
1393
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
1394
. ./setup.cache
1395
 
1396
echo "$as_me:1396: checking for rpm SPECS directory" >&5
1397
echo $ECHO_N "checking for rpm SPECS directory... $ECHO_C" >&6
1398
# Allow users to override RPM_SPECSdir from the environment.
1399
if test -z "$RPM_SPECSdir" ;
1400
then
1401
# SuSE uses /usr/src/packages
1402
# redhat uses /usr/src/redhat
1403
# MDK is reported to use /usr/src/RPM
1404
# others might use /usr/src
1405
  rpmpath="/usr:/usr/local"
1406
  rpmdirs="src/packages:src/redhat:src/RPM:src"
1407
  save_IFS="$IFS"; IFS=":"
1408
  for d in $rpmdirs; do
1409
    for p in $rpmpath; do
1410
      list="$p/$d:$list"
1411
    done
1412
  done
1413
  for d in $list; do
1414
    if test -d $d/SPECS; then
1415
      RPM_SPECSdir="$d/SPECS";
1416
      break;
1417
    fi
1418
  done
1419
  IFS="$save_IFS"
1420
fi
1421
 
1422
if test x"$RPM_SPECSdir" = x"" ; then
1423
{ { echo "$as_me:1423: error: not found" >&5
1424
echo "$as_me: error: not found" >&2;}
1425
   { (exit 1); exit 1; }; }
1426
fi
1427
echo "$as_me:1427: result: $RPM_SPECSdir" >&5
1428
echo "${ECHO_T}$RPM_SPECSdir" >&6
1429
 
1430
echo "$as_me:1430: checking for RPM CPU type" >&5
1431
echo $ECHO_N "checking for RPM CPU type... $ECHO_C" >&6
1432
case "$host" in
1433
  i?86-*linux*)         RPM_CPU=i386 ;;
1434
  i?86-*cygwin*)        RPM_CPU=i386 ;;
1435
  sparc-*solaris*)      RPM_CPU=sparc ;;
1436
  *)
1437
    { { echo "$as_me:1437: error: RPM CPU for ${host} is unknown" >&5
1438
echo "$as_me: error: RPM CPU for ${host} is unknown" >&2;}
1439
   { (exit 1); exit 1; }; }
1440
    ;;
1441
esac
1442
echo "$as_me:1442: result: $RPM_CPU" >&5
1443
echo "${ECHO_T}$RPM_CPU" >&6
1444
 
1445
GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}"
1446
 
1447
GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}"
1448
 
1449
BINUTILSVERS="binutils-${binutils_version}"
1450
 
1451
GDBVERS="gdb-${gdb_version}"
1452
 
1453
BSPVERS="${rtems_version}"
1454
 
1455
ac_config_files="$ac_config_files Makefile binutils/Makefile gccnewlib/Makefile gcc3newlib/Makefile gdb/Makefile rtems/Makefile autotools/Makefile autotools/automake-rtems.spec cpukit/Makefile"
1456
 
1457
ac_config_files="$ac_config_files buildalltar"
1458
 
1459
ac_config_files="$ac_config_files buildall"
1460
 
1461
ac_config_files="$ac_config_files mkgdbspec"
1462
 
1463
ac_config_files="$ac_config_files mkbinutilspec"
1464
 
1465
ac_config_files="$ac_config_files mkgccnewlibspec"
1466
 
1467
ac_config_files="$ac_config_files mkgcc3newlibspec"
1468
 
1469
ac_config_files="$ac_config_files mkbspspec"
1470
 
1471
ac_config_files="$ac_config_files cpukit/mkspec"
1472
 
1473
ac_config_commands="$ac_config_commands default"
1474
 
1475
cat >confcache <<\_ACEOF
1476
# This file is a shell script that caches the results of configure
1477
# tests run on this system so they can be shared between configure
1478
# scripts and configure runs, see configure's option --config-cache.
1479
# It is not useful on other systems.  If it contains results you don't
1480
# want to keep, you may remove or edit it.
1481
#
1482
# config.status only pays attention to the cache file if you give it
1483
# the --recheck option to rerun configure.
1484
#
1485
# `ac_cv_env_foo' variables (set or unset) will be overriden when
1486
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1487
# following values.
1488
 
1489
_ACEOF
1490
 
1491
# The following way of writing the cache mishandles newlines in values,
1492
# but we know of no workaround that is simple, portable, and efficient.
1493
# So, don't put newlines in cache variables' values.
1494
# Ultrix sh set writes to stderr and can't be redirected directly,
1495
# and sets the high bit in the cache file unless we assign to the vars.
1496
{
1497
  (set) 2>&1 |
1498
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
1499
    *ac_space=\ *)
1500
      # `set' does not quote correctly, so add quotes (double-quote
1501
      # substitution turns \\\\ into \\, and sed turns \\ into \).
1502
      sed -n \
1503
        "s/'/'\\\\''/g;
1504
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1505
      ;;
1506
    *)
1507
      # `set' quotes correctly as required by POSIX, so do not add quotes.
1508
      sed -n \
1509
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1510
      ;;
1511
    esac;
1512
} |
1513
  sed '
1514
     t clear
1515
     : clear
1516
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1517
     t end
1518
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1519
     : end' >>confcache
1520
if cmp -s $cache_file confcache; then :; else
1521
  if test -w $cache_file; then
1522
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1523
    cat confcache >$cache_file
1524
  else
1525
    echo "not updating unwritable cache $cache_file"
1526
  fi
1527
fi
1528
rm -f confcache
1529
 
1530
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1531
# Let make expand exec_prefix.
1532
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1533
 
1534
# VPATH may cause trouble with some makes, so we remove $(srcdir),
1535
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1536
# trailing colons and then remove the whole line if VPATH becomes empty
1537
# (actually we leave an empty line to preserve line numbers).
1538
if test "x$srcdir" = x.; then
1539
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
1540
s/:*\$(srcdir):*/:/;
1541
s/:*\${srcdir}:*/:/;
1542
s/:*@srcdir@:*/:/;
1543
s/^\([^=]*=[    ]*\):*/\1/;
1544
s/:*$//;
1545
s/^[^=]*=[      ]*$//;
1546
}'
1547
fi
1548
 
1549
# Transform confdefs.h into DEFS.
1550
# Protect against shell expansion while executing Makefile rules.
1551
# Protect against Makefile macro expansion.
1552
#
1553
# If the first sed substitution is executed (which looks for macros that
1554
# take arguments), then we branch to the quote section.  Otherwise,
1555
# look for a macro that doesn't take arguments.
1556
cat >confdef2opt.sed <<\EOF
1557
t clear
1558
: clear
1559
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1560
t quote
1561
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1562
t quote
1563
d
1564
: quote
1565
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1566
s,\[,\\&,g
1567
s,\],\\&,g
1568
s,\$,$$,g
1569
p
1570
EOF
1571
# We use echo to avoid assuming a particular line-breaking character.
1572
# The extra dot is to prevent the shell from consuming trailing
1573
# line-breaks from the sub-command output.  A line-break within
1574
# single-quotes doesn't work because, if this script is created in a
1575
# platform that uses two characters for line-breaks (e.g., DOS), tr
1576
# would break.
1577
ac_LF_and_DOT=`echo; echo .`
1578
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1579
rm -f confdef2opt.sed
1580
 
1581
: ${CONFIG_STATUS=./config.status}
1582
ac_clean_files_save=$ac_clean_files
1583
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1584
{ echo "$as_me:1584: creating $CONFIG_STATUS" >&5
1585
echo "$as_me: creating $CONFIG_STATUS" >&6;}
1586
cat >$CONFIG_STATUS <<_ACEOF
1587
#! $SHELL
1588
# Generated automatically by configure.
1589
# Run this file to recreate the current configuration.
1590
# Compiler output produced by configure, useful for debugging
1591
# configure, is in config.log if it exists.
1592
 
1593
debug=false
1594
SHELL=\${CONFIG_SHELL-$SHELL}
1595
ac_cs_invocation="\$0 \$@"
1596
 
1597
_ACEOF
1598
 
1599
cat >>$CONFIG_STATUS <<\_ACEOF
1600
# Be Bourne compatible
1601
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1602
  emulate sh
1603
  NULLCMD=:
1604
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1605
  set -o posix
1606
fi
1607
 
1608
# Name of the executable.
1609
as_me=`echo "$0" |sed 's,.*[\\/],,'`
1610
 
1611
if expr a : '\(a\)' >/dev/null 2>&1; then
1612
  as_expr=expr
1613
else
1614
  as_expr=false
1615
fi
1616
 
1617
rm -f conf$$ conf$$.exe conf$$.file
1618
echo >conf$$.file
1619
if ln -s conf$$.file conf$$ 2>/dev/null; then
1620
  # We could just check for DJGPP; but this test a) works b) is more generic
1621
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1622
  if test -f conf$$.exe; then
1623
    # Don't use ln at all; we don't have any links
1624
    as_ln_s='cp -p'
1625
  else
1626
    as_ln_s='ln -s'
1627
  fi
1628
elif ln conf$$.file conf$$ 2>/dev/null; then
1629
  as_ln_s=ln
1630
else
1631
  as_ln_s='cp -p'
1632
fi
1633
rm -f conf$$ conf$$.exe conf$$.file
1634
 
1635
as_executable_p="test -f"
1636
 
1637
# Support unset when possible.
1638
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1639
  as_unset=unset
1640
else
1641
  as_unset=false
1642
fi
1643
 
1644
# NLS nuisances.
1645
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1646
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1647
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1648
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1649
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1650
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1651
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1652
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1653
 
1654
# IFS
1655
# We need space, tab and new line, in precisely that order.
1656
as_nl='
1657
'
1658
IFS="   $as_nl"
1659
 
1660
# CDPATH.
1661
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1662
 
1663
exec 6>&1
1664
 
1665
_ACEOF
1666
 
1667
# Files that config.status was made for.
1668
if test -n "$ac_config_files"; then
1669
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1670
fi
1671
 
1672
if test -n "$ac_config_headers"; then
1673
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1674
fi
1675
 
1676
if test -n "$ac_config_links"; then
1677
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1678
fi
1679
 
1680
if test -n "$ac_config_commands"; then
1681
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1682
fi
1683
 
1684
cat >>$CONFIG_STATUS <<\EOF
1685
 
1686
ac_cs_usage="\
1687
\`$as_me' instantiates files from templates according to the
1688
current configuration.
1689
 
1690
Usage: $0 [OPTIONS] [FILE]...
1691
 
1692
  -h, --help       print this help, then exit
1693
  -V, --version    print version number, then exit
1694
  -d, --debug      don't remove temporary files
1695
      --recheck    update $as_me by reconfiguring in the same conditions
1696
  --file=FILE[:TEMPLATE]
1697
                   instantiate the configuration file FILE
1698
 
1699
Configuration files:
1700
$config_files
1701
 
1702
Configuration commands:
1703
$config_commands
1704
 
1705
Report bugs to ."
1706
EOF
1707
 
1708
cat >>$CONFIG_STATUS <
1709
ac_cs_version="\\
1710
rtems-scripts config.status ss-20020807
1711
configured by $0, generated by GNU Autoconf 2.52,
1712
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1713
 
1714
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1715
Free Software Foundation, Inc.
1716
This config.status script is free software; the Free Software Foundation
1717
gives unlimited permission to copy, distribute and modify it."
1718
srcdir=$srcdir
1719
INSTALL="$INSTALL"
1720
EOF
1721
 
1722
cat >>$CONFIG_STATUS <<\EOF
1723
# If no file are specified by the user, then we need to provide default
1724
# value.  By we need to know if files were specified by the user.
1725
ac_need_defaults=:
1726
while test $# != 0
1727
do
1728
  case $1 in
1729
  --*=*)
1730
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
1731
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1732
    shift
1733
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1734
    shift
1735
    ;;
1736
  -*);;
1737
  *) # This is not an option, so the user has probably given explicit
1738
     # arguments.
1739
     ac_need_defaults=false;;
1740
  esac
1741
 
1742
  case $1 in
1743
  # Handling of the options.
1744
EOF
1745
cat >>$CONFIG_STATUS <
1746
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1747
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1748
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1749
EOF
1750
cat >>$CONFIG_STATUS <<\EOF
1751
  --version | --vers* | -V )
1752
    echo "$ac_cs_version"; exit 0 ;;
1753
  --he | --h)
1754
    # Conflict between --help and --header
1755
    { { echo "$as_me:1755: error: ambiguous option: $1
1756
Try \`$0 --help' for more information." >&5
1757
echo "$as_me: error: ambiguous option: $1
1758
Try \`$0 --help' for more information." >&2;}
1759
   { (exit 1); exit 1; }; };;
1760
  --help | --hel | -h )
1761
    echo "$ac_cs_usage"; exit 0 ;;
1762
  --debug | --d* | -d )
1763
    debug=: ;;
1764
  --file | --fil | --fi | --f )
1765
    shift
1766
    CONFIG_FILES="$CONFIG_FILES $1"
1767
    ac_need_defaults=false;;
1768
  --header | --heade | --head | --hea )
1769
    shift
1770
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
1771
    ac_need_defaults=false;;
1772
 
1773
  # This is an error.
1774
  -*) { { echo "$as_me:1774: error: unrecognized option: $1
1775
Try \`$0 --help' for more information." >&5
1776
echo "$as_me: error: unrecognized option: $1
1777
Try \`$0 --help' for more information." >&2;}
1778
   { (exit 1); exit 1; }; } ;;
1779
 
1780
  *) ac_config_targets="$ac_config_targets $1" ;;
1781
 
1782
  esac
1783
  shift
1784
done
1785
 
1786
exec 5>>config.log
1787
cat >&5 << _ACEOF
1788
 
1789
## ----------------------- ##
1790
## Running config.status.  ##
1791
## ----------------------- ##
1792
 
1793
This file was extended by $as_me (rtems-scripts ss-20020807) 2.52, executed with
1794
  CONFIG_FILES    = $CONFIG_FILES
1795
  CONFIG_HEADERS  = $CONFIG_HEADERS
1796
  CONFIG_LINKS    = $CONFIG_LINKS
1797
  CONFIG_COMMANDS = $CONFIG_COMMANDS
1798
  > $ac_cs_invocation
1799
on `(hostname || uname -n) 2>/dev/null | sed 1q`
1800
 
1801
_ACEOF
1802
EOF
1803
 
1804
cat >>$CONFIG_STATUS <
1805
#
1806
# INIT-COMMANDS section.
1807
#
1808
 
1809
EOF
1810
 
1811
cat >>$CONFIG_STATUS <<\EOF
1812
for ac_config_target in $ac_config_targets
1813
do
1814
  case "$ac_config_target" in
1815
  # Handling of arguments.
1816
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1817
  "binutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES binutils/Makefile" ;;
1818
  "gccnewlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gccnewlib/Makefile" ;;
1819
  "gcc3newlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcc3newlib/Makefile" ;;
1820
  "gdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb/Makefile" ;;
1821
  "rtems/Makefile" ) CONFIG_FILES="$CONFIG_FILES rtems/Makefile" ;;
1822
  "autotools/Makefile" ) CONFIG_FILES="$CONFIG_FILES autotools/Makefile" ;;
1823
  "autotools/automake-rtems.spec" ) CONFIG_FILES="$CONFIG_FILES autotools/automake-rtems.spec" ;;
1824
  "cpukit/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpukit/Makefile" ;;
1825
  "buildalltar" ) CONFIG_FILES="$CONFIG_FILES buildalltar" ;;
1826
  "buildall" ) CONFIG_FILES="$CONFIG_FILES buildall" ;;
1827
  "mkgdbspec" ) CONFIG_FILES="$CONFIG_FILES mkgdbspec" ;;
1828
  "mkbinutilspec" ) CONFIG_FILES="$CONFIG_FILES mkbinutilspec" ;;
1829
  "mkgccnewlibspec" ) CONFIG_FILES="$CONFIG_FILES mkgccnewlibspec" ;;
1830
  "mkgcc3newlibspec" ) CONFIG_FILES="$CONFIG_FILES mkgcc3newlibspec" ;;
1831
  "mkbspspec" ) CONFIG_FILES="$CONFIG_FILES mkbspspec" ;;
1832
  "cpukit/mkspec" ) CONFIG_FILES="$CONFIG_FILES cpukit/mkspec" ;;
1833
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
1834
  *) { { echo "$as_me:1834: error: invalid argument: $ac_config_target" >&5
1835
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1836
   { (exit 1); exit 1; }; };;
1837
  esac
1838
done
1839
 
1840
# If the user did not use the arguments to specify the items to instantiate,
1841
# then the envvar interface is used.  Set only those that are not.
1842
# We use the long form for the default assignment because of an extremely
1843
# bizarre bug on SunOS 4.1.3.
1844
if $ac_need_defaults; then
1845
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1846
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1847
fi
1848
 
1849
# Create a temporary directory, and hook for its removal unless debugging.
1850
$debug ||
1851
{
1852
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1853
  trap '{ (exit 1); exit 1; }' 1 2 13 15
1854
}
1855
 
1856
# Create a (secure) tmp directory for tmp files.
1857
: ${TMPDIR=/tmp}
1858
{
1859
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1860
  test -n "$tmp" && test -d "$tmp"
1861
}  ||
1862
{
1863
  tmp=$TMPDIR/cs$$-$RANDOM
1864
  (umask 077 && mkdir $tmp)
1865
} ||
1866
{
1867
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1868
   { (exit 1); exit 1; }
1869
}
1870
 
1871
EOF
1872
 
1873
cat >>$CONFIG_STATUS <
1874
 
1875
#
1876
# CONFIG_FILES section.
1877
#
1878
 
1879
# No need to generate the scripts if there are no CONFIG_FILES.
1880
# This happens for instance when ./config.status config.h
1881
if test -n "\$CONFIG_FILES"; then
1882
  # Protect against being on the right side of a sed subst in config.status.
1883
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1884
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1885
s,@SHELL@,$SHELL,;t t
1886
s,@exec_prefix@,$exec_prefix,;t t
1887
s,@prefix@,$prefix,;t t
1888
s,@program_transform_name@,$program_transform_name,;t t
1889
s,@bindir@,$bindir,;t t
1890
s,@sbindir@,$sbindir,;t t
1891
s,@libexecdir@,$libexecdir,;t t
1892
s,@datadir@,$datadir,;t t
1893
s,@sysconfdir@,$sysconfdir,;t t
1894
s,@sharedstatedir@,$sharedstatedir,;t t
1895
s,@localstatedir@,$localstatedir,;t t
1896
s,@libdir@,$libdir,;t t
1897
s,@includedir@,$includedir,;t t
1898
s,@oldincludedir@,$oldincludedir,;t t
1899
s,@infodir@,$infodir,;t t
1900
s,@mandir@,$mandir,;t t
1901
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1902
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1903
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1904
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1905
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1906
s,@build_alias@,$build_alias,;t t
1907
s,@host_alias@,$host_alias,;t t
1908
s,@target_alias@,$target_alias,;t t
1909
s,@ECHO_C@,$ECHO_C,;t t
1910
s,@ECHO_N@,$ECHO_N,;t t
1911
s,@ECHO_T@,$ECHO_T,;t t
1912
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1913
s,@DEFS@,$DEFS,;t t
1914
s,@LIBS@,$LIBS,;t t
1915
s,@MAKE@,$MAKE,;t t
1916
s,@ENDIF@,$ENDIF,;t t
1917
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
1918
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
1919
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
1920
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1921
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1922
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1923
s,@PACKAGE@,$PACKAGE,;t t
1924
s,@VERSION@,$VERSION,;t t
1925
s,@ACLOCAL@,$ACLOCAL,;t t
1926
s,@AUTOCONF@,$AUTOCONF,;t t
1927
s,@AUTOMAKE@,$AUTOMAKE,;t t
1928
s,@AUTOHEADER@,$AUTOHEADER,;t t
1929
s,@MAKEINFO@,$MAKEINFO,;t t
1930
s,@AMTAR@,$AMTAR,;t t
1931
s,@install_sh@,$install_sh,;t t
1932
s,@STRIP@,$STRIP,;t t
1933
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
1934
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1935
s,@AWK@,$AWK,;t t
1936
s,@SET_MAKE@,$SET_MAKE,;t t
1937
s,@build@,$build,;t t
1938
s,@build_cpu@,$build_cpu,;t t
1939
s,@build_vendor@,$build_vendor,;t t
1940
s,@build_os@,$build_os,;t t
1941
s,@host@,$host,;t t
1942
s,@host_cpu@,$host_cpu,;t t
1943
s,@host_vendor@,$host_vendor,;t t
1944
s,@host_os@,$host_os,;t t
1945
s,@EXEEXT@,$EXEEXT,;t t
1946
s,@RPM_SPECSdir@,$RPM_SPECSdir,;t t
1947
s,@GCCNEWLIBVERS@,$GCCNEWLIBVERS,;t t
1948
s,@GCC3NEWLIBVERS@,$GCC3NEWLIBVERS,;t t
1949
s,@BINUTILSVERS@,$BINUTILSVERS,;t t
1950
s,@GDBVERS@,$GDBVERS,;t t
1951
s,@RTEMS_VERSION@,$RTEMS_VERSION,;t t
1952
s,@BSPVERS@,$BSPVERS,;t t
1953
s,@RPM_CPU@,$RPM_CPU,;t t
1954
CEOF
1955
 
1956
EOF
1957
 
1958
  cat >>$CONFIG_STATUS <<\EOF
1959
  # Split the substitutions into bite-sized pieces for seds with
1960
  # small command number limits, like on Digital OSF/1 and HP-UX.
1961
  ac_max_sed_lines=48
1962
  ac_sed_frag=1 # Number of current file.
1963
  ac_beg=1 # First line for current file.
1964
  ac_end=$ac_max_sed_lines # Line after last line for current file.
1965
  ac_more_lines=:
1966
  ac_sed_cmds=
1967
  while $ac_more_lines; do
1968
    if test $ac_beg -gt 1; then
1969
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1970
    else
1971
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1972
    fi
1973
    if test ! -s $tmp/subs.frag; then
1974
      ac_more_lines=false
1975
    else
1976
      # The purpose of the label and of the branching condition is to
1977
      # speed up the sed processing (if there are no `@' at all, there
1978
      # is no need to browse any of the substitutions).
1979
      # These are the two extra sed commands mentioned above.
1980
      (echo ':t
1981
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1982
      if test -z "$ac_sed_cmds"; then
1983
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1984
      else
1985
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1986
      fi
1987
      ac_sed_frag=`expr $ac_sed_frag + 1`
1988
      ac_beg=$ac_end
1989
      ac_end=`expr $ac_end + $ac_max_sed_lines`
1990
    fi
1991
  done
1992
  if test -z "$ac_sed_cmds"; then
1993
    ac_sed_cmds=cat
1994
  fi
1995
fi # test -n "$CONFIG_FILES"
1996
 
1997
EOF
1998
cat >>$CONFIG_STATUS <<\EOF
1999
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2000
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2001
  case $ac_file in
2002
  - | *:- | *:-:* ) # input from stdin
2003
        cat >$tmp/stdin
2004
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2005
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2006
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2007
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2008
  * )   ac_file_in=$ac_file.in ;;
2009
  esac
2010
 
2011
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2012
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2013
         X"$ac_file" : 'X\(//\)[^/]' \| \
2014
         X"$ac_file" : 'X\(//\)$' \| \
2015
         X"$ac_file" : 'X\(/\)' \| \
2016
         .     : '\(.\)' 2>/dev/null ||
2017
echo X"$ac_file" |
2018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2020
          /^X\(\/\/\)$/{ s//\1/; q; }
2021
          /^X\(\/\).*/{ s//\1/; q; }
2022
          s/.*/./; q'`
2023
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2024
    { case "$ac_dir" in
2025
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2026
  *)                      as_incr_dir=.;;
2027
esac
2028
as_dummy="$ac_dir"
2029
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2030
  case $as_mkdir_dir in
2031
    # Skip DOS drivespec
2032
    ?:) as_incr_dir=$as_mkdir_dir ;;
2033
    *)
2034
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2035
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2036
    ;;
2037
  esac
2038
done; }
2039
 
2040
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2041
    # A "../" for each directory in $ac_dir_suffix.
2042
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2043
  else
2044
    ac_dir_suffix= ac_dots=
2045
  fi
2046
 
2047
  case $srcdir in
2048
  .)  ac_srcdir=.
2049
      if test -z "$ac_dots"; then
2050
         ac_top_srcdir=.
2051
      else
2052
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2053
      fi ;;
2054
  [\\/]* | ?:[\\/]* )
2055
      ac_srcdir=$srcdir$ac_dir_suffix;
2056
      ac_top_srcdir=$srcdir ;;
2057
  *) # Relative path.
2058
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2059
    ac_top_srcdir=$ac_dots$srcdir ;;
2060
  esac
2061
 
2062
  case $INSTALL in
2063
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2064
  *) ac_INSTALL=$ac_dots$INSTALL ;;
2065
  esac
2066
 
2067
  if test x"$ac_file" != x-; then
2068
    { echo "$as_me:2068: creating $ac_file" >&5
2069
echo "$as_me: creating $ac_file" >&6;}
2070
    rm -f "$ac_file"
2071
  fi
2072
  # Let's still pretend it is `configure' which instantiates (i.e., don't
2073
  # use $as_me), people would be surprised to read:
2074
  #    /* config.h.  Generated automatically by config.status.  */
2075
  configure_input="Generated automatically from `echo $ac_file_in |
2076
                                                 sed 's,.*/,,'` by configure."
2077
 
2078
  # First look for the input files in the build tree, otherwise in the
2079
  # src tree.
2080
  ac_file_inputs=`IFS=:
2081
    for f in $ac_file_in; do
2082
      case $f in
2083
      -) echo $tmp/stdin ;;
2084
      [\\/$]*)
2085
         # Absolute (can't be DOS-style, as IFS=:)
2086
         test -f "$f" || { { echo "$as_me:2086: error: cannot find input file: $f" >&5
2087
echo "$as_me: error: cannot find input file: $f" >&2;}
2088
   { (exit 1); exit 1; }; }
2089
         echo $f;;
2090
      *) # Relative
2091
         if test -f "$f"; then
2092
           # Build tree
2093
           echo $f
2094
         elif test -f "$srcdir/$f"; then
2095
           # Source tree
2096
           echo $srcdir/$f
2097
         else
2098
           # /dev/null tree
2099
           { { echo "$as_me:2099: error: cannot find input file: $f" >&5
2100
echo "$as_me: error: cannot find input file: $f" >&2;}
2101
   { (exit 1); exit 1; }; }
2102
         fi;;
2103
      esac
2104
    done` || { (exit 1); exit 1; }
2105
EOF
2106
cat >>$CONFIG_STATUS <
2107
  sed "$ac_vpsub
2108
$extrasub
2109
EOF
2110
cat >>$CONFIG_STATUS <<\EOF
2111
:t
2112
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2113
s,@configure_input@,$configure_input,;t t
2114
s,@srcdir@,$ac_srcdir,;t t
2115
s,@top_srcdir@,$ac_top_srcdir,;t t
2116
s,@INSTALL@,$ac_INSTALL,;t t
2117
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2118
  rm -f $tmp/stdin
2119
  if test x"$ac_file" != x-; then
2120
    mv $tmp/out $ac_file
2121
  else
2122
    cat $tmp/out
2123
    rm -f $tmp/out
2124
  fi
2125
 
2126
  # Run the commands associated with the file.
2127
  case $ac_file in
2128
    buildalltar ) chmod +x buildalltar ;;
2129
    buildall ) chmod +x buildall ;;
2130
    mkgdbspec ) chmod +x mkgdbspec ;;
2131
    mkbinutilspec ) chmod +x mkbinutilspec ;;
2132
    mkgccnewlibspec ) chmod +x mkgccnewlibspec ;;
2133
    mkgcc3newlibspec ) chmod +x mkgcc3newlibspec ;;
2134
    mkbspspec ) chmod +x mkbspspec ;;
2135
    cpukit/mkspec ) chmod +x cpukit/mkspec ;;
2136
  esac
2137
done
2138
EOF
2139
cat >>$CONFIG_STATUS <<\EOF
2140
 
2141
#
2142
# CONFIG_COMMANDS section.
2143
#
2144
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
2145
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
2146
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
2147
 
2148
  case $ac_dest in
2149
    default ) chmod 755 buildall
2150
chmod 755 buildalltar
2151
 ;;
2152
  esac
2153
done
2154
EOF
2155
 
2156
cat >>$CONFIG_STATUS <<\EOF
2157
 
2158
{ (exit 0); exit 0; }
2159
EOF
2160
chmod +x $CONFIG_STATUS
2161
ac_clean_files=$ac_clean_files_save
2162
 
2163
# configure is writing to config.log, and then calls config.status.
2164
# config.status does its own redirection, appending to config.log.
2165
# Unfortunately, on DOS this fails, as config.log is still kept open
2166
# by configure, so config.status won't be able to write to it; its
2167
# output is simply discarded.  So we exec the FD to /dev/null,
2168
# effectively closing config.log, so it can be properly (re)opened and
2169
# appended to by config.status.  When coming back to configure, we
2170
# need to make the FD available again.
2171
if test "$no_create" != yes; then
2172
  ac_cs_success=:
2173
  exec 5>/dev/null
2174
  $SHELL $CONFIG_STATUS || ac_cs_success=false
2175
  exec 5>>config.log
2176
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2177
  # would make configure fail if this is the last instruction.
2178
  $ac_cs_success || { (exit 1); exit 1; }
2179
fi
2180
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.