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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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