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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [configure] - Blame information for rev 1775

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

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

powered by: WebSVN 2.1.0

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