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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sparc/] [erc32/] [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-erc32 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="bsp_specs"
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-src-lib-libbsp-sparc-erc32'
152
PACKAGE_TARNAME='rtems-c-src-lib-libbsp-sparc-erc32'
153
PACKAGE_VERSION='ss-20020807'
154
PACKAGE_STRING='rtems-c-src-lib-libbsp-sparc-erc32 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
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
544
ac_env_RTEMS_BSP_value=$RTEMS_BSP
545
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
546
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
547
ac_env_CC_set=${CC+set}
548
ac_env_CC_value=$CC
549
ac_cv_env_CC_set=${CC+set}
550
ac_cv_env_CC_value=$CC
551
ac_env_CFLAGS_set=${CFLAGS+set}
552
ac_env_CFLAGS_value=$CFLAGS
553
ac_cv_env_CFLAGS_set=${CFLAGS+set}
554
ac_cv_env_CFLAGS_value=$CFLAGS
555
ac_env_LDFLAGS_set=${LDFLAGS+set}
556
ac_env_LDFLAGS_value=$LDFLAGS
557
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
558
ac_cv_env_LDFLAGS_value=$LDFLAGS
559
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
560
ac_env_CPPFLAGS_value=$CPPFLAGS
561
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
562
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
563
ac_env_CPP_set=${CPP+set}
564
ac_env_CPP_value=$CPP
565
ac_cv_env_CPP_set=${CPP+set}
566
ac_cv_env_CPP_value=$CPP
567
 
568
#
569
# Report the --help message.
570
#
571
if test "$ac_init_help" = "long"; then
572
  # Omit some internal or obsolete options to make the list less imposing.
573
  # This message is too long to be a string in the A/UX 3.1 sh.
574
  cat <
575
\`configure' configures rtems-c-src-lib-libbsp-sparc-erc32 ss-20020807 to adapt to many kinds of systems.
576
 
577
Usage: $0 [OPTION]... [VAR=VALUE]...
578
 
579
To assign environment variables (e.g., CC, CFLAGS...), specify them as
580
VAR=VALUE.  See below for descriptions of some of the useful variables.
581
 
582
Defaults for the options are specified in brackets.
583
 
584
Configuration:
585
  -h, --help              display this help and exit
586
      --help=short        display options specific to this package
587
      --help=recursive    display the short help of all the included packages
588
  -V, --version           display version information and exit
589
  -q, --quiet, --silent   do not print \`checking...' messages
590
      --cache-file=FILE   cache test results in FILE [disabled]
591
  -C, --config-cache      alias for \`--cache-file=config.cache'
592
  -n, --no-create         do not create output files
593
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
594
 
595
EOF
596
 
597
  cat <
598
Installation directories:
599
  --prefix=PREFIX         install architecture-independent files in PREFIX
600
                          [$ac_default_prefix]
601
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
602
                          [PREFIX]
603
 
604
By default, \`make install' will install all the files in
605
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
606
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
607
for instance \`--prefix=\$HOME'.
608
 
609
For better control, use the options below.
610
 
611
Fine tuning of the installation directories:
612
  --bindir=DIR           user executables [EPREFIX/bin]
613
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
614
  --libexecdir=DIR       program executables [EPREFIX/libexec]
615
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
616
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
617
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
618
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
619
  --libdir=DIR           object code libraries [EPREFIX/lib]
620
  --includedir=DIR       C header files [PREFIX/include]
621
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
622
  --infodir=DIR          info documentation [PREFIX/info]
623
  --mandir=DIR           man documentation [PREFIX/man]
624
EOF
625
 
626
  cat <<\EOF
627
 
628
Program names:
629
  --program-prefix=PREFIX            prepend PREFIX to installed program names
630
  --program-suffix=SUFFIX            append SUFFIX to installed program names
631
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
632
 
633
System types:
634
  --build=BUILD     configure for building on BUILD [guessed]
635
  --host=HOST       build programs to run on HOST [BUILD]
636
  --target=TARGET   configure for building compilers for TARGET [HOST]
637
EOF
638
fi
639
 
640
if test -n "$ac_init_help"; then
641
  case $ac_init_help in
642
     short | recursive ) echo "Configuration of rtems-c-src-lib-libbsp-sparc-erc32 ss-20020807:";;
643
   esac
644
  cat <<\EOF
645
 
646
Optional Features:
647
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
648
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
649
  --enable-maintainer-mode enable make rules and dependencies not useful
650
                          (and sometimes confusing) to the casual installer
651
  --enable-bare-cpu-cflags
652
                          specify a particular cpu cflag (bare bsp specific)
653
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
654
  --enable-multilib       build many library versions (default=no)
655
  --enable-multiprocessing
656
                          enable multiprocessing interface
657
  --disable-dependency-tracking Speeds up one-time builds
658
  --enable-dependency-tracking  Do not reject slow dependency extractors
659
  --enable-networking     enable TCP/IP stack
660
 
661
Some influential environment variables:
662
  RTEMS_BSP   RTEMS_BSP to build
663
  CC          C compiler command
664
  CFLAGS      C compiler flags
665
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
666
              nonstandard directory 
667
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
668
              headers in a nonstandard directory 
669
  CPP         C preprocessor
670
  CONSOLE_USE_INTERRUPTS
671
              The erc32 console driver can operate in either polled or
672
              interrupt mode. Under the simulator (especially when FAST_UART
673
              is defined), polled seems to operate better. It is common for a
674
              task to print a line (like the end of test message) and then
675
              exit. In this case, the program returns control to the simulator
676
              command line before the program has even queued the output to
677
              the uart. Thus sis has no chance of getting the data out.
678
  SIMSPARC_FAST_IDLE
679
              If defined, speed up the clock ticks while the idle task is
680
              running so time spent in the idle task is minimized. This
681
              significantly reduces the wall time required to execute the
682
              RTEMS test suites.
683
 
684
Use these variables to override the choices made by `configure' or to help
685
it to find libraries and programs with nonstandard names/locations.
686
 
687
Report bugs to .
688
EOF
689
fi
690
 
691
if test "$ac_init_help" = "recursive"; then
692
  # If there are subdirs, report their specific --help.
693
  ac_popdir=`pwd`
694
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
695
    cd $ac_subdir
696
    # A "../" for each directory in /$ac_subdir.
697
    ac_dots=`echo $ac_subdir |
698
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
699
 
700
    case $srcdir in
701
    .) # No --srcdir option.  We are building in place.
702
      ac_sub_srcdir=$srcdir ;;
703
    [\\/]* | ?:[\\/]* ) # Absolute path.
704
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
705
    *) # Relative path.
706
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
707
    esac
708
 
709
    # Check for guested configure; otherwise get Cygnus style configure.
710
    if test -f $ac_sub_srcdir/configure.gnu; then
711
      echo
712
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
713
    elif test -f $ac_sub_srcdir/configure; then
714
      echo
715
      $SHELL $ac_sub_srcdir/configure  --help=recursive
716
    elif test -f $ac_sub_srcdir/configure.ac ||
717
           test -f $ac_sub_srcdir/configure.in; then
718
      echo
719
      $ac_configure --help
720
    else
721
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
722
    fi
723
    cd $ac_popdir
724
  done
725
fi
726
 
727
test -n "$ac_init_help" && exit 0
728
if $ac_init_version; then
729
  cat <<\EOF
730
rtems-c-src-lib-libbsp-sparc-erc32 configure ss-20020807
731
generated by GNU Autoconf 2.52
732
 
733
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
734
Free Software Foundation, Inc.
735
This configure script is free software; the Free Software Foundation
736
gives unlimited permission to copy, distribute and modify it.
737
EOF
738
  exit 0
739
fi
740
exec 5>config.log
741
cat >&5 <
742
This file contains any messages produced by compilers while
743
running configure, to aid debugging if configure makes a mistake.
744
 
745
It was created by rtems-c-src-lib-libbsp-sparc-erc32 $as_me ss-20020807, which was
746
generated by GNU Autoconf 2.52.  Invocation command line was
747
 
748
  $ $0 $@
749
 
750
EOF
751
{
752
cat <<_ASUNAME
753
## ---------- ##
754
## Platform.  ##
755
## ---------- ##
756
 
757
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
758
uname -m = `(uname -m) 2>/dev/null || echo unknown`
759
uname -r = `(uname -r) 2>/dev/null || echo unknown`
760
uname -s = `(uname -s) 2>/dev/null || echo unknown`
761
uname -v = `(uname -v) 2>/dev/null || echo unknown`
762
 
763
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
764
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
765
 
766
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
767
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
768
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
769
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
770
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
771
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
772
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
773
 
774
PATH = $PATH
775
 
776
_ASUNAME
777
} >&5
778
 
779
cat >&5 <
780
## ------------ ##
781
## Core tests.  ##
782
## ------------ ##
783
 
784
EOF
785
 
786
# Keep a trace of the command line.
787
# Strip out --no-create and --no-recursion so they do not pile up.
788
# Also quote any args containing shell meta-characters.
789
ac_configure_args=
790
ac_sep=
791
for ac_arg
792
do
793
  case $ac_arg in
794
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
795
  | --no-cr | --no-c) ;;
796
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
797
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
798
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
799
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
800
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
801
    ac_sep=" " ;;
802
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
803
     ac_sep=" " ;;
804
  esac
805
  # Get rid of the leading space.
806
done
807
 
808
# When interrupted or exit'd, cleanup temporary files, and complete
809
# config.log.  We remove comments because anyway the quotes in there
810
# would cause problems or look ugly.
811
trap 'exit_status=$?
812
  # Save into config.log some information that might help in debugging.
813
  echo >&5
814
  echo "## ----------------- ##" >&5
815
  echo "## Cache variables.  ##" >&5
816
  echo "## ----------------- ##" >&5
817
  echo >&5
818
  # The following way of writing the cache mishandles newlines in values,
819
{
820
  (set) 2>&1 |
821
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
822
    *ac_space=\ *)
823
      sed -n \
824
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
825
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
826
      ;;
827
    *)
828
      sed -n \
829
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
830
      ;;
831
    esac;
832
} >&5
833
  sed "/^$/d" confdefs.h >conftest.log
834
  if test -s conftest.log; then
835
    echo >&5
836
    echo "## ------------ ##" >&5
837
    echo "## confdefs.h.  ##" >&5
838
    echo "## ------------ ##" >&5
839
    echo >&5
840
    cat conftest.log >&5
841
  fi
842
  (echo; echo) >&5
843
  test "$ac_signal" != 0 &&
844
    echo "$as_me: caught signal $ac_signal" >&5
845
  echo "$as_me: exit $exit_status" >&5
846
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
847
    exit $exit_status
848
     ' 0
849
for ac_signal in 1 2 13 15; do
850
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
851
done
852
ac_signal=0
853
 
854
# confdefs.h avoids OS command line length limits that DEFS can exceed.
855
rm -rf conftest* confdefs.h
856
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
857
echo >confdefs.h
858
 
859
# Let the site file select an alternate cache file if it wants to.
860
# Prefer explicitly selected file to automatically selected ones.
861
if test -z "$CONFIG_SITE"; then
862
  if test "x$prefix" != xNONE; then
863
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
864
  else
865
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
866
  fi
867
fi
868
for ac_site_file in $CONFIG_SITE; do
869
  if test -r "$ac_site_file"; then
870
    { echo "$as_me:870: loading site script $ac_site_file" >&5
871
echo "$as_me: loading site script $ac_site_file" >&6;}
872
    cat "$ac_site_file" >&5
873
    . "$ac_site_file"
874
  fi
875
done
876
 
877
if test -r "$cache_file"; then
878
  # Some versions of bash will fail to source /dev/null (special
879
  # files actually), so we avoid doing that.
880
  if test -f "$cache_file"; then
881
    { echo "$as_me:881: loading cache $cache_file" >&5
882
echo "$as_me: loading cache $cache_file" >&6;}
883
    case $cache_file in
884
      [\\/]* | ?:[\\/]* ) . $cache_file;;
885
      *)                      . ./$cache_file;;
886
    esac
887
  fi
888
else
889
  { echo "$as_me:889: creating cache $cache_file" >&5
890
echo "$as_me: creating cache $cache_file" >&6;}
891
  >$cache_file
892
fi
893
 
894
# Check that the precious variables saved in the cache have kept the same
895
# value.
896
ac_cache_corrupted=false
897
for ac_var in `(set) 2>&1 |
898
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
899
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
900
  eval ac_new_set=\$ac_env_${ac_var}_set
901
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
902
  eval ac_new_val="\$ac_env_${ac_var}_value"
903
  case $ac_old_set,$ac_new_set in
904
    set,)
905
      { echo "$as_me:905: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
906
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
907
      ac_cache_corrupted=: ;;
908
    ,set)
909
      { echo "$as_me:909: error: \`$ac_var' was not set in the previous run" >&5
910
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
911
      ac_cache_corrupted=: ;;
912
    ,);;
913
    *)
914
      if test "x$ac_old_val" != "x$ac_new_val"; then
915
        { echo "$as_me:915: error: \`$ac_var' has changed since the previous run:" >&5
916
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
917
        { echo "$as_me:917:   former value:  $ac_old_val" >&5
918
echo "$as_me:   former value:  $ac_old_val" >&2;}
919
        { echo "$as_me:919:   current value: $ac_new_val" >&5
920
echo "$as_me:   current value: $ac_new_val" >&2;}
921
        ac_cache_corrupted=:
922
      fi;;
923
  esac
924
  # Pass precious variables to config.status.  It doesn't matter if
925
  # we pass some twice (in addition to the command line arguments).
926
  if test "$ac_new_set" = set; then
927
    case $ac_new_val in
928
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
929
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
930
      ac_configure_args="$ac_configure_args '$ac_arg'"
931
      ;;
932
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
933
       ;;
934
    esac
935
  fi
936
done
937
if $ac_cache_corrupted; then
938
  { echo "$as_me:938: error: changes in the environment can compromise the build" >&5
939
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
940
  { { echo "$as_me:940: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
941
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
942
   { (exit 1); exit 1; }; }
943
fi
944
 
945
ac_ext=c
946
ac_cpp='$CPP $CPPFLAGS'
947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
950
 
951
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
952
  *c*,-n*) ECHO_N= ECHO_C='
953
' ECHO_T='      ' ;;
954
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
955
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
956
esac
957
echo "#! $SHELL" >conftest.sh
958
echo  "exit 0"   >>conftest.sh
959
chmod +x conftest.sh
960
if { (echo "$as_me:960: PATH=\".;.\"; conftest.sh") >&5
961
  (PATH=".;."; conftest.sh) 2>&5
962
  ac_status=$?
963
  echo "$as_me:963: \$? = $ac_status" >&5
964
  (exit $ac_status); }; then
965
  ac_path_separator=';'
966
else
967
  ac_path_separator=:
968
fi
969
PATH_SEPARATOR="$ac_path_separator"
970
rm -f conftest.sh
971
 
972
for ac_prog in gmake make
973
do
974
  # Extract the first word of "$ac_prog", so it can be a program name with args.
975
set dummy $ac_prog; ac_word=$2
976
echo "$as_me:976: checking for $ac_word" >&5
977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
978
if test "${ac_cv_prog_MAKE+set}" = set; then
979
  echo $ECHO_N "(cached) $ECHO_C" >&6
980
else
981
  if test -n "$MAKE"; then
982
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
983
else
984
  ac_save_IFS=$IFS; IFS=$ac_path_separator
985
ac_dummy="$PATH"
986
for ac_dir in $ac_dummy; do
987
  IFS=$ac_save_IFS
988
  test -z "$ac_dir" && ac_dir=.
989
  $as_executable_p "$ac_dir/$ac_word" || continue
990
ac_cv_prog_MAKE="$ac_prog"
991
echo "$as_me:991: found $ac_dir/$ac_word" >&5
992
break
993
done
994
 
995
fi
996
fi
997
MAKE=$ac_cv_prog_MAKE
998
if test -n "$MAKE"; then
999
  echo "$as_me:999: result: $MAKE" >&5
1000
echo "${ECHO_T}$MAKE" >&6
1001
else
1002
  echo "$as_me:1002: result: no" >&5
1003
echo "${ECHO_T}no" >&6
1004
fi
1005
 
1006
  test -n "$MAKE" && break
1007
done
1008
 
1009
ENDIF=endif
1010
 
1011
RTEMS_TOPdir="../../../../../..";
1012
 
1013
test -n "$with_target_subdir" || with_target_subdir="."
1014
 
1015
if test "$with_target_subdir" = "." ; then
1016
# Native
1017
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
1018
else
1019
# Cross
1020
dots=`echo $with_target_subdir|\
1021
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1022
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
1023
fi
1024
 
1025
if test "$with_target_subdir" = "." ; then
1026
# Native
1027
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1028
else
1029
# Cross
1030
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1031
fi
1032
 
1033
echo "$as_me:1033: checking for RTEMS Version" >&5
1034
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
1035
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
1036
  :
1037
else
1038
  { { echo "$as_me:1038: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
1039
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
1040
   { (exit 1); exit 1; }; }
1041
fi
1042
 
1043
echo "$as_me:1043: result: ss-20020807" >&5
1044
echo "${ECHO_T}ss-20020807" >&6
1045
 
1046
ac_aux_dir=
1047
for ac_dir in ../../../../../.. $srcdir/../../../../../..; do
1048
  if test -f $ac_dir/install-sh; then
1049
    ac_aux_dir=$ac_dir
1050
    ac_install_sh="$ac_aux_dir/install-sh -c"
1051
    break
1052
  elif test -f $ac_dir/install.sh; then
1053
    ac_aux_dir=$ac_dir
1054
    ac_install_sh="$ac_aux_dir/install.sh -c"
1055
    break
1056
  elif test -f $ac_dir/shtool; then
1057
    ac_aux_dir=$ac_dir
1058
    ac_install_sh="$ac_aux_dir/shtool install -c"
1059
    break
1060
  fi
1061
done
1062
if test -z "$ac_aux_dir"; then
1063
  { { echo "$as_me:1063: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&5
1064
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&2;}
1065
   { (exit 1); exit 1; }; }
1066
fi
1067
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1068
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1069
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1070
 
1071
# Make sure we can run config.sub.
1072
$ac_config_sub sun4 >/dev/null 2>&1 ||
1073
  { { echo "$as_me:1073: error: cannot run $ac_config_sub" >&5
1074
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1075
   { (exit 1); exit 1; }; }
1076
 
1077
echo "$as_me:1077: checking build system type" >&5
1078
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1079
if test "${ac_cv_build+set}" = set; then
1080
  echo $ECHO_N "(cached) $ECHO_C" >&6
1081
else
1082
  ac_cv_build_alias=$build_alias
1083
test -z "$ac_cv_build_alias" &&
1084
  ac_cv_build_alias=`$ac_config_guess`
1085
test -z "$ac_cv_build_alias" &&
1086
  { { echo "$as_me:1086: error: cannot guess build type; you must specify one" >&5
1087
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1088
   { (exit 1); exit 1; }; }
1089
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1090
  { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1091
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1092
   { (exit 1); exit 1; }; }
1093
 
1094
fi
1095
echo "$as_me:1095: result: $ac_cv_build" >&5
1096
echo "${ECHO_T}$ac_cv_build" >&6
1097
build=$ac_cv_build
1098
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101
 
1102
echo "$as_me:1102: checking host system type" >&5
1103
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1104
if test "${ac_cv_host+set}" = set; then
1105
  echo $ECHO_N "(cached) $ECHO_C" >&6
1106
else
1107
  ac_cv_host_alias=$host_alias
1108
test -z "$ac_cv_host_alias" &&
1109
  ac_cv_host_alias=$ac_cv_build_alias
1110
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1111
  { { echo "$as_me:1111: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1112
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1113
   { (exit 1); exit 1; }; }
1114
 
1115
fi
1116
echo "$as_me:1116: result: $ac_cv_host" >&5
1117
echo "${ECHO_T}$ac_cv_host" >&6
1118
host=$ac_cv_host
1119
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122
 
1123
echo "$as_me:1123: checking target system type" >&5
1124
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1125
if test "${ac_cv_target+set}" = set; then
1126
  echo $ECHO_N "(cached) $ECHO_C" >&6
1127
else
1128
  ac_cv_target_alias=$target_alias
1129
test "x$ac_cv_target_alias" = "x" &&
1130
  ac_cv_target_alias=$ac_cv_host_alias
1131
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1132
  { { echo "$as_me:1132: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1133
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1134
   { (exit 1); exit 1; }; }
1135
 
1136
fi
1137
echo "$as_me:1137: result: $ac_cv_target" >&5
1138
echo "${ECHO_T}$ac_cv_target" >&6
1139
target=$ac_cv_target
1140
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1141
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1142
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1143
 
1144
# The aliases save the names the user supplied, while $host etc.
1145
# will get canonicalized.
1146
test -n "$target_alias" &&
1147
  test "$program_prefix$program_suffix$program_transform_name" = \
1148
    NONENONEs,x,x, &&
1149
  program_prefix=${target_alias}-
1150
echo "$as_me:1150: checking rtems target cpu" >&5
1151
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1152
case "${target}" in
1153
  # hpux unix port should go here
1154
  i[34567]86-*linux*)           # unix "simulator" port
1155
        RTEMS_CPU=unix
1156
        ;;
1157
  i[34567]86-*freebsd*)         # unix "simulator" port
1158
        RTEMS_CPU=unix
1159
        ;;
1160
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1161
        RTEMS_CPU=unix
1162
        ;;
1163
  no_cpu-*rtems*)
1164
        RTEMS_CPU=no_cpu
1165
        ;;
1166
  sparc-sun-solaris*)           # unix "simulator" port
1167
        RTEMS_CPU=unix
1168
        ;;
1169
  *)
1170
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1171
        ;;
1172
esac
1173
 
1174
echo "$as_me:1174: result: $RTEMS_CPU" >&5
1175
echo "${ECHO_T}$RTEMS_CPU" >&6
1176
 
1177
am__api_version="1.6"
1178
# Find a good install program.  We prefer a C program (faster),
1179
# so one script is as good as another.  But avoid the broken or
1180
# incompatible versions:
1181
# SysV /etc/install, /usr/sbin/install
1182
# SunOS /usr/etc/install
1183
# IRIX /sbin/install
1184
# AIX /bin/install
1185
# AmigaOS /C/install, which installs bootblocks on floppy discs
1186
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1187
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1188
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1189
# ./install, which can be erroneously created by make from ./install.sh.
1190
echo "$as_me:1190: checking for a BSD compatible install" >&5
1191
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1192
if test -z "$INSTALL"; then
1193
if test "${ac_cv_path_install+set}" = set; then
1194
  echo $ECHO_N "(cached) $ECHO_C" >&6
1195
else
1196
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1197
  for ac_dir in $PATH; do
1198
    IFS=$ac_save_IFS
1199
    # Account for people who put trailing slashes in PATH elements.
1200
    case $ac_dir/ in
1201
    / | ./ | .// | /cC/* \
1202
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1203
    | /usr/ucb/* ) ;;
1204
    *)
1205
      # OSF1 and SCO ODT 3.0 have their own names for install.
1206
      # Don't use installbsd from OSF since it installs stuff as root
1207
      # by default.
1208
      for ac_prog in ginstall scoinst install; do
1209
        if $as_executable_p "$ac_dir/$ac_prog"; then
1210
          if test $ac_prog = install &&
1211
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1212
            # AIX install.  It has an incompatible calling convention.
1213
            :
1214
          elif test $ac_prog = install &&
1215
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1216
            # program-specific install script used by HP pwplus--don't use.
1217
            :
1218
          else
1219
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1220
            break 2
1221
          fi
1222
        fi
1223
      done
1224
      ;;
1225
    esac
1226
  done
1227
 
1228
fi
1229
  if test "${ac_cv_path_install+set}" = set; then
1230
    INSTALL=$ac_cv_path_install
1231
  else
1232
    # As a last resort, use the slow shell script.  We don't cache a
1233
    # path for INSTALL within a source directory, because that will
1234
    # break other packages using the cache if that directory is
1235
    # removed, or if the path is relative.
1236
    INSTALL=$ac_install_sh
1237
  fi
1238
fi
1239
echo "$as_me:1239: result: $INSTALL" >&5
1240
echo "${ECHO_T}$INSTALL" >&6
1241
 
1242
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1243
# It thinks the first close brace ends the variable substitution.
1244
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1245
 
1246
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1247
 
1248
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1249
 
1250
echo "$as_me:1250: checking whether build environment is sane" >&5
1251
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1252
# Just in case
1253
sleep 1
1254
echo timestamp > conftest.file
1255
# Do `set' in a subshell so we don't clobber the current shell's
1256
# arguments.  Must try -L first in case configure is actually a
1257
# symlink; some systems play weird games with the mod time of symlinks
1258
# (eg FreeBSD returns the mod time of the symlink's containing
1259
# directory).
1260
if (
1261
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1262
   if test "$*" = "X"; then
1263
      # -L didn't work.
1264
      set X `ls -t $srcdir/configure conftest.file`
1265
   fi
1266
   rm -f conftest.file
1267
   if test "$*" != "X $srcdir/configure conftest.file" \
1268
      && test "$*" != "X conftest.file $srcdir/configure"; then
1269
 
1270
      # If neither matched, then we have a broken ls.  This can happen
1271
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1272
      # broken ls alias from the environment.  This has actually
1273
      # happened.  Such a system could not be considered "sane".
1274
      { { echo "$as_me:1274: error: ls -t appears to fail.  Make sure there is not a broken
1275
alias in your environment" >&5
1276
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1277
alias in your environment" >&2;}
1278
   { (exit 1); exit 1; }; }
1279
   fi
1280
 
1281
   test "$2" = conftest.file
1282
   )
1283
then
1284
   # Ok.
1285
   :
1286
else
1287
   { { echo "$as_me:1287: error: newly created file is older than distributed files!
1288
Check your system clock" >&5
1289
echo "$as_me: error: newly created file is older than distributed files!
1290
Check your system clock" >&2;}
1291
   { (exit 1); exit 1; }; }
1292
fi
1293
echo "$as_me:1293: result: yes" >&5
1294
echo "${ECHO_T}yes" >&6
1295
test "$program_prefix" != NONE &&
1296
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1297
# Use a double $ so make ignores it.
1298
test "$program_suffix" != NONE &&
1299
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1300
# Double any \ or $.  echo might interpret backslashes.
1301
# By default was `s,x,x', remove it if useless.
1302
cat <<\_ACEOF >conftest.sed
1303
s/[\\$]/&&/g;s/;s,x,x,$//
1304
_ACEOF
1305
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1306
rm conftest.sed
1307
 
1308
# expand $ac_aux_dir to an absolute path
1309
am_aux_dir=`cd $ac_aux_dir && pwd`
1310
 
1311
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1312
# Use eval to expand $SHELL
1313
if eval "$MISSING --run true"; then
1314
  am_missing_run="$MISSING --run "
1315
else
1316
  am_missing_run=
1317
  { echo "$as_me:1317: WARNING: \`missing' script is too old or missing" >&5
1318
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1319
fi
1320
 
1321
for ac_prog in mawk gawk nawk awk
1322
do
1323
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1324
set dummy $ac_prog; ac_word=$2
1325
echo "$as_me:1325: checking for $ac_word" >&5
1326
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327
if test "${ac_cv_prog_AWK+set}" = set; then
1328
  echo $ECHO_N "(cached) $ECHO_C" >&6
1329
else
1330
  if test -n "$AWK"; then
1331
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1332
else
1333
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1334
ac_dummy="$PATH"
1335
for ac_dir in $ac_dummy; do
1336
  IFS=$ac_save_IFS
1337
  test -z "$ac_dir" && ac_dir=.
1338
  $as_executable_p "$ac_dir/$ac_word" || continue
1339
ac_cv_prog_AWK="$ac_prog"
1340
echo "$as_me:1340: found $ac_dir/$ac_word" >&5
1341
break
1342
done
1343
 
1344
fi
1345
fi
1346
AWK=$ac_cv_prog_AWK
1347
if test -n "$AWK"; then
1348
  echo "$as_me:1348: result: $AWK" >&5
1349
echo "${ECHO_T}$AWK" >&6
1350
else
1351
  echo "$as_me:1351: result: no" >&5
1352
echo "${ECHO_T}no" >&6
1353
fi
1354
 
1355
  test -n "$AWK" && break
1356
done
1357
 
1358
echo "$as_me:1358: checking whether ${MAKE-make} sets \${MAKE}" >&5
1359
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1360
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1361
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1362
  echo $ECHO_N "(cached) $ECHO_C" >&6
1363
else
1364
  cat >conftest.make <<\EOF
1365
all:
1366
        @echo 'ac_maketemp="${MAKE}"'
1367
EOF
1368
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1369
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1370
if test -n "$ac_maketemp"; then
1371
  eval ac_cv_prog_make_${ac_make}_set=yes
1372
else
1373
  eval ac_cv_prog_make_${ac_make}_set=no
1374
fi
1375
rm -f conftest.make
1376
fi
1377
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1378
  echo "$as_me:1378: result: yes" >&5
1379
echo "${ECHO_T}yes" >&6
1380
  SET_MAKE=
1381
else
1382
  echo "$as_me:1382: result: no" >&5
1383
echo "${ECHO_T}no" >&6
1384
  SET_MAKE="MAKE=${MAKE-make}"
1385
fi
1386
 
1387
 # test to see if srcdir already configured
1388
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1389
   test -f $srcdir/config.status; then
1390
  { { echo "$as_me:1390: error: source directory already configured; run \"make distclean\" there first" >&5
1391
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1392
   { (exit 1); exit 1; }; }
1393
fi
1394
 
1395
# Define the identity of the package.
1396
 PACKAGE=rtems-c-src-lib-libbsp-sparc-erc32
1397
 VERSION=ss-20020807
1398
 
1399
# Some tools Automake needs.
1400
 
1401
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1402
 
1403
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1404
 
1405
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1406
 
1407
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1408
 
1409
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1410
 
1411
AMTAR=${AMTAR-"${am_missing_run}tar"}
1412
 
1413
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1414
 
1415
# Installed binaries are usually stripped using `strip' when the user
1416
# run `make install-strip'.  However `strip' might not be the right
1417
# tool to use in cross-compilation environments, therefore Automake
1418
# will honor the `STRIP' environment variable to overrule this program.
1419
if test "$cross_compiling" != no; then
1420
  if test -n "$ac_tool_prefix"; then
1421
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1422
set dummy ${ac_tool_prefix}strip; ac_word=$2
1423
echo "$as_me:1423: checking for $ac_word" >&5
1424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425
if test "${ac_cv_prog_STRIP+set}" = set; then
1426
  echo $ECHO_N "(cached) $ECHO_C" >&6
1427
else
1428
  if test -n "$STRIP"; then
1429
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1430
else
1431
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1432
ac_dummy="$PATH"
1433
for ac_dir in $ac_dummy; do
1434
  IFS=$ac_save_IFS
1435
  test -z "$ac_dir" && ac_dir=.
1436
  $as_executable_p "$ac_dir/$ac_word" || continue
1437
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1438
echo "$as_me:1438: found $ac_dir/$ac_word" >&5
1439
break
1440
done
1441
 
1442
fi
1443
fi
1444
STRIP=$ac_cv_prog_STRIP
1445
if test -n "$STRIP"; then
1446
  echo "$as_me:1446: result: $STRIP" >&5
1447
echo "${ECHO_T}$STRIP" >&6
1448
else
1449
  echo "$as_me:1449: result: no" >&5
1450
echo "${ECHO_T}no" >&6
1451
fi
1452
 
1453
fi
1454
if test -z "$ac_cv_prog_STRIP"; then
1455
  ac_ct_STRIP=$STRIP
1456
  # Extract the first word of "strip", so it can be a program name with args.
1457
set dummy strip; ac_word=$2
1458
echo "$as_me:1458: checking for $ac_word" >&5
1459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1461
  echo $ECHO_N "(cached) $ECHO_C" >&6
1462
else
1463
  if test -n "$ac_ct_STRIP"; then
1464
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1465
else
1466
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1467
ac_dummy="$PATH"
1468
for ac_dir in $ac_dummy; do
1469
  IFS=$ac_save_IFS
1470
  test -z "$ac_dir" && ac_dir=.
1471
  $as_executable_p "$ac_dir/$ac_word" || continue
1472
ac_cv_prog_ac_ct_STRIP="strip"
1473
echo "$as_me:1473: found $ac_dir/$ac_word" >&5
1474
break
1475
done
1476
 
1477
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1478
fi
1479
fi
1480
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1481
if test -n "$ac_ct_STRIP"; then
1482
  echo "$as_me:1482: result: $ac_ct_STRIP" >&5
1483
echo "${ECHO_T}$ac_ct_STRIP" >&6
1484
else
1485
  echo "$as_me:1485: result: no" >&5
1486
echo "${ECHO_T}no" >&6
1487
fi
1488
 
1489
  STRIP=$ac_ct_STRIP
1490
else
1491
  STRIP="$ac_cv_prog_STRIP"
1492
fi
1493
 
1494
fi
1495
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1496
 
1497
# We need awk for the "check" target.  The system "awk" is bad on
1498
# some platforms.
1499
 
1500
# Is this a supported CPU?
1501
echo "$as_me:1501: checking if cpu $RTEMS_CPU is supported" >&5
1502
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1503
# FIXME: Temporary hack
1504
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1505
  echo "$as_me:1505: result: yes" >&5
1506
echo "${ECHO_T}yes" >&6
1507
else
1508
  { { echo "$as_me:1508: error: no" >&5
1509
echo "$as_me: error: no" >&2;}
1510
   { (exit 1); exit 1; }; }
1511
fi
1512
 
1513
# Check whether --enable-multilib or --disable-multilib was given.
1514
if test "${enable_multilib+set}" = set; then
1515
  enableval="$enable_multilib"
1516
  case "${enableval}" in
1517
  yes) multilib=yes ;;
1518
  no)  multilib=no ;;
1519
  *)   { { echo "$as_me:1519: error: bad value ${enableval} for multilib option" >&5
1520
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1521
   { (exit 1); exit 1; }; } ;;
1522
 esac
1523
else
1524
  multilib=no
1525
fi;
1526
 
1527
if test x"${multilib}" = x"yes"; then
1528
  MULTILIB_TRUE=
1529
  MULTILIB_FALSE='#'
1530
else
1531
  MULTILIB_TRUE='#'
1532
  MULTILIB_FALSE=
1533
fi
1534
 
1535
# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
1536
if test "${enable_multiprocessing+set}" = set; then
1537
  enableval="$enable_multiprocessing"
1538
  case "${enable_multiprocessing}" in
1539
  yes) ;;
1540
  no) ;;
1541
  *)  { { echo "$as_me:1541: error: bad value ${enableval} for enable-multiprocessing option" >&5
1542
echo "$as_me: error: bad value ${enableval} for enable-multiprocessing option" >&2;}
1543
   { (exit 1); exit 1; }; } ;;
1544
esac
1545
else
1546
  enable_multiprocessing=no
1547
fi;
1548
 
1549
# account for "aliased" bsps which share source code
1550
  case $RTEMS_BSP in
1551
    simcpu32)     RTEMS_BSP_FAMILY=sim68000         ;; # BSVC CPU32 variant
1552
    c3xsim)       RTEMS_BSP_FAMILY=c4xsim           ;; # TI C3x Simulator in gdb
1553
    mcp750)       RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
1554
    mvme2307)     RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
1555
    mvme162lx)    RTEMS_BSP_FAMILY=mvme162          ;; # m68k - mvme162 board variant
1556
    gen68360_040) RTEMS_BSP_FAMILY=gen68360         ;; # m68k - 68360 in companion mode
1557
    p4600)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4600
1558
    p4650)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4650
1559
    mbx8*)        RTEMS_BSP_FAMILY=mbx8xx           ;; # MBX821/MBX860 board
1560
    pc386dx)      RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC w/o FPU
1561
    pc486)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with i486DX
1562
    pc586)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with Pentium
1563
    pc686)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with PentiumPro
1564
    pck6)         RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with K6
1565
    bare*)        RTEMS_BSP_FAMILY=bare             ;; # EXP: bare-aliases
1566
    erc32nfp)     RTEMS_BSP_FAMILY=erc32            ;; # erc32 without fpu
1567
    leon1)        RTEMS_BSP_FAMILY=leon             ;; # leon without fpu
1568
    leon2)        RTEMS_BSP_FAMILY=leon             ;; # leon with fpu
1569
    simsh7032)    RTEMS_BSP_FAMILY=shsim            ;; # SH7032 simulator
1570
    simsh7045)    RTEMS_BSP_FAMILY=shsim            ;; # SH7045 simulator
1571
    *)            RTEMS_BSP_FAMILY=$RTEMS_BSP;;
1572
  esac
1573
 
1574
  echo "$as_me:1574: checking whether to enable maintainer-specific portions of Makefiles" >&5
1575
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1576
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1577
if test "${enable_maintainer_mode+set}" = set; then
1578
  enableval="$enable_maintainer_mode"
1579
  USE_MAINTAINER_MODE=$enableval
1580
else
1581
  USE_MAINTAINER_MODE=no
1582
fi;
1583
  echo "$as_me:1583: result: $USE_MAINTAINER_MODE" >&5
1584
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1585
 
1586
if test $USE_MAINTAINER_MODE = yes; then
1587
  MAINTAINER_MODE_TRUE=
1588
  MAINTAINER_MODE_FALSE='#'
1589
else
1590
  MAINTAINER_MODE_TRUE='#'
1591
  MAINTAINER_MODE_FALSE=
1592
fi
1593
 
1594
  MAINT=$MAINTAINER_MODE_TRUE
1595
 
1596
echo "$as_me:1596: checking for RTEMS_BSP" >&5
1597
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1598
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1599
  echo $ECHO_N "(cached) $ECHO_C" >&6
1600
else
1601
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1602
 
1603
fi
1604
if test -z "$rtems_cv_RTEMS_BSP"; then
1605
  { { echo "$as_me:1605: error: Missing RTEMS_BSP" >&5
1606
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1607
   { (exit 1); exit 1; }; }
1608
fi
1609
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1610
echo "$as_me:1610: result: ${RTEMS_BSP}" >&5
1611
echo "${ECHO_T}${RTEMS_BSP}" >&6
1612
 
1613
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1614
 
1615
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1616
 
1617
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1618
 
1619
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1620
 
1621
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1622
 
1623
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1624
if test "${enable_bare_cpu_cflags+set}" = set; then
1625
  enableval="$enable_bare_cpu_cflags"
1626
  case "${enableval}" in
1627
  no) BARE_CPU_CFLAGS="" ;;
1628
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1629
esac
1630
else
1631
  BARE_CPU_CFLAGS=""
1632
fi;
1633
 
1634
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1635
if test "${enable_bare_cpu_model+set}" = set; then
1636
  enableval="$enable_bare_cpu_model"
1637
  case "${enableval}" in
1638
  no)   BARE_CPU_MODEL="" ;;
1639
  *)    BARE_CPU_MODEL="${enableval}" ;;
1640
esac
1641
else
1642
  BARE_CPU_MODEL=""
1643
fi;
1644
 
1645
if false; then
1646
  MULTILIB_TRUE=
1647
  MULTILIB_FALSE='#'
1648
else
1649
  MULTILIB_TRUE='#'
1650
  MULTILIB_FALSE=
1651
fi
1652
 
1653
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1654
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1655
 
1656
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1657
 
1658
echo "$as_me:1658: checking for make/custom/$RTEMS_BSP.cfg" >&5
1659
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
1660
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1661
  echo "$as_me:1661: result: yes" >&5
1662
echo "${ECHO_T}yes" >&6
1663
else
1664
  { { echo "$as_me:1664: error: no" >&5
1665
echo "$as_me: error: no" >&2;}
1666
   { (exit 1); exit 1; }; }
1667
fi
1668
 
1669
echo "$as_me:1669: checking for RTEMS_CPU_MODEL" >&5
1670
echo $ECHO_N "checking for RTEMS_CPU_MODEL... $ECHO_C" >&6
1671
if test "${rtems_cv_RTEMS_CPU_MODEL+set}" = set; then
1672
  echo $ECHO_N "(cached) $ECHO_C" >&6
1673
else
1674
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1675
fi
1676
echo "$as_me:1676: result: $rtems_cv_RTEMS_CPU_MODEL" >&5
1677
echo "${ECHO_T}$rtems_cv_RTEMS_CPU_MODEL" >&6
1678
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
1679
 
1680
echo "$as_me:1680: checking for RTEMS_BSP_FAMILY" >&5
1681
echo $ECHO_N "checking for RTEMS_BSP_FAMILY... $ECHO_C" >&6
1682
if test "${rtems_cv_RTEMS_BSP_FAMILY+set}" = set; then
1683
  echo $ECHO_N "(cached) $ECHO_C" >&6
1684
else
1685
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
1686
fi
1687
echo "$as_me:1687: result: $rtems_cv_RTEMS_BSP_FAMILY" >&5
1688
echo "${ECHO_T}$rtems_cv_RTEMS_BSP_FAMILY" >&6
1689
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
1690
 
1691
RTEMS_HOST=$host_os
1692
case "${target}" in
1693
  # hpux unix port should go here
1694
  i[34567]86-*linux*)          # unix "simulator" port
1695
        RTEMS_HOST=Linux
1696
        ;;
1697
  i[34567]86-*freebsd*)         # unix "simulator" port
1698
        RTEMS_HOST=FreeBSD
1699
        ;;
1700
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1701
        RTEMS_HOST=Cygwin
1702
        ;;
1703
  sparc-sun-solaris*)           # unix "simulator" port
1704
        RTEMS_HOST=Solaris
1705
        ;;
1706
  *)
1707
        ;;
1708
esac
1709
 
1710
  # Add the stamp file to the list of files AC keeps track of,
1711
# along with our hook.
1712
ac_config_headers="$ac_config_headers include/bspopts.h"
1713
 
1714
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1715
 
1716
echo "$as_me:1716: checking if wanting multiprocessing" >&5
1717
echo $ECHO_N "checking if wanting multiprocessing... $ECHO_C" >&6
1718
if test "${rtems_cv_want_multiprocessing+set}" = set; then
1719
  echo $ECHO_N "(cached) $ECHO_C" >&6
1720
else
1721
 
1722
    if test x"$multilib" = x"no"; then
1723
  # no cpukit
1724
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
1725
 
1726
else
1727
 
1728
#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
1729
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
1730
 
1731
fi
1732
 
1733
fi
1734
echo "$as_me:1734: result: $rtems_cv_want_multiprocessing" >&5
1735
echo "${ECHO_T}$rtems_cv_want_multiprocessing" >&6
1736
 
1737
if test "$rtems_cv_want_multiprocessing" = "yes"; then
1738
 
1739
  echo "$as_me:1739: checking whether BSP supports multiprocessing" >&5
1740
echo $ECHO_N "checking whether BSP supports multiprocessing... $ECHO_C" >&6
1741
if test "${rtems_cv_HAS_MP+set}" = set; then
1742
  echo $ECHO_N "(cached) $ECHO_C" >&6
1743
else
1744
 
1745
    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
1746
        rtems_cv_HAS_MP="yes" ;
1747
    else
1748
        rtems_cv_HAS_MP="no";
1749
    fi
1750
 
1751
fi
1752
echo "$as_me:1752: result: $rtems_cv_HAS_MP" >&5
1753
echo "${ECHO_T}$rtems_cv_HAS_MP" >&6
1754
if test $rtems_cv_HAS_MP = "no"; then
1755
{ { echo "$as_me:1755: error: multiprocessing requested but not supported" >&5
1756
echo "$as_me: error: multiprocessing requested but not supported" >&2;}
1757
   { (exit 1); exit 1; }; }
1758
fi
1759
 
1760
else
1761
  rtems_cv_HAS_MP="no";
1762
fi
1763
 
1764
HAS_MP=$rtems_cv_HAS_MP
1765
 
1766
rm -f .deps 2>/dev/null
1767
mkdir .deps 2>/dev/null
1768
if test -d .deps; then
1769
  DEPDIR=.deps
1770
else
1771
  # MS-DOS does not allow filenames that begin with a dot.
1772
  DEPDIR=_deps
1773
fi
1774
rmdir .deps 2>/dev/null
1775
 
1776
ac_config_commands="$ac_config_commands depfiles"
1777
 
1778
am_make=${MAKE-make}
1779
cat > confinc << 'END'
1780
doit:
1781
        @echo done
1782
END
1783
# If we don't find an include directive, just comment out the code.
1784
echo "$as_me:1784: checking for style of include used by $am_make" >&5
1785
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1786
am__include="#"
1787
am__quote=
1788
_am_result=none
1789
# First try GNU make style include.
1790
echo "include confinc" > confmf
1791
# We grep out `Entering directory' and `Leaving directory'
1792
# messages which can occur if `w' ends up in MAKEFLAGS.
1793
# In particular we don't look at `^make:' because GNU make might
1794
# be invoked under some other name (usually "gmake"), in which
1795
# case it prints its new name instead of `make'.
1796
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1797
   am__include=include
1798
   am__quote=
1799
   _am_result=GNU
1800
fi
1801
# Now try BSD make style include.
1802
if test "$am__include" = "#"; then
1803
   echo '.include "confinc"' > confmf
1804
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1805
      am__include=.include
1806
      am__quote="\""
1807
      _am_result=BSD
1808
   fi
1809
fi
1810
 
1811
echo "$as_me:1811: result: $_am_result" >&5
1812
echo "${ECHO_T}$_am_result" >&6
1813
rm -f confinc confmf
1814
 
1815
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1816
if test "${enable_dependency_tracking+set}" = set; then
1817
  enableval="$enable_dependency_tracking"
1818
 
1819
fi;
1820
if test "x$enable_dependency_tracking" != xno; then
1821
  am_depcomp="$ac_aux_dir/depcomp"
1822
  AMDEPBACKSLASH='\'
1823
fi
1824
 
1825
if test "x$enable_dependency_tracking" != xno; then
1826
  AMDEP_TRUE=
1827
  AMDEP_FALSE='#'
1828
else
1829
  AMDEP_TRUE='#'
1830
  AMDEP_FALSE=
1831
fi
1832
 
1833
  if test "x$build_alias" != "x$host_alias"; then
1834
  rtems_tool_prefix=${ac_tool_prefix}
1835
fi
1836
 
1837
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
1838
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
1839
echo "$as_me:1839: checking for $ac_word" >&5
1840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841
if test "${ac_cv_prog_CC+set}" = set; then
1842
  echo $ECHO_N "(cached) $ECHO_C" >&6
1843
else
1844
  if test -n "$CC"; then
1845
  ac_cv_prog_CC="$CC" # Let the user override the test.
1846
else
1847
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1848
ac_dummy="$PATH"
1849
for ac_dir in $ac_dummy; do
1850
  IFS=$ac_save_IFS
1851
  test -z "$ac_dir" && ac_dir=.
1852
  $as_executable_p "$ac_dir/$ac_word" || continue
1853
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
1854
echo "$as_me:1854: found $ac_dir/$ac_word" >&5
1855
break
1856
done
1857
 
1858
fi
1859
fi
1860
CC=$ac_cv_prog_CC
1861
if test -n "$CC"; then
1862
  echo "$as_me:1862: result: $CC" >&5
1863
echo "${ECHO_T}$CC" >&6
1864
else
1865
  echo "$as_me:1865: result: no" >&5
1866
echo "${ECHO_T}no" >&6
1867
fi
1868
 
1869
test -z "$CC" && \
1870
  { { echo "$as_me:1870: error: no acceptable cc found in \$PATH" >&5
1871
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1872
   { (exit 1); exit 1; }; }
1873
ac_ext=c
1874
ac_cpp='$CPP $CPPFLAGS'
1875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
if test -n "$ac_tool_prefix"; then
1879
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1880
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1881
echo "$as_me:1881: checking for $ac_word" >&5
1882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883
if test "${ac_cv_prog_CC+set}" = set; then
1884
  echo $ECHO_N "(cached) $ECHO_C" >&6
1885
else
1886
  if test -n "$CC"; then
1887
  ac_cv_prog_CC="$CC" # Let the user override the test.
1888
else
1889
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1890
ac_dummy="$PATH"
1891
for ac_dir in $ac_dummy; do
1892
  IFS=$ac_save_IFS
1893
  test -z "$ac_dir" && ac_dir=.
1894
  $as_executable_p "$ac_dir/$ac_word" || continue
1895
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896
echo "$as_me:1896: found $ac_dir/$ac_word" >&5
1897
break
1898
done
1899
 
1900
fi
1901
fi
1902
CC=$ac_cv_prog_CC
1903
if test -n "$CC"; then
1904
  echo "$as_me:1904: result: $CC" >&5
1905
echo "${ECHO_T}$CC" >&6
1906
else
1907
  echo "$as_me:1907: result: no" >&5
1908
echo "${ECHO_T}no" >&6
1909
fi
1910
 
1911
fi
1912
if test -z "$ac_cv_prog_CC"; then
1913
  ac_ct_CC=$CC
1914
  # Extract the first word of "gcc", so it can be a program name with args.
1915
set dummy gcc; ac_word=$2
1916
echo "$as_me:1916: checking for $ac_word" >&5
1917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919
  echo $ECHO_N "(cached) $ECHO_C" >&6
1920
else
1921
  if test -n "$ac_ct_CC"; then
1922
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923
else
1924
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1925
ac_dummy="$PATH"
1926
for ac_dir in $ac_dummy; do
1927
  IFS=$ac_save_IFS
1928
  test -z "$ac_dir" && ac_dir=.
1929
  $as_executable_p "$ac_dir/$ac_word" || continue
1930
ac_cv_prog_ac_ct_CC="gcc"
1931
echo "$as_me:1931: found $ac_dir/$ac_word" >&5
1932
break
1933
done
1934
 
1935
fi
1936
fi
1937
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938
if test -n "$ac_ct_CC"; then
1939
  echo "$as_me:1939: result: $ac_ct_CC" >&5
1940
echo "${ECHO_T}$ac_ct_CC" >&6
1941
else
1942
  echo "$as_me:1942: result: no" >&5
1943
echo "${ECHO_T}no" >&6
1944
fi
1945
 
1946
  CC=$ac_ct_CC
1947
else
1948
  CC="$ac_cv_prog_CC"
1949
fi
1950
 
1951
if test -z "$CC"; then
1952
  if test -n "$ac_tool_prefix"; then
1953
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1954
set dummy ${ac_tool_prefix}cc; ac_word=$2
1955
echo "$as_me:1955: checking for $ac_word" >&5
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
if test "${ac_cv_prog_CC+set}" = set; then
1958
  echo $ECHO_N "(cached) $ECHO_C" >&6
1959
else
1960
  if test -n "$CC"; then
1961
  ac_cv_prog_CC="$CC" # Let the user override the test.
1962
else
1963
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1964
ac_dummy="$PATH"
1965
for ac_dir in $ac_dummy; do
1966
  IFS=$ac_save_IFS
1967
  test -z "$ac_dir" && ac_dir=.
1968
  $as_executable_p "$ac_dir/$ac_word" || continue
1969
ac_cv_prog_CC="${ac_tool_prefix}cc"
1970
echo "$as_me:1970: found $ac_dir/$ac_word" >&5
1971
break
1972
done
1973
 
1974
fi
1975
fi
1976
CC=$ac_cv_prog_CC
1977
if test -n "$CC"; then
1978
  echo "$as_me:1978: result: $CC" >&5
1979
echo "${ECHO_T}$CC" >&6
1980
else
1981
  echo "$as_me:1981: result: no" >&5
1982
echo "${ECHO_T}no" >&6
1983
fi
1984
 
1985
fi
1986
if test -z "$ac_cv_prog_CC"; then
1987
  ac_ct_CC=$CC
1988
  # Extract the first word of "cc", so it can be a program name with args.
1989
set dummy cc; ac_word=$2
1990
echo "$as_me:1990: checking for $ac_word" >&5
1991
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993
  echo $ECHO_N "(cached) $ECHO_C" >&6
1994
else
1995
  if test -n "$ac_ct_CC"; then
1996
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997
else
1998
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1999
ac_dummy="$PATH"
2000
for ac_dir in $ac_dummy; do
2001
  IFS=$ac_save_IFS
2002
  test -z "$ac_dir" && ac_dir=.
2003
  $as_executable_p "$ac_dir/$ac_word" || continue
2004
ac_cv_prog_ac_ct_CC="cc"
2005
echo "$as_me:2005: found $ac_dir/$ac_word" >&5
2006
break
2007
done
2008
 
2009
fi
2010
fi
2011
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012
if test -n "$ac_ct_CC"; then
2013
  echo "$as_me:2013: result: $ac_ct_CC" >&5
2014
echo "${ECHO_T}$ac_ct_CC" >&6
2015
else
2016
  echo "$as_me:2016: result: no" >&5
2017
echo "${ECHO_T}no" >&6
2018
fi
2019
 
2020
  CC=$ac_ct_CC
2021
else
2022
  CC="$ac_cv_prog_CC"
2023
fi
2024
 
2025
fi
2026
if test -z "$CC"; then
2027
  # Extract the first word of "cc", so it can be a program name with args.
2028
set dummy cc; ac_word=$2
2029
echo "$as_me:2029: checking for $ac_word" >&5
2030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031
if test "${ac_cv_prog_CC+set}" = set; then
2032
  echo $ECHO_N "(cached) $ECHO_C" >&6
2033
else
2034
  if test -n "$CC"; then
2035
  ac_cv_prog_CC="$CC" # Let the user override the test.
2036
else
2037
  ac_prog_rejected=no
2038
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2039
ac_dummy="$PATH"
2040
for ac_dir in $ac_dummy; do
2041
  IFS=$ac_save_IFS
2042
  test -z "$ac_dir" && ac_dir=.
2043
  $as_executable_p "$ac_dir/$ac_word" || continue
2044
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2045
  ac_prog_rejected=yes
2046
  continue
2047
fi
2048
ac_cv_prog_CC="cc"
2049
echo "$as_me:2049: found $ac_dir/$ac_word" >&5
2050
break
2051
done
2052
 
2053
if test $ac_prog_rejected = yes; then
2054
  # We found a bogon in the path, so make sure we never use it.
2055
  set dummy $ac_cv_prog_CC
2056
  shift
2057
  if test $# != 0; then
2058
    # We chose a different compiler from the bogus one.
2059
    # However, it has the same basename, so the bogon will be chosen
2060
    # first if we set CC to just the basename; use the full file name.
2061
    shift
2062
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2063
    shift
2064
    ac_cv_prog_CC="$@"
2065
  fi
2066
fi
2067
fi
2068
fi
2069
CC=$ac_cv_prog_CC
2070
if test -n "$CC"; then
2071
  echo "$as_me:2071: result: $CC" >&5
2072
echo "${ECHO_T}$CC" >&6
2073
else
2074
  echo "$as_me:2074: result: no" >&5
2075
echo "${ECHO_T}no" >&6
2076
fi
2077
 
2078
fi
2079
if test -z "$CC"; then
2080
  if test -n "$ac_tool_prefix"; then
2081
  for ac_prog in cl
2082
  do
2083
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2084
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2085
echo "$as_me:2085: checking for $ac_word" >&5
2086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087
if test "${ac_cv_prog_CC+set}" = set; then
2088
  echo $ECHO_N "(cached) $ECHO_C" >&6
2089
else
2090
  if test -n "$CC"; then
2091
  ac_cv_prog_CC="$CC" # Let the user override the test.
2092
else
2093
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2094
ac_dummy="$PATH"
2095
for ac_dir in $ac_dummy; do
2096
  IFS=$ac_save_IFS
2097
  test -z "$ac_dir" && ac_dir=.
2098
  $as_executable_p "$ac_dir/$ac_word" || continue
2099
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2100
echo "$as_me:2100: found $ac_dir/$ac_word" >&5
2101
break
2102
done
2103
 
2104
fi
2105
fi
2106
CC=$ac_cv_prog_CC
2107
if test -n "$CC"; then
2108
  echo "$as_me:2108: result: $CC" >&5
2109
echo "${ECHO_T}$CC" >&6
2110
else
2111
  echo "$as_me:2111: result: no" >&5
2112
echo "${ECHO_T}no" >&6
2113
fi
2114
 
2115
    test -n "$CC" && break
2116
  done
2117
fi
2118
if test -z "$CC"; then
2119
  ac_ct_CC=$CC
2120
  for ac_prog in cl
2121
do
2122
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2123
set dummy $ac_prog; ac_word=$2
2124
echo "$as_me:2124: checking for $ac_word" >&5
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127
  echo $ECHO_N "(cached) $ECHO_C" >&6
2128
else
2129
  if test -n "$ac_ct_CC"; then
2130
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131
else
2132
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2133
ac_dummy="$PATH"
2134
for ac_dir in $ac_dummy; do
2135
  IFS=$ac_save_IFS
2136
  test -z "$ac_dir" && ac_dir=.
2137
  $as_executable_p "$ac_dir/$ac_word" || continue
2138
ac_cv_prog_ac_ct_CC="$ac_prog"
2139
echo "$as_me:2139: found $ac_dir/$ac_word" >&5
2140
break
2141
done
2142
 
2143
fi
2144
fi
2145
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146
if test -n "$ac_ct_CC"; then
2147
  echo "$as_me:2147: result: $ac_ct_CC" >&5
2148
echo "${ECHO_T}$ac_ct_CC" >&6
2149
else
2150
  echo "$as_me:2150: result: no" >&5
2151
echo "${ECHO_T}no" >&6
2152
fi
2153
 
2154
  test -n "$ac_ct_CC" && break
2155
done
2156
 
2157
  CC=$ac_ct_CC
2158
fi
2159
 
2160
fi
2161
 
2162
test -z "$CC" && { { echo "$as_me:2162: error: no acceptable cc found in \$PATH" >&5
2163
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2164
   { (exit 1); exit 1; }; }
2165
 
2166
# Provide some information about the compiler.
2167
echo "$as_me:2167:" \
2168
     "checking for C compiler version" >&5
2169
ac_compiler=`set X $ac_compile; echo $2`
2170
{ (eval echo "$as_me:2170: \"$ac_compiler --version &5\"") >&5
2171
  (eval $ac_compiler --version &5) 2>&5
2172
  ac_status=$?
2173
  echo "$as_me:2173: \$? = $ac_status" >&5
2174
  (exit $ac_status); }
2175
{ (eval echo "$as_me:2175: \"$ac_compiler -v &5\"") >&5
2176
  (eval $ac_compiler -v &5) 2>&5
2177
  ac_status=$?
2178
  echo "$as_me:2178: \$? = $ac_status" >&5
2179
  (exit $ac_status); }
2180
{ (eval echo "$as_me:2180: \"$ac_compiler -V &5\"") >&5
2181
  (eval $ac_compiler -V &5) 2>&5
2182
  ac_status=$?
2183
  echo "$as_me:2183: \$? = $ac_status" >&5
2184
  (exit $ac_status); }
2185
 
2186
cat >conftest.$ac_ext <<_ACEOF
2187
#line 2187 "configure"
2188
#include "confdefs.h"
2189
 
2190
int
2191
main ()
2192
{
2193
 
2194
  ;
2195
  return 0;
2196
}
2197
_ACEOF
2198
ac_clean_files_save=$ac_clean_files
2199
ac_clean_files="$ac_clean_files a.out a.exe"
2200
# Try to create an executable without -o first, disregard a.out.
2201
# It will help us diagnose broken compilers, and finding out an intuition
2202
# of exeext.
2203
echo "$as_me:2203: checking for C compiler default output" >&5
2204
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2205
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206
if { (eval echo "$as_me:2206: \"$ac_link_default\"") >&5
2207
  (eval $ac_link_default) 2>&5
2208
  ac_status=$?
2209
  echo "$as_me:2209: \$? = $ac_status" >&5
2210
  (exit $ac_status); }; then
2211
  # Find the output, starting from the most likely.  This scheme is
2212
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2213
# resort.
2214
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2215
                ls a.out conftest 2>/dev/null;
2216
                ls a.* conftest.* 2>/dev/null`; do
2217
  case $ac_file in
2218
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2219
    a.out ) # We found the default executable, but exeext='' is most
2220
            # certainly right.
2221
            break;;
2222
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2223
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2224
          export ac_cv_exeext
2225
          break;;
2226
    * ) break;;
2227
  esac
2228
done
2229
else
2230
  echo "$as_me: failed program was:" >&5
2231
cat conftest.$ac_ext >&5
2232
{ { echo "$as_me:2232: error: C compiler cannot create executables" >&5
2233
echo "$as_me: error: C compiler cannot create executables" >&2;}
2234
   { (exit 77); exit 77; }; }
2235
fi
2236
 
2237
ac_exeext=$ac_cv_exeext
2238
echo "$as_me:2238: result: $ac_file" >&5
2239
echo "${ECHO_T}$ac_file" >&6
2240
 
2241
# Check the compiler produces executables we can run.  If not, either
2242
# the compiler is broken, or we cross compile.
2243
echo "$as_me:2243: checking whether the C compiler works" >&5
2244
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246
# If not cross compiling, check that we can run a simple program.
2247
if test "$cross_compiling" != yes; then
2248
  if { ac_try='./$ac_file'
2249
  { (eval echo "$as_me:2249: \"$ac_try\"") >&5
2250
  (eval $ac_try) 2>&5
2251
  ac_status=$?
2252
  echo "$as_me:2252: \$? = $ac_status" >&5
2253
  (exit $ac_status); }; }; then
2254
    cross_compiling=no
2255
  else
2256
    if test "$cross_compiling" = maybe; then
2257
        cross_compiling=yes
2258
    else
2259
        { { echo "$as_me:2259: error: cannot run C compiled programs.
2260
If you meant to cross compile, use \`--host'." >&5
2261
echo "$as_me: error: cannot run C compiled programs.
2262
If you meant to cross compile, use \`--host'." >&2;}
2263
   { (exit 1); exit 1; }; }
2264
    fi
2265
  fi
2266
fi
2267
echo "$as_me:2267: result: yes" >&5
2268
echo "${ECHO_T}yes" >&6
2269
 
2270
rm -f a.out a.exe conftest$ac_cv_exeext
2271
ac_clean_files=$ac_clean_files_save
2272
# Check the compiler produces executables we can run.  If not, either
2273
# the compiler is broken, or we cross compile.
2274
echo "$as_me:2274: checking whether we are cross compiling" >&5
2275
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276
echo "$as_me:2276: result: $cross_compiling" >&5
2277
echo "${ECHO_T}$cross_compiling" >&6
2278
 
2279
echo "$as_me:2279: checking for executable suffix" >&5
2280
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2281
if { (eval echo "$as_me:2281: \"$ac_link\"") >&5
2282
  (eval $ac_link) 2>&5
2283
  ac_status=$?
2284
  echo "$as_me:2284: \$? = $ac_status" >&5
2285
  (exit $ac_status); }; then
2286
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288
# work properly (i.e., refer to `conftest.exe'), while it won't with
2289
# `rm'.
2290
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2291
  case $ac_file in
2292
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2293
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294
          export ac_cv_exeext
2295
          break;;
2296
    * ) break;;
2297
  esac
2298
done
2299
else
2300
  { { echo "$as_me:2300: error: cannot compute EXEEXT: cannot compile and link" >&5
2301
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2302
   { (exit 1); exit 1; }; }
2303
fi
2304
 
2305
rm -f conftest$ac_cv_exeext
2306
echo "$as_me:2306: result: $ac_cv_exeext" >&5
2307
echo "${ECHO_T}$ac_cv_exeext" >&6
2308
 
2309
rm -f conftest.$ac_ext
2310
EXEEXT=$ac_cv_exeext
2311
ac_exeext=$EXEEXT
2312
echo "$as_me:2312: checking for object suffix" >&5
2313
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2314
if test "${ac_cv_objext+set}" = set; then
2315
  echo $ECHO_N "(cached) $ECHO_C" >&6
2316
else
2317
  cat >conftest.$ac_ext <<_ACEOF
2318
#line 2318 "configure"
2319
#include "confdefs.h"
2320
 
2321
int
2322
main ()
2323
{
2324
 
2325
  ;
2326
  return 0;
2327
}
2328
_ACEOF
2329
rm -f conftest.o conftest.obj
2330
if { (eval echo "$as_me:2330: \"$ac_compile\"") >&5
2331
  (eval $ac_compile) 2>&5
2332
  ac_status=$?
2333
  echo "$as_me:2333: \$? = $ac_status" >&5
2334
  (exit $ac_status); }; then
2335
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336
  case $ac_file in
2337
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2338
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339
       break;;
2340
  esac
2341
done
2342
else
2343
  echo "$as_me: failed program was:" >&5
2344
cat conftest.$ac_ext >&5
2345
{ { echo "$as_me:2345: error: cannot compute OBJEXT: cannot compile" >&5
2346
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2347
   { (exit 1); exit 1; }; }
2348
fi
2349
 
2350
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351
fi
2352
echo "$as_me:2352: result: $ac_cv_objext" >&5
2353
echo "${ECHO_T}$ac_cv_objext" >&6
2354
OBJEXT=$ac_cv_objext
2355
ac_objext=$OBJEXT
2356
echo "$as_me:2356: checking whether we are using the GNU C compiler" >&5
2357
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359
  echo $ECHO_N "(cached) $ECHO_C" >&6
2360
else
2361
  cat >conftest.$ac_ext <<_ACEOF
2362
#line 2362 "configure"
2363
#include "confdefs.h"
2364
 
2365
int
2366
main ()
2367
{
2368
#ifndef __GNUC__
2369
       choke me
2370
#endif
2371
 
2372
  ;
2373
  return 0;
2374
}
2375
_ACEOF
2376
rm -f conftest.$ac_objext
2377
if { (eval echo "$as_me:2377: \"$ac_compile\"") >&5
2378
  (eval $ac_compile) 2>&5
2379
  ac_status=$?
2380
  echo "$as_me:2380: \$? = $ac_status" >&5
2381
  (exit $ac_status); } &&
2382
         { ac_try='test -s conftest.$ac_objext'
2383
  { (eval echo "$as_me:2383: \"$ac_try\"") >&5
2384
  (eval $ac_try) 2>&5
2385
  ac_status=$?
2386
  echo "$as_me:2386: \$? = $ac_status" >&5
2387
  (exit $ac_status); }; }; then
2388
  ac_compiler_gnu=yes
2389
else
2390
  echo "$as_me: failed program was:" >&5
2391
cat conftest.$ac_ext >&5
2392
ac_compiler_gnu=no
2393
fi
2394
rm -f conftest.$ac_objext conftest.$ac_ext
2395
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396
 
2397
fi
2398
echo "$as_me:2398: result: $ac_cv_c_compiler_gnu" >&5
2399
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400
GCC=`test $ac_compiler_gnu = yes && echo yes`
2401
ac_test_CFLAGS=${CFLAGS+set}
2402
ac_save_CFLAGS=$CFLAGS
2403
CFLAGS="-g"
2404
echo "$as_me:2404: checking whether $CC accepts -g" >&5
2405
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406
if test "${ac_cv_prog_cc_g+set}" = set; then
2407
  echo $ECHO_N "(cached) $ECHO_C" >&6
2408
else
2409
  cat >conftest.$ac_ext <<_ACEOF
2410
#line 2410 "configure"
2411
#include "confdefs.h"
2412
 
2413
int
2414
main ()
2415
{
2416
 
2417
  ;
2418
  return 0;
2419
}
2420
_ACEOF
2421
rm -f conftest.$ac_objext
2422
if { (eval echo "$as_me:2422: \"$ac_compile\"") >&5
2423
  (eval $ac_compile) 2>&5
2424
  ac_status=$?
2425
  echo "$as_me:2425: \$? = $ac_status" >&5
2426
  (exit $ac_status); } &&
2427
         { ac_try='test -s conftest.$ac_objext'
2428
  { (eval echo "$as_me:2428: \"$ac_try\"") >&5
2429
  (eval $ac_try) 2>&5
2430
  ac_status=$?
2431
  echo "$as_me:2431: \$? = $ac_status" >&5
2432
  (exit $ac_status); }; }; then
2433
  ac_cv_prog_cc_g=yes
2434
else
2435
  echo "$as_me: failed program was:" >&5
2436
cat conftest.$ac_ext >&5
2437
ac_cv_prog_cc_g=no
2438
fi
2439
rm -f conftest.$ac_objext conftest.$ac_ext
2440
fi
2441
echo "$as_me:2441: result: $ac_cv_prog_cc_g" >&5
2442
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2443
if test "$ac_test_CFLAGS" = set; then
2444
  CFLAGS=$ac_save_CFLAGS
2445
elif test $ac_cv_prog_cc_g = yes; then
2446
  if test "$GCC" = yes; then
2447
    CFLAGS="-g -O2"
2448
  else
2449
    CFLAGS="-g"
2450
  fi
2451
else
2452
  if test "$GCC" = yes; then
2453
    CFLAGS="-O2"
2454
  else
2455
    CFLAGS=
2456
  fi
2457
fi
2458
# Some people use a C++ compiler to compile C.  Since we use `exit',
2459
# in C++ we need to declare it.  In case someone uses the same compiler
2460
# for both compiling C and C++ we need to have the C++ compiler decide
2461
# the declaration of exit, since it's the most demanding environment.
2462
cat >conftest.$ac_ext <<_ACEOF
2463
#ifndef __cplusplus
2464
  choke me
2465
#endif
2466
_ACEOF
2467
rm -f conftest.$ac_objext
2468
if { (eval echo "$as_me:2468: \"$ac_compile\"") >&5
2469
  (eval $ac_compile) 2>&5
2470
  ac_status=$?
2471
  echo "$as_me:2471: \$? = $ac_status" >&5
2472
  (exit $ac_status); } &&
2473
         { ac_try='test -s conftest.$ac_objext'
2474
  { (eval echo "$as_me:2474: \"$ac_try\"") >&5
2475
  (eval $ac_try) 2>&5
2476
  ac_status=$?
2477
  echo "$as_me:2477: \$? = $ac_status" >&5
2478
  (exit $ac_status); }; }; then
2479
  for ac_declaration in \
2480
   ''\
2481
   '#include ' \
2482
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2483
   'extern "C" void std::exit (int); using std::exit;' \
2484
   'extern "C" void exit (int) throw ();' \
2485
   'extern "C" void exit (int);' \
2486
   'void exit (int);'
2487
do
2488
  cat >conftest.$ac_ext <<_ACEOF
2489
#line 2489 "configure"
2490
#include "confdefs.h"
2491
#include 
2492
$ac_declaration
2493
int
2494
main ()
2495
{
2496
exit (42);
2497
  ;
2498
  return 0;
2499
}
2500
_ACEOF
2501
rm -f conftest.$ac_objext
2502
if { (eval echo "$as_me:2502: \"$ac_compile\"") >&5
2503
  (eval $ac_compile) 2>&5
2504
  ac_status=$?
2505
  echo "$as_me:2505: \$? = $ac_status" >&5
2506
  (exit $ac_status); } &&
2507
         { ac_try='test -s conftest.$ac_objext'
2508
  { (eval echo "$as_me:2508: \"$ac_try\"") >&5
2509
  (eval $ac_try) 2>&5
2510
  ac_status=$?
2511
  echo "$as_me:2511: \$? = $ac_status" >&5
2512
  (exit $ac_status); }; }; then
2513
  :
2514
else
2515
  echo "$as_me: failed program was:" >&5
2516
cat conftest.$ac_ext >&5
2517
continue
2518
fi
2519
rm -f conftest.$ac_objext conftest.$ac_ext
2520
  cat >conftest.$ac_ext <<_ACEOF
2521
#line 2521 "configure"
2522
#include "confdefs.h"
2523
$ac_declaration
2524
int
2525
main ()
2526
{
2527
exit (42);
2528
  ;
2529
  return 0;
2530
}
2531
_ACEOF
2532
rm -f conftest.$ac_objext
2533
if { (eval echo "$as_me:2533: \"$ac_compile\"") >&5
2534
  (eval $ac_compile) 2>&5
2535
  ac_status=$?
2536
  echo "$as_me:2536: \$? = $ac_status" >&5
2537
  (exit $ac_status); } &&
2538
         { ac_try='test -s conftest.$ac_objext'
2539
  { (eval echo "$as_me:2539: \"$ac_try\"") >&5
2540
  (eval $ac_try) 2>&5
2541
  ac_status=$?
2542
  echo "$as_me:2542: \$? = $ac_status" >&5
2543
  (exit $ac_status); }; }; then
2544
  break
2545
else
2546
  echo "$as_me: failed program was:" >&5
2547
cat conftest.$ac_ext >&5
2548
fi
2549
rm -f conftest.$ac_objext conftest.$ac_ext
2550
done
2551
rm -f conftest*
2552
if test -n "$ac_declaration"; then
2553
  echo '#ifdef __cplusplus' >>confdefs.h
2554
  echo $ac_declaration      >>confdefs.h
2555
  echo '#endif'             >>confdefs.h
2556
fi
2557
 
2558
else
2559
  echo "$as_me: failed program was:" >&5
2560
cat conftest.$ac_ext >&5
2561
fi
2562
rm -f conftest.$ac_objext conftest.$ac_ext
2563
ac_ext=c
2564
ac_cpp='$CPP $CPPFLAGS'
2565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
 
2569
depcc="$CC"   am_compiler_list=
2570
 
2571
echo "$as_me:2571: checking dependency style of $depcc" >&5
2572
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2573
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2574
  echo $ECHO_N "(cached) $ECHO_C" >&6
2575
else
2576
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2577
  # We make a subdir and do the tests there.  Otherwise we can end up
2578
  # making bogus files that we don't know about and never remove.  For
2579
  # instance it was reported that on HP-UX the gcc test will end up
2580
  # making a dummy file named `D' -- because `-MD' means `put the output
2581
  # in D'.
2582
  mkdir conftest.dir
2583
  # Copy depcomp to subdir because otherwise we won't find it if we're
2584
  # using a relative directory.
2585
  cp "$am_depcomp" conftest.dir
2586
  cd conftest.dir
2587
 
2588
  am_cv_CC_dependencies_compiler_type=none
2589
  if test "$am_compiler_list" = ""; then
2590
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2591
  fi
2592
  for depmode in $am_compiler_list; do
2593
    # We need to recreate these files for each test, as the compiler may
2594
    # overwrite some of them when testing with obscure command lines.
2595
    # This happens at least with the AIX C compiler.
2596
    echo '#include "conftest.h"' > conftest.c
2597
    echo 'int i;' > conftest.h
2598
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2599
 
2600
    case $depmode in
2601
    nosideeffect)
2602
      # after this tag, mechanisms are not by side-effect, so they'll
2603
      # only be used when explicitly requested
2604
      if test "x$enable_dependency_tracking" = xyes; then
2605
        continue
2606
      else
2607
        break
2608
      fi
2609
      ;;
2610
    none) break ;;
2611
    esac
2612
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2613
    # mode.  It turns out that the SunPro C++ compiler does not properly
2614
    # handle `-M -o', and we need to detect this.
2615
    if depmode=$depmode \
2616
       source=conftest.c object=conftest.o \
2617
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2618
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2619
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2620
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2621
      am_cv_CC_dependencies_compiler_type=$depmode
2622
      break
2623
    fi
2624
  done
2625
 
2626
  cd ..
2627
  rm -rf conftest.dir
2628
else
2629
  am_cv_CC_dependencies_compiler_type=none
2630
fi
2631
 
2632
fi
2633
echo "$as_me:2633: result: $am_cv_CC_dependencies_compiler_type" >&5
2634
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2635
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2636
 
2637
ac_ext=c
2638
ac_cpp='$CPP $CPPFLAGS'
2639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
echo "$as_me:2642: checking how to run the C preprocessor" >&5
2643
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2644
# On Suns, sometimes $CPP names a directory.
2645
if test -n "$CPP" && test -d "$CPP"; then
2646
  CPP=
2647
fi
2648
if test -z "$CPP"; then
2649
  if test "${ac_cv_prog_CPP+set}" = set; then
2650
  echo $ECHO_N "(cached) $ECHO_C" >&6
2651
else
2652
      # Double quotes because CPP needs to be expanded
2653
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2654
    do
2655
      ac_preproc_ok=false
2656
for ac_c_preproc_warn_flag in '' yes
2657
do
2658
  # Use a header file that comes with gcc, so configuring glibc
2659
  # with a fresh cross-compiler works.
2660
  # On the NeXT, cc -E runs the code through the compiler's parser,
2661
  # not just through cpp. "Syntax error" is here to catch this case.
2662
  cat >conftest.$ac_ext <<_ACEOF
2663
#line 2663 "configure"
2664
#include "confdefs.h"
2665
#include 
2666
                     Syntax error
2667
_ACEOF
2668
if { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5
2669
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670
  ac_status=$?
2671
  egrep -v '^ *\+' conftest.er1 >conftest.err
2672
  rm -f conftest.er1
2673
  cat conftest.err >&5
2674
  echo "$as_me:2674: \$? = $ac_status" >&5
2675
  (exit $ac_status); } >/dev/null; then
2676
  if test -s conftest.err; then
2677
    ac_cpp_err=$ac_c_preproc_warn_flag
2678
  else
2679
    ac_cpp_err=
2680
  fi
2681
else
2682
  ac_cpp_err=yes
2683
fi
2684
if test -z "$ac_cpp_err"; then
2685
  :
2686
else
2687
  echo "$as_me: failed program was:" >&5
2688
  cat conftest.$ac_ext >&5
2689
  # Broken: fails on valid input.
2690
continue
2691
fi
2692
rm -f conftest.err conftest.$ac_ext
2693
 
2694
  # OK, works on sane cases.  Now check whether non-existent headers
2695
  # can be detected and how.
2696
  cat >conftest.$ac_ext <<_ACEOF
2697
#line 2697 "configure"
2698
#include "confdefs.h"
2699
#include 
2700
_ACEOF
2701
if { (eval echo "$as_me:2701: \"$ac_cpp conftest.$ac_ext\"") >&5
2702
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703
  ac_status=$?
2704
  egrep -v '^ *\+' conftest.er1 >conftest.err
2705
  rm -f conftest.er1
2706
  cat conftest.err >&5
2707
  echo "$as_me:2707: \$? = $ac_status" >&5
2708
  (exit $ac_status); } >/dev/null; then
2709
  if test -s conftest.err; then
2710
    ac_cpp_err=$ac_c_preproc_warn_flag
2711
  else
2712
    ac_cpp_err=
2713
  fi
2714
else
2715
  ac_cpp_err=yes
2716
fi
2717
if test -z "$ac_cpp_err"; then
2718
  # Broken: success on invalid input.
2719
continue
2720
else
2721
  echo "$as_me: failed program was:" >&5
2722
  cat conftest.$ac_ext >&5
2723
  # Passes both tests.
2724
ac_preproc_ok=:
2725
break
2726
fi
2727
rm -f conftest.err conftest.$ac_ext
2728
 
2729
done
2730
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2731
rm -f conftest.err conftest.$ac_ext
2732
if $ac_preproc_ok; then
2733
  break
2734
fi
2735
 
2736
    done
2737
    ac_cv_prog_CPP=$CPP
2738
 
2739
fi
2740
  CPP=$ac_cv_prog_CPP
2741
else
2742
  ac_cv_prog_CPP=$CPP
2743
fi
2744
echo "$as_me:2744: result: $CPP" >&5
2745
echo "${ECHO_T}$CPP" >&6
2746
ac_preproc_ok=false
2747
for ac_c_preproc_warn_flag in '' yes
2748
do
2749
  # Use a header file that comes with gcc, so configuring glibc
2750
  # with a fresh cross-compiler works.
2751
  # On the NeXT, cc -E runs the code through the compiler's parser,
2752
  # not just through cpp. "Syntax error" is here to catch this case.
2753
  cat >conftest.$ac_ext <<_ACEOF
2754
#line 2754 "configure"
2755
#include "confdefs.h"
2756
#include 
2757
                     Syntax error
2758
_ACEOF
2759
if { (eval echo "$as_me:2759: \"$ac_cpp conftest.$ac_ext\"") >&5
2760
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761
  ac_status=$?
2762
  egrep -v '^ *\+' conftest.er1 >conftest.err
2763
  rm -f conftest.er1
2764
  cat conftest.err >&5
2765
  echo "$as_me:2765: \$? = $ac_status" >&5
2766
  (exit $ac_status); } >/dev/null; then
2767
  if test -s conftest.err; then
2768
    ac_cpp_err=$ac_c_preproc_warn_flag
2769
  else
2770
    ac_cpp_err=
2771
  fi
2772
else
2773
  ac_cpp_err=yes
2774
fi
2775
if test -z "$ac_cpp_err"; then
2776
  :
2777
else
2778
  echo "$as_me: failed program was:" >&5
2779
  cat conftest.$ac_ext >&5
2780
  # Broken: fails on valid input.
2781
continue
2782
fi
2783
rm -f conftest.err conftest.$ac_ext
2784
 
2785
  # OK, works on sane cases.  Now check whether non-existent headers
2786
  # can be detected and how.
2787
  cat >conftest.$ac_ext <<_ACEOF
2788
#line 2788 "configure"
2789
#include "confdefs.h"
2790
#include 
2791
_ACEOF
2792
if { (eval echo "$as_me:2792: \"$ac_cpp conftest.$ac_ext\"") >&5
2793
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794
  ac_status=$?
2795
  egrep -v '^ *\+' conftest.er1 >conftest.err
2796
  rm -f conftest.er1
2797
  cat conftest.err >&5
2798
  echo "$as_me:2798: \$? = $ac_status" >&5
2799
  (exit $ac_status); } >/dev/null; then
2800
  if test -s conftest.err; then
2801
    ac_cpp_err=$ac_c_preproc_warn_flag
2802
  else
2803
    ac_cpp_err=
2804
  fi
2805
else
2806
  ac_cpp_err=yes
2807
fi
2808
if test -z "$ac_cpp_err"; then
2809
  # Broken: success on invalid input.
2810
continue
2811
else
2812
  echo "$as_me: failed program was:" >&5
2813
  cat conftest.$ac_ext >&5
2814
  # Passes both tests.
2815
ac_preproc_ok=:
2816
break
2817
fi
2818
rm -f conftest.err conftest.$ac_ext
2819
 
2820
done
2821
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822
rm -f conftest.err conftest.$ac_ext
2823
if $ac_preproc_ok; then
2824
  :
2825
else
2826
  { { echo "$as_me:2826: error: C preprocessor \"$CPP\" fails sanity check" >&5
2827
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2828
   { (exit 1); exit 1; }; }
2829
fi
2830
 
2831
ac_ext=c
2832
ac_cpp='$CPP $CPPFLAGS'
2833
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836
 
2837
if test x"$GCC" = x"yes"; then
2838
  RTEMS_USE_GCC_TRUE=
2839
  RTEMS_USE_GCC_FALSE='#'
2840
else
2841
  RTEMS_USE_GCC_TRUE='#'
2842
  RTEMS_USE_GCC_FALSE=
2843
fi
2844
 
2845
echo "$as_me:2845: checking whether $CC accepts -specs" >&5
2846
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
2847
if test "${rtems_cv_gcc_specs+set}" = set; then
2848
  echo $ECHO_N "(cached) $ECHO_C" >&6
2849
else
2850
 
2851
rtems_cv_gcc_specs=no
2852
if test x"$GCC" = x"yes"; then
2853
  touch confspec
2854
  echo 'void f(){}' >conftest.c
2855
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
2856
    rtems_cv_gcc_specs=yes
2857
  fi
2858
fi
2859
rm -f confspec conftest*
2860
 
2861
fi
2862
echo "$as_me:2862: result: $rtems_cv_gcc_specs" >&5
2863
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
2864
 
2865
echo "$as_me:2865: checking whether $CC accepts --pipe" >&5
2866
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
2867
if test "${rtems_cv_gcc_pipe+set}" = set; then
2868
  echo $ECHO_N "(cached) $ECHO_C" >&6
2869
else
2870
 
2871
rtems_cv_gcc_pipe=no
2872
if test x"$GCC" = x"yes"; then
2873
    echo 'void f(){}' >conftest.c
2874
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
2875
      rtems_cv_gcc_pipe=yes
2876
    fi
2877
    rm -f conftest*
2878
fi
2879
 
2880
fi
2881
echo "$as_me:2881: result: $rtems_cv_gcc_pipe" >&5
2882
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
2883
 
2884
#  if test "$rtems_cv_gcc_specs" = "no"; then
2885
#    AC_MSG_WARN([*** disabling --enable-gcc28])
2886
#      RTEMS_USE_GCC272=yes
2887
#  fi
2888
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
2889
 
2890
if test "$GCC" = yes; then
2891
 
2892
CPPFLAGS="$CPPFLAGS -ansi -fasm"
2893
 
2894
CFLAGS="-g -Wall"
2895
fi
2896
 
2897
case $build_os in
2898
*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2899
*) ;;
2900
esac
2901
 
2902
  if test "x$build_alias" != "x$host_alias"; then
2903
  rtems_tool_prefix=${ac_tool_prefix}
2904
fi
2905
 
2906
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
2907
set dummy ${rtems_tool_prefix}ar; ac_word=$2
2908
echo "$as_me:2908: checking for $ac_word" >&5
2909
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910
if test "${ac_cv_prog_AR+set}" = set; then
2911
  echo $ECHO_N "(cached) $ECHO_C" >&6
2912
else
2913
  if test -n "$AR"; then
2914
  ac_cv_prog_AR="$AR" # Let the user override the test.
2915
else
2916
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2917
ac_dummy="$PATH"
2918
for ac_dir in $ac_dummy; do
2919
  IFS=$ac_save_IFS
2920
  test -z "$ac_dir" && ac_dir=.
2921
  $as_executable_p "$ac_dir/$ac_word" || continue
2922
ac_cv_prog_AR="${rtems_tool_prefix}ar"
2923
echo "$as_me:2923: found $ac_dir/$ac_word" >&5
2924
break
2925
done
2926
 
2927
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
2928
fi
2929
fi
2930
AR=$ac_cv_prog_AR
2931
if test -n "$AR"; then
2932
  echo "$as_me:2932: result: $AR" >&5
2933
echo "${ECHO_T}$AR" >&6
2934
else
2935
  echo "$as_me:2935: result: no" >&5
2936
echo "${ECHO_T}no" >&6
2937
fi
2938
 
2939
  if test "x$build_alias" != "x$host_alias"; then
2940
  rtems_tool_prefix=${ac_tool_prefix}
2941
fi
2942
 
2943
  # Extract the first word of "${rtems_tool_prefix}as", so it can be a program name with args.
2944
set dummy ${rtems_tool_prefix}as; ac_word=$2
2945
echo "$as_me:2945: checking for $ac_word" >&5
2946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947
if test "${ac_cv_prog_AS+set}" = set; then
2948
  echo $ECHO_N "(cached) $ECHO_C" >&6
2949
else
2950
  if test -n "$AS"; then
2951
  ac_cv_prog_AS="$AS" # Let the user override the test.
2952
else
2953
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2954
ac_dummy="$PATH"
2955
for ac_dir in $ac_dummy; do
2956
  IFS=$ac_save_IFS
2957
  test -z "$ac_dir" && ac_dir=.
2958
  $as_executable_p "$ac_dir/$ac_word" || continue
2959
ac_cv_prog_AS="${rtems_tool_prefix}as"
2960
echo "$as_me:2960: found $ac_dir/$ac_word" >&5
2961
break
2962
done
2963
 
2964
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="no"
2965
fi
2966
fi
2967
AS=$ac_cv_prog_AS
2968
if test -n "$AS"; then
2969
  echo "$as_me:2969: result: $AS" >&5
2970
echo "${ECHO_T}$AS" >&6
2971
else
2972
  echo "$as_me:2972: result: no" >&5
2973
echo "${ECHO_T}no" >&6
2974
fi
2975
 
2976
  if test "x$build_alias" != "x$host_alias"; then
2977
  rtems_tool_prefix=${ac_tool_prefix}
2978
fi
2979
 
2980
  # Extract the first word of "${rtems_tool_prefix}ld", so it can be a program name with args.
2981
set dummy ${rtems_tool_prefix}ld; ac_word=$2
2982
echo "$as_me:2982: checking for $ac_word" >&5
2983
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984
if test "${ac_cv_prog_LD+set}" = set; then
2985
  echo $ECHO_N "(cached) $ECHO_C" >&6
2986
else
2987
  if test -n "$LD"; then
2988
  ac_cv_prog_LD="$LD" # Let the user override the test.
2989
else
2990
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2991
ac_dummy="$PATH"
2992
for ac_dir in $ac_dummy; do
2993
  IFS=$ac_save_IFS
2994
  test -z "$ac_dir" && ac_dir=.
2995
  $as_executable_p "$ac_dir/$ac_word" || continue
2996
ac_cv_prog_LD="${rtems_tool_prefix}ld"
2997
echo "$as_me:2997: found $ac_dir/$ac_word" >&5
2998
break
2999
done
3000
 
3001
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="no"
3002
fi
3003
fi
3004
LD=$ac_cv_prog_LD
3005
if test -n "$LD"; then
3006
  echo "$as_me:3006: result: $LD" >&5
3007
echo "${ECHO_T}$LD" >&6
3008
else
3009
  echo "$as_me:3009: result: no" >&5
3010
echo "${ECHO_T}no" >&6
3011
fi
3012
 
3013
  if test "x$build_alias" != "x$host_alias"; then
3014
  rtems_tool_prefix=${ac_tool_prefix}
3015
fi
3016
 
3017
  # Extract the first word of "${rtems_tool_prefix}nm", so it can be a program name with args.
3018
set dummy ${rtems_tool_prefix}nm; ac_word=$2
3019
echo "$as_me:3019: checking for $ac_word" >&5
3020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021
if test "${ac_cv_prog_NM+set}" = set; then
3022
  echo $ECHO_N "(cached) $ECHO_C" >&6
3023
else
3024
  if test -n "$NM"; then
3025
  ac_cv_prog_NM="$NM" # Let the user override the test.
3026
else
3027
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3028
ac_dummy="$PATH"
3029
for ac_dir in $ac_dummy; do
3030
  IFS=$ac_save_IFS
3031
  test -z "$ac_dir" && ac_dir=.
3032
  $as_executable_p "$ac_dir/$ac_word" || continue
3033
ac_cv_prog_NM="${rtems_tool_prefix}nm"
3034
echo "$as_me:3034: found $ac_dir/$ac_word" >&5
3035
break
3036
done
3037
 
3038
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
3039
fi
3040
fi
3041
NM=$ac_cv_prog_NM
3042
if test -n "$NM"; then
3043
  echo "$as_me:3043: result: $NM" >&5
3044
echo "${ECHO_T}$NM" >&6
3045
else
3046
  echo "$as_me:3046: result: no" >&5
3047
echo "${ECHO_T}no" >&6
3048
fi
3049
 
3050
  if test "x$build_alias" != "x$host_alias"; then
3051
  rtems_tool_prefix=${ac_tool_prefix}
3052
fi
3053
 
3054
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
3055
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
3056
echo "$as_me:3056: checking for $ac_word" >&5
3057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058
if test "${ac_cv_prog_RANLIB+set}" = set; then
3059
  echo $ECHO_N "(cached) $ECHO_C" >&6
3060
else
3061
  if test -n "$RANLIB"; then
3062
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3063
else
3064
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3065
ac_dummy="$PATH"
3066
for ac_dir in $ac_dummy; do
3067
  IFS=$ac_save_IFS
3068
  test -z "$ac_dir" && ac_dir=.
3069
  $as_executable_p "$ac_dir/$ac_word" || continue
3070
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
3071
echo "$as_me:3071: found $ac_dir/$ac_word" >&5
3072
break
3073
done
3074
 
3075
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3076
fi
3077
fi
3078
RANLIB=$ac_cv_prog_RANLIB
3079
if test -n "$RANLIB"; then
3080
  echo "$as_me:3080: result: $RANLIB" >&5
3081
echo "${ECHO_T}$RANLIB" >&6
3082
else
3083
  echo "$as_me:3083: result: no" >&5
3084
echo "${ECHO_T}no" >&6
3085
fi
3086
 
3087
  if test "x$build_alias" != "x$host_alias"; then
3088
  rtems_tool_prefix=${ac_tool_prefix}
3089
fi
3090
 
3091
  # Extract the first word of "${rtems_tool_prefix}objcopy", so it can be a program name with args.
3092
set dummy ${rtems_tool_prefix}objcopy; ac_word=$2
3093
echo "$as_me:3093: checking for $ac_word" >&5
3094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3096
  echo $ECHO_N "(cached) $ECHO_C" >&6
3097
else
3098
  if test -n "$OBJCOPY"; then
3099
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3100
else
3101
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3102
ac_dummy="$PATH"
3103
for ac_dir in $ac_dummy; do
3104
  IFS=$ac_save_IFS
3105
  test -z "$ac_dir" && ac_dir=.
3106
  $as_executable_p "$ac_dir/$ac_word" || continue
3107
ac_cv_prog_OBJCOPY="${rtems_tool_prefix}objcopy"
3108
echo "$as_me:3108: found $ac_dir/$ac_word" >&5
3109
break
3110
done
3111
 
3112
  test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="no"
3113
fi
3114
fi
3115
OBJCOPY=$ac_cv_prog_OBJCOPY
3116
if test -n "$OBJCOPY"; then
3117
  echo "$as_me:3117: result: $OBJCOPY" >&5
3118
echo "${ECHO_T}$OBJCOPY" >&6
3119
else
3120
  echo "$as_me:3120: result: no" >&5
3121
echo "${ECHO_T}no" >&6
3122
fi
3123
 
3124
  if test "x$build_alias" != "x$host_alias"; then
3125
  rtems_tool_prefix=${ac_tool_prefix}
3126
fi
3127
 
3128
  # Extract the first word of "${rtems_tool_prefix}size", so it can be a program name with args.
3129
set dummy ${rtems_tool_prefix}size; ac_word=$2
3130
echo "$as_me:3130: checking for $ac_word" >&5
3131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132
if test "${ac_cv_prog_SIZE+set}" = set; then
3133
  echo $ECHO_N "(cached) $ECHO_C" >&6
3134
else
3135
  if test -n "$SIZE"; then
3136
  ac_cv_prog_SIZE="$SIZE" # Let the user override the test.
3137
else
3138
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3139
ac_dummy="$PATH"
3140
for ac_dir in $ac_dummy; do
3141
  IFS=$ac_save_IFS
3142
  test -z "$ac_dir" && ac_dir=.
3143
  $as_executable_p "$ac_dir/$ac_word" || continue
3144
ac_cv_prog_SIZE="${rtems_tool_prefix}size"
3145
echo "$as_me:3145: found $ac_dir/$ac_word" >&5
3146
break
3147
done
3148
 
3149
  test -z "$ac_cv_prog_SIZE" && ac_cv_prog_SIZE="no"
3150
fi
3151
fi
3152
SIZE=$ac_cv_prog_SIZE
3153
if test -n "$SIZE"; then
3154
  echo "$as_me:3154: result: $SIZE" >&5
3155
echo "${ECHO_T}$SIZE" >&6
3156
else
3157
  echo "$as_me:3157: result: no" >&5
3158
echo "${ECHO_T}no" >&6
3159
fi
3160
 
3161
  if test "x$build_alias" != "x$host_alias"; then
3162
  rtems_tool_prefix=${ac_tool_prefix}
3163
fi
3164
 
3165
  # Extract the first word of "${rtems_tool_prefix}strip", so it can be a program name with args.
3166
set dummy ${rtems_tool_prefix}strip; ac_word=$2
3167
echo "$as_me:3167: checking for $ac_word" >&5
3168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169
if test "${ac_cv_prog_STRIP+set}" = set; then
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
3171
else
3172
  if test -n "$STRIP"; then
3173
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3174
else
3175
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3176
ac_dummy="$PATH"
3177
for ac_dir in $ac_dummy; do
3178
  IFS=$ac_save_IFS
3179
  test -z "$ac_dir" && ac_dir=.
3180
  $as_executable_p "$ac_dir/$ac_word" || continue
3181
ac_cv_prog_STRIP="${rtems_tool_prefix}strip"
3182
echo "$as_me:3182: found $ac_dir/$ac_word" >&5
3183
break
3184
done
3185
 
3186
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3187
fi
3188
fi
3189
STRIP=$ac_cv_prog_STRIP
3190
if test -n "$STRIP"; then
3191
  echo "$as_me:3191: result: $STRIP" >&5
3192
echo "${ECHO_T}$STRIP" >&6
3193
else
3194
  echo "$as_me:3194: result: no" >&5
3195
echo "${ECHO_T}no" >&6
3196
fi
3197
 
3198
# Check whether --enable-networking or --disable-networking was given.
3199
if test "${enable_networking+set}" = set; then
3200
  enableval="$enable_networking"
3201
  case "${enableval}" in
3202
  yes) RTEMS_HAS_NETWORKING=yes ;;
3203
  no) RTEMS_HAS_NETWORKING=no ;;
3204
  *)  { { echo "$as_me:3204: error: bad value ${enableval} for enable-networking option" >&5
3205
echo "$as_me: error: bad value ${enableval} for enable-networking option" >&2;}
3206
   { (exit 1); exit 1; }; } ;;
3207
esac
3208
else
3209
  RTEMS_HAS_NETWORKING=yes
3210
fi;
3211
 
3212
echo "$as_me:3212: checking whether BSP supports networking" >&5
3213
echo $ECHO_N "checking whether BSP supports networking... $ECHO_C" >&6
3214
if test "${rtems_cv_HAS_NETWORKING+set}" = set; then
3215
  echo $ECHO_N "(cached) $ECHO_C" >&6
3216
else
3217
      case "$RTEMS_CPU" in
3218
    unix*)
3219
      rtems_cv_HAS_NETWORKING="no"
3220
      ;;
3221
    *)
3222
      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
3223
        rtems_cv_HAS_NETWORKING="yes";
3224
      else
3225
        rtems_cv_HAS_NETWORKING="disabled";
3226
      fi
3227
      ;;
3228
    esac
3229
fi
3230
echo "$as_me:3230: result: $rtems_cv_HAS_NETWORKING" >&5
3231
echo "${ECHO_T}$rtems_cv_HAS_NETWORKING" >&6
3232
if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
3233
  HAS_NETWORKING="yes";
3234
else
3235
  HAS_NETWORKING="no";
3236
fi
3237
 
3238
if test "$HAS_NETWORKING" = "yes"; then
3239
  HAS_NETWORKING_TRUE=
3240
  HAS_NETWORKING_FALSE='#'
3241
else
3242
  HAS_NETWORKING_TRUE='#'
3243
  HAS_NETWORKING_FALSE=
3244
fi
3245
 
3246
ac_config_commands="$ac_config_commands bsp-tools"
3247
 
3248
RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS tools"
3249
 
3250
## bsp-specific options
3251
 
3252
case ${RTEMS_BSP} in
3253
* )
3254
  CONSOLE_USE_INTERRUPTS=${CONSOLE_USE_INTERRUPTS-0} ;;
3255
esac
3256
if test -n "${CONSOLE_USE_INTERRUPTS}"; then
3257
cat >>confdefs.h <
3258
#define CONSOLE_USE_INTERRUPTS $CONSOLE_USE_INTERRUPTS
3259
EOF
3260
fi
3261
 
3262
case ${RTEMS_BSP} in
3263
* )
3264
  SIMSPARC_FAST_IDLE=${SIMSPARC_FAST_IDLE-} ;;
3265
esac
3266
if test -n "${SIMSPARC_FAST_IDLE}"; then
3267
cat >>confdefs.h <
3268
#define SIMSPARC_FAST_IDLE $SIMSPARC_FAST_IDLE
3269
EOF
3270
fi
3271
 
3272
# Explicitly list all Makefiles here
3273
ac_config_files="$ac_config_files Makefile clock/Makefile console/Makefile erc32sonic/Makefile gnatsupp/Makefile include/Makefile start/Makefile startup/Makefile timer/Makefile wrapup/Makefile"
3274
 
3275
cat >confcache <<\_ACEOF
3276
# This file is a shell script that caches the results of configure
3277
# tests run on this system so they can be shared between configure
3278
# scripts and configure runs, see configure's option --config-cache.
3279
# It is not useful on other systems.  If it contains results you don't
3280
# want to keep, you may remove or edit it.
3281
#
3282
# config.status only pays attention to the cache file if you give it
3283
# the --recheck option to rerun configure.
3284
#
3285
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3286
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3287
# following values.
3288
 
3289
_ACEOF
3290
 
3291
# The following way of writing the cache mishandles newlines in values,
3292
# but we know of no workaround that is simple, portable, and efficient.
3293
# So, don't put newlines in cache variables' values.
3294
# Ultrix sh set writes to stderr and can't be redirected directly,
3295
# and sets the high bit in the cache file unless we assign to the vars.
3296
{
3297
  (set) 2>&1 |
3298
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3299
    *ac_space=\ *)
3300
      # `set' does not quote correctly, so add quotes (double-quote
3301
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3302
      sed -n \
3303
        "s/'/'\\\\''/g;
3304
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3305
      ;;
3306
    *)
3307
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3308
      sed -n \
3309
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3310
      ;;
3311
    esac;
3312
} |
3313
  sed '
3314
     t clear
3315
     : clear
3316
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3317
     t end
3318
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3319
     : end' >>confcache
3320
if cmp -s $cache_file confcache; then :; else
3321
  if test -w $cache_file; then
3322
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3323
    cat confcache >$cache_file
3324
  else
3325
    echo "not updating unwritable cache $cache_file"
3326
  fi
3327
fi
3328
rm -f confcache
3329
 
3330
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3331
# Let make expand exec_prefix.
3332
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3333
 
3334
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3335
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3336
# trailing colons and then remove the whole line if VPATH becomes empty
3337
# (actually we leave an empty line to preserve line numbers).
3338
if test "x$srcdir" = x.; then
3339
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3340
s/:*\$(srcdir):*/:/;
3341
s/:*\${srcdir}:*/:/;
3342
s/:*@srcdir@:*/:/;
3343
s/^\([^=]*=[    ]*\):*/\1/;
3344
s/:*$//;
3345
s/^[^=]*=[      ]*$//;
3346
}'
3347
fi
3348
 
3349
DEFS=-DHAVE_CONFIG_H
3350
 
3351
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3352
  { { echo "$as_me:3352: error: conditional \"MAINTAINER_MODE\" was never defined.
3353
Usually this means the macro was only invoked conditionally." >&5
3354
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3355
Usually this means the macro was only invoked conditionally." >&2;}
3356
   { (exit 1); exit 1; }; }
3357
fi
3358
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3359
  { { echo "$as_me:3359: error: conditional \"MULTILIB\" was never defined.
3360
Usually this means the macro was only invoked conditionally." >&5
3361
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3362
Usually this means the macro was only invoked conditionally." >&2;}
3363
   { (exit 1); exit 1; }; }
3364
fi
3365
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3366
  { { echo "$as_me:3366: error: conditional \"MULTILIB\" was never defined.
3367
Usually this means the macro was only invoked conditionally." >&5
3368
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3369
Usually this means the macro was only invoked conditionally." >&2;}
3370
   { (exit 1); exit 1; }; }
3371
fi
3372
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3373
  { { echo "$as_me:3373: error: conditional \"AMDEP\" was never defined.
3374
Usually this means the macro was only invoked conditionally." >&5
3375
echo "$as_me: error: conditional \"AMDEP\" was never defined.
3376
Usually this means the macro was only invoked conditionally." >&2;}
3377
   { (exit 1); exit 1; }; }
3378
fi
3379
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
3380
  { { echo "$as_me:3380: error: conditional \"RTEMS_USE_GCC\" was never defined.
3381
Usually this means the macro was only invoked conditionally." >&5
3382
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
3383
Usually this means the macro was only invoked conditionally." >&2;}
3384
   { (exit 1); exit 1; }; }
3385
fi
3386
if test -z "${HAS_NETWORKING_TRUE}" && test -z "${HAS_NETWORKING_FALSE}"; then
3387
  { { echo "$as_me:3387: error: conditional \"HAS_NETWORKING\" was never defined.
3388
Usually this means the macro was only invoked conditionally." >&5
3389
echo "$as_me: error: conditional \"HAS_NETWORKING\" was never defined.
3390
Usually this means the macro was only invoked conditionally." >&2;}
3391
   { (exit 1); exit 1; }; }
3392
fi
3393
 
3394
: ${CONFIG_STATUS=./config.status}
3395
ac_clean_files_save=$ac_clean_files
3396
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3397
{ echo "$as_me:3397: creating $CONFIG_STATUS" >&5
3398
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3399
cat >$CONFIG_STATUS <<_ACEOF
3400
#! $SHELL
3401
# Generated automatically by configure.
3402
# Run this file to recreate the current configuration.
3403
# Compiler output produced by configure, useful for debugging
3404
# configure, is in config.log if it exists.
3405
 
3406
debug=false
3407
SHELL=\${CONFIG_SHELL-$SHELL}
3408
ac_cs_invocation="\$0 \$@"
3409
 
3410
_ACEOF
3411
 
3412
cat >>$CONFIG_STATUS <<\_ACEOF
3413
# Be Bourne compatible
3414
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3415
  emulate sh
3416
  NULLCMD=:
3417
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3418
  set -o posix
3419
fi
3420
 
3421
# Name of the executable.
3422
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3423
 
3424
if expr a : '\(a\)' >/dev/null 2>&1; then
3425
  as_expr=expr
3426
else
3427
  as_expr=false
3428
fi
3429
 
3430
rm -f conf$$ conf$$.exe conf$$.file
3431
echo >conf$$.file
3432
if ln -s conf$$.file conf$$ 2>/dev/null; then
3433
  # We could just check for DJGPP; but this test a) works b) is more generic
3434
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3435
  if test -f conf$$.exe; then
3436
    # Don't use ln at all; we don't have any links
3437
    as_ln_s='cp -p'
3438
  else
3439
    as_ln_s='ln -s'
3440
  fi
3441
elif ln conf$$.file conf$$ 2>/dev/null; then
3442
  as_ln_s=ln
3443
else
3444
  as_ln_s='cp -p'
3445
fi
3446
rm -f conf$$ conf$$.exe conf$$.file
3447
 
3448
as_executable_p="test -f"
3449
 
3450
# Support unset when possible.
3451
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3452
  as_unset=unset
3453
else
3454
  as_unset=false
3455
fi
3456
 
3457
# NLS nuisances.
3458
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3459
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3460
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3461
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3462
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3463
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3464
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3465
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3466
 
3467
# IFS
3468
# We need space, tab and new line, in precisely that order.
3469
as_nl='
3470
'
3471
IFS="   $as_nl"
3472
 
3473
# CDPATH.
3474
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3475
 
3476
exec 6>&1
3477
 
3478
_ACEOF
3479
 
3480
# Files that config.status was made for.
3481
if test -n "$ac_config_files"; then
3482
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3483
fi
3484
 
3485
if test -n "$ac_config_headers"; then
3486
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3487
fi
3488
 
3489
if test -n "$ac_config_links"; then
3490
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3491
fi
3492
 
3493
if test -n "$ac_config_commands"; then
3494
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3495
fi
3496
 
3497
cat >>$CONFIG_STATUS <<\EOF
3498
 
3499
ac_cs_usage="\
3500
\`$as_me' instantiates files from templates according to the
3501
current configuration.
3502
 
3503
Usage: $0 [OPTIONS] [FILE]...
3504
 
3505
  -h, --help       print this help, then exit
3506
  -V, --version    print version number, then exit
3507
  -d, --debug      don't remove temporary files
3508
      --recheck    update $as_me by reconfiguring in the same conditions
3509
  --file=FILE[:TEMPLATE]
3510
                   instantiate the configuration file FILE
3511
  --header=FILE[:TEMPLATE]
3512
                   instantiate the configuration header FILE
3513
 
3514
Configuration files:
3515
$config_files
3516
 
3517
Configuration headers:
3518
$config_headers
3519
 
3520
Configuration commands:
3521
$config_commands
3522
 
3523
Report bugs to ."
3524
EOF
3525
 
3526
cat >>$CONFIG_STATUS <
3527
ac_cs_version="\\
3528
rtems-c-src-lib-libbsp-sparc-erc32 config.status ss-20020807
3529
configured by $0, generated by GNU Autoconf 2.52,
3530
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3531
 
3532
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3533
Free Software Foundation, Inc.
3534
This config.status script is free software; the Free Software Foundation
3535
gives unlimited permission to copy, distribute and modify it."
3536
srcdir=$srcdir
3537
INSTALL="$INSTALL"
3538
EOF
3539
 
3540
cat >>$CONFIG_STATUS <<\EOF
3541
# If no file are specified by the user, then we need to provide default
3542
# value.  By we need to know if files were specified by the user.
3543
ac_need_defaults=:
3544
while test $# != 0
3545
do
3546
  case $1 in
3547
  --*=*)
3548
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3549
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3550
    shift
3551
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3552
    shift
3553
    ;;
3554
  -*);;
3555
  *) # This is not an option, so the user has probably given explicit
3556
     # arguments.
3557
     ac_need_defaults=false;;
3558
  esac
3559
 
3560
  case $1 in
3561
  # Handling of the options.
3562
EOF
3563
cat >>$CONFIG_STATUS <
3564
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3565
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3566
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3567
EOF
3568
cat >>$CONFIG_STATUS <<\EOF
3569
  --version | --vers* | -V )
3570
    echo "$ac_cs_version"; exit 0 ;;
3571
  --he | --h)
3572
    # Conflict between --help and --header
3573
    { { echo "$as_me:3573: error: ambiguous option: $1
3574
Try \`$0 --help' for more information." >&5
3575
echo "$as_me: error: ambiguous option: $1
3576
Try \`$0 --help' for more information." >&2;}
3577
   { (exit 1); exit 1; }; };;
3578
  --help | --hel | -h )
3579
    echo "$ac_cs_usage"; exit 0 ;;
3580
  --debug | --d* | -d )
3581
    debug=: ;;
3582
  --file | --fil | --fi | --f )
3583
    shift
3584
    CONFIG_FILES="$CONFIG_FILES $1"
3585
    ac_need_defaults=false;;
3586
  --header | --heade | --head | --hea )
3587
    shift
3588
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3589
    ac_need_defaults=false;;
3590
 
3591
  # This is an error.
3592
  -*) { { echo "$as_me:3592: error: unrecognized option: $1
3593
Try \`$0 --help' for more information." >&5
3594
echo "$as_me: error: unrecognized option: $1
3595
Try \`$0 --help' for more information." >&2;}
3596
   { (exit 1); exit 1; }; } ;;
3597
 
3598
  *) ac_config_targets="$ac_config_targets $1" ;;
3599
 
3600
  esac
3601
  shift
3602
done
3603
 
3604
exec 5>>config.log
3605
cat >&5 << _ACEOF
3606
 
3607
## ----------------------- ##
3608
## Running config.status.  ##
3609
## ----------------------- ##
3610
 
3611
This file was extended by $as_me (rtems-c-src-lib-libbsp-sparc-erc32 ss-20020807) 2.52, executed with
3612
  CONFIG_FILES    = $CONFIG_FILES
3613
  CONFIG_HEADERS  = $CONFIG_HEADERS
3614
  CONFIG_LINKS    = $CONFIG_LINKS
3615
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3616
  > $ac_cs_invocation
3617
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3618
 
3619
_ACEOF
3620
EOF
3621
 
3622
cat >>$CONFIG_STATUS <
3623
#
3624
# INIT-COMMANDS section.
3625
#
3626
 
3627
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3628
 
3629
RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS"
3630
rtems_configure_args="$ac_configure_args"
3631
 
3632
EOF
3633
 
3634
cat >>$CONFIG_STATUS <<\EOF
3635
for ac_config_target in $ac_config_targets
3636
do
3637
  case "$ac_config_target" in
3638
  # Handling of arguments.
3639
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3640
  "clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES clock/Makefile" ;;
3641
  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
3642
  "erc32sonic/Makefile" ) CONFIG_FILES="$CONFIG_FILES erc32sonic/Makefile" ;;
3643
  "gnatsupp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnatsupp/Makefile" ;;
3644
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
3645
  "start/Makefile" ) CONFIG_FILES="$CONFIG_FILES start/Makefile" ;;
3646
  "startup/Makefile" ) CONFIG_FILES="$CONFIG_FILES startup/Makefile" ;;
3647
  "timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES timer/Makefile" ;;
3648
  "wrapup/Makefile" ) CONFIG_FILES="$CONFIG_FILES wrapup/Makefile" ;;
3649
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3650
  "bsp-tools" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bsp-tools" ;;
3651
  "include/bspopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/bspopts.h" ;;
3652
  *) { { echo "$as_me:3652: error: invalid argument: $ac_config_target" >&5
3653
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3654
   { (exit 1); exit 1; }; };;
3655
  esac
3656
done
3657
 
3658
# If the user did not use the arguments to specify the items to instantiate,
3659
# then the envvar interface is used.  Set only those that are not.
3660
# We use the long form for the default assignment because of an extremely
3661
# bizarre bug on SunOS 4.1.3.
3662
if $ac_need_defaults; then
3663
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3664
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3665
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3666
fi
3667
 
3668
# Create a temporary directory, and hook for its removal unless debugging.
3669
$debug ||
3670
{
3671
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3672
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3673
}
3674
 
3675
# Create a (secure) tmp directory for tmp files.
3676
: ${TMPDIR=/tmp}
3677
{
3678
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3679
  test -n "$tmp" && test -d "$tmp"
3680
}  ||
3681
{
3682
  tmp=$TMPDIR/cs$$-$RANDOM
3683
  (umask 077 && mkdir $tmp)
3684
} ||
3685
{
3686
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3687
   { (exit 1); exit 1; }
3688
}
3689
 
3690
EOF
3691
 
3692
cat >>$CONFIG_STATUS <
3693
 
3694
#
3695
# CONFIG_FILES section.
3696
#
3697
 
3698
# No need to generate the scripts if there are no CONFIG_FILES.
3699
# This happens for instance when ./config.status config.h
3700
if test -n "\$CONFIG_FILES"; then
3701
  # Protect against being on the right side of a sed subst in config.status.
3702
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3703
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3704
s,@SHELL@,$SHELL,;t t
3705
s,@exec_prefix@,$exec_prefix,;t t
3706
s,@prefix@,$prefix,;t t
3707
s,@program_transform_name@,$program_transform_name,;t t
3708
s,@bindir@,$bindir,;t t
3709
s,@sbindir@,$sbindir,;t t
3710
s,@libexecdir@,$libexecdir,;t t
3711
s,@datadir@,$datadir,;t t
3712
s,@sysconfdir@,$sysconfdir,;t t
3713
s,@sharedstatedir@,$sharedstatedir,;t t
3714
s,@localstatedir@,$localstatedir,;t t
3715
s,@libdir@,$libdir,;t t
3716
s,@includedir@,$includedir,;t t
3717
s,@oldincludedir@,$oldincludedir,;t t
3718
s,@infodir@,$infodir,;t t
3719
s,@mandir@,$mandir,;t t
3720
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3721
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3722
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3723
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3724
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3725
s,@build_alias@,$build_alias,;t t
3726
s,@host_alias@,$host_alias,;t t
3727
s,@target_alias@,$target_alias,;t t
3728
s,@ECHO_C@,$ECHO_C,;t t
3729
s,@ECHO_N@,$ECHO_N,;t t
3730
s,@ECHO_T@,$ECHO_T,;t t
3731
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3732
s,@DEFS@,$DEFS,;t t
3733
s,@LIBS@,$LIBS,;t t
3734
s,@MAKE@,$MAKE,;t t
3735
s,@ENDIF@,$ENDIF,;t t
3736
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
3737
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
3738
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
3739
s,@build@,$build,;t t
3740
s,@build_cpu@,$build_cpu,;t t
3741
s,@build_vendor@,$build_vendor,;t t
3742
s,@build_os@,$build_os,;t t
3743
s,@host@,$host,;t t
3744
s,@host_cpu@,$host_cpu,;t t
3745
s,@host_vendor@,$host_vendor,;t t
3746
s,@host_os@,$host_os,;t t
3747
s,@target@,$target,;t t
3748
s,@target_cpu@,$target_cpu,;t t
3749
s,@target_vendor@,$target_vendor,;t t
3750
s,@target_os@,$target_os,;t t
3751
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
3752
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3753
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3754
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3755
s,@PACKAGE@,$PACKAGE,;t t
3756
s,@VERSION@,$VERSION,;t t
3757
s,@ACLOCAL@,$ACLOCAL,;t t
3758
s,@AUTOCONF@,$AUTOCONF,;t t
3759
s,@AUTOMAKE@,$AUTOMAKE,;t t
3760
s,@AUTOHEADER@,$AUTOHEADER,;t t
3761
s,@MAKEINFO@,$MAKEINFO,;t t
3762
s,@AMTAR@,$AMTAR,;t t
3763
s,@install_sh@,$install_sh,;t t
3764
s,@STRIP@,$STRIP,;t t
3765
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3766
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3767
s,@AWK@,$AWK,;t t
3768
s,@SET_MAKE@,$SET_MAKE,;t t
3769
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3770
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3771
s,@MAINT@,$MAINT,;t t
3772
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
3773
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
3774
s,@GCC_SPECS@,$GCC_SPECS,;t t
3775
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
3776
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
3777
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
3778
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
3779
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
3780
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
3781
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
3782
s,@bsplibdir@,$bsplibdir,;t t
3783
s,@RTEMS_CPU_MODEL@,$RTEMS_CPU_MODEL,;t t
3784
s,@RTEMS_BSP_FAMILY@,$RTEMS_BSP_FAMILY,;t t
3785
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
3786
s,@PACKHEX@,$PACKHEX,;t t
3787
s,@HAS_MP@,$HAS_MP,;t t
3788
s,@CC@,$CC,;t t
3789
s,@CFLAGS@,$CFLAGS,;t t
3790
s,@LDFLAGS@,$LDFLAGS,;t t
3791
s,@CPPFLAGS@,$CPPFLAGS,;t t
3792
s,@ac_ct_CC@,$ac_ct_CC,;t t
3793
s,@EXEEXT@,$EXEEXT,;t t
3794
s,@OBJEXT@,$OBJEXT,;t t
3795
s,@DEPDIR@,$DEPDIR,;t t
3796
s,@am__include@,$am__include,;t t
3797
s,@am__quote@,$am__quote,;t t
3798
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3799
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3800
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3801
s,@CCDEPMODE@,$CCDEPMODE,;t t
3802
s,@CPP@,$CPP,;t t
3803
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
3804
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
3805
s,@GCCSED@,$GCCSED,;t t
3806
s,@AR@,$AR,;t t
3807
s,@AS@,$AS,;t t
3808
s,@LD@,$LD,;t t
3809
s,@NM@,$NM,;t t
3810
s,@RANLIB@,$RANLIB,;t t
3811
s,@OBJCOPY@,$OBJCOPY,;t t
3812
s,@SIZE@,$SIZE,;t t
3813
s,@RTEMS_HAS_NETWORKING@,$RTEMS_HAS_NETWORKING,;t t
3814
s,@HAS_NETWORKING@,$HAS_NETWORKING,;t t
3815
s,@HAS_NETWORKING_TRUE@,$HAS_NETWORKING_TRUE,;t t
3816
s,@HAS_NETWORKING_FALSE@,$HAS_NETWORKING_FALSE,;t t
3817
CEOF
3818
 
3819
EOF
3820
 
3821
  cat >>$CONFIG_STATUS <<\EOF
3822
  # Split the substitutions into bite-sized pieces for seds with
3823
  # small command number limits, like on Digital OSF/1 and HP-UX.
3824
  ac_max_sed_lines=48
3825
  ac_sed_frag=1 # Number of current file.
3826
  ac_beg=1 # First line for current file.
3827
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3828
  ac_more_lines=:
3829
  ac_sed_cmds=
3830
  while $ac_more_lines; do
3831
    if test $ac_beg -gt 1; then
3832
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3833
    else
3834
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3835
    fi
3836
    if test ! -s $tmp/subs.frag; then
3837
      ac_more_lines=false
3838
    else
3839
      # The purpose of the label and of the branching condition is to
3840
      # speed up the sed processing (if there are no `@' at all, there
3841
      # is no need to browse any of the substitutions).
3842
      # These are the two extra sed commands mentioned above.
3843
      (echo ':t
3844
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3845
      if test -z "$ac_sed_cmds"; then
3846
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3847
      else
3848
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3849
      fi
3850
      ac_sed_frag=`expr $ac_sed_frag + 1`
3851
      ac_beg=$ac_end
3852
      ac_end=`expr $ac_end + $ac_max_sed_lines`
3853
    fi
3854
  done
3855
  if test -z "$ac_sed_cmds"; then
3856
    ac_sed_cmds=cat
3857
  fi
3858
fi # test -n "$CONFIG_FILES"
3859
 
3860
EOF
3861
cat >>$CONFIG_STATUS <<\EOF
3862
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3863
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3864
  case $ac_file in
3865
  - | *:- | *:-:* ) # input from stdin
3866
        cat >$tmp/stdin
3867
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3868
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3869
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3870
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3871
  * )   ac_file_in=$ac_file.in ;;
3872
  esac
3873
 
3874
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3875
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3876
         X"$ac_file" : 'X\(//\)[^/]' \| \
3877
         X"$ac_file" : 'X\(//\)$' \| \
3878
         X"$ac_file" : 'X\(/\)' \| \
3879
         .     : '\(.\)' 2>/dev/null ||
3880
echo X"$ac_file" |
3881
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3882
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3883
          /^X\(\/\/\)$/{ s//\1/; q; }
3884
          /^X\(\/\).*/{ s//\1/; q; }
3885
          s/.*/./; q'`
3886
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3887
    { case "$ac_dir" in
3888
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3889
  *)                      as_incr_dir=.;;
3890
esac
3891
as_dummy="$ac_dir"
3892
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3893
  case $as_mkdir_dir in
3894
    # Skip DOS drivespec
3895
    ?:) as_incr_dir=$as_mkdir_dir ;;
3896
    *)
3897
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3898
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3899
    ;;
3900
  esac
3901
done; }
3902
 
3903
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3904
    # A "../" for each directory in $ac_dir_suffix.
3905
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3906
  else
3907
    ac_dir_suffix= ac_dots=
3908
  fi
3909
 
3910
  case $srcdir in
3911
  .)  ac_srcdir=.
3912
      if test -z "$ac_dots"; then
3913
         ac_top_srcdir=.
3914
      else
3915
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3916
      fi ;;
3917
  [\\/]* | ?:[\\/]* )
3918
      ac_srcdir=$srcdir$ac_dir_suffix;
3919
      ac_top_srcdir=$srcdir ;;
3920
  *) # Relative path.
3921
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3922
    ac_top_srcdir=$ac_dots$srcdir ;;
3923
  esac
3924
 
3925
  case $INSTALL in
3926
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3927
  *) ac_INSTALL=$ac_dots$INSTALL ;;
3928
  esac
3929
 
3930
  if test x"$ac_file" != x-; then
3931
    { echo "$as_me:3931: creating $ac_file" >&5
3932
echo "$as_me: creating $ac_file" >&6;}
3933
    rm -f "$ac_file"
3934
  fi
3935
  # Let's still pretend it is `configure' which instantiates (i.e., don't
3936
  # use $as_me), people would be surprised to read:
3937
  #    /* config.h.  Generated automatically by config.status.  */
3938
  configure_input="Generated automatically from `echo $ac_file_in |
3939
                                                 sed 's,.*/,,'` by configure."
3940
 
3941
  # First look for the input files in the build tree, otherwise in the
3942
  # src tree.
3943
  ac_file_inputs=`IFS=:
3944
    for f in $ac_file_in; do
3945
      case $f in
3946
      -) echo $tmp/stdin ;;
3947
      [\\/$]*)
3948
         # Absolute (can't be DOS-style, as IFS=:)
3949
         test -f "$f" || { { echo "$as_me:3949: error: cannot find input file: $f" >&5
3950
echo "$as_me: error: cannot find input file: $f" >&2;}
3951
   { (exit 1); exit 1; }; }
3952
         echo $f;;
3953
      *) # Relative
3954
         if test -f "$f"; then
3955
           # Build tree
3956
           echo $f
3957
         elif test -f "$srcdir/$f"; then
3958
           # Source tree
3959
           echo $srcdir/$f
3960
         else
3961
           # /dev/null tree
3962
           { { echo "$as_me:3962: error: cannot find input file: $f" >&5
3963
echo "$as_me: error: cannot find input file: $f" >&2;}
3964
   { (exit 1); exit 1; }; }
3965
         fi;;
3966
      esac
3967
    done` || { (exit 1); exit 1; }
3968
EOF
3969
cat >>$CONFIG_STATUS <
3970
  sed "$ac_vpsub
3971
$extrasub
3972
EOF
3973
cat >>$CONFIG_STATUS <<\EOF
3974
:t
3975
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3976
s,@configure_input@,$configure_input,;t t
3977
s,@srcdir@,$ac_srcdir,;t t
3978
s,@top_srcdir@,$ac_top_srcdir,;t t
3979
s,@INSTALL@,$ac_INSTALL,;t t
3980
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3981
  rm -f $tmp/stdin
3982
  if test x"$ac_file" != x-; then
3983
    mv $tmp/out $ac_file
3984
  else
3985
    cat $tmp/out
3986
    rm -f $tmp/out
3987
  fi
3988
 
3989
done
3990
EOF
3991
cat >>$CONFIG_STATUS <<\EOF
3992
 
3993
#
3994
# CONFIG_HEADER section.
3995
#
3996
 
3997
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3998
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3999
#
4000
# ac_d sets the value in "#define NAME VALUE" lines.
4001
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4002
ac_dB='[        ].*$,\1#\2'
4003
ac_dC=' '
4004
ac_dD=',;t'
4005
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4006
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4007
ac_uB='$,\1#\2define\3'
4008
ac_uC=' '
4009
ac_uD=',;t'
4010
 
4011
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4012
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4013
  case $ac_file in
4014
  - | *:- | *:-:* ) # input from stdin
4015
        cat >$tmp/stdin
4016
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4017
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4018
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4019
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4020
  * )   ac_file_in=$ac_file.in ;;
4021
  esac
4022
 
4023
  test x"$ac_file" != x- && { echo "$as_me:4023: creating $ac_file" >&5
4024
echo "$as_me: creating $ac_file" >&6;}
4025
 
4026
  # First look for the input files in the build tree, otherwise in the
4027
  # src tree.
4028
  ac_file_inputs=`IFS=:
4029
    for f in $ac_file_in; do
4030
      case $f in
4031
      -) echo $tmp/stdin ;;
4032
      [\\/$]*)
4033
         # Absolute (can't be DOS-style, as IFS=:)
4034
         test -f "$f" || { { echo "$as_me:4034: error: cannot find input file: $f" >&5
4035
echo "$as_me: error: cannot find input file: $f" >&2;}
4036
   { (exit 1); exit 1; }; }
4037
         echo $f;;
4038
      *) # Relative
4039
         if test -f "$f"; then
4040
           # Build tree
4041
           echo $f
4042
         elif test -f "$srcdir/$f"; then
4043
           # Source tree
4044
           echo $srcdir/$f
4045
         else
4046
           # /dev/null tree
4047
           { { echo "$as_me:4047: error: cannot find input file: $f" >&5
4048
echo "$as_me: error: cannot find input file: $f" >&2;}
4049
   { (exit 1); exit 1; }; }
4050
         fi;;
4051
      esac
4052
    done` || { (exit 1); exit 1; }
4053
  # Remove the trailing spaces.
4054
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4055
 
4056
EOF
4057
 
4058
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4059
# `conftest.undefs', that substitutes the proper values into
4060
# config.h.in to produce config.h.  The first handles `#define'
4061
# templates, and the second `#undef' templates.
4062
# And first: Protect against being on the right side of a sed subst in
4063
# config.status.  Protect against being in an unquoted here document
4064
# in config.status.
4065
rm -f conftest.defines conftest.undefs
4066
# Using a here document instead of a string reduces the quoting nightmare.
4067
# Putting comments in sed scripts is not portable.
4068
#
4069
# `end' is used to avoid that the second main sed command (meant for
4070
# 0-ary CPP macros) applies to n-ary macro definitions.
4071
# See the Autoconf documentation for `clear'.
4072
cat >confdef2sed.sed <<\EOF
4073
s/[\\&,]/\\&/g
4074
s,[\\$`],\\&,g
4075
t clear
4076
: clear
4077
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4078
t end
4079
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4080
: end
4081
EOF
4082
# If some macros were called several times there might be several times
4083
# the same #defines, which is useless.  Nevertheless, we may not want to
4084
# sort them, since we want the *last* AC-DEFINE to be honored.
4085
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4086
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4087
rm -f confdef2sed.sed
4088
 
4089
# This sed command replaces #undef with comments.  This is necessary, for
4090
# example, in the case of _POSIX_SOURCE, which is predefined and required
4091
# on some systems where configure will not decide to define it.
4092
cat >>conftest.undefs <<\EOF
4093
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4094
EOF
4095
 
4096
# Break up conftest.defines because some shells have a limit on the size
4097
# of here documents, and old seds have small limits too (100 cmds).
4098
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4099
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4100
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4101
echo '  :' >>$CONFIG_STATUS
4102
rm -f conftest.tail
4103
while grep . conftest.defines >/dev/null
4104
do
4105
  # Write a limited-size here document to $tmp/defines.sed.
4106
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
4107
  # Speed up: don't consider the non `#define' lines.
4108
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4109
  # Work around the forget-to-reset-the-flag bug.
4110
  echo 't clr' >>$CONFIG_STATUS
4111
  echo ': clr' >>$CONFIG_STATUS
4112
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4113
  echo 'CEOF
4114
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4115
  rm -f $tmp/in
4116
  mv $tmp/out $tmp/in
4117
' >>$CONFIG_STATUS
4118
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4119
  rm -f conftest.defines
4120
  mv conftest.tail conftest.defines
4121
done
4122
rm -f conftest.defines
4123
echo '  fi # egrep' >>$CONFIG_STATUS
4124
echo >>$CONFIG_STATUS
4125
 
4126
# Break up conftest.undefs because some shells have a limit on the size
4127
# of here documents, and old seds have small limits too (100 cmds).
4128
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4129
rm -f conftest.tail
4130
while grep . conftest.undefs >/dev/null
4131
do
4132
  # Write a limited-size here document to $tmp/undefs.sed.
4133
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
4134
  # Speed up: don't consider the non `#undef'
4135
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4136
  # Work around the forget-to-reset-the-flag bug.
4137
  echo 't clr' >>$CONFIG_STATUS
4138
  echo ': clr' >>$CONFIG_STATUS
4139
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4140
  echo 'CEOF
4141
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4142
  rm -f $tmp/in
4143
  mv $tmp/out $tmp/in
4144
' >>$CONFIG_STATUS
4145
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4146
  rm -f conftest.undefs
4147
  mv conftest.tail conftest.undefs
4148
done
4149
rm -f conftest.undefs
4150
 
4151
cat >>$CONFIG_STATUS <<\EOF
4152
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4153
  # use $as_me), people would be surprised to read:
4154
  #    /* config.h.  Generated automatically by config.status.  */
4155
  if test x"$ac_file" = x-; then
4156
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
4157
  else
4158
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4159
  fi
4160
  cat $tmp/in >>$tmp/config.h
4161
  rm -f $tmp/in
4162
  if test x"$ac_file" != x-; then
4163
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4164
      { echo "$as_me:4164: $ac_file is unchanged" >&5
4165
echo "$as_me: $ac_file is unchanged" >&6;}
4166
    else
4167
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4168
         X"$ac_file" : 'X\(//\)[^/]' \| \
4169
         X"$ac_file" : 'X\(//\)$' \| \
4170
         X"$ac_file" : 'X\(/\)' \| \
4171
         .     : '\(.\)' 2>/dev/null ||
4172
echo X"$ac_file" |
4173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4174
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4175
          /^X\(\/\/\)$/{ s//\1/; q; }
4176
          /^X\(\/\).*/{ s//\1/; q; }
4177
          s/.*/./; q'`
4178
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4179
        { case "$ac_dir" in
4180
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4181
  *)                      as_incr_dir=.;;
4182
esac
4183
as_dummy="$ac_dir"
4184
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4185
  case $as_mkdir_dir in
4186
    # Skip DOS drivespec
4187
    ?:) as_incr_dir=$as_mkdir_dir ;;
4188
    *)
4189
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4190
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4191
    ;;
4192
  esac
4193
done; }
4194
 
4195
      fi
4196
      rm -f $ac_file
4197
      mv $tmp/config.h $ac_file
4198
    fi
4199
  else
4200
    cat $tmp/config.h
4201
    rm -f $tmp/config.h
4202
  fi
4203
  # Run the commands associated with the file.
4204
  case $ac_file in
4205
    include/bspopts.h ) # update the timestamp
4206
echo 'timestamp for include/bspopts.h' >"include/stamp-h1"
4207
 ;;
4208
  esac
4209
done
4210
EOF
4211
cat >>$CONFIG_STATUS <<\EOF
4212
 
4213
#
4214
# CONFIG_COMMANDS section.
4215
#
4216
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4217
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4218
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4219
 
4220
  case $ac_dest in
4221
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4222
  # Strip MF so we end up with the name of the file.
4223
  mf=`echo "$mf" | sed -e 's/:.*$//'`
4224
  # Check whether this is an Automake generated Makefile or not.
4225
  # We used to match only the files named `Makefile.in', but
4226
  # some people rename them; so instead we look at the file content.
4227
  # Grep'ing the first line is not enough: some people post-process
4228
  # each Makefile.in and add a new line on top of each file to say so.
4229
  # So let's grep whole file.
4230
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4231
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4232
         X"$mf" : 'X\(//\)[^/]' \| \
4233
         X"$mf" : 'X\(//\)$' \| \
4234
         X"$mf" : 'X\(/\)' \| \
4235
         .     : '\(.\)' 2>/dev/null ||
4236
echo X"$mf" |
4237
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4238
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4239
          /^X\(\/\/\)$/{ s//\1/; q; }
4240
          /^X\(\/\).*/{ s//\1/; q; }
4241
          s/.*/./; q'`
4242
  else
4243
    continue
4244
  fi
4245
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4246
  # Extract the definition of DEP_FILES from the Makefile without
4247
  # running `make'.
4248
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4249
  test -z "$DEPDIR" && continue
4250
  # When using ansi2knr, U may be empty or an underscore; expand it
4251
  U=`sed -n -e '/^U = / s///p' < "$mf"`
4252
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4253
  # We invoke sed twice because it is the simplest approach to
4254
  # changing $(DEPDIR) to its actual value in the expansion.
4255
  for file in `sed -n -e '
4256
    /^DEP_FILES = .*\\\\$/ {
4257
      s/^DEP_FILES = //
4258
      :loop
4259
        s/\\\\$//
4260
        p
4261
        n
4262
        /\\\\$/ b loop
4263
      p
4264
    }
4265
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4266
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4267
    # Make sure the directory exists.
4268
    test -f "$dirpart/$file" && continue
4269
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4270
         X"$file" : 'X\(//\)[^/]' \| \
4271
         X"$file" : 'X\(//\)$' \| \
4272
         X"$file" : 'X\(/\)' \| \
4273
         .     : '\(.\)' 2>/dev/null ||
4274
echo X"$file" |
4275
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4276
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4277
          /^X\(\/\/\)$/{ s//\1/; q; }
4278
          /^X\(\/\).*/{ s//\1/; q; }
4279
          s/.*/./; q'`
4280
    { case $dirpart/$fdir in
4281
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4282
  *)                      as_incr_dir=.;;
4283
esac
4284
as_dummy=$dirpart/$fdir
4285
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4286
  case $as_mkdir_dir in
4287
    # Skip DOS drivespec
4288
    ?:) as_incr_dir=$as_mkdir_dir ;;
4289
    *)
4290
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4291
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4292
    ;;
4293
  esac
4294
done; }
4295
 
4296
    # echo "creating $dirpart/$file"
4297
    echo '# dummy' > "$dirpart/$file"
4298
  done
4299
done
4300
 ;;
4301
    bsp-tools )
4302
# HACK: This is a blantant hack and breaks Canadian crosses
4303
build_alias="$build_alias"
4304
host_alias="$build_alias"
4305
if test "$no_recursion" != yes; then
4306
  if test x"$build_alias" != x"$host_alias"; then
4307
    target_subdir="$host_alias"
4308
  else
4309
    target_subdir="."
4310
  fi
4311
  # Remove --cache-file and --srcdir arguments so they do not pile up.
4312
  ac_sub_configure_args=
4313
  rtems_prev=
4314
  for rtems_arg in $rtems_configure_args; do
4315
    if test -n "$rtems_prev"; then
4316
      rtems_prev=
4317
      continue
4318
    fi
4319
    case "$rtems_arg" in
4320
    -cache-file | --cache-file | --cache-fil | --cache-fi \
4321
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4322
      rtems_prev=cache_file ;;
4323
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4324
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4325
      ;;
4326
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4327
      rtems_prev=srcdir ;;
4328
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4329
      ;;
4330
    --target*) ;;
4331
    --build*) ;;
4332
    --host*) ;;
4333
    *_alias* ) ;; # HACK: Workaround to autoconf passing *_alias
4334
    *) ac_sub_configure_args="$ac_sub_configure_args $rtems_arg" ;;
4335
    esac
4336
  done
4337
 
4338
  for rtems_config_dir in $RTEMS_BUILD_SUBDIRS; do
4339
    # Do not complain, so a configure script can configure whichever
4340
    # parts of a large source tree are present.
4341
    if test ! -d $srcdir/$rtems_config_dir; then
4342
      continue
4343
    fi
4344
 
4345
# _RTEMS_PUSH_BUILDDIR
4346
    echo configuring in $rtems_config_dir
4347
    case "$srcdir" in
4348
    .) ;;
4349
    *) { case $rtems_config_dir in
4350
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4351
  *)                      as_incr_dir=.;;
4352
esac
4353
as_dummy=$rtems_config_dir
4354
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4355
  case $as_mkdir_dir in
4356
    # Skip DOS drivespec
4357
    ?:) as_incr_dir=$as_mkdir_dir ;;
4358
    *)
4359
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4360
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4361
    ;;
4362
  esac
4363
done; }
4364
 
4365
      ;;
4366
    esac
4367
 
4368
    ac_popdir=`pwd`
4369
    cd $rtems_config_dir
4370
 
4371
# _RTEMS_SUB_SRCDIR
4372
 
4373
# A "../" for each directory in $rtems_config_dir.
4374
    ac_dots=`echo $rtems_config_dir | \
4375
             sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4376
 
4377
    case "$srcdir" in
4378
    .) # No --srcdir option.  We are building in place.
4379
      ac_sub_srcdir=$srcdir ;;
4380
    [\\/]* | ?:[\\/]*) # Absolute path.
4381
      ac_sub_srcdir=$srcdir/$rtems_config_dir ;;
4382
    *) # Relative path.
4383
      ac_sub_srcdir=$ac_dots$srcdir/$rtems_config_dir ;;
4384
    esac
4385
 
4386
    # Check for configure
4387
    if test -f $ac_sub_srcdir/configure; then
4388
      ac_sub_configure=$ac_sub_srcdir/configure
4389
    else
4390
      { echo "$as_me:4390: WARNING: no configuration information is in $rtems_config_dir" >&5
4391
echo "$as_me: WARNING: no configuration information is in $rtems_config_dir" >&2;}
4392
      ac_sub_configure=
4393
    fi
4394
 
4395
    # The recursion is here.
4396
    if test -n "$ac_sub_configure"; then
4397
#      ac_sub_cache_file=./config.cache
4398
      ac_sub_cache_file=/dev/null
4399
 
4400
  case "$ac_given_INSTALL" in
4401
  [\\/]* | ?:[\\/]*) INSTALL="$ac_given_INSTALL" ;;
4402
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4403
  esac
4404
 
4405
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4406
      # The eval makes quoting arguments work.
4407
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \
4408
        $ac_sub_configure_args \
4409
        --srcdir=$ac_sub_srcdir \
4410
        --with-target-subdir=$target_subdir \
4411
        --cache-file=$ac_sub_cache_file
4412
      then :
4413
      else
4414
        { { echo "$as_me:4414: error: $ac_sub_configure failed for $rtems_config_dir" >&5
4415
echo "$as_me: error: $ac_sub_configure failed for $rtems_config_dir" >&2;}
4416
   { (exit 1); exit 1; }; }
4417
      fi
4418
    fi
4419
 
4420
  cd $ac_popdir
4421
 
4422
  done
4423
fi ;;
4424
  esac
4425
done
4426
EOF
4427
 
4428
cat >>$CONFIG_STATUS <<\EOF
4429
 
4430
{ (exit 0); exit 0; }
4431
EOF
4432
chmod +x $CONFIG_STATUS
4433
ac_clean_files=$ac_clean_files_save
4434
 
4435
# configure is writing to config.log, and then calls config.status.
4436
# config.status does its own redirection, appending to config.log.
4437
# Unfortunately, on DOS this fails, as config.log is still kept open
4438
# by configure, so config.status won't be able to write to it; its
4439
# output is simply discarded.  So we exec the FD to /dev/null,
4440
# effectively closing config.log, so it can be properly (re)opened and
4441
# appended to by config.status.  When coming back to configure, we
4442
# need to make the FD available again.
4443
if test "$no_create" != yes; then
4444
  ac_cs_success=:
4445
  exec 5>/dev/null
4446
  $SHELL $CONFIG_STATUS || ac_cs_success=false
4447
  exec 5>>config.log
4448
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4449
  # would make configure fail if this is the last instruction.
4450
  $ac_cs_success || { (exit 1); exit 1; }
4451
fi
4452
 

powered by: WebSVN 2.1.0

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