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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sparc/] [configure] - Blame information for rev 1765

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

powered by: WebSVN 2.1.0

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