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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [make/] [configure] - Blame information for rev 1780

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

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52 for rtems-c-src-make ss-20020807.
4
#
5
# Report bugs to .
6
#
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
 
12
# Avoid depending upon Character Ranges.
13
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16
as_cr_digits='0123456789'
17
as_cr_alnum=$as_cr_Letters$as_cr_digits
18
 
19
# Sed expression to map a string onto a valid variable name.
20
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
 
22
# Sed expression to map a string onto a valid CPP name.
23
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
 
25
# Be Bourne compatible
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
  emulate sh
28
  NULLCMD=:
29
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
  set -o posix
31
fi
32
 
33
# Name of the executable.
34
as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
 
36
if expr a : '\(a\)' >/dev/null 2>&1; then
37
  as_expr=expr
38
else
39
  as_expr=false
40
fi
41
 
42
rm -f conf$$ conf$$.exe conf$$.file
43
echo >conf$$.file
44
if ln -s conf$$.file conf$$ 2>/dev/null; then
45
  # We could just check for DJGPP; but this test a) works b) is more generic
46
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47
  if test -f conf$$.exe; then
48
    # Don't use ln at all; we don't have any links
49
    as_ln_s='cp -p'
50
  else
51
    as_ln_s='ln -s'
52
  fi
53
elif ln conf$$.file conf$$ 2>/dev/null; then
54
  as_ln_s=ln
55
else
56
  as_ln_s='cp -p'
57
fi
58
rm -f conf$$ conf$$.exe conf$$.file
59
 
60
as_executable_p="test -f"
61
 
62
# Support unset when possible.
63
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64
  as_unset=unset
65
else
66
  as_unset=false
67
fi
68
 
69
# NLS nuisances.
70
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
 
79
# IFS
80
# We need space, tab and new line, in precisely that order.
81
as_nl='
82
'
83
IFS="   $as_nl"
84
 
85
# CDPATH.
86
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
 
88
# Name of the host.
89
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90
# so uname gets run too.
91
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
 
93
exec 6>&1
94
 
95
#
96
# Initializations.
97
#
98
ac_default_prefix=/usr/local
99
cross_compiling=no
100
subdirs=
101
MFLAGS= MAKEFLAGS=
102
SHELL=${CONFIG_SHELL-/bin/sh}
103
 
104
# Maximum number of lines to put in a shell here document.
105
# This variable seems obsolete.  It should probably be removed, and
106
# only ac_max_sed_lines should be used.
107
: ${ac_max_here_lines=38}
108
 
109
ac_unique_file="bsp.cfg.in"
110
ac_default_prefix=/opt/rtems
111
 
112
# Initialize some variables set by options.
113
ac_init_help=
114
ac_init_version=false
115
# The variables have the same names as the options, with
116
# dashes changed to underlines.
117
cache_file=/dev/null
118
exec_prefix=NONE
119
no_create=
120
no_recursion=
121
prefix=NONE
122
program_prefix=NONE
123
program_suffix=NONE
124
program_transform_name=s,x,x,
125
silent=
126
site=
127
srcdir=
128
verbose=
129
x_includes=NONE
130
x_libraries=NONE
131
 
132
# Installation directory options.
133
# These are left unexpanded so users can "make install exec_prefix=/foo"
134
# and all the variables that are supposed to be based on exec_prefix
135
# by default will actually change.
136
# Use braces instead of parens because sh, perl, etc. also accept them.
137
bindir='${exec_prefix}/bin'
138
sbindir='${exec_prefix}/sbin'
139
libexecdir='${exec_prefix}/libexec'
140
datadir='${prefix}/share'
141
sysconfdir='${prefix}/etc'
142
sharedstatedir='${prefix}/com'
143
localstatedir='${prefix}/var'
144
libdir='${exec_prefix}/lib'
145
includedir='${prefix}/include'
146
oldincludedir='/usr/include'
147
infodir='${prefix}/info'
148
mandir='${prefix}/man'
149
 
150
# Identity of this package.
151
PACKAGE_NAME='rtems-c-src-make'
152
PACKAGE_TARNAME='rtems-c-src-make'
153
PACKAGE_VERSION='ss-20020807'
154
PACKAGE_STRING='rtems-c-src-make ss-20020807'
155
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
156
 
157
ac_prev=
158
for ac_option
159
do
160
  # If the previous option needs an argument, assign it.
161
  if test -n "$ac_prev"; then
162
    eval "$ac_prev=\$ac_option"
163
    ac_prev=
164
    continue
165
  fi
166
 
167
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168
 
169
  # Accept the important Cygnus configure options, so we can diagnose typos.
170
 
171
  case $ac_option in
172
 
173
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
174
    ac_prev=bindir ;;
175
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176
    bindir=$ac_optarg ;;
177
 
178
  -build | --build | --buil | --bui | --bu)
179
    ac_prev=build_alias ;;
180
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181
    build_alias=$ac_optarg ;;
182
 
183
  -cache-file | --cache-file | --cache-fil | --cache-fi \
184
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185
    ac_prev=cache_file ;;
186
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188
    cache_file=$ac_optarg ;;
189
 
190
  --config-cache | -C)
191
    cache_file=config.cache ;;
192
 
193
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194
    ac_prev=datadir ;;
195
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196
  | --da=*)
197
    datadir=$ac_optarg ;;
198
 
199
  -disable-* | --disable-*)
200
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
201
    # Reject names that are not valid shell variable names.
202
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
203
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
204
   { (exit 1); exit 1; }; }
205
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
206
    eval "enable_$ac_feature=no" ;;
207
 
208
  -enable-* | --enable-*)
209
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
210
    # Reject names that are not valid shell variable names.
211
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
212
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
213
   { (exit 1); exit 1; }; }
214
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
215
    case $ac_option in
216
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217
      *) ac_optarg=yes ;;
218
    esac
219
    eval "enable_$ac_feature='$ac_optarg'" ;;
220
 
221
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
222
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
223
  | --exec | --exe | --ex)
224
    ac_prev=exec_prefix ;;
225
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
226
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
227
  | --exec=* | --exe=* | --ex=*)
228
    exec_prefix=$ac_optarg ;;
229
 
230
  -gas | --gas | --ga | --g)
231
    # Obsolete; use --with-gas.
232
    with_gas=yes ;;
233
 
234
  -help | --help | --hel | --he | -h)
235
    ac_init_help=long ;;
236
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
237
    ac_init_help=recursive ;;
238
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
239
    ac_init_help=short ;;
240
 
241
  -host | --host | --hos | --ho)
242
    ac_prev=host_alias ;;
243
  -host=* | --host=* | --hos=* | --ho=*)
244
    host_alias=$ac_optarg ;;
245
 
246
  -includedir | --includedir | --includedi | --included | --include \
247
  | --includ | --inclu | --incl | --inc)
248
    ac_prev=includedir ;;
249
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250
  | --includ=* | --inclu=* | --incl=* | --inc=*)
251
    includedir=$ac_optarg ;;
252
 
253
  -infodir | --infodir | --infodi | --infod | --info | --inf)
254
    ac_prev=infodir ;;
255
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256
    infodir=$ac_optarg ;;
257
 
258
  -libdir | --libdir | --libdi | --libd)
259
    ac_prev=libdir ;;
260
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261
    libdir=$ac_optarg ;;
262
 
263
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264
  | --libexe | --libex | --libe)
265
    ac_prev=libexecdir ;;
266
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267
  | --libexe=* | --libex=* | --libe=*)
268
    libexecdir=$ac_optarg ;;
269
 
270
  -localstatedir | --localstatedir | --localstatedi | --localstated \
271
  | --localstate | --localstat | --localsta | --localst \
272
  | --locals | --local | --loca | --loc | --lo)
273
    ac_prev=localstatedir ;;
274
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277
    localstatedir=$ac_optarg ;;
278
 
279
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280
    ac_prev=mandir ;;
281
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282
    mandir=$ac_optarg ;;
283
 
284
  -nfp | --nfp | --nf)
285
    # Obsolete; use --without-fp.
286
    with_fp=no ;;
287
 
288
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289
  | --no-cr | --no-c)
290
    no_create=yes ;;
291
 
292
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294
    no_recursion=yes ;;
295
 
296
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298
  | --oldin | --oldi | --old | --ol | --o)
299
    ac_prev=oldincludedir ;;
300
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303
    oldincludedir=$ac_optarg ;;
304
 
305
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306
    ac_prev=prefix ;;
307
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308
    prefix=$ac_optarg ;;
309
 
310
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311
  | --program-pre | --program-pr | --program-p)
312
    ac_prev=program_prefix ;;
313
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315
    program_prefix=$ac_optarg ;;
316
 
317
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318
  | --program-suf | --program-su | --program-s)
319
    ac_prev=program_suffix ;;
320
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322
    program_suffix=$ac_optarg ;;
323
 
324
  -program-transform-name | --program-transform-name \
325
  | --program-transform-nam | --program-transform-na \
326
  | --program-transform-n | --program-transform- \
327
  | --program-transform | --program-transfor \
328
  | --program-transfo | --program-transf \
329
  | --program-trans | --program-tran \
330
  | --progr-tra | --program-tr | --program-t)
331
    ac_prev=program_transform_name ;;
332
  -program-transform-name=* | --program-transform-name=* \
333
  | --program-transform-nam=* | --program-transform-na=* \
334
  | --program-transform-n=* | --program-transform-=* \
335
  | --program-transform=* | --program-transfor=* \
336
  | --program-transfo=* | --program-transf=* \
337
  | --program-trans=* | --program-tran=* \
338
  | --progr-tra=* | --program-tr=* | --program-t=*)
339
    program_transform_name=$ac_optarg ;;
340
 
341
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342
  | -silent | --silent | --silen | --sile | --sil)
343
    silent=yes ;;
344
 
345
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346
    ac_prev=sbindir ;;
347
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348
  | --sbi=* | --sb=*)
349
    sbindir=$ac_optarg ;;
350
 
351
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353
  | --sharedst | --shareds | --shared | --share | --shar \
354
  | --sha | --sh)
355
    ac_prev=sharedstatedir ;;
356
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359
  | --sha=* | --sh=*)
360
    sharedstatedir=$ac_optarg ;;
361
 
362
  -site | --site | --sit)
363
    ac_prev=site ;;
364
  -site=* | --site=* | --sit=*)
365
    site=$ac_optarg ;;
366
 
367
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368
    ac_prev=srcdir ;;
369
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370
    srcdir=$ac_optarg ;;
371
 
372
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373
  | --syscon | --sysco | --sysc | --sys | --sy)
374
    ac_prev=sysconfdir ;;
375
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377
    sysconfdir=$ac_optarg ;;
378
 
379
  -target | --target | --targe | --targ | --tar | --ta | --t)
380
    ac_prev=target_alias ;;
381
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382
    target_alias=$ac_optarg ;;
383
 
384
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385
    verbose=yes ;;
386
 
387
  -version | --version | --versio | --versi | --vers | -V)
388
    ac_init_version=: ;;
389
 
390
  -with-* | --with-*)
391
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
392
    # Reject names that are not valid shell variable names.
393
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394
      { echo "$as_me: error: invalid package name: $ac_package" >&2
395
   { (exit 1); exit 1; }; }
396
    ac_package=`echo $ac_package| sed 's/-/_/g'`
397
    case $ac_option in
398
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399
      *) ac_optarg=yes ;;
400
    esac
401
    eval "with_$ac_package='$ac_optarg'" ;;
402
 
403
  -without-* | --without-*)
404
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
405
    # Reject names that are not valid shell variable names.
406
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
      { echo "$as_me: error: invalid package name: $ac_package" >&2
408
   { (exit 1); exit 1; }; }
409
    ac_package=`echo $ac_package | sed 's/-/_/g'`
410
    eval "with_$ac_package=no" ;;
411
 
412
  --x)
413
    # Obsolete; use --with-x.
414
    with_x=yes ;;
415
 
416
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417
  | --x-incl | --x-inc | --x-in | --x-i)
418
    ac_prev=x_includes ;;
419
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421
    x_includes=$ac_optarg ;;
422
 
423
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
424
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425
    ac_prev=x_libraries ;;
426
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428
    x_libraries=$ac_optarg ;;
429
 
430
  -*) { echo "$as_me: error: unrecognized option: $ac_option
431
Try \`$0 --help' for more information." >&2
432
   { (exit 1); exit 1; }; }
433
    ;;
434
 
435
  *=*)
436
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
437
    # Reject names that are not valid shell variable names.
438
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
439
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
440
   { (exit 1); exit 1; }; }
441
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
442
    eval "$ac_envvar='$ac_optarg'"
443
    export $ac_envvar ;;
444
 
445
  *)
446
    # FIXME: should be removed in autoconf 3.0.
447
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
448
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
449
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
450
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
451
    ;;
452
 
453
  esac
454
done
455
 
456
if test -n "$ac_prev"; then
457
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
458
  { echo "$as_me: error: missing argument to $ac_option" >&2
459
   { (exit 1); exit 1; }; }
460
fi
461
 
462
# Be sure to have absolute paths.
463
for ac_var in exec_prefix prefix
464
do
465
  eval ac_val=$`echo $ac_var`
466
  case $ac_val in
467
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
468
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
469
   { (exit 1); exit 1; }; };;
470
  esac
471
done
472
 
473
# Be sure to have absolute paths.
474
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
475
              localstatedir libdir includedir oldincludedir infodir mandir
476
do
477
  eval ac_val=$`echo $ac_var`
478
  case $ac_val in
479
    [\\/$]* | ?:[\\/]* ) ;;
480
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
481
   { (exit 1); exit 1; }; };;
482
  esac
483
done
484
 
485
# There might be people who depend on the old broken behavior: `$host'
486
# used to hold the argument of --host etc.
487
build=$build_alias
488
host=$host_alias
489
target=$target_alias
490
 
491
# FIXME: should be removed in autoconf 3.0.
492
if test "x$host_alias" != x; then
493
  if test "x$build_alias" = x; then
494
    cross_compiling=maybe
495
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
496
    If a cross compiler is detected then cross compile mode will be used." >&2
497
  elif test "x$build_alias" != "x$host_alias"; then
498
    cross_compiling=yes
499
  fi
500
fi
501
 
502
ac_tool_prefix=
503
test -n "$host_alias" && ac_tool_prefix=$host_alias-
504
 
505
test "$silent" = yes && exec 6>/dev/null
506
 
507
# Find the source files, if location was not specified.
508
if test -z "$srcdir"; then
509
  ac_srcdir_defaulted=yes
510
  # Try the directory containing this script, then its parent.
511
  ac_prog=$0
512
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
513
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514
  srcdir=$ac_confdir
515
  if test ! -r $srcdir/$ac_unique_file; then
516
    srcdir=..
517
  fi
518
else
519
  ac_srcdir_defaulted=no
520
fi
521
if test ! -r $srcdir/$ac_unique_file; then
522
  if test "$ac_srcdir_defaulted" = yes; then
523
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
524
   { (exit 1); exit 1; }; }
525
  else
526
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
527
   { (exit 1); exit 1; }; }
528
  fi
529
fi
530
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
531
ac_env_build_alias_set=${build_alias+set}
532
ac_env_build_alias_value=$build_alias
533
ac_cv_env_build_alias_set=${build_alias+set}
534
ac_cv_env_build_alias_value=$build_alias
535
ac_env_host_alias_set=${host_alias+set}
536
ac_env_host_alias_value=$host_alias
537
ac_cv_env_host_alias_set=${host_alias+set}
538
ac_cv_env_host_alias_value=$host_alias
539
ac_env_target_alias_set=${target_alias+set}
540
ac_env_target_alias_value=$target_alias
541
ac_cv_env_target_alias_set=${target_alias+set}
542
ac_cv_env_target_alias_value=$target_alias
543
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
544
ac_env_RTEMS_BSP_value=$RTEMS_BSP
545
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
546
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
547
ac_env_CC_set=${CC+set}
548
ac_env_CC_value=$CC
549
ac_cv_env_CC_set=${CC+set}
550
ac_cv_env_CC_value=$CC
551
ac_env_CFLAGS_set=${CFLAGS+set}
552
ac_env_CFLAGS_value=$CFLAGS
553
ac_cv_env_CFLAGS_set=${CFLAGS+set}
554
ac_cv_env_CFLAGS_value=$CFLAGS
555
ac_env_LDFLAGS_set=${LDFLAGS+set}
556
ac_env_LDFLAGS_value=$LDFLAGS
557
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
558
ac_cv_env_LDFLAGS_value=$LDFLAGS
559
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
560
ac_env_CPPFLAGS_value=$CPPFLAGS
561
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
562
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
563
ac_env_CPP_set=${CPP+set}
564
ac_env_CPP_value=$CPP
565
ac_cv_env_CPP_set=${CPP+set}
566
ac_cv_env_CPP_value=$CPP
567
ac_env_CXX_set=${CXX+set}
568
ac_env_CXX_value=$CXX
569
ac_cv_env_CXX_set=${CXX+set}
570
ac_cv_env_CXX_value=$CXX
571
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
572
ac_env_CXXFLAGS_value=$CXXFLAGS
573
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
574
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
575
 
576
#
577
# Report the --help message.
578
#
579
if test "$ac_init_help" = "long"; then
580
  # Omit some internal or obsolete options to make the list less imposing.
581
  # This message is too long to be a string in the A/UX 3.1 sh.
582
  cat <
583
\`configure' configures rtems-c-src-make ss-20020807 to adapt to many kinds of systems.
584
 
585
Usage: $0 [OPTION]... [VAR=VALUE]...
586
 
587
To assign environment variables (e.g., CC, CFLAGS...), specify them as
588
VAR=VALUE.  See below for descriptions of some of the useful variables.
589
 
590
Defaults for the options are specified in brackets.
591
 
592
Configuration:
593
  -h, --help              display this help and exit
594
      --help=short        display options specific to this package
595
      --help=recursive    display the short help of all the included packages
596
  -V, --version           display version information and exit
597
  -q, --quiet, --silent   do not print \`checking...' messages
598
      --cache-file=FILE   cache test results in FILE [disabled]
599
  -C, --config-cache      alias for \`--cache-file=config.cache'
600
  -n, --no-create         do not create output files
601
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
602
 
603
EOF
604
 
605
  cat <
606
Installation directories:
607
  --prefix=PREFIX         install architecture-independent files in PREFIX
608
                          [$ac_default_prefix]
609
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
610
                          [PREFIX]
611
 
612
By default, \`make install' will install all the files in
613
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
614
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
615
for instance \`--prefix=\$HOME'.
616
 
617
For better control, use the options below.
618
 
619
Fine tuning of the installation directories:
620
  --bindir=DIR           user executables [EPREFIX/bin]
621
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
622
  --libexecdir=DIR       program executables [EPREFIX/libexec]
623
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
624
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
625
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
626
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
627
  --libdir=DIR           object code libraries [EPREFIX/lib]
628
  --includedir=DIR       C header files [PREFIX/include]
629
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
630
  --infodir=DIR          info documentation [PREFIX/info]
631
  --mandir=DIR           man documentation [PREFIX/man]
632
EOF
633
 
634
  cat <<\EOF
635
 
636
Program names:
637
  --program-prefix=PREFIX            prepend PREFIX to installed program names
638
  --program-suffix=SUFFIX            append SUFFIX to installed program names
639
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
640
 
641
System types:
642
  --build=BUILD     configure for building on BUILD [guessed]
643
  --host=HOST       build programs to run on HOST [BUILD]
644
  --target=TARGET   configure for building compilers for TARGET [HOST]
645
EOF
646
fi
647
 
648
if test -n "$ac_init_help"; then
649
  case $ac_init_help in
650
     short | recursive ) echo "Configuration of rtems-c-src-make ss-20020807:";;
651
   esac
652
  cat <<\EOF
653
 
654
Optional Features:
655
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
656
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
657
  --enable-maintainer-mode enable make rules and dependencies not useful
658
                          (and sometimes confusing) to the casual installer
659
  --enable-multiprocessing
660
                          enable multiprocessing interface
661
  --enable-posix          enable posix interface
662
  --enable-itron          enable itron interface
663
  --enable-networking     enable TCP/IP stack
664
  --enable-rdbg           enable remote debugger
665
  --enable-rtems-inlines  enable RTEMS inline functions (default:enabled,
666
                          disable to use macros)
667
  --enable-cxx            enable C++ support and build the rtems++ library
668
  --enable-bare-cpu-cflags
669
                          specify a particular cpu cflag (bare bsp specific)
670
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
671
  --disable-dependency-tracking Speeds up one-time builds
672
  --enable-dependency-tracking  Do not reject slow dependency extractors
673
  --enable-multilib       build many library versions (default=no)
674
 
675
Some influential environment variables:
676
  RTEMS_BSP   RTEMS_BSP to build
677
  CC          C compiler command
678
  CFLAGS      C compiler flags
679
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
680
              nonstandard directory 
681
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
682
              headers in a nonstandard directory 
683
  CPP         C preprocessor
684
  CXX         C++ compiler command
685
  CXXFLAGS    C++ compiler flags
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-make 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-make $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-make
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
# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
1526
if test "${enable_multiprocessing+set}" = set; then
1527
  enableval="$enable_multiprocessing"
1528
  case "${enable_multiprocessing}" in
1529
  yes) ;;
1530
  no) ;;
1531
  *)  { { echo "$as_me:1531: error: bad value ${enableval} for enable-multiprocessing option" >&5
1532
echo "$as_me: error: bad value ${enableval} for enable-multiprocessing option" >&2;}
1533
   { (exit 1); exit 1; }; } ;;
1534
esac
1535
else
1536
  enable_multiprocessing=no
1537
fi;
1538
 
1539
# Check whether --enable-posix or --disable-posix was given.
1540
if test "${enable_posix+set}" = set; then
1541
  enableval="$enable_posix"
1542
  case "${enableval}" in
1543
  yes) RTEMS_HAS_POSIX_API=yes ;;
1544
  no) RTEMS_HAS_POSIX_API=no ;;
1545
  *)  { { echo "$as_me:1545: error: bad value ${enableval} for enable-posix option" >&5
1546
echo "$as_me: error: bad value ${enableval} for enable-posix option" >&2;}
1547
   { (exit 1); exit 1; }; } ;;
1548
esac
1549
else
1550
  RTEMS_HAS_POSIX_API=yes
1551
fi;
1552
 
1553
case "${host}" in
1554
  # hpux unix port should go here
1555
  i[34567]86-pc-linux*)         # unix "simulator" port
1556
        RTEMS_HAS_POSIX_API=no
1557
        ;;
1558
  i[34567]86-*freebsd*) # unix "simulator" port
1559
        RTEMS_HAS_POSIX_API=no
1560
        ;;
1561
  no_cpu-*rtems*)
1562
        RTEMS_HAS_POSIX_API=no
1563
        ;;
1564
  sparc-sun-solaris*)             # unix "simulator" port
1565
        RTEMS_HAS_POSIX_API=no
1566
        ;;
1567
  *)
1568
        ;;
1569
esac
1570
 
1571
# Check whether --enable-itron or --disable-itron was given.
1572
if test "${enable_itron+set}" = set; then
1573
  enableval="$enable_itron"
1574
  case "${enableval}" in
1575
  yes) RTEMS_HAS_ITRON_API=yes ;;
1576
  no) RTEMS_HAS_ITRON_API=no ;;
1577
  *)  { { echo "$as_me:1577: error: bad value ${enableval} for enable-itron option" >&5
1578
echo "$as_me: error: bad value ${enableval} for enable-itron option" >&2;}
1579
   { (exit 1); exit 1; }; } ;;
1580
esac
1581
else
1582
  RTEMS_HAS_ITRON_API=yes
1583
fi;
1584
 
1585
case "${host}" in
1586
  # hpux unix port should go here
1587
  i[34567]86-pc-linux*)         # unix "simulator" port
1588
        RTEMS_HAS_ITRON_API=no
1589
        ;;
1590
  i[34567]86-*freebsd*) # unix "simulator" port
1591
        RTEMS_HAS_ITRON_API=no
1592
        ;;
1593
  no_cpu-*rtems*)
1594
        RTEMS_HAS_ITRON_API=no
1595
        ;;
1596
  sparc-sun-solaris*)             # unix "simulator" port
1597
        RTEMS_HAS_ITRON_API=no
1598
        ;;
1599
  *)
1600
        ;;
1601
esac
1602
 
1603
# Check whether --enable-networking or --disable-networking was given.
1604
if test "${enable_networking+set}" = set; then
1605
  enableval="$enable_networking"
1606
  case "${enableval}" in
1607
  yes) RTEMS_HAS_NETWORKING=yes ;;
1608
  no) RTEMS_HAS_NETWORKING=no ;;
1609
  *)  { { echo "$as_me:1609: error: bad value ${enableval} for enable-networking option" >&5
1610
echo "$as_me: error: bad value ${enableval} for enable-networking option" >&2;}
1611
   { (exit 1); exit 1; }; } ;;
1612
esac
1613
else
1614
  RTEMS_HAS_NETWORKING=yes
1615
fi;
1616
 
1617
# Check whether --enable-rdbg or --disable-rdbg was given.
1618
if test "${enable_rdbg+set}" = set; then
1619
  enableval="$enable_rdbg"
1620
  case "${enableval}" in
1621
  yes) RTEMS_HAS_RDBG=yes ;;
1622
  no) RTEMS_HAS_RDBG=no ;;
1623
  *)  { { echo "$as_me:1623: error: bad value ${enableval} for enable-rdbg option" >&5
1624
echo "$as_me: error: bad value ${enableval} for enable-rdbg option" >&2;}
1625
   { (exit 1); exit 1; }; } ;;
1626
esac
1627
else
1628
  RTEMS_HAS_RDBG=no
1629
fi;
1630
 
1631
# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
1632
if test "${enable_rtems_inlines+set}" = set; then
1633
  enableval="$enable_rtems_inlines"
1634
  case "${enableval}" in
1635
  yes) RTEMS_USE_MACROS=no ;;
1636
  no) RTEMS_USE_MACROS=yes ;;
1637
  *)  { { echo "$as_me:1637: error: bad value ${enableval} for disable-rtems-inlines option" >&5
1638
echo "$as_me: error: bad value ${enableval} for disable-rtems-inlines option" >&2;}
1639
   { (exit 1); exit 1; }; } ;;
1640
esac
1641
else
1642
  RTEMS_USE_MACROS=no
1643
fi;
1644
 
1645
if test x"${RTEMS_USE_MACROS}" = x"yes";
1646
then
1647
 
1648
cat >>confdefs.h <
1649
#define USE_MACROS 1
1650
EOF
1651
 
1652
else
1653
 
1654
cat >>confdefs.h <
1655
#define USE_INLINES 1
1656
EOF
1657
 
1658
fi
1659
 
1660
# Check whether --enable-cxx or --disable-cxx was given.
1661
if test "${enable_cxx+set}" = set; then
1662
  enableval="$enable_cxx"
1663
  case "${enableval}" in
1664
  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
1665
  no) RTEMS_HAS_CPLUSPLUS=no   ;;
1666
  *)  { { echo "$as_me:1666: error: bad value ${enableval} for enable-cxx option" >&5
1667
echo "$as_me: error: bad value ${enableval} for enable-cxx option" >&2;}
1668
   { (exit 1); exit 1; }; } ;;
1669
esac
1670
else
1671
  RTEMS_HAS_CPLUSPLUS=no
1672
fi;
1673
 
1674
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1675
if test "${enable_bare_cpu_cflags+set}" = set; then
1676
  enableval="$enable_bare_cpu_cflags"
1677
  case "${enableval}" in
1678
  no) BARE_CPU_CFLAGS="" ;;
1679
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1680
esac
1681
else
1682
  BARE_CPU_CFLAGS=""
1683
fi;
1684
 
1685
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1686
if test "${enable_bare_cpu_model+set}" = set; then
1687
  enableval="$enable_bare_cpu_model"
1688
  case "${enableval}" in
1689
  no)   BARE_CPU_MODEL="" ;;
1690
  *)    BARE_CPU_MODEL="${enableval}" ;;
1691
esac
1692
else
1693
  BARE_CPU_MODEL=""
1694
fi;
1695
 
1696
echo "$as_me:1696: checking for RTEMS_BSP" >&5
1697
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1698
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1699
  echo $ECHO_N "(cached) $ECHO_C" >&6
1700
else
1701
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1702
 
1703
fi
1704
if test -z "$rtems_cv_RTEMS_BSP"; then
1705
  { { echo "$as_me:1705: error: Missing RTEMS_BSP" >&5
1706
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1707
   { (exit 1); exit 1; }; }
1708
fi
1709
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1710
echo "$as_me:1710: result: ${RTEMS_BSP}" >&5
1711
echo "${ECHO_T}${RTEMS_BSP}" >&6
1712
 
1713
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1714
 
1715
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1716
 
1717
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1718
 
1719
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1720
 
1721
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1722
 
1723
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1724
if test "${enable_bare_cpu_cflags+set}" = set; then
1725
  enableval="$enable_bare_cpu_cflags"
1726
  case "${enableval}" in
1727
  no) BARE_CPU_CFLAGS="" ;;
1728
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1729
esac
1730
else
1731
  BARE_CPU_CFLAGS=""
1732
fi;
1733
 
1734
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1735
if test "${enable_bare_cpu_model+set}" = set; then
1736
  enableval="$enable_bare_cpu_model"
1737
  case "${enableval}" in
1738
  no)   BARE_CPU_MODEL="" ;;
1739
  *)    BARE_CPU_MODEL="${enableval}" ;;
1740
esac
1741
else
1742
  BARE_CPU_MODEL=""
1743
fi;
1744
 
1745
if false; then
1746
  MULTILIB_TRUE=
1747
  MULTILIB_FALSE='#'
1748
else
1749
  MULTILIB_TRUE='#'
1750
  MULTILIB_FALSE=
1751
fi
1752
 
1753
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1754
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1755
 
1756
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1757
 
1758
## BEGIN configure.host.in
1759
 
1760
# Extract the first word of "cat", so it can be a program name with args.
1761
set dummy cat; ac_word=$2
1762
echo "$as_me:1762: checking for $ac_word" >&5
1763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764
if test "${ac_cv_path_CAT+set}" = set; then
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
1766
else
1767
  case $CAT in
1768
  [\\/]* | ?:[\\/]*)
1769
  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
1770
  ;;
1771
  *)
1772
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1773
ac_dummy="$PATH"
1774
for ac_dir in $ac_dummy; do
1775
  IFS=$ac_save_IFS
1776
  test -z "$ac_dir" && ac_dir=.
1777
  if $as_executable_p "$ac_dir/$ac_word"; then
1778
   ac_cv_path_CAT="$ac_dir/$ac_word"
1779
   echo "$as_me:1779: found $ac_dir/$ac_word" >&5
1780
   break
1781
fi
1782
done
1783
 
1784
  ;;
1785
esac
1786
fi
1787
CAT=$ac_cv_path_CAT
1788
 
1789
if test -n "$CAT"; then
1790
  echo "$as_me:1790: result: $CAT" >&5
1791
echo "${ECHO_T}$CAT" >&6
1792
else
1793
  echo "$as_me:1793: result: no" >&5
1794
echo "${ECHO_T}no" >&6
1795
fi
1796
 
1797
# Extract the first word of "cp", so it can be a program name with args.
1798
set dummy cp; ac_word=$2
1799
echo "$as_me:1799: checking for $ac_word" >&5
1800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801
if test "${ac_cv_path_CP+set}" = set; then
1802
  echo $ECHO_N "(cached) $ECHO_C" >&6
1803
else
1804
  case $CP in
1805
  [\\/]* | ?:[\\/]*)
1806
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
1807
  ;;
1808
  *)
1809
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1810
ac_dummy="$PATH"
1811
for ac_dir in $ac_dummy; do
1812
  IFS=$ac_save_IFS
1813
  test -z "$ac_dir" && ac_dir=.
1814
  if $as_executable_p "$ac_dir/$ac_word"; then
1815
   ac_cv_path_CP="$ac_dir/$ac_word"
1816
   echo "$as_me:1816: found $ac_dir/$ac_word" >&5
1817
   break
1818
fi
1819
done
1820
 
1821
  ;;
1822
esac
1823
fi
1824
CP=$ac_cv_path_CP
1825
 
1826
if test -n "$CP"; then
1827
  echo "$as_me:1827: result: $CP" >&5
1828
echo "${ECHO_T}$CP" >&6
1829
else
1830
  echo "$as_me:1830: result: no" >&5
1831
echo "${ECHO_T}no" >&6
1832
fi
1833
 
1834
# Extract the first word of "mv", so it can be a program name with args.
1835
set dummy mv; ac_word=$2
1836
echo "$as_me:1836: checking for $ac_word" >&5
1837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838
if test "${ac_cv_path_MV+set}" = set; then
1839
  echo $ECHO_N "(cached) $ECHO_C" >&6
1840
else
1841
  case $MV in
1842
  [\\/]* | ?:[\\/]*)
1843
  ac_cv_path_MV="$MV" # Let the user override the test with a path.
1844
  ;;
1845
  *)
1846
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1847
ac_dummy="$PATH"
1848
for ac_dir in $ac_dummy; do
1849
  IFS=$ac_save_IFS
1850
  test -z "$ac_dir" && ac_dir=.
1851
  if $as_executable_p "$ac_dir/$ac_word"; then
1852
   ac_cv_path_MV="$ac_dir/$ac_word"
1853
   echo "$as_me:1853: found $ac_dir/$ac_word" >&5
1854
   break
1855
fi
1856
done
1857
 
1858
  ;;
1859
esac
1860
fi
1861
MV=$ac_cv_path_MV
1862
 
1863
if test -n "$MV"; then
1864
  echo "$as_me:1864: result: $MV" >&5
1865
echo "${ECHO_T}$MV" >&6
1866
else
1867
  echo "$as_me:1867: result: no" >&5
1868
echo "${ECHO_T}no" >&6
1869
fi
1870
 
1871
# Extract the first word of "ln", so it can be a program name with args.
1872
set dummy ln; ac_word=$2
1873
echo "$as_me:1873: checking for $ac_word" >&5
1874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875
if test "${ac_cv_path_LN+set}" = set; then
1876
  echo $ECHO_N "(cached) $ECHO_C" >&6
1877
else
1878
  case $LN in
1879
  [\\/]* | ?:[\\/]*)
1880
  ac_cv_path_LN="$LN" # Let the user override the test with a path.
1881
  ;;
1882
  *)
1883
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1884
ac_dummy="$PATH"
1885
for ac_dir in $ac_dummy; do
1886
  IFS=$ac_save_IFS
1887
  test -z "$ac_dir" && ac_dir=.
1888
  if $as_executable_p "$ac_dir/$ac_word"; then
1889
   ac_cv_path_LN="$ac_dir/$ac_word"
1890
   echo "$as_me:1890: found $ac_dir/$ac_word" >&5
1891
   break
1892
fi
1893
done
1894
 
1895
  ;;
1896
esac
1897
fi
1898
LN=$ac_cv_path_LN
1899
 
1900
if test -n "$LN"; then
1901
  echo "$as_me:1901: result: $LN" >&5
1902
echo "${ECHO_T}$LN" >&6
1903
else
1904
  echo "$as_me:1904: result: no" >&5
1905
echo "${ECHO_T}no" >&6
1906
fi
1907
 
1908
echo "$as_me:1908: checking whether ln -s works" >&5
1909
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1910
LN_S=$as_ln_s
1911
if test "$LN_S" = "ln -s"; then
1912
  echo "$as_me:1912: result: yes" >&5
1913
echo "${ECHO_T}yes" >&6
1914
else
1915
  echo "$as_me:1915: result: no, using $LN_S" >&5
1916
echo "${ECHO_T}no, using $LN_S" >&6
1917
fi
1918
 
1919
# Extract the first word of "chmod", so it can be a program name with args.
1920
set dummy chmod; ac_word=$2
1921
echo "$as_me:1921: checking for $ac_word" >&5
1922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923
if test "${ac_cv_path_CHMOD+set}" = set; then
1924
  echo $ECHO_N "(cached) $ECHO_C" >&6
1925
else
1926
  case $CHMOD in
1927
  [\\/]* | ?:[\\/]*)
1928
  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1929
  ;;
1930
  *)
1931
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1932
ac_dummy="$PATH"
1933
for ac_dir in $ac_dummy; do
1934
  IFS=$ac_save_IFS
1935
  test -z "$ac_dir" && ac_dir=.
1936
  if $as_executable_p "$ac_dir/$ac_word"; then
1937
   ac_cv_path_CHMOD="$ac_dir/$ac_word"
1938
   echo "$as_me:1938: found $ac_dir/$ac_word" >&5
1939
   break
1940
fi
1941
done
1942
 
1943
  ;;
1944
esac
1945
fi
1946
CHMOD=$ac_cv_path_CHMOD
1947
 
1948
if test -n "$CHMOD"; then
1949
  echo "$as_me:1949: result: $CHMOD" >&5
1950
echo "${ECHO_T}$CHMOD" >&6
1951
else
1952
  echo "$as_me:1952: result: no" >&5
1953
echo "${ECHO_T}no" >&6
1954
fi
1955
 
1956
# Extract the first word of "sort", so it can be a program name with args.
1957
set dummy sort; ac_word=$2
1958
echo "$as_me:1958: checking for $ac_word" >&5
1959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960
if test "${ac_cv_path_SORT+set}" = set; then
1961
  echo $ECHO_N "(cached) $ECHO_C" >&6
1962
else
1963
  case $SORT in
1964
  [\\/]* | ?:[\\/]*)
1965
  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1966
  ;;
1967
  *)
1968
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1969
ac_dummy="$PATH"
1970
for ac_dir in $ac_dummy; do
1971
  IFS=$ac_save_IFS
1972
  test -z "$ac_dir" && ac_dir=.
1973
  if $as_executable_p "$ac_dir/$ac_word"; then
1974
   ac_cv_path_SORT="$ac_dir/$ac_word"
1975
   echo "$as_me:1975: found $ac_dir/$ac_word" >&5
1976
   break
1977
fi
1978
done
1979
 
1980
  ;;
1981
esac
1982
fi
1983
SORT=$ac_cv_path_SORT
1984
 
1985
if test -n "$SORT"; then
1986
  echo "$as_me:1986: result: $SORT" >&5
1987
echo "${ECHO_T}$SORT" >&6
1988
else
1989
  echo "$as_me:1989: result: no" >&5
1990
echo "${ECHO_T}no" >&6
1991
fi
1992
 
1993
# Extract the first word of "perl", so it can be a program name with args.
1994
set dummy perl; ac_word=$2
1995
echo "$as_me:1995: checking for $ac_word" >&5
1996
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997
if test "${ac_cv_path_PERL+set}" = set; then
1998
  echo $ECHO_N "(cached) $ECHO_C" >&6
1999
else
2000
  case $PERL in
2001
  [\\/]* | ?:[\\/]*)
2002
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2003
  ;;
2004
  *)
2005
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2006
ac_dummy="$PATH"
2007
for ac_dir in $ac_dummy; do
2008
  IFS=$ac_save_IFS
2009
  test -z "$ac_dir" && ac_dir=.
2010
  if $as_executable_p "$ac_dir/$ac_word"; then
2011
   ac_cv_path_PERL="$ac_dir/$ac_word"
2012
   echo "$as_me:2012: found $ac_dir/$ac_word" >&5
2013
   break
2014
fi
2015
done
2016
 
2017
  ;;
2018
esac
2019
fi
2020
PERL=$ac_cv_path_PERL
2021
 
2022
if test -n "$PERL"; then
2023
  echo "$as_me:2023: result: $PERL" >&5
2024
echo "${ECHO_T}$PERL" >&6
2025
else
2026
  echo "$as_me:2026: result: no" >&5
2027
echo "${ECHO_T}no" >&6
2028
fi
2029
 
2030
if test -z "$PERL" ; then
2031
{ echo "$as_me:2031: WARNING: ***
2032
   perl was not found
2033
   Note: Some tools will not be built." >&5
2034
echo "$as_me: WARNING: ***
2035
   perl was not found
2036
   Note: Some tools will not be built." >&2;}
2037
fi
2038
 
2039
# Extract the first word of "touch", so it can be a program name with args.
2040
set dummy touch; ac_word=$2
2041
echo "$as_me:2041: checking for $ac_word" >&5
2042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043
if test "${ac_cv_path_TOUCH+set}" = set; then
2044
  echo $ECHO_N "(cached) $ECHO_C" >&6
2045
else
2046
  case $TOUCH in
2047
  [\\/]* | ?:[\\/]*)
2048
  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2049
  ;;
2050
  *)
2051
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2052
ac_dummy="$PATH"
2053
for ac_dir in $ac_dummy; do
2054
  IFS=$ac_save_IFS
2055
  test -z "$ac_dir" && ac_dir=.
2056
  if $as_executable_p "$ac_dir/$ac_word"; then
2057
   ac_cv_path_TOUCH="$ac_dir/$ac_word"
2058
   echo "$as_me:2058: found $ac_dir/$ac_word" >&5
2059
   break
2060
fi
2061
done
2062
 
2063
  ;;
2064
esac
2065
fi
2066
TOUCH=$ac_cv_path_TOUCH
2067
 
2068
if test -n "$TOUCH"; then
2069
  echo "$as_me:2069: result: $TOUCH" >&5
2070
echo "${ECHO_T}$TOUCH" >&6
2071
else
2072
  echo "$as_me:2072: result: no" >&5
2073
echo "${ECHO_T}no" >&6
2074
fi
2075
 
2076
# Extract the first word of "cmp", so it can be a program name with args.
2077
set dummy cmp; ac_word=$2
2078
echo "$as_me:2078: checking for $ac_word" >&5
2079
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080
if test "${ac_cv_path_CMP+set}" = set; then
2081
  echo $ECHO_N "(cached) $ECHO_C" >&6
2082
else
2083
  case $CMP in
2084
  [\\/]* | ?:[\\/]*)
2085
  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
2086
  ;;
2087
  *)
2088
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2089
ac_dummy="$PATH"
2090
for ac_dir in $ac_dummy; do
2091
  IFS=$ac_save_IFS
2092
  test -z "$ac_dir" && ac_dir=.
2093
  if $as_executable_p "$ac_dir/$ac_word"; then
2094
   ac_cv_path_CMP="$ac_dir/$ac_word"
2095
   echo "$as_me:2095: found $ac_dir/$ac_word" >&5
2096
   break
2097
fi
2098
done
2099
 
2100
  ;;
2101
esac
2102
fi
2103
CMP=$ac_cv_path_CMP
2104
 
2105
if test -n "$CMP"; then
2106
  echo "$as_me:2106: result: $CMP" >&5
2107
echo "${ECHO_T}$CMP" >&6
2108
else
2109
  echo "$as_me:2109: result: no" >&5
2110
echo "${ECHO_T}no" >&6
2111
fi
2112
 
2113
# Extract the first word of "sed", so it can be a program name with args.
2114
set dummy sed; ac_word=$2
2115
echo "$as_me:2115: checking for $ac_word" >&5
2116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117
if test "${ac_cv_path_SED+set}" = set; then
2118
  echo $ECHO_N "(cached) $ECHO_C" >&6
2119
else
2120
  case $SED in
2121
  [\\/]* | ?:[\\/]*)
2122
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
2123
  ;;
2124
  *)
2125
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2126
ac_dummy="$PATH"
2127
for ac_dir in $ac_dummy; do
2128
  IFS=$ac_save_IFS
2129
  test -z "$ac_dir" && ac_dir=.
2130
  if $as_executable_p "$ac_dir/$ac_word"; then
2131
   ac_cv_path_SED="$ac_dir/$ac_word"
2132
   echo "$as_me:2132: found $ac_dir/$ac_word" >&5
2133
   break
2134
fi
2135
done
2136
 
2137
  ;;
2138
esac
2139
fi
2140
SED=$ac_cv_path_SED
2141
 
2142
if test -n "$SED"; then
2143
  echo "$as_me:2143: result: $SED" >&5
2144
echo "${ECHO_T}$SED" >&6
2145
else
2146
  echo "$as_me:2146: result: no" >&5
2147
echo "${ECHO_T}no" >&6
2148
fi
2149
 
2150
for ac_prog in gm4 m4
2151
do
2152
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2153
set dummy $ac_prog; ac_word=$2
2154
echo "$as_me:2154: checking for $ac_word" >&5
2155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156
if test "${ac_cv_path_M4+set}" = set; then
2157
  echo $ECHO_N "(cached) $ECHO_C" >&6
2158
else
2159
  case $M4 in
2160
  [\\/]* | ?:[\\/]*)
2161
  ac_cv_path_M4="$M4" # Let the user override the test with a path.
2162
  ;;
2163
  *)
2164
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2165
ac_dummy="$PATH"
2166
for ac_dir in $ac_dummy; do
2167
  IFS=$ac_save_IFS
2168
  test -z "$ac_dir" && ac_dir=.
2169
  if $as_executable_p "$ac_dir/$ac_word"; then
2170
   ac_cv_path_M4="$ac_dir/$ac_word"
2171
   echo "$as_me:2171: found $ac_dir/$ac_word" >&5
2172
   break
2173
fi
2174
done
2175
 
2176
  ;;
2177
esac
2178
fi
2179
M4=$ac_cv_path_M4
2180
 
2181
if test -n "$M4"; then
2182
  echo "$as_me:2182: result: $M4" >&5
2183
echo "${ECHO_T}$M4" >&6
2184
else
2185
  echo "$as_me:2185: result: no" >&5
2186
echo "${ECHO_T}no" >&6
2187
fi
2188
 
2189
  test -n "$M4" && break
2190
done
2191
 
2192
for ac_prog in bash ksh sh
2193
do
2194
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2195
set dummy $ac_prog; ac_word=$2
2196
echo "$as_me:2196: checking for $ac_word" >&5
2197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198
if test "${ac_cv_path_KSH+set}" = set; then
2199
  echo $ECHO_N "(cached) $ECHO_C" >&6
2200
else
2201
  case $KSH in
2202
  [\\/]* | ?:[\\/]*)
2203
  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2204
  ;;
2205
  *)
2206
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2207
ac_dummy="$PATH"
2208
for ac_dir in $ac_dummy; do
2209
  IFS=$ac_save_IFS
2210
  test -z "$ac_dir" && ac_dir=.
2211
  if $as_executable_p "$ac_dir/$ac_word"; then
2212
   ac_cv_path_KSH="$ac_dir/$ac_word"
2213
   echo "$as_me:2213: found $ac_dir/$ac_word" >&5
2214
   break
2215
fi
2216
done
2217
 
2218
  ;;
2219
esac
2220
fi
2221
KSH=$ac_cv_path_KSH
2222
 
2223
if test -n "$KSH"; then
2224
  echo "$as_me:2224: result: $KSH" >&5
2225
echo "${ECHO_T}$KSH" >&6
2226
else
2227
  echo "$as_me:2227: result: no" >&5
2228
echo "${ECHO_T}no" >&6
2229
fi
2230
 
2231
  test -n "$KSH" && break
2232
done
2233
 
2234
if test -z "$KSH"; then
2235
{ { echo "$as_me:2235: error: ***
2236
    Cannot determine a usable shell bash/ksh/sh
2237
    Please contact your system administrator " >&5
2238
echo "$as_me: error: ***
2239
    Cannot determine a usable shell bash/ksh/sh
2240
    Please contact your system administrator " >&2;}
2241
   { (exit 1); exit 1; }; };
2242
fi
2243
 
2244
## BEGIN configure.target.in
2245
 
2246
# Is this a supported CPU?
2247
echo "$as_me:2247: checking if cpu $RTEMS_CPU is supported" >&5
2248
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
2249
# FIXME: Temporary hack
2250
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
2251
  echo "$as_me:2251: result: yes" >&5
2252
echo "${ECHO_T}yes" >&6
2253
else
2254
  { { echo "$as_me:2254: error: no" >&5
2255
echo "$as_me: error: no" >&2;}
2256
   { (exit 1); exit 1; }; }
2257
fi
2258
 
2259
RTEMS_HOST=$host_os
2260
case "${target}" in
2261
  # hpux unix port should go here
2262
  i[34567]86-*linux*)          # unix "simulator" port
2263
        RTEMS_HOST=Linux
2264
        ;;
2265
  i[34567]86-*freebsd*)         # unix "simulator" port
2266
        RTEMS_HOST=FreeBSD
2267
        ;;
2268
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
2269
        RTEMS_HOST=Cygwin
2270
        ;;
2271
  sparc-sun-solaris*)           # unix "simulator" port
2272
        RTEMS_HOST=Solaris
2273
        ;;
2274
  *)
2275
        ;;
2276
esac
2277
 
2278
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
2279
 
2280
rm -f .deps 2>/dev/null
2281
mkdir .deps 2>/dev/null
2282
if test -d .deps; then
2283
  DEPDIR=.deps
2284
else
2285
  # MS-DOS does not allow filenames that begin with a dot.
2286
  DEPDIR=_deps
2287
fi
2288
rmdir .deps 2>/dev/null
2289
 
2290
ac_config_commands="$ac_config_commands depfiles"
2291
 
2292
am_make=${MAKE-make}
2293
cat > confinc << 'END'
2294
doit:
2295
        @echo done
2296
END
2297
# If we don't find an include directive, just comment out the code.
2298
echo "$as_me:2298: checking for style of include used by $am_make" >&5
2299
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2300
am__include="#"
2301
am__quote=
2302
_am_result=none
2303
# First try GNU make style include.
2304
echo "include confinc" > confmf
2305
# We grep out `Entering directory' and `Leaving directory'
2306
# messages which can occur if `w' ends up in MAKEFLAGS.
2307
# In particular we don't look at `^make:' because GNU make might
2308
# be invoked under some other name (usually "gmake"), in which
2309
# case it prints its new name instead of `make'.
2310
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2311
   am__include=include
2312
   am__quote=
2313
   _am_result=GNU
2314
fi
2315
# Now try BSD make style include.
2316
if test "$am__include" = "#"; then
2317
   echo '.include "confinc"' > confmf
2318
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2319
      am__include=.include
2320
      am__quote="\""
2321
      _am_result=BSD
2322
   fi
2323
fi
2324
 
2325
echo "$as_me:2325: result: $_am_result" >&5
2326
echo "${ECHO_T}$_am_result" >&6
2327
rm -f confinc confmf
2328
 
2329
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2330
if test "${enable_dependency_tracking+set}" = set; then
2331
  enableval="$enable_dependency_tracking"
2332
 
2333
fi;
2334
if test "x$enable_dependency_tracking" != xno; then
2335
  am_depcomp="$ac_aux_dir/depcomp"
2336
  AMDEPBACKSLASH='\'
2337
fi
2338
 
2339
if test "x$enable_dependency_tracking" != xno; then
2340
  AMDEP_TRUE=
2341
  AMDEP_FALSE='#'
2342
else
2343
  AMDEP_TRUE='#'
2344
  AMDEP_FALSE=
2345
fi
2346
 
2347
  if test "x$build_alias" != "x$host_alias"; then
2348
  rtems_tool_prefix=${ac_tool_prefix}
2349
fi
2350
 
2351
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
2352
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
2353
echo "$as_me:2353: checking for $ac_word" >&5
2354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355
if test "${ac_cv_prog_CC+set}" = set; then
2356
  echo $ECHO_N "(cached) $ECHO_C" >&6
2357
else
2358
  if test -n "$CC"; then
2359
  ac_cv_prog_CC="$CC" # Let the user override the test.
2360
else
2361
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2362
ac_dummy="$PATH"
2363
for ac_dir in $ac_dummy; do
2364
  IFS=$ac_save_IFS
2365
  test -z "$ac_dir" && ac_dir=.
2366
  $as_executable_p "$ac_dir/$ac_word" || continue
2367
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
2368
echo "$as_me:2368: found $ac_dir/$ac_word" >&5
2369
break
2370
done
2371
 
2372
fi
2373
fi
2374
CC=$ac_cv_prog_CC
2375
if test -n "$CC"; then
2376
  echo "$as_me:2376: result: $CC" >&5
2377
echo "${ECHO_T}$CC" >&6
2378
else
2379
  echo "$as_me:2379: result: no" >&5
2380
echo "${ECHO_T}no" >&6
2381
fi
2382
 
2383
test -z "$CC" && \
2384
  { { echo "$as_me:2384: error: no acceptable cc found in \$PATH" >&5
2385
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2386
   { (exit 1); exit 1; }; }
2387
ac_ext=c
2388
ac_cpp='$CPP $CPPFLAGS'
2389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
if test -n "$ac_tool_prefix"; then
2393
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395
echo "$as_me:2395: checking for $ac_word" >&5
2396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397
if test "${ac_cv_prog_CC+set}" = set; then
2398
  echo $ECHO_N "(cached) $ECHO_C" >&6
2399
else
2400
  if test -n "$CC"; then
2401
  ac_cv_prog_CC="$CC" # Let the user override the test.
2402
else
2403
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2404
ac_dummy="$PATH"
2405
for ac_dir in $ac_dummy; do
2406
  IFS=$ac_save_IFS
2407
  test -z "$ac_dir" && ac_dir=.
2408
  $as_executable_p "$ac_dir/$ac_word" || continue
2409
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410
echo "$as_me:2410: found $ac_dir/$ac_word" >&5
2411
break
2412
done
2413
 
2414
fi
2415
fi
2416
CC=$ac_cv_prog_CC
2417
if test -n "$CC"; then
2418
  echo "$as_me:2418: result: $CC" >&5
2419
echo "${ECHO_T}$CC" >&6
2420
else
2421
  echo "$as_me:2421: result: no" >&5
2422
echo "${ECHO_T}no" >&6
2423
fi
2424
 
2425
fi
2426
if test -z "$ac_cv_prog_CC"; then
2427
  ac_ct_CC=$CC
2428
  # Extract the first word of "gcc", so it can be a program name with args.
2429
set dummy gcc; ac_word=$2
2430
echo "$as_me:2430: checking for $ac_word" >&5
2431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433
  echo $ECHO_N "(cached) $ECHO_C" >&6
2434
else
2435
  if test -n "$ac_ct_CC"; then
2436
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437
else
2438
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2439
ac_dummy="$PATH"
2440
for ac_dir in $ac_dummy; do
2441
  IFS=$ac_save_IFS
2442
  test -z "$ac_dir" && ac_dir=.
2443
  $as_executable_p "$ac_dir/$ac_word" || continue
2444
ac_cv_prog_ac_ct_CC="gcc"
2445
echo "$as_me:2445: found $ac_dir/$ac_word" >&5
2446
break
2447
done
2448
 
2449
fi
2450
fi
2451
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452
if test -n "$ac_ct_CC"; then
2453
  echo "$as_me:2453: result: $ac_ct_CC" >&5
2454
echo "${ECHO_T}$ac_ct_CC" >&6
2455
else
2456
  echo "$as_me:2456: result: no" >&5
2457
echo "${ECHO_T}no" >&6
2458
fi
2459
 
2460
  CC=$ac_ct_CC
2461
else
2462
  CC="$ac_cv_prog_CC"
2463
fi
2464
 
2465
if test -z "$CC"; then
2466
  if test -n "$ac_tool_prefix"; then
2467
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2468
set dummy ${ac_tool_prefix}cc; ac_word=$2
2469
echo "$as_me:2469: checking for $ac_word" >&5
2470
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471
if test "${ac_cv_prog_CC+set}" = set; then
2472
  echo $ECHO_N "(cached) $ECHO_C" >&6
2473
else
2474
  if test -n "$CC"; then
2475
  ac_cv_prog_CC="$CC" # Let the user override the test.
2476
else
2477
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2478
ac_dummy="$PATH"
2479
for ac_dir in $ac_dummy; do
2480
  IFS=$ac_save_IFS
2481
  test -z "$ac_dir" && ac_dir=.
2482
  $as_executable_p "$ac_dir/$ac_word" || continue
2483
ac_cv_prog_CC="${ac_tool_prefix}cc"
2484
echo "$as_me:2484: found $ac_dir/$ac_word" >&5
2485
break
2486
done
2487
 
2488
fi
2489
fi
2490
CC=$ac_cv_prog_CC
2491
if test -n "$CC"; then
2492
  echo "$as_me:2492: result: $CC" >&5
2493
echo "${ECHO_T}$CC" >&6
2494
else
2495
  echo "$as_me:2495: result: no" >&5
2496
echo "${ECHO_T}no" >&6
2497
fi
2498
 
2499
fi
2500
if test -z "$ac_cv_prog_CC"; then
2501
  ac_ct_CC=$CC
2502
  # Extract the first word of "cc", so it can be a program name with args.
2503
set dummy cc; ac_word=$2
2504
echo "$as_me:2504: checking for $ac_word" >&5
2505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2506
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2507
  echo $ECHO_N "(cached) $ECHO_C" >&6
2508
else
2509
  if test -n "$ac_ct_CC"; then
2510
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2511
else
2512
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2513
ac_dummy="$PATH"
2514
for ac_dir in $ac_dummy; do
2515
  IFS=$ac_save_IFS
2516
  test -z "$ac_dir" && ac_dir=.
2517
  $as_executable_p "$ac_dir/$ac_word" || continue
2518
ac_cv_prog_ac_ct_CC="cc"
2519
echo "$as_me:2519: found $ac_dir/$ac_word" >&5
2520
break
2521
done
2522
 
2523
fi
2524
fi
2525
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526
if test -n "$ac_ct_CC"; then
2527
  echo "$as_me:2527: result: $ac_ct_CC" >&5
2528
echo "${ECHO_T}$ac_ct_CC" >&6
2529
else
2530
  echo "$as_me:2530: result: no" >&5
2531
echo "${ECHO_T}no" >&6
2532
fi
2533
 
2534
  CC=$ac_ct_CC
2535
else
2536
  CC="$ac_cv_prog_CC"
2537
fi
2538
 
2539
fi
2540
if test -z "$CC"; then
2541
  # Extract the first word of "cc", so it can be a program name with args.
2542
set dummy cc; ac_word=$2
2543
echo "$as_me:2543: checking for $ac_word" >&5
2544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545
if test "${ac_cv_prog_CC+set}" = set; then
2546
  echo $ECHO_N "(cached) $ECHO_C" >&6
2547
else
2548
  if test -n "$CC"; then
2549
  ac_cv_prog_CC="$CC" # Let the user override the test.
2550
else
2551
  ac_prog_rejected=no
2552
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2553
ac_dummy="$PATH"
2554
for ac_dir in $ac_dummy; do
2555
  IFS=$ac_save_IFS
2556
  test -z "$ac_dir" && ac_dir=.
2557
  $as_executable_p "$ac_dir/$ac_word" || continue
2558
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2559
  ac_prog_rejected=yes
2560
  continue
2561
fi
2562
ac_cv_prog_CC="cc"
2563
echo "$as_me:2563: found $ac_dir/$ac_word" >&5
2564
break
2565
done
2566
 
2567
if test $ac_prog_rejected = yes; then
2568
  # We found a bogon in the path, so make sure we never use it.
2569
  set dummy $ac_cv_prog_CC
2570
  shift
2571
  if test $# != 0; then
2572
    # We chose a different compiler from the bogus one.
2573
    # However, it has the same basename, so the bogon will be chosen
2574
    # first if we set CC to just the basename; use the full file name.
2575
    shift
2576
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2577
    shift
2578
    ac_cv_prog_CC="$@"
2579
  fi
2580
fi
2581
fi
2582
fi
2583
CC=$ac_cv_prog_CC
2584
if test -n "$CC"; then
2585
  echo "$as_me:2585: result: $CC" >&5
2586
echo "${ECHO_T}$CC" >&6
2587
else
2588
  echo "$as_me:2588: result: no" >&5
2589
echo "${ECHO_T}no" >&6
2590
fi
2591
 
2592
fi
2593
if test -z "$CC"; then
2594
  if test -n "$ac_tool_prefix"; then
2595
  for ac_prog in cl
2596
  do
2597
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599
echo "$as_me:2599: checking for $ac_word" >&5
2600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601
if test "${ac_cv_prog_CC+set}" = set; then
2602
  echo $ECHO_N "(cached) $ECHO_C" >&6
2603
else
2604
  if test -n "$CC"; then
2605
  ac_cv_prog_CC="$CC" # Let the user override the test.
2606
else
2607
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2608
ac_dummy="$PATH"
2609
for ac_dir in $ac_dummy; do
2610
  IFS=$ac_save_IFS
2611
  test -z "$ac_dir" && ac_dir=.
2612
  $as_executable_p "$ac_dir/$ac_word" || continue
2613
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2614
echo "$as_me:2614: found $ac_dir/$ac_word" >&5
2615
break
2616
done
2617
 
2618
fi
2619
fi
2620
CC=$ac_cv_prog_CC
2621
if test -n "$CC"; then
2622
  echo "$as_me:2622: result: $CC" >&5
2623
echo "${ECHO_T}$CC" >&6
2624
else
2625
  echo "$as_me:2625: result: no" >&5
2626
echo "${ECHO_T}no" >&6
2627
fi
2628
 
2629
    test -n "$CC" && break
2630
  done
2631
fi
2632
if test -z "$CC"; then
2633
  ac_ct_CC=$CC
2634
  for ac_prog in cl
2635
do
2636
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2637
set dummy $ac_prog; ac_word=$2
2638
echo "$as_me:2638: checking for $ac_word" >&5
2639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2641
  echo $ECHO_N "(cached) $ECHO_C" >&6
2642
else
2643
  if test -n "$ac_ct_CC"; then
2644
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645
else
2646
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2647
ac_dummy="$PATH"
2648
for ac_dir in $ac_dummy; do
2649
  IFS=$ac_save_IFS
2650
  test -z "$ac_dir" && ac_dir=.
2651
  $as_executable_p "$ac_dir/$ac_word" || continue
2652
ac_cv_prog_ac_ct_CC="$ac_prog"
2653
echo "$as_me:2653: found $ac_dir/$ac_word" >&5
2654
break
2655
done
2656
 
2657
fi
2658
fi
2659
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660
if test -n "$ac_ct_CC"; then
2661
  echo "$as_me:2661: result: $ac_ct_CC" >&5
2662
echo "${ECHO_T}$ac_ct_CC" >&6
2663
else
2664
  echo "$as_me:2664: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2666
fi
2667
 
2668
  test -n "$ac_ct_CC" && break
2669
done
2670
 
2671
  CC=$ac_ct_CC
2672
fi
2673
 
2674
fi
2675
 
2676
test -z "$CC" && { { echo "$as_me:2676: error: no acceptable cc found in \$PATH" >&5
2677
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2678
   { (exit 1); exit 1; }; }
2679
 
2680
# Provide some information about the compiler.
2681
echo "$as_me:2681:" \
2682
     "checking for C compiler version" >&5
2683
ac_compiler=`set X $ac_compile; echo $2`
2684
{ (eval echo "$as_me:2684: \"$ac_compiler --version &5\"") >&5
2685
  (eval $ac_compiler --version &5) 2>&5
2686
  ac_status=$?
2687
  echo "$as_me:2687: \$? = $ac_status" >&5
2688
  (exit $ac_status); }
2689
{ (eval echo "$as_me:2689: \"$ac_compiler -v &5\"") >&5
2690
  (eval $ac_compiler -v &5) 2>&5
2691
  ac_status=$?
2692
  echo "$as_me:2692: \$? = $ac_status" >&5
2693
  (exit $ac_status); }
2694
{ (eval echo "$as_me:2694: \"$ac_compiler -V &5\"") >&5
2695
  (eval $ac_compiler -V &5) 2>&5
2696
  ac_status=$?
2697
  echo "$as_me:2697: \$? = $ac_status" >&5
2698
  (exit $ac_status); }
2699
 
2700
cat >conftest.$ac_ext <<_ACEOF
2701
#line 2701 "configure"
2702
#include "confdefs.h"
2703
 
2704
int
2705
main ()
2706
{
2707
 
2708
  ;
2709
  return 0;
2710
}
2711
_ACEOF
2712
ac_clean_files_save=$ac_clean_files
2713
ac_clean_files="$ac_clean_files a.out a.exe"
2714
# Try to create an executable without -o first, disregard a.out.
2715
# It will help us diagnose broken compilers, and finding out an intuition
2716
# of exeext.
2717
echo "$as_me:2717: checking for C compiler default output" >&5
2718
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2719
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720
if { (eval echo "$as_me:2720: \"$ac_link_default\"") >&5
2721
  (eval $ac_link_default) 2>&5
2722
  ac_status=$?
2723
  echo "$as_me:2723: \$? = $ac_status" >&5
2724
  (exit $ac_status); }; then
2725
  # Find the output, starting from the most likely.  This scheme is
2726
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2727
# resort.
2728
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2729
                ls a.out conftest 2>/dev/null;
2730
                ls a.* conftest.* 2>/dev/null`; do
2731
  case $ac_file in
2732
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2733
    a.out ) # We found the default executable, but exeext='' is most
2734
            # certainly right.
2735
            break;;
2736
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2738
          export ac_cv_exeext
2739
          break;;
2740
    * ) break;;
2741
  esac
2742
done
2743
else
2744
  echo "$as_me: failed program was:" >&5
2745
cat conftest.$ac_ext >&5
2746
{ { echo "$as_me:2746: error: C compiler cannot create executables" >&5
2747
echo "$as_me: error: C compiler cannot create executables" >&2;}
2748
   { (exit 77); exit 77; }; }
2749
fi
2750
 
2751
ac_exeext=$ac_cv_exeext
2752
echo "$as_me:2752: result: $ac_file" >&5
2753
echo "${ECHO_T}$ac_file" >&6
2754
 
2755
# Check the compiler produces executables we can run.  If not, either
2756
# the compiler is broken, or we cross compile.
2757
echo "$as_me:2757: checking whether the C compiler works" >&5
2758
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2759
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2760
# If not cross compiling, check that we can run a simple program.
2761
if test "$cross_compiling" != yes; then
2762
  if { ac_try='./$ac_file'
2763
  { (eval echo "$as_me:2763: \"$ac_try\"") >&5
2764
  (eval $ac_try) 2>&5
2765
  ac_status=$?
2766
  echo "$as_me:2766: \$? = $ac_status" >&5
2767
  (exit $ac_status); }; }; then
2768
    cross_compiling=no
2769
  else
2770
    if test "$cross_compiling" = maybe; then
2771
        cross_compiling=yes
2772
    else
2773
        { { echo "$as_me:2773: error: cannot run C compiled programs.
2774
If you meant to cross compile, use \`--host'." >&5
2775
echo "$as_me: error: cannot run C compiled programs.
2776
If you meant to cross compile, use \`--host'." >&2;}
2777
   { (exit 1); exit 1; }; }
2778
    fi
2779
  fi
2780
fi
2781
echo "$as_me:2781: result: yes" >&5
2782
echo "${ECHO_T}yes" >&6
2783
 
2784
rm -f a.out a.exe conftest$ac_cv_exeext
2785
ac_clean_files=$ac_clean_files_save
2786
# Check the compiler produces executables we can run.  If not, either
2787
# the compiler is broken, or we cross compile.
2788
echo "$as_me:2788: checking whether we are cross compiling" >&5
2789
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2790
echo "$as_me:2790: result: $cross_compiling" >&5
2791
echo "${ECHO_T}$cross_compiling" >&6
2792
 
2793
echo "$as_me:2793: checking for executable suffix" >&5
2794
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2795
if { (eval echo "$as_me:2795: \"$ac_link\"") >&5
2796
  (eval $ac_link) 2>&5
2797
  ac_status=$?
2798
  echo "$as_me:2798: \$? = $ac_status" >&5
2799
  (exit $ac_status); }; then
2800
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2801
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2802
# work properly (i.e., refer to `conftest.exe'), while it won't with
2803
# `rm'.
2804
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2805
  case $ac_file in
2806
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2807
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808
          export ac_cv_exeext
2809
          break;;
2810
    * ) break;;
2811
  esac
2812
done
2813
else
2814
  { { echo "$as_me:2814: error: cannot compute EXEEXT: cannot compile and link" >&5
2815
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2816
   { (exit 1); exit 1; }; }
2817
fi
2818
 
2819
rm -f conftest$ac_cv_exeext
2820
echo "$as_me:2820: result: $ac_cv_exeext" >&5
2821
echo "${ECHO_T}$ac_cv_exeext" >&6
2822
 
2823
rm -f conftest.$ac_ext
2824
EXEEXT=$ac_cv_exeext
2825
ac_exeext=$EXEEXT
2826
echo "$as_me:2826: checking for object suffix" >&5
2827
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2828
if test "${ac_cv_objext+set}" = set; then
2829
  echo $ECHO_N "(cached) $ECHO_C" >&6
2830
else
2831
  cat >conftest.$ac_ext <<_ACEOF
2832
#line 2832 "configure"
2833
#include "confdefs.h"
2834
 
2835
int
2836
main ()
2837
{
2838
 
2839
  ;
2840
  return 0;
2841
}
2842
_ACEOF
2843
rm -f conftest.o conftest.obj
2844
if { (eval echo "$as_me:2844: \"$ac_compile\"") >&5
2845
  (eval $ac_compile) 2>&5
2846
  ac_status=$?
2847
  echo "$as_me:2847: \$? = $ac_status" >&5
2848
  (exit $ac_status); }; then
2849
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2850
  case $ac_file in
2851
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2852
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2853
       break;;
2854
  esac
2855
done
2856
else
2857
  echo "$as_me: failed program was:" >&5
2858
cat conftest.$ac_ext >&5
2859
{ { echo "$as_me:2859: error: cannot compute OBJEXT: cannot compile" >&5
2860
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2861
   { (exit 1); exit 1; }; }
2862
fi
2863
 
2864
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2865
fi
2866
echo "$as_me:2866: result: $ac_cv_objext" >&5
2867
echo "${ECHO_T}$ac_cv_objext" >&6
2868
OBJEXT=$ac_cv_objext
2869
ac_objext=$OBJEXT
2870
echo "$as_me:2870: checking whether we are using the GNU C compiler" >&5
2871
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2872
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2873
  echo $ECHO_N "(cached) $ECHO_C" >&6
2874
else
2875
  cat >conftest.$ac_ext <<_ACEOF
2876
#line 2876 "configure"
2877
#include "confdefs.h"
2878
 
2879
int
2880
main ()
2881
{
2882
#ifndef __GNUC__
2883
       choke me
2884
#endif
2885
 
2886
  ;
2887
  return 0;
2888
}
2889
_ACEOF
2890
rm -f conftest.$ac_objext
2891
if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892
  (eval $ac_compile) 2>&5
2893
  ac_status=$?
2894
  echo "$as_me:2894: \$? = $ac_status" >&5
2895
  (exit $ac_status); } &&
2896
         { ac_try='test -s conftest.$ac_objext'
2897
  { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2898
  (eval $ac_try) 2>&5
2899
  ac_status=$?
2900
  echo "$as_me:2900: \$? = $ac_status" >&5
2901
  (exit $ac_status); }; }; then
2902
  ac_compiler_gnu=yes
2903
else
2904
  echo "$as_me: failed program was:" >&5
2905
cat conftest.$ac_ext >&5
2906
ac_compiler_gnu=no
2907
fi
2908
rm -f conftest.$ac_objext conftest.$ac_ext
2909
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2910
 
2911
fi
2912
echo "$as_me:2912: result: $ac_cv_c_compiler_gnu" >&5
2913
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2914
GCC=`test $ac_compiler_gnu = yes && echo yes`
2915
ac_test_CFLAGS=${CFLAGS+set}
2916
ac_save_CFLAGS=$CFLAGS
2917
CFLAGS="-g"
2918
echo "$as_me:2918: checking whether $CC accepts -g" >&5
2919
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2920
if test "${ac_cv_prog_cc_g+set}" = set; then
2921
  echo $ECHO_N "(cached) $ECHO_C" >&6
2922
else
2923
  cat >conftest.$ac_ext <<_ACEOF
2924
#line 2924 "configure"
2925
#include "confdefs.h"
2926
 
2927
int
2928
main ()
2929
{
2930
 
2931
  ;
2932
  return 0;
2933
}
2934
_ACEOF
2935
rm -f conftest.$ac_objext
2936
if { (eval echo "$as_me:2936: \"$ac_compile\"") >&5
2937
  (eval $ac_compile) 2>&5
2938
  ac_status=$?
2939
  echo "$as_me:2939: \$? = $ac_status" >&5
2940
  (exit $ac_status); } &&
2941
         { ac_try='test -s conftest.$ac_objext'
2942
  { (eval echo "$as_me:2942: \"$ac_try\"") >&5
2943
  (eval $ac_try) 2>&5
2944
  ac_status=$?
2945
  echo "$as_me:2945: \$? = $ac_status" >&5
2946
  (exit $ac_status); }; }; then
2947
  ac_cv_prog_cc_g=yes
2948
else
2949
  echo "$as_me: failed program was:" >&5
2950
cat conftest.$ac_ext >&5
2951
ac_cv_prog_cc_g=no
2952
fi
2953
rm -f conftest.$ac_objext conftest.$ac_ext
2954
fi
2955
echo "$as_me:2955: result: $ac_cv_prog_cc_g" >&5
2956
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2957
if test "$ac_test_CFLAGS" = set; then
2958
  CFLAGS=$ac_save_CFLAGS
2959
elif test $ac_cv_prog_cc_g = yes; then
2960
  if test "$GCC" = yes; then
2961
    CFLAGS="-g -O2"
2962
  else
2963
    CFLAGS="-g"
2964
  fi
2965
else
2966
  if test "$GCC" = yes; then
2967
    CFLAGS="-O2"
2968
  else
2969
    CFLAGS=
2970
  fi
2971
fi
2972
# Some people use a C++ compiler to compile C.  Since we use `exit',
2973
# in C++ we need to declare it.  In case someone uses the same compiler
2974
# for both compiling C and C++ we need to have the C++ compiler decide
2975
# the declaration of exit, since it's the most demanding environment.
2976
cat >conftest.$ac_ext <<_ACEOF
2977
#ifndef __cplusplus
2978
  choke me
2979
#endif
2980
_ACEOF
2981
rm -f conftest.$ac_objext
2982
if { (eval echo "$as_me:2982: \"$ac_compile\"") >&5
2983
  (eval $ac_compile) 2>&5
2984
  ac_status=$?
2985
  echo "$as_me:2985: \$? = $ac_status" >&5
2986
  (exit $ac_status); } &&
2987
         { ac_try='test -s conftest.$ac_objext'
2988
  { (eval echo "$as_me:2988: \"$ac_try\"") >&5
2989
  (eval $ac_try) 2>&5
2990
  ac_status=$?
2991
  echo "$as_me:2991: \$? = $ac_status" >&5
2992
  (exit $ac_status); }; }; then
2993
  for ac_declaration in \
2994
   ''\
2995
   '#include ' \
2996
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2997
   'extern "C" void std::exit (int); using std::exit;' \
2998
   'extern "C" void exit (int) throw ();' \
2999
   'extern "C" void exit (int);' \
3000
   'void exit (int);'
3001
do
3002
  cat >conftest.$ac_ext <<_ACEOF
3003
#line 3003 "configure"
3004
#include "confdefs.h"
3005
#include 
3006
$ac_declaration
3007
int
3008
main ()
3009
{
3010
exit (42);
3011
  ;
3012
  return 0;
3013
}
3014
_ACEOF
3015
rm -f conftest.$ac_objext
3016
if { (eval echo "$as_me:3016: \"$ac_compile\"") >&5
3017
  (eval $ac_compile) 2>&5
3018
  ac_status=$?
3019
  echo "$as_me:3019: \$? = $ac_status" >&5
3020
  (exit $ac_status); } &&
3021
         { ac_try='test -s conftest.$ac_objext'
3022
  { (eval echo "$as_me:3022: \"$ac_try\"") >&5
3023
  (eval $ac_try) 2>&5
3024
  ac_status=$?
3025
  echo "$as_me:3025: \$? = $ac_status" >&5
3026
  (exit $ac_status); }; }; then
3027
  :
3028
else
3029
  echo "$as_me: failed program was:" >&5
3030
cat conftest.$ac_ext >&5
3031
continue
3032
fi
3033
rm -f conftest.$ac_objext conftest.$ac_ext
3034
  cat >conftest.$ac_ext <<_ACEOF
3035
#line 3035 "configure"
3036
#include "confdefs.h"
3037
$ac_declaration
3038
int
3039
main ()
3040
{
3041
exit (42);
3042
  ;
3043
  return 0;
3044
}
3045
_ACEOF
3046
rm -f conftest.$ac_objext
3047
if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
3048
  (eval $ac_compile) 2>&5
3049
  ac_status=$?
3050
  echo "$as_me:3050: \$? = $ac_status" >&5
3051
  (exit $ac_status); } &&
3052
         { ac_try='test -s conftest.$ac_objext'
3053
  { (eval echo "$as_me:3053: \"$ac_try\"") >&5
3054
  (eval $ac_try) 2>&5
3055
  ac_status=$?
3056
  echo "$as_me:3056: \$? = $ac_status" >&5
3057
  (exit $ac_status); }; }; then
3058
  break
3059
else
3060
  echo "$as_me: failed program was:" >&5
3061
cat conftest.$ac_ext >&5
3062
fi
3063
rm -f conftest.$ac_objext conftest.$ac_ext
3064
done
3065
rm -f conftest*
3066
if test -n "$ac_declaration"; then
3067
  echo '#ifdef __cplusplus' >>confdefs.h
3068
  echo $ac_declaration      >>confdefs.h
3069
  echo '#endif'             >>confdefs.h
3070
fi
3071
 
3072
else
3073
  echo "$as_me: failed program was:" >&5
3074
cat conftest.$ac_ext >&5
3075
fi
3076
rm -f conftest.$ac_objext conftest.$ac_ext
3077
ac_ext=c
3078
ac_cpp='$CPP $CPPFLAGS'
3079
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
 
3083
depcc="$CC"   am_compiler_list=
3084
 
3085
echo "$as_me:3085: checking dependency style of $depcc" >&5
3086
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3087
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3088
  echo $ECHO_N "(cached) $ECHO_C" >&6
3089
else
3090
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3091
  # We make a subdir and do the tests there.  Otherwise we can end up
3092
  # making bogus files that we don't know about and never remove.  For
3093
  # instance it was reported that on HP-UX the gcc test will end up
3094
  # making a dummy file named `D' -- because `-MD' means `put the output
3095
  # in D'.
3096
  mkdir conftest.dir
3097
  # Copy depcomp to subdir because otherwise we won't find it if we're
3098
  # using a relative directory.
3099
  cp "$am_depcomp" conftest.dir
3100
  cd conftest.dir
3101
 
3102
  am_cv_CC_dependencies_compiler_type=none
3103
  if test "$am_compiler_list" = ""; then
3104
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3105
  fi
3106
  for depmode in $am_compiler_list; do
3107
    # We need to recreate these files for each test, as the compiler may
3108
    # overwrite some of them when testing with obscure command lines.
3109
    # This happens at least with the AIX C compiler.
3110
    echo '#include "conftest.h"' > conftest.c
3111
    echo 'int i;' > conftest.h
3112
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3113
 
3114
    case $depmode in
3115
    nosideeffect)
3116
      # after this tag, mechanisms are not by side-effect, so they'll
3117
      # only be used when explicitly requested
3118
      if test "x$enable_dependency_tracking" = xyes; then
3119
        continue
3120
      else
3121
        break
3122
      fi
3123
      ;;
3124
    none) break ;;
3125
    esac
3126
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3127
    # mode.  It turns out that the SunPro C++ compiler does not properly
3128
    # handle `-M -o', and we need to detect this.
3129
    if depmode=$depmode \
3130
       source=conftest.c object=conftest.o \
3131
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3132
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3133
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3134
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135
      am_cv_CC_dependencies_compiler_type=$depmode
3136
      break
3137
    fi
3138
  done
3139
 
3140
  cd ..
3141
  rm -rf conftest.dir
3142
else
3143
  am_cv_CC_dependencies_compiler_type=none
3144
fi
3145
 
3146
fi
3147
echo "$as_me:3147: result: $am_cv_CC_dependencies_compiler_type" >&5
3148
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3149
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3150
 
3151
ac_ext=c
3152
ac_cpp='$CPP $CPPFLAGS'
3153
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
echo "$as_me:3156: checking how to run the C preprocessor" >&5
3157
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3158
# On Suns, sometimes $CPP names a directory.
3159
if test -n "$CPP" && test -d "$CPP"; then
3160
  CPP=
3161
fi
3162
if test -z "$CPP"; then
3163
  if test "${ac_cv_prog_CPP+set}" = set; then
3164
  echo $ECHO_N "(cached) $ECHO_C" >&6
3165
else
3166
      # Double quotes because CPP needs to be expanded
3167
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3168
    do
3169
      ac_preproc_ok=false
3170
for ac_c_preproc_warn_flag in '' yes
3171
do
3172
  # Use a header file that comes with gcc, so configuring glibc
3173
  # with a fresh cross-compiler works.
3174
  # On the NeXT, cc -E runs the code through the compiler's parser,
3175
  # not just through cpp. "Syntax error" is here to catch this case.
3176
  cat >conftest.$ac_ext <<_ACEOF
3177
#line 3177 "configure"
3178
#include "confdefs.h"
3179
#include 
3180
                     Syntax error
3181
_ACEOF
3182
if { (eval echo "$as_me:3182: \"$ac_cpp conftest.$ac_ext\"") >&5
3183
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184
  ac_status=$?
3185
  egrep -v '^ *\+' conftest.er1 >conftest.err
3186
  rm -f conftest.er1
3187
  cat conftest.err >&5
3188
  echo "$as_me:3188: \$? = $ac_status" >&5
3189
  (exit $ac_status); } >/dev/null; then
3190
  if test -s conftest.err; then
3191
    ac_cpp_err=$ac_c_preproc_warn_flag
3192
  else
3193
    ac_cpp_err=
3194
  fi
3195
else
3196
  ac_cpp_err=yes
3197
fi
3198
if test -z "$ac_cpp_err"; then
3199
  :
3200
else
3201
  echo "$as_me: failed program was:" >&5
3202
  cat conftest.$ac_ext >&5
3203
  # Broken: fails on valid input.
3204
continue
3205
fi
3206
rm -f conftest.err conftest.$ac_ext
3207
 
3208
  # OK, works on sane cases.  Now check whether non-existent headers
3209
  # can be detected and how.
3210
  cat >conftest.$ac_ext <<_ACEOF
3211
#line 3211 "configure"
3212
#include "confdefs.h"
3213
#include 
3214
_ACEOF
3215
if { (eval echo "$as_me:3215: \"$ac_cpp conftest.$ac_ext\"") >&5
3216
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217
  ac_status=$?
3218
  egrep -v '^ *\+' conftest.er1 >conftest.err
3219
  rm -f conftest.er1
3220
  cat conftest.err >&5
3221
  echo "$as_me:3221: \$? = $ac_status" >&5
3222
  (exit $ac_status); } >/dev/null; then
3223
  if test -s conftest.err; then
3224
    ac_cpp_err=$ac_c_preproc_warn_flag
3225
  else
3226
    ac_cpp_err=
3227
  fi
3228
else
3229
  ac_cpp_err=yes
3230
fi
3231
if test -z "$ac_cpp_err"; then
3232
  # Broken: success on invalid input.
3233
continue
3234
else
3235
  echo "$as_me: failed program was:" >&5
3236
  cat conftest.$ac_ext >&5
3237
  # Passes both tests.
3238
ac_preproc_ok=:
3239
break
3240
fi
3241
rm -f conftest.err conftest.$ac_ext
3242
 
3243
done
3244
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245
rm -f conftest.err conftest.$ac_ext
3246
if $ac_preproc_ok; then
3247
  break
3248
fi
3249
 
3250
    done
3251
    ac_cv_prog_CPP=$CPP
3252
 
3253
fi
3254
  CPP=$ac_cv_prog_CPP
3255
else
3256
  ac_cv_prog_CPP=$CPP
3257
fi
3258
echo "$as_me:3258: result: $CPP" >&5
3259
echo "${ECHO_T}$CPP" >&6
3260
ac_preproc_ok=false
3261
for ac_c_preproc_warn_flag in '' yes
3262
do
3263
  # Use a header file that comes with gcc, so configuring glibc
3264
  # with a fresh cross-compiler works.
3265
  # On the NeXT, cc -E runs the code through the compiler's parser,
3266
  # not just through cpp. "Syntax error" is here to catch this case.
3267
  cat >conftest.$ac_ext <<_ACEOF
3268
#line 3268 "configure"
3269
#include "confdefs.h"
3270
#include 
3271
                     Syntax error
3272
_ACEOF
3273
if { (eval echo "$as_me:3273: \"$ac_cpp conftest.$ac_ext\"") >&5
3274
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3275
  ac_status=$?
3276
  egrep -v '^ *\+' conftest.er1 >conftest.err
3277
  rm -f conftest.er1
3278
  cat conftest.err >&5
3279
  echo "$as_me:3279: \$? = $ac_status" >&5
3280
  (exit $ac_status); } >/dev/null; then
3281
  if test -s conftest.err; then
3282
    ac_cpp_err=$ac_c_preproc_warn_flag
3283
  else
3284
    ac_cpp_err=
3285
  fi
3286
else
3287
  ac_cpp_err=yes
3288
fi
3289
if test -z "$ac_cpp_err"; then
3290
  :
3291
else
3292
  echo "$as_me: failed program was:" >&5
3293
  cat conftest.$ac_ext >&5
3294
  # Broken: fails on valid input.
3295
continue
3296
fi
3297
rm -f conftest.err conftest.$ac_ext
3298
 
3299
  # OK, works on sane cases.  Now check whether non-existent headers
3300
  # can be detected and how.
3301
  cat >conftest.$ac_ext <<_ACEOF
3302
#line 3302 "configure"
3303
#include "confdefs.h"
3304
#include 
3305
_ACEOF
3306
if { (eval echo "$as_me:3306: \"$ac_cpp conftest.$ac_ext\"") >&5
3307
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3308
  ac_status=$?
3309
  egrep -v '^ *\+' conftest.er1 >conftest.err
3310
  rm -f conftest.er1
3311
  cat conftest.err >&5
3312
  echo "$as_me:3312: \$? = $ac_status" >&5
3313
  (exit $ac_status); } >/dev/null; then
3314
  if test -s conftest.err; then
3315
    ac_cpp_err=$ac_c_preproc_warn_flag
3316
  else
3317
    ac_cpp_err=
3318
  fi
3319
else
3320
  ac_cpp_err=yes
3321
fi
3322
if test -z "$ac_cpp_err"; then
3323
  # Broken: success on invalid input.
3324
continue
3325
else
3326
  echo "$as_me: failed program was:" >&5
3327
  cat conftest.$ac_ext >&5
3328
  # Passes both tests.
3329
ac_preproc_ok=:
3330
break
3331
fi
3332
rm -f conftest.err conftest.$ac_ext
3333
 
3334
done
3335
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336
rm -f conftest.err conftest.$ac_ext
3337
if $ac_preproc_ok; then
3338
  :
3339
else
3340
  { { echo "$as_me:3340: error: C preprocessor \"$CPP\" fails sanity check" >&5
3341
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3342
   { (exit 1); exit 1; }; }
3343
fi
3344
 
3345
ac_ext=c
3346
ac_cpp='$CPP $CPPFLAGS'
3347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
 
3351
if test x"$GCC" = x"yes"; then
3352
  RTEMS_USE_GCC_TRUE=
3353
  RTEMS_USE_GCC_FALSE='#'
3354
else
3355
  RTEMS_USE_GCC_TRUE='#'
3356
  RTEMS_USE_GCC_FALSE=
3357
fi
3358
 
3359
echo "$as_me:3359: checking whether $CC accepts -specs" >&5
3360
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
3361
if test "${rtems_cv_gcc_specs+set}" = set; then
3362
  echo $ECHO_N "(cached) $ECHO_C" >&6
3363
else
3364
 
3365
rtems_cv_gcc_specs=no
3366
if test x"$GCC" = x"yes"; then
3367
  touch confspec
3368
  echo 'void f(){}' >conftest.c
3369
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
3370
    rtems_cv_gcc_specs=yes
3371
  fi
3372
fi
3373
rm -f confspec conftest*
3374
 
3375
fi
3376
echo "$as_me:3376: result: $rtems_cv_gcc_specs" >&5
3377
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
3378
 
3379
echo "$as_me:3379: checking whether $CC accepts --pipe" >&5
3380
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
3381
if test "${rtems_cv_gcc_pipe+set}" = set; then
3382
  echo $ECHO_N "(cached) $ECHO_C" >&6
3383
else
3384
 
3385
rtems_cv_gcc_pipe=no
3386
if test x"$GCC" = x"yes"; then
3387
    echo 'void f(){}' >conftest.c
3388
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
3389
      rtems_cv_gcc_pipe=yes
3390
    fi
3391
    rm -f conftest*
3392
fi
3393
 
3394
fi
3395
echo "$as_me:3395: result: $rtems_cv_gcc_pipe" >&5
3396
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
3397
 
3398
#  if test "$rtems_cv_gcc_specs" = "no"; then
3399
#    AC_MSG_WARN([*** disabling --enable-gcc28])
3400
#      RTEMS_USE_GCC272=yes
3401
#  fi
3402
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
3403
 
3404
if test "$GCC" = yes; then
3405
 
3406
CPPFLAGS="$CPPFLAGS "
3407
 
3408
CFLAGS="-g -Wall"
3409
fi
3410
 
3411
case $build_os in
3412
*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
3413
*) ;;
3414
esac
3415
 
3416
## check for g++
3417
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
3418
 
3419
  if test "x$build_alias" != "x$host_alias"; then
3420
  rtems_tool_prefix=${ac_tool_prefix}
3421
fi
3422
 
3423
  # Extract the first word of "${rtems_tool_prefix}g++", so it can be a program name with args.
3424
set dummy ${rtems_tool_prefix}g++; ac_word=$2
3425
echo "$as_me:3425: checking for $ac_word" >&5
3426
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427
if test "${ac_cv_prog_CXX+set}" = set; then
3428
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
else
3430
  if test -n "$CXX"; then
3431
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3432
else
3433
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3434
ac_dummy="$PATH"
3435
for ac_dir in $ac_dummy; do
3436
  IFS=$ac_save_IFS
3437
  test -z "$ac_dir" && ac_dir=.
3438
  $as_executable_p "$ac_dir/$ac_word" || continue
3439
ac_cv_prog_CXX="${rtems_tool_prefix}g++"
3440
echo "$as_me:3440: found $ac_dir/$ac_word" >&5
3441
break
3442
done
3443
 
3444
fi
3445
fi
3446
CXX=$ac_cv_prog_CXX
3447
if test -n "$CXX"; then
3448
  echo "$as_me:3448: result: $CXX" >&5
3449
echo "${ECHO_T}$CXX" >&6
3450
else
3451
  echo "$as_me:3451: result: no" >&5
3452
echo "${ECHO_T}no" >&6
3453
fi
3454
 
3455
ac_ext=cc
3456
ac_cpp='$CXXCPP $CPPFLAGS'
3457
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3460
if test -n "$ac_tool_prefix"; then
3461
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3462
  do
3463
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465
echo "$as_me:3465: checking for $ac_word" >&5
3466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467
if test "${ac_cv_prog_CXX+set}" = set; then
3468
  echo $ECHO_N "(cached) $ECHO_C" >&6
3469
else
3470
  if test -n "$CXX"; then
3471
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3472
else
3473
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3474
ac_dummy="$PATH"
3475
for ac_dir in $ac_dummy; do
3476
  IFS=$ac_save_IFS
3477
  test -z "$ac_dir" && ac_dir=.
3478
  $as_executable_p "$ac_dir/$ac_word" || continue
3479
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3480
echo "$as_me:3480: found $ac_dir/$ac_word" >&5
3481
break
3482
done
3483
 
3484
fi
3485
fi
3486
CXX=$ac_cv_prog_CXX
3487
if test -n "$CXX"; then
3488
  echo "$as_me:3488: result: $CXX" >&5
3489
echo "${ECHO_T}$CXX" >&6
3490
else
3491
  echo "$as_me:3491: result: no" >&5
3492
echo "${ECHO_T}no" >&6
3493
fi
3494
 
3495
    test -n "$CXX" && break
3496
  done
3497
fi
3498
if test -z "$CXX"; then
3499
  ac_ct_CXX=$CXX
3500
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3501
do
3502
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3503
set dummy $ac_prog; ac_word=$2
3504
echo "$as_me:3504: checking for $ac_word" >&5
3505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3507
  echo $ECHO_N "(cached) $ECHO_C" >&6
3508
else
3509
  if test -n "$ac_ct_CXX"; then
3510
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3511
else
3512
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3513
ac_dummy="$PATH"
3514
for ac_dir in $ac_dummy; do
3515
  IFS=$ac_save_IFS
3516
  test -z "$ac_dir" && ac_dir=.
3517
  $as_executable_p "$ac_dir/$ac_word" || continue
3518
ac_cv_prog_ac_ct_CXX="$ac_prog"
3519
echo "$as_me:3519: found $ac_dir/$ac_word" >&5
3520
break
3521
done
3522
 
3523
fi
3524
fi
3525
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3526
if test -n "$ac_ct_CXX"; then
3527
  echo "$as_me:3527: result: $ac_ct_CXX" >&5
3528
echo "${ECHO_T}$ac_ct_CXX" >&6
3529
else
3530
  echo "$as_me:3530: result: no" >&5
3531
echo "${ECHO_T}no" >&6
3532
fi
3533
 
3534
  test -n "$ac_ct_CXX" && break
3535
done
3536
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3537
 
3538
  CXX=$ac_ct_CXX
3539
fi
3540
 
3541
# Provide some information about the compiler.
3542
echo "$as_me:3542:" \
3543
     "checking for C++ compiler version" >&5
3544
ac_compiler=`set X $ac_compile; echo $2`
3545
{ (eval echo "$as_me:3545: \"$ac_compiler --version &5\"") >&5
3546
  (eval $ac_compiler --version &5) 2>&5
3547
  ac_status=$?
3548
  echo "$as_me:3548: \$? = $ac_status" >&5
3549
  (exit $ac_status); }
3550
{ (eval echo "$as_me:3550: \"$ac_compiler -v &5\"") >&5
3551
  (eval $ac_compiler -v &5) 2>&5
3552
  ac_status=$?
3553
  echo "$as_me:3553: \$? = $ac_status" >&5
3554
  (exit $ac_status); }
3555
{ (eval echo "$as_me:3555: \"$ac_compiler -V &5\"") >&5
3556
  (eval $ac_compiler -V &5) 2>&5
3557
  ac_status=$?
3558
  echo "$as_me:3558: \$? = $ac_status" >&5
3559
  (exit $ac_status); }
3560
 
3561
echo "$as_me:3561: checking whether we are using the GNU C++ compiler" >&5
3562
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3563
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3564
  echo $ECHO_N "(cached) $ECHO_C" >&6
3565
else
3566
  cat >conftest.$ac_ext <<_ACEOF
3567
#line 3567 "configure"
3568
#include "confdefs.h"
3569
 
3570
int
3571
main ()
3572
{
3573
#ifndef __GNUC__
3574
       choke me
3575
#endif
3576
 
3577
  ;
3578
  return 0;
3579
}
3580
_ACEOF
3581
rm -f conftest.$ac_objext
3582
if { (eval echo "$as_me:3582: \"$ac_compile\"") >&5
3583
  (eval $ac_compile) 2>&5
3584
  ac_status=$?
3585
  echo "$as_me:3585: \$? = $ac_status" >&5
3586
  (exit $ac_status); } &&
3587
         { ac_try='test -s conftest.$ac_objext'
3588
  { (eval echo "$as_me:3588: \"$ac_try\"") >&5
3589
  (eval $ac_try) 2>&5
3590
  ac_status=$?
3591
  echo "$as_me:3591: \$? = $ac_status" >&5
3592
  (exit $ac_status); }; }; then
3593
  ac_compiler_gnu=yes
3594
else
3595
  echo "$as_me: failed program was:" >&5
3596
cat conftest.$ac_ext >&5
3597
ac_compiler_gnu=no
3598
fi
3599
rm -f conftest.$ac_objext conftest.$ac_ext
3600
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3601
 
3602
fi
3603
echo "$as_me:3603: result: $ac_cv_cxx_compiler_gnu" >&5
3604
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3605
GXX=`test $ac_compiler_gnu = yes && echo yes`
3606
ac_test_CXXFLAGS=${CXXFLAGS+set}
3607
ac_save_CXXFLAGS=$CXXFLAGS
3608
CXXFLAGS="-g"
3609
echo "$as_me:3609: checking whether $CXX accepts -g" >&5
3610
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3611
if test "${ac_cv_prog_cxx_g+set}" = set; then
3612
  echo $ECHO_N "(cached) $ECHO_C" >&6
3613
else
3614
  cat >conftest.$ac_ext <<_ACEOF
3615
#line 3615 "configure"
3616
#include "confdefs.h"
3617
 
3618
int
3619
main ()
3620
{
3621
 
3622
  ;
3623
  return 0;
3624
}
3625
_ACEOF
3626
rm -f conftest.$ac_objext
3627
if { (eval echo "$as_me:3627: \"$ac_compile\"") >&5
3628
  (eval $ac_compile) 2>&5
3629
  ac_status=$?
3630
  echo "$as_me:3630: \$? = $ac_status" >&5
3631
  (exit $ac_status); } &&
3632
         { ac_try='test -s conftest.$ac_objext'
3633
  { (eval echo "$as_me:3633: \"$ac_try\"") >&5
3634
  (eval $ac_try) 2>&5
3635
  ac_status=$?
3636
  echo "$as_me:3636: \$? = $ac_status" >&5
3637
  (exit $ac_status); }; }; then
3638
  ac_cv_prog_cxx_g=yes
3639
else
3640
  echo "$as_me: failed program was:" >&5
3641
cat conftest.$ac_ext >&5
3642
ac_cv_prog_cxx_g=no
3643
fi
3644
rm -f conftest.$ac_objext conftest.$ac_ext
3645
fi
3646
echo "$as_me:3646: result: $ac_cv_prog_cxx_g" >&5
3647
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3648
if test "$ac_test_CXXFLAGS" = set; then
3649
  CXXFLAGS=$ac_save_CXXFLAGS
3650
elif test $ac_cv_prog_cxx_g = yes; then
3651
  if test "$GXX" = yes; then
3652
    CXXFLAGS="-g -O2"
3653
  else
3654
    CXXFLAGS="-g"
3655
  fi
3656
else
3657
  if test "$GXX" = yes; then
3658
    CXXFLAGS="-O2"
3659
  else
3660
    CXXFLAGS=
3661
  fi
3662
fi
3663
for ac_declaration in \
3664
   ''\
3665
   '#include ' \
3666
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3667
   'extern "C" void std::exit (int); using std::exit;' \
3668
   'extern "C" void exit (int) throw ();' \
3669
   'extern "C" void exit (int);' \
3670
   'void exit (int);'
3671
do
3672
  cat >conftest.$ac_ext <<_ACEOF
3673
#line 3673 "configure"
3674
#include "confdefs.h"
3675
#include 
3676
$ac_declaration
3677
int
3678
main ()
3679
{
3680
exit (42);
3681
  ;
3682
  return 0;
3683
}
3684
_ACEOF
3685
rm -f conftest.$ac_objext
3686
if { (eval echo "$as_me:3686: \"$ac_compile\"") >&5
3687
  (eval $ac_compile) 2>&5
3688
  ac_status=$?
3689
  echo "$as_me:3689: \$? = $ac_status" >&5
3690
  (exit $ac_status); } &&
3691
         { ac_try='test -s conftest.$ac_objext'
3692
  { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3693
  (eval $ac_try) 2>&5
3694
  ac_status=$?
3695
  echo "$as_me:3695: \$? = $ac_status" >&5
3696
  (exit $ac_status); }; }; then
3697
  :
3698
else
3699
  echo "$as_me: failed program was:" >&5
3700
cat conftest.$ac_ext >&5
3701
continue
3702
fi
3703
rm -f conftest.$ac_objext conftest.$ac_ext
3704
  cat >conftest.$ac_ext <<_ACEOF
3705
#line 3705 "configure"
3706
#include "confdefs.h"
3707
$ac_declaration
3708
int
3709
main ()
3710
{
3711
exit (42);
3712
  ;
3713
  return 0;
3714
}
3715
_ACEOF
3716
rm -f conftest.$ac_objext
3717
if { (eval echo "$as_me:3717: \"$ac_compile\"") >&5
3718
  (eval $ac_compile) 2>&5
3719
  ac_status=$?
3720
  echo "$as_me:3720: \$? = $ac_status" >&5
3721
  (exit $ac_status); } &&
3722
         { ac_try='test -s conftest.$ac_objext'
3723
  { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3724
  (eval $ac_try) 2>&5
3725
  ac_status=$?
3726
  echo "$as_me:3726: \$? = $ac_status" >&5
3727
  (exit $ac_status); }; }; then
3728
  break
3729
else
3730
  echo "$as_me: failed program was:" >&5
3731
cat conftest.$ac_ext >&5
3732
fi
3733
rm -f conftest.$ac_objext conftest.$ac_ext
3734
done
3735
rm -f conftest*
3736
if test -n "$ac_declaration"; then
3737
  echo '#ifdef __cplusplus' >>confdefs.h
3738
  echo $ac_declaration      >>confdefs.h
3739
  echo '#endif'             >>confdefs.h
3740
fi
3741
 
3742
ac_ext=c
3743
ac_cpp='$CPP $CPPFLAGS'
3744
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
 
3748
depcc="$CXX"  am_compiler_list=
3749
 
3750
echo "$as_me:3750: checking dependency style of $depcc" >&5
3751
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3752
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3753
  echo $ECHO_N "(cached) $ECHO_C" >&6
3754
else
3755
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3756
  # We make a subdir and do the tests there.  Otherwise we can end up
3757
  # making bogus files that we don't know about and never remove.  For
3758
  # instance it was reported that on HP-UX the gcc test will end up
3759
  # making a dummy file named `D' -- because `-MD' means `put the output
3760
  # in D'.
3761
  mkdir conftest.dir
3762
  # Copy depcomp to subdir because otherwise we won't find it if we're
3763
  # using a relative directory.
3764
  cp "$am_depcomp" conftest.dir
3765
  cd conftest.dir
3766
 
3767
  am_cv_CXX_dependencies_compiler_type=none
3768
  if test "$am_compiler_list" = ""; then
3769
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770
  fi
3771
  for depmode in $am_compiler_list; do
3772
    # We need to recreate these files for each test, as the compiler may
3773
    # overwrite some of them when testing with obscure command lines.
3774
    # This happens at least with the AIX C compiler.
3775
    echo '#include "conftest.h"' > conftest.c
3776
    echo 'int i;' > conftest.h
3777
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3778
 
3779
    case $depmode in
3780
    nosideeffect)
3781
      # after this tag, mechanisms are not by side-effect, so they'll
3782
      # only be used when explicitly requested
3783
      if test "x$enable_dependency_tracking" = xyes; then
3784
        continue
3785
      else
3786
        break
3787
      fi
3788
      ;;
3789
    none) break ;;
3790
    esac
3791
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3792
    # mode.  It turns out that the SunPro C++ compiler does not properly
3793
    # handle `-M -o', and we need to detect this.
3794
    if depmode=$depmode \
3795
       source=conftest.c object=conftest.o \
3796
       depfile=conftest.Po tmpdepfile=conftest.TPo \
3797
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3798
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3799
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800
      am_cv_CXX_dependencies_compiler_type=$depmode
3801
      break
3802
    fi
3803
  done
3804
 
3805
  cd ..
3806
  rm -rf conftest.dir
3807
else
3808
  am_cv_CXX_dependencies_compiler_type=none
3809
fi
3810
 
3811
fi
3812
echo "$as_me:3812: result: $am_cv_CXX_dependencies_compiler_type" >&5
3813
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3814
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3815
 
3816
test -z "$CXX" \
3817
  && { { echo "$as_me:3817: error: no acceptable c++ found in \$PATH" >&5
3818
echo "$as_me: error: no acceptable c++ found in \$PATH" >&2;}
3819
   { (exit 1); exit 1; }; }
3820
 
3821
  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
3822
    { { echo "$as_me:3822: error: ***
3823
     Inconsistency in compiler configuration:
3824
     Target C compiler and target C++ compiler
3825
     must both either be cross compilers or native compilers
3826
     Hint: If building a posix bsp: LD_LIBRARY_PATH? " >&5
3827
echo "$as_me: error: ***
3828
     Inconsistency in compiler configuration:
3829
     Target C compiler and target C++ compiler
3830
     must both either be cross compilers or native compilers
3831
     Hint: If building a posix bsp: LD_LIBRARY_PATH? " >&2;}
3832
   { (exit 1); exit 1; }; }
3833
  fi
3834
 
3835
fi
3836
 
3837
  if test "x$build_alias" != "x$host_alias"; then
3838
  rtems_tool_prefix=${ac_tool_prefix}
3839
fi
3840
 
3841
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
3842
set dummy ${rtems_tool_prefix}ar; ac_word=$2
3843
echo "$as_me:3843: checking for $ac_word" >&5
3844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845
if test "${ac_cv_prog_AR+set}" = set; then
3846
  echo $ECHO_N "(cached) $ECHO_C" >&6
3847
else
3848
  if test -n "$AR"; then
3849
  ac_cv_prog_AR="$AR" # Let the user override the test.
3850
else
3851
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3852
ac_dummy="$PATH"
3853
for ac_dir in $ac_dummy; do
3854
  IFS=$ac_save_IFS
3855
  test -z "$ac_dir" && ac_dir=.
3856
  $as_executable_p "$ac_dir/$ac_word" || continue
3857
ac_cv_prog_AR="${rtems_tool_prefix}ar"
3858
echo "$as_me:3858: found $ac_dir/$ac_word" >&5
3859
break
3860
done
3861
 
3862
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
3863
fi
3864
fi
3865
AR=$ac_cv_prog_AR
3866
if test -n "$AR"; then
3867
  echo "$as_me:3867: result: $AR" >&5
3868
echo "${ECHO_T}$AR" >&6
3869
else
3870
  echo "$as_me:3870: result: no" >&5
3871
echo "${ECHO_T}no" >&6
3872
fi
3873
 
3874
  if test "x$build_alias" != "x$host_alias"; then
3875
  rtems_tool_prefix=${ac_tool_prefix}
3876
fi
3877
 
3878
  # Extract the first word of "${rtems_tool_prefix}as", so it can be a program name with args.
3879
set dummy ${rtems_tool_prefix}as; ac_word=$2
3880
echo "$as_me:3880: checking for $ac_word" >&5
3881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882
if test "${ac_cv_prog_AS+set}" = set; then
3883
  echo $ECHO_N "(cached) $ECHO_C" >&6
3884
else
3885
  if test -n "$AS"; then
3886
  ac_cv_prog_AS="$AS" # Let the user override the test.
3887
else
3888
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3889
ac_dummy="$PATH"
3890
for ac_dir in $ac_dummy; do
3891
  IFS=$ac_save_IFS
3892
  test -z "$ac_dir" && ac_dir=.
3893
  $as_executable_p "$ac_dir/$ac_word" || continue
3894
ac_cv_prog_AS="${rtems_tool_prefix}as"
3895
echo "$as_me:3895: found $ac_dir/$ac_word" >&5
3896
break
3897
done
3898
 
3899
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="no"
3900
fi
3901
fi
3902
AS=$ac_cv_prog_AS
3903
if test -n "$AS"; then
3904
  echo "$as_me:3904: result: $AS" >&5
3905
echo "${ECHO_T}$AS" >&6
3906
else
3907
  echo "$as_me:3907: result: no" >&5
3908
echo "${ECHO_T}no" >&6
3909
fi
3910
 
3911
  if test "x$build_alias" != "x$host_alias"; then
3912
  rtems_tool_prefix=${ac_tool_prefix}
3913
fi
3914
 
3915
  # Extract the first word of "${rtems_tool_prefix}ld", so it can be a program name with args.
3916
set dummy ${rtems_tool_prefix}ld; ac_word=$2
3917
echo "$as_me:3917: checking for $ac_word" >&5
3918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919
if test "${ac_cv_prog_LD+set}" = set; then
3920
  echo $ECHO_N "(cached) $ECHO_C" >&6
3921
else
3922
  if test -n "$LD"; then
3923
  ac_cv_prog_LD="$LD" # Let the user override the test.
3924
else
3925
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3926
ac_dummy="$PATH"
3927
for ac_dir in $ac_dummy; do
3928
  IFS=$ac_save_IFS
3929
  test -z "$ac_dir" && ac_dir=.
3930
  $as_executable_p "$ac_dir/$ac_word" || continue
3931
ac_cv_prog_LD="${rtems_tool_prefix}ld"
3932
echo "$as_me:3932: found $ac_dir/$ac_word" >&5
3933
break
3934
done
3935
 
3936
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="no"
3937
fi
3938
fi
3939
LD=$ac_cv_prog_LD
3940
if test -n "$LD"; then
3941
  echo "$as_me:3941: result: $LD" >&5
3942
echo "${ECHO_T}$LD" >&6
3943
else
3944
  echo "$as_me:3944: result: no" >&5
3945
echo "${ECHO_T}no" >&6
3946
fi
3947
 
3948
  if test "x$build_alias" != "x$host_alias"; then
3949
  rtems_tool_prefix=${ac_tool_prefix}
3950
fi
3951
 
3952
  # Extract the first word of "${rtems_tool_prefix}nm", so it can be a program name with args.
3953
set dummy ${rtems_tool_prefix}nm; ac_word=$2
3954
echo "$as_me:3954: checking for $ac_word" >&5
3955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956
if test "${ac_cv_prog_NM+set}" = set; then
3957
  echo $ECHO_N "(cached) $ECHO_C" >&6
3958
else
3959
  if test -n "$NM"; then
3960
  ac_cv_prog_NM="$NM" # Let the user override the test.
3961
else
3962
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3963
ac_dummy="$PATH"
3964
for ac_dir in $ac_dummy; do
3965
  IFS=$ac_save_IFS
3966
  test -z "$ac_dir" && ac_dir=.
3967
  $as_executable_p "$ac_dir/$ac_word" || continue
3968
ac_cv_prog_NM="${rtems_tool_prefix}nm"
3969
echo "$as_me:3969: found $ac_dir/$ac_word" >&5
3970
break
3971
done
3972
 
3973
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
3974
fi
3975
fi
3976
NM=$ac_cv_prog_NM
3977
if test -n "$NM"; then
3978
  echo "$as_me:3978: result: $NM" >&5
3979
echo "${ECHO_T}$NM" >&6
3980
else
3981
  echo "$as_me:3981: result: no" >&5
3982
echo "${ECHO_T}no" >&6
3983
fi
3984
 
3985
  if test "x$build_alias" != "x$host_alias"; then
3986
  rtems_tool_prefix=${ac_tool_prefix}
3987
fi
3988
 
3989
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
3990
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
3991
echo "$as_me:3991: checking for $ac_word" >&5
3992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993
if test "${ac_cv_prog_RANLIB+set}" = set; then
3994
  echo $ECHO_N "(cached) $ECHO_C" >&6
3995
else
3996
  if test -n "$RANLIB"; then
3997
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3998
else
3999
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4000
ac_dummy="$PATH"
4001
for ac_dir in $ac_dummy; do
4002
  IFS=$ac_save_IFS
4003
  test -z "$ac_dir" && ac_dir=.
4004
  $as_executable_p "$ac_dir/$ac_word" || continue
4005
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
4006
echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4007
break
4008
done
4009
 
4010
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4011
fi
4012
fi
4013
RANLIB=$ac_cv_prog_RANLIB
4014
if test -n "$RANLIB"; then
4015
  echo "$as_me:4015: result: $RANLIB" >&5
4016
echo "${ECHO_T}$RANLIB" >&6
4017
else
4018
  echo "$as_me:4018: result: no" >&5
4019
echo "${ECHO_T}no" >&6
4020
fi
4021
 
4022
  if test "x$build_alias" != "x$host_alias"; then
4023
  rtems_tool_prefix=${ac_tool_prefix}
4024
fi
4025
 
4026
  # Extract the first word of "${rtems_tool_prefix}objcopy", so it can be a program name with args.
4027
set dummy ${rtems_tool_prefix}objcopy; ac_word=$2
4028
echo "$as_me:4028: checking for $ac_word" >&5
4029
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4030
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
4031
  echo $ECHO_N "(cached) $ECHO_C" >&6
4032
else
4033
  if test -n "$OBJCOPY"; then
4034
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4035
else
4036
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4037
ac_dummy="$PATH"
4038
for ac_dir in $ac_dummy; do
4039
  IFS=$ac_save_IFS
4040
  test -z "$ac_dir" && ac_dir=.
4041
  $as_executable_p "$ac_dir/$ac_word" || continue
4042
ac_cv_prog_OBJCOPY="${rtems_tool_prefix}objcopy"
4043
echo "$as_me:4043: found $ac_dir/$ac_word" >&5
4044
break
4045
done
4046
 
4047
  test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="no"
4048
fi
4049
fi
4050
OBJCOPY=$ac_cv_prog_OBJCOPY
4051
if test -n "$OBJCOPY"; then
4052
  echo "$as_me:4052: result: $OBJCOPY" >&5
4053
echo "${ECHO_T}$OBJCOPY" >&6
4054
else
4055
  echo "$as_me:4055: result: no" >&5
4056
echo "${ECHO_T}no" >&6
4057
fi
4058
 
4059
  if test "x$build_alias" != "x$host_alias"; then
4060
  rtems_tool_prefix=${ac_tool_prefix}
4061
fi
4062
 
4063
  # Extract the first word of "${rtems_tool_prefix}size", so it can be a program name with args.
4064
set dummy ${rtems_tool_prefix}size; ac_word=$2
4065
echo "$as_me:4065: checking for $ac_word" >&5
4066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067
if test "${ac_cv_prog_SIZE+set}" = set; then
4068
  echo $ECHO_N "(cached) $ECHO_C" >&6
4069
else
4070
  if test -n "$SIZE"; then
4071
  ac_cv_prog_SIZE="$SIZE" # Let the user override the test.
4072
else
4073
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4074
ac_dummy="$PATH"
4075
for ac_dir in $ac_dummy; do
4076
  IFS=$ac_save_IFS
4077
  test -z "$ac_dir" && ac_dir=.
4078
  $as_executable_p "$ac_dir/$ac_word" || continue
4079
ac_cv_prog_SIZE="${rtems_tool_prefix}size"
4080
echo "$as_me:4080: found $ac_dir/$ac_word" >&5
4081
break
4082
done
4083
 
4084
  test -z "$ac_cv_prog_SIZE" && ac_cv_prog_SIZE="no"
4085
fi
4086
fi
4087
SIZE=$ac_cv_prog_SIZE
4088
if test -n "$SIZE"; then
4089
  echo "$as_me:4089: result: $SIZE" >&5
4090
echo "${ECHO_T}$SIZE" >&6
4091
else
4092
  echo "$as_me:4092: result: no" >&5
4093
echo "${ECHO_T}no" >&6
4094
fi
4095
 
4096
  if test "x$build_alias" != "x$host_alias"; then
4097
  rtems_tool_prefix=${ac_tool_prefix}
4098
fi
4099
 
4100
  # Extract the first word of "${rtems_tool_prefix}strip", so it can be a program name with args.
4101
set dummy ${rtems_tool_prefix}strip; ac_word=$2
4102
echo "$as_me:4102: checking for $ac_word" >&5
4103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104
if test "${ac_cv_prog_STRIP+set}" = set; then
4105
  echo $ECHO_N "(cached) $ECHO_C" >&6
4106
else
4107
  if test -n "$STRIP"; then
4108
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4109
else
4110
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4111
ac_dummy="$PATH"
4112
for ac_dir in $ac_dummy; do
4113
  IFS=$ac_save_IFS
4114
  test -z "$ac_dir" && ac_dir=.
4115
  $as_executable_p "$ac_dir/$ac_word" || continue
4116
ac_cv_prog_STRIP="${rtems_tool_prefix}strip"
4117
echo "$as_me:4117: found $ac_dir/$ac_word" >&5
4118
break
4119
done
4120
 
4121
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4122
fi
4123
fi
4124
STRIP=$ac_cv_prog_STRIP
4125
if test -n "$STRIP"; then
4126
  echo "$as_me:4126: result: $STRIP" >&5
4127
echo "${ECHO_T}$STRIP" >&6
4128
else
4129
  echo "$as_me:4129: result: no" >&5
4130
echo "${ECHO_T}no" >&6
4131
fi
4132
 
4133
## if this is an i386, does gas have good code16 support?
4134
 if test "${host_cpu}" = "i386"; then
4135
    echo "$as_me:4135: checking for 16 bit mode assembler support" >&5
4136
echo $ECHO_N "checking for 16 bit mode assembler support... $ECHO_C" >&6
4137
if test "${rtems_cv_prog_gas_code16+set}" = set; then
4138
  echo $ECHO_N "(cached) $ECHO_C" >&6
4139
else
4140
  cat > conftest.s << EOF
4141
         .code16
4142
         data32
4143
         addr32
4144
         lgdt 0
4145
EOF
4146
      if { ac_try='$AS -o conftest.o conftest.s'
4147
  { (eval echo "$as_me:4147: \"$ac_try\"") >&5
4148
  (eval $ac_try) 2>&5
4149
  ac_status=$?
4150
  echo "$as_me:4150: \$? = $ac_status" >&5
4151
  (exit $ac_status); }; }; then
4152
        rtems_cv_prog_gas_code16=yes
4153
      else
4154
        rtems_cv_prog_gas_code16=no
4155
      fi
4156
fi
4157
echo "$as_me:4157: result: $rtems_cv_prog_gas_code16" >&5
4158
echo "${ECHO_T}$rtems_cv_prog_gas_code16" >&6
4159
    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
4160
  fi
4161
 
4162
  if test x"${RTEMS_GAS_CODE16}" = x"yes";
4163
  then
4164
 
4165
cat >>confdefs.h <
4166
#define NEW_GAS 1
4167
EOF
4168
 
4169
  fi
4170
 
4171
echo "$as_me:4171: checking for make/custom/$RTEMS_BSP.cfg" >&5
4172
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
4173
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
4174
  echo "$as_me:4174: result: yes" >&5
4175
echo "${ECHO_T}yes" >&6
4176
else
4177
  { { echo "$as_me:4177: error: no" >&5
4178
echo "$as_me: error: no" >&2;}
4179
   { (exit 1); exit 1; }; }
4180
fi
4181
 
4182
# account for "aliased" bsps which share source code
4183
  case ${RTEMS_BSP} in
4184
    simcpu32)     RTEMS_BSP_FAMILY=sim68000         ;; # BSVC CPU32 variant
4185
    c3xsim)       RTEMS_BSP_FAMILY=c4xsim           ;; # TI C3x Simulator in gdb
4186
    mcp750)       RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
4187
    mvme2307)     RTEMS_BSP_FAMILY=motorola_powerpc ;; # Motorola PPC board variant
4188
    mvme162lx)    RTEMS_BSP_FAMILY=mvme162          ;; # m68k - mvme162 board variant
4189
    gen68360_040) RTEMS_BSP_FAMILY=gen68360         ;; # m68k - 68360 in companion mode
4190
    p4600)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4600
4191
    p4650)        RTEMS_BSP_FAMILY=p4000            ;; # mips64orion - p4000 board w/IDT 4650
4192
    mbx8*)        RTEMS_BSP_FAMILY=mbx8xx           ;; # MBX821/MBX860 board
4193
    pc386dx)      RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC w/o FPU
4194
    pc486)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with i486DX
4195
    pc586)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with Pentium
4196
    pc686)        RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with PentiumPro
4197
    pck6)         RTEMS_BSP_FAMILY=pc386            ;; # i386 - PC with K6
4198
    bare*)        RTEMS_BSP_FAMILY=bare             ;; # EXP: bare-aliases
4199
    erc32nfp)     RTEMS_BSP_FAMILY=erc32            ;; # erc32 without fpu
4200
    leon1)        RTEMS_BSP_FAMILY=leon             ;; # leon without fpu
4201
    leon2)        RTEMS_BSP_FAMILY=leon             ;; # leon with fpu
4202
    simsh7032)    RTEMS_BSP_FAMILY=shsim            ;; # SH7032 simulator
4203
    simsh7045)    RTEMS_BSP_FAMILY=shsim            ;; # SH7045 simulator
4204
    *)            RTEMS_BSP_FAMILY=${RTEMS_BSP};;
4205
  esac
4206
 
4207
# Check whether --enable-multilib or --disable-multilib was given.
4208
if test "${enable_multilib+set}" = set; then
4209
  enableval="$enable_multilib"
4210
  case "${enableval}" in
4211
  yes) multilib=yes ;;
4212
  no)  multilib=no ;;
4213
  *)   { { echo "$as_me:4213: error: bad value ${enableval} for multilib option" >&5
4214
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
4215
   { (exit 1); exit 1; }; } ;;
4216
 esac
4217
else
4218
  multilib=no
4219
fi;
4220
 
4221
if test x"${multilib}" = x"yes"; then
4222
  MULTILIB_TRUE=
4223
  MULTILIB_FALSE='#'
4224
else
4225
  MULTILIB_TRUE='#'
4226
  MULTILIB_FALSE=
4227
fi
4228
 
4229
echo "$as_me:4229: checking if wanting multiprocessing" >&5
4230
echo $ECHO_N "checking if wanting multiprocessing... $ECHO_C" >&6
4231
if test "${rtems_cv_want_multiprocessing+set}" = set; then
4232
  echo $ECHO_N "(cached) $ECHO_C" >&6
4233
else
4234
 
4235
    if test x"$multilib" = x"no"; then
4236
  # no cpukit
4237
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
4238
 
4239
else
4240
 
4241
#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
4242
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
4243
 
4244
fi
4245
 
4246
fi
4247
echo "$as_me:4247: result: $rtems_cv_want_multiprocessing" >&5
4248
echo "${ECHO_T}$rtems_cv_want_multiprocessing" >&6
4249
 
4250
if test "$rtems_cv_want_multiprocessing" = "yes"; then
4251
 
4252
  echo "$as_me:4252: checking whether BSP supports multiprocessing" >&5
4253
echo $ECHO_N "checking whether BSP supports multiprocessing... $ECHO_C" >&6
4254
if test "${rtems_cv_HAS_MP+set}" = set; then
4255
  echo $ECHO_N "(cached) $ECHO_C" >&6
4256
else
4257
 
4258
    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
4259
        rtems_cv_HAS_MP="yes" ;
4260
    else
4261
        rtems_cv_HAS_MP="no";
4262
    fi
4263
 
4264
fi
4265
echo "$as_me:4265: result: $rtems_cv_HAS_MP" >&5
4266
echo "${ECHO_T}$rtems_cv_HAS_MP" >&6
4267
if test $rtems_cv_HAS_MP = "no"; then
4268
{ { echo "$as_me:4268: error: multiprocessing requested but not supported" >&5
4269
echo "$as_me: error: multiprocessing requested but not supported" >&2;}
4270
   { (exit 1); exit 1; }; }
4271
fi
4272
 
4273
else
4274
  rtems_cv_HAS_MP="no";
4275
fi
4276
 
4277
HAS_MP=$rtems_cv_HAS_MP
4278
 
4279
echo "$as_me:4279: checking whether BSP supports networking" >&5
4280
echo $ECHO_N "checking whether BSP supports networking... $ECHO_C" >&6
4281
if test "${rtems_cv_HAS_NETWORKING+set}" = set; then
4282
  echo $ECHO_N "(cached) $ECHO_C" >&6
4283
else
4284
      case "$RTEMS_CPU" in
4285
    unix*)
4286
      rtems_cv_HAS_NETWORKING="no"
4287
      ;;
4288
    *)
4289
      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
4290
        rtems_cv_HAS_NETWORKING="yes";
4291
      else
4292
        rtems_cv_HAS_NETWORKING="disabled";
4293
      fi
4294
      ;;
4295
    esac
4296
fi
4297
echo "$as_me:4297: result: $rtems_cv_HAS_NETWORKING" >&5
4298
echo "${ECHO_T}$rtems_cv_HAS_NETWORKING" >&6
4299
if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
4300
  HAS_NETWORKING="yes";
4301
else
4302
  HAS_NETWORKING="no";
4303
fi
4304
 
4305
echo "$as_me:4305: checking whether BSP supports librdbg" >&5
4306
echo $ECHO_N "checking whether BSP supports librdbg... $ECHO_C" >&6
4307
if test "${rtems_cv_HAS_RDBG+set}" = set; then
4308
  echo $ECHO_N "(cached) $ECHO_C" >&6
4309
else
4310
 
4311
    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/${RTEMS_BSP}";
4312
    then
4313
      rtems_cv_HAS_RDBG="yes" ;
4314
    elif test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/any";
4315
    then
4316
      rtems_cv_HAS_RDBG="yes" ;
4317
    elif test "${RTEMS_CPU}" = "powerpc";
4318
    then
4319
        A=`grep -l RTEMS_PPC_EXCEPTION_PROCESSING_MODEL $srcdir/${RTEMS_TOPdir}/make/custom/* 2>/dev/null`;
4320
        C=""
4321
        for i in ${A} ;
4322
        do
4323
           B=`basename ${i} .cfg`;
4324
           C="${C} ${B}";
4325
        done
4326
        rtems_cv_HAS_RDBG="no";
4327
        for j in ${C} ;
4328
        do
4329
                if test "${RTEMS_BSP}" = "${j}" ;
4330
                then
4331
                        rtems_cv_HAS_RDBG="yes";
4332
                fi
4333
        done
4334
    else
4335
      rtems_cv_HAS_RDBG="no";
4336
    fi
4337
 
4338
fi
4339
echo "$as_me:4339: result: $rtems_cv_HAS_RDBG" >&5
4340
echo "${ECHO_T}$rtems_cv_HAS_RDBG" >&6
4341
HAS_RDBG="$rtems_cv_HAS_RDBG"
4342
 
4343
echo "$as_me:4343: checking whether CPU supports libposix" >&5
4344
echo $ECHO_N "checking whether CPU supports libposix... $ECHO_C" >&6
4345
if test "${rtems_cv_HAS_POSIX_API+set}" = set; then
4346
  echo $ECHO_N "(cached) $ECHO_C" >&6
4347
else
4348
      case "$RTEMS_CPU" in
4349
    unix*)
4350
      rtems_cv_HAS_POSIX_API="no"
4351
      ;;
4352
    *)
4353
      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
4354
        rtems_cv_HAS_POSIX_API="yes";
4355
      else
4356
        rtems_cv_HAS_POSIX_API="disabled";
4357
      fi
4358
      ;;
4359
    esac
4360
fi
4361
echo "$as_me:4361: result: $rtems_cv_HAS_POSIX_API" >&5
4362
echo "${ECHO_T}$rtems_cv_HAS_POSIX_API" >&6
4363
if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
4364
  HAS_POSIX_API="yes";
4365
else
4366
  HAS_POSIX_API="no";
4367
fi
4368
 
4369
echo "$as_me:4369: checking whether to build rtems++" >&5
4370
echo $ECHO_N "checking whether to build rtems++... $ECHO_C" >&6
4371
if test "${rtems_cv_HAS_CPLUSPLUS+set}" = set; then
4372
  echo $ECHO_N "(cached) $ECHO_C" >&6
4373
else
4374
   if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
4375
      if test -n "$CXX"; then
4376
        rtems_cv_HAS_CPLUSPLUS="yes"
4377
      else
4378
        rtems_cv_HAS_CPLUSPLUS="no"
4379
      fi
4380
    else
4381
      rtems_cv_HAS_CPLUSPLUS="no"
4382
    fi
4383
fi
4384
echo "$as_me:4384: result: $rtems_cv_HAS_CPLUSPLUS" >&5
4385
echo "${ECHO_T}$rtems_cv_HAS_CPLUSPLUS" >&6
4386
HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
4387
 
4388
if test "$HAS_CPLUSPLUS" = "yes"; then
4389
CPLUS_LD_LIBS='$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)'
4390
fi
4391
 
4392
echo "$as_me:4392: checking whether CPU supports libitron" >&5
4393
echo $ECHO_N "checking whether CPU supports libitron... $ECHO_C" >&6
4394
if test "${rtems_cv_HAS_ITRON_API+set}" = set; then
4395
  echo $ECHO_N "(cached) $ECHO_C" >&6
4396
else
4397
      case "$RTEMS_CPU" in
4398
    unix*)
4399
      rtems_cv_HAS_ITRON_API="no"
4400
      ;;
4401
    *)
4402
      if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
4403
        rtems_cv_HAS_ITRON_API="yes";
4404
      else
4405
        rtems_cv_HAS_ITRON_API="disabled";
4406
      fi
4407
      ;;
4408
    esac
4409
fi
4410
echo "$as_me:4410: result: $rtems_cv_HAS_ITRON_API" >&5
4411
echo "${ECHO_T}$rtems_cv_HAS_ITRON_API" >&6
4412
if test "$rtems_cv_HAS_ITRON_API" = "yes"; then
4413
  HAS_ITRON_API="yes";
4414
else
4415
  HAS_ITRON_API="no";
4416
fi
4417
 
4418
# Collect the files needed to build a BSP
4419
cfg_dir="${RTEMS_TOPdir}/make"
4420
CUSTOM_CFG_FILES=""
4421
f="${RTEMS_BSP}.cfg"
4422
while test -n "$f"; do
4423
  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
4424
    ac_config_links="$ac_config_links custom/$f:${cfg_dir}/custom/$f"
4425
 
4426
    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES custom/$f"
4427
    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
4428
    | sed \
4429
      -e 's%^.*custom\/%%' \
4430
      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
4431
      -e 's%default\.cfg%%'`;
4432
  else break; fi;
4433
done
4434
 
4435
# Symlink the *.cfg files from the toplevel make directory into the build
4436
# trees c//make subdirectories
4437
 
4438
ac_config_links="$ac_config_links Templates/Makefile.lib:${cfg_dir}/Templates/Makefile.lib Templates/Makefile.leaf:${cfg_dir}/Templates/Makefile.leaf Templates/Makefile.dir:${cfg_dir}/Templates/Makefile.dir compilers/gcc-target-default.cfg:${cfg_dir}/compilers/gcc-target-default.cfg directory.cfg:${cfg_dir}/directory.cfg lib.cfg:${cfg_dir}/lib.cfg README:${cfg_dir}/README leaf.cfg:leaf.cfg"
4439
 
4440
# Explicitly list all Makefiles here
4441
ac_config_files="$ac_config_files Makefile Makefile.inc host.cfg bsp.cfg custom/default.cfg"
4442
 
4443
ac_config_commands="$ac_config_commands default"
4444
 
4445
cat >confcache <<\_ACEOF
4446
# This file is a shell script that caches the results of configure
4447
# tests run on this system so they can be shared between configure
4448
# scripts and configure runs, see configure's option --config-cache.
4449
# It is not useful on other systems.  If it contains results you don't
4450
# want to keep, you may remove or edit it.
4451
#
4452
# config.status only pays attention to the cache file if you give it
4453
# the --recheck option to rerun configure.
4454
#
4455
# `ac_cv_env_foo' variables (set or unset) will be overriden when
4456
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4457
# following values.
4458
 
4459
_ACEOF
4460
 
4461
# The following way of writing the cache mishandles newlines in values,
4462
# but we know of no workaround that is simple, portable, and efficient.
4463
# So, don't put newlines in cache variables' values.
4464
# Ultrix sh set writes to stderr and can't be redirected directly,
4465
# and sets the high bit in the cache file unless we assign to the vars.
4466
{
4467
  (set) 2>&1 |
4468
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4469
    *ac_space=\ *)
4470
      # `set' does not quote correctly, so add quotes (double-quote
4471
      # substitution turns \\\\ into \\, and sed turns \\ into \).
4472
      sed -n \
4473
        "s/'/'\\\\''/g;
4474
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4475
      ;;
4476
    *)
4477
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4478
      sed -n \
4479
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4480
      ;;
4481
    esac;
4482
} |
4483
  sed '
4484
     t clear
4485
     : clear
4486
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4487
     t end
4488
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4489
     : end' >>confcache
4490
if cmp -s $cache_file confcache; then :; else
4491
  if test -w $cache_file; then
4492
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4493
    cat confcache >$cache_file
4494
  else
4495
    echo "not updating unwritable cache $cache_file"
4496
  fi
4497
fi
4498
rm -f confcache
4499
 
4500
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4501
# Let make expand exec_prefix.
4502
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4503
 
4504
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4505
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4506
# trailing colons and then remove the whole line if VPATH becomes empty
4507
# (actually we leave an empty line to preserve line numbers).
4508
if test "x$srcdir" = x.; then
4509
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
4510
s/:*\$(srcdir):*/:/;
4511
s/:*\${srcdir}:*/:/;
4512
s/:*@srcdir@:*/:/;
4513
s/^\([^=]*=[    ]*\):*/\1/;
4514
s/:*$//;
4515
s/^[^=]*=[      ]*$//;
4516
}'
4517
fi
4518
 
4519
# Transform confdefs.h into DEFS.
4520
# Protect against shell expansion while executing Makefile rules.
4521
# Protect against Makefile macro expansion.
4522
#
4523
# If the first sed substitution is executed (which looks for macros that
4524
# take arguments), then we branch to the quote section.  Otherwise,
4525
# look for a macro that doesn't take arguments.
4526
cat >confdef2opt.sed <<\EOF
4527
t clear
4528
: clear
4529
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4530
t quote
4531
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4532
t quote
4533
d
4534
: quote
4535
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
4536
s,\[,\\&,g
4537
s,\],\\&,g
4538
s,\$,$$,g
4539
p
4540
EOF
4541
# We use echo to avoid assuming a particular line-breaking character.
4542
# The extra dot is to prevent the shell from consuming trailing
4543
# line-breaks from the sub-command output.  A line-break within
4544
# single-quotes doesn't work because, if this script is created in a
4545
# platform that uses two characters for line-breaks (e.g., DOS), tr
4546
# would break.
4547
ac_LF_and_DOT=`echo; echo .`
4548
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4549
rm -f confdef2opt.sed
4550
 
4551
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4552
  { { echo "$as_me:4552: error: conditional \"MAINTAINER_MODE\" was never defined.
4553
Usually this means the macro was only invoked conditionally." >&5
4554
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4555
Usually this means the macro was only invoked conditionally." >&2;}
4556
   { (exit 1); exit 1; }; }
4557
fi
4558
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
4559
  { { echo "$as_me:4559: error: conditional \"MULTILIB\" was never defined.
4560
Usually this means the macro was only invoked conditionally." >&5
4561
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
4562
Usually this means the macro was only invoked conditionally." >&2;}
4563
   { (exit 1); exit 1; }; }
4564
fi
4565
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4566
  { { echo "$as_me:4566: error: conditional \"AMDEP\" was never defined.
4567
Usually this means the macro was only invoked conditionally." >&5
4568
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4569
Usually this means the macro was only invoked conditionally." >&2;}
4570
   { (exit 1); exit 1; }; }
4571
fi
4572
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
4573
  { { echo "$as_me:4573: error: conditional \"RTEMS_USE_GCC\" was never defined.
4574
Usually this means the macro was only invoked conditionally." >&5
4575
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
4576
Usually this means the macro was only invoked conditionally." >&2;}
4577
   { (exit 1); exit 1; }; }
4578
fi
4579
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
4580
  { { echo "$as_me:4580: error: conditional \"MULTILIB\" was never defined.
4581
Usually this means the macro was only invoked conditionally." >&5
4582
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
4583
Usually this means the macro was only invoked conditionally." >&2;}
4584
   { (exit 1); exit 1; }; }
4585
fi
4586
 
4587
: ${CONFIG_STATUS=./config.status}
4588
ac_clean_files_save=$ac_clean_files
4589
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4590
{ echo "$as_me:4590: creating $CONFIG_STATUS" >&5
4591
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4592
cat >$CONFIG_STATUS <<_ACEOF
4593
#! $SHELL
4594
# Generated automatically by configure.
4595
# Run this file to recreate the current configuration.
4596
# Compiler output produced by configure, useful for debugging
4597
# configure, is in config.log if it exists.
4598
 
4599
debug=false
4600
SHELL=\${CONFIG_SHELL-$SHELL}
4601
ac_cs_invocation="\$0 \$@"
4602
 
4603
_ACEOF
4604
 
4605
cat >>$CONFIG_STATUS <<\_ACEOF
4606
# Be Bourne compatible
4607
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4608
  emulate sh
4609
  NULLCMD=:
4610
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4611
  set -o posix
4612
fi
4613
 
4614
# Name of the executable.
4615
as_me=`echo "$0" |sed 's,.*[\\/],,'`
4616
 
4617
if expr a : '\(a\)' >/dev/null 2>&1; then
4618
  as_expr=expr
4619
else
4620
  as_expr=false
4621
fi
4622
 
4623
rm -f conf$$ conf$$.exe conf$$.file
4624
echo >conf$$.file
4625
if ln -s conf$$.file conf$$ 2>/dev/null; then
4626
  # We could just check for DJGPP; but this test a) works b) is more generic
4627
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4628
  if test -f conf$$.exe; then
4629
    # Don't use ln at all; we don't have any links
4630
    as_ln_s='cp -p'
4631
  else
4632
    as_ln_s='ln -s'
4633
  fi
4634
elif ln conf$$.file conf$$ 2>/dev/null; then
4635
  as_ln_s=ln
4636
else
4637
  as_ln_s='cp -p'
4638
fi
4639
rm -f conf$$ conf$$.exe conf$$.file
4640
 
4641
as_executable_p="test -f"
4642
 
4643
# Support unset when possible.
4644
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4645
  as_unset=unset
4646
else
4647
  as_unset=false
4648
fi
4649
 
4650
# NLS nuisances.
4651
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4652
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4653
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4654
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4655
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4656
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4657
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4658
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4659
 
4660
# IFS
4661
# We need space, tab and new line, in precisely that order.
4662
as_nl='
4663
'
4664
IFS="   $as_nl"
4665
 
4666
# CDPATH.
4667
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4668
 
4669
exec 6>&1
4670
 
4671
_ACEOF
4672
 
4673
# Files that config.status was made for.
4674
if test -n "$ac_config_files"; then
4675
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4676
fi
4677
 
4678
if test -n "$ac_config_headers"; then
4679
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4680
fi
4681
 
4682
if test -n "$ac_config_links"; then
4683
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4684
fi
4685
 
4686
if test -n "$ac_config_commands"; then
4687
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4688
fi
4689
 
4690
cat >>$CONFIG_STATUS <<\EOF
4691
 
4692
ac_cs_usage="\
4693
\`$as_me' instantiates files from templates according to the
4694
current configuration.
4695
 
4696
Usage: $0 [OPTIONS] [FILE]...
4697
 
4698
  -h, --help       print this help, then exit
4699
  -V, --version    print version number, then exit
4700
  -d, --debug      don't remove temporary files
4701
      --recheck    update $as_me by reconfiguring in the same conditions
4702
  --file=FILE[:TEMPLATE]
4703
                   instantiate the configuration file FILE
4704
 
4705
Configuration files:
4706
$config_files
4707
 
4708
Configuration links:
4709
$config_links
4710
 
4711
Configuration commands:
4712
$config_commands
4713
 
4714
Report bugs to ."
4715
EOF
4716
 
4717
cat >>$CONFIG_STATUS <
4718
ac_cs_version="\\
4719
rtems-c-src-make config.status ss-20020807
4720
configured by $0, generated by GNU Autoconf 2.52,
4721
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4722
 
4723
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4724
Free Software Foundation, Inc.
4725
This config.status script is free software; the Free Software Foundation
4726
gives unlimited permission to copy, distribute and modify it."
4727
srcdir=$srcdir
4728
INSTALL="$INSTALL"
4729
EOF
4730
 
4731
cat >>$CONFIG_STATUS <<\EOF
4732
# If no file are specified by the user, then we need to provide default
4733
# value.  By we need to know if files were specified by the user.
4734
ac_need_defaults=:
4735
while test $# != 0
4736
do
4737
  case $1 in
4738
  --*=*)
4739
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4740
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4741
    shift
4742
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4743
    shift
4744
    ;;
4745
  -*);;
4746
  *) # This is not an option, so the user has probably given explicit
4747
     # arguments.
4748
     ac_need_defaults=false;;
4749
  esac
4750
 
4751
  case $1 in
4752
  # Handling of the options.
4753
EOF
4754
cat >>$CONFIG_STATUS <
4755
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4756
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4757
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4758
EOF
4759
cat >>$CONFIG_STATUS <<\EOF
4760
  --version | --vers* | -V )
4761
    echo "$ac_cs_version"; exit 0 ;;
4762
  --he | --h)
4763
    # Conflict between --help and --header
4764
    { { echo "$as_me:4764: error: ambiguous option: $1
4765
Try \`$0 --help' for more information." >&5
4766
echo "$as_me: error: ambiguous option: $1
4767
Try \`$0 --help' for more information." >&2;}
4768
   { (exit 1); exit 1; }; };;
4769
  --help | --hel | -h )
4770
    echo "$ac_cs_usage"; exit 0 ;;
4771
  --debug | --d* | -d )
4772
    debug=: ;;
4773
  --file | --fil | --fi | --f )
4774
    shift
4775
    CONFIG_FILES="$CONFIG_FILES $1"
4776
    ac_need_defaults=false;;
4777
  --header | --heade | --head | --hea )
4778
    shift
4779
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
4780
    ac_need_defaults=false;;
4781
 
4782
  # This is an error.
4783
  -*) { { echo "$as_me:4783: error: unrecognized option: $1
4784
Try \`$0 --help' for more information." >&5
4785
echo "$as_me: error: unrecognized option: $1
4786
Try \`$0 --help' for more information." >&2;}
4787
   { (exit 1); exit 1; }; } ;;
4788
 
4789
  *) ac_config_targets="$ac_config_targets $1" ;;
4790
 
4791
  esac
4792
  shift
4793
done
4794
 
4795
exec 5>>config.log
4796
cat >&5 << _ACEOF
4797
 
4798
## ----------------------- ##
4799
## Running config.status.  ##
4800
## ----------------------- ##
4801
 
4802
This file was extended by $as_me (rtems-c-src-make ss-20020807) 2.52, executed with
4803
  CONFIG_FILES    = $CONFIG_FILES
4804
  CONFIG_HEADERS  = $CONFIG_HEADERS
4805
  CONFIG_LINKS    = $CONFIG_LINKS
4806
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4807
  > $ac_cs_invocation
4808
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4809
 
4810
_ACEOF
4811
EOF
4812
 
4813
cat >>$CONFIG_STATUS <
4814
#
4815
# INIT-COMMANDS section.
4816
#
4817
 
4818
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4819
 
4820
  RTEMS_TOPdir=${RTEMS_TOPdir}
4821
  cfg_dir=${cfg_dir}
4822
 
4823
MAKE=${MAKE-make}
4824
  RTEMS_BSP=${RTEMS_BSP}
4825
 
4826
EOF
4827
 
4828
cat >>$CONFIG_STATUS <<\EOF
4829
for ac_config_target in $ac_config_targets
4830
do
4831
  case "$ac_config_target" in
4832
  # Handling of arguments.
4833
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4834
  "Makefile.inc" ) CONFIG_FILES="$CONFIG_FILES Makefile.inc" ;;
4835
  "host.cfg" ) CONFIG_FILES="$CONFIG_FILES host.cfg" ;;
4836
  "bsp.cfg" ) CONFIG_FILES="$CONFIG_FILES bsp.cfg" ;;
4837
  "custom/default.cfg" ) CONFIG_FILES="$CONFIG_FILES custom/default.cfg" ;;
4838
  "custom/$f" ) CONFIG_LINKS="$CONFIG_LINKS custom/$f:${cfg_dir}/custom/$f" ;;
4839
  "Templates/Makefile.lib" ) CONFIG_LINKS="$CONFIG_LINKS Templates/Makefile.lib:${cfg_dir}/Templates/Makefile.lib" ;;
4840
  "Templates/Makefile.leaf" ) CONFIG_LINKS="$CONFIG_LINKS Templates/Makefile.leaf:${cfg_dir}/Templates/Makefile.leaf" ;;
4841
  "Templates/Makefile.dir" ) CONFIG_LINKS="$CONFIG_LINKS Templates/Makefile.dir:${cfg_dir}/Templates/Makefile.dir" ;;
4842
  "compilers/gcc-target-default.cfg" ) CONFIG_LINKS="$CONFIG_LINKS compilers/gcc-target-default.cfg:${cfg_dir}/compilers/gcc-target-default.cfg" ;;
4843
  "directory.cfg" ) CONFIG_LINKS="$CONFIG_LINKS directory.cfg:${cfg_dir}/directory.cfg" ;;
4844
  "lib.cfg" ) CONFIG_LINKS="$CONFIG_LINKS lib.cfg:${cfg_dir}/lib.cfg" ;;
4845
  "README" ) CONFIG_LINKS="$CONFIG_LINKS README:${cfg_dir}/README" ;;
4846
  "leaf.cfg" ) CONFIG_LINKS="$CONFIG_LINKS leaf.cfg:leaf.cfg" ;;
4847
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4848
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4849
  *) { { echo "$as_me:4849: error: invalid argument: $ac_config_target" >&5
4850
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4851
   { (exit 1); exit 1; }; };;
4852
  esac
4853
done
4854
 
4855
# If the user did not use the arguments to specify the items to instantiate,
4856
# then the envvar interface is used.  Set only those that are not.
4857
# We use the long form for the default assignment because of an extremely
4858
# bizarre bug on SunOS 4.1.3.
4859
if $ac_need_defaults; then
4860
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4861
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
4862
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4863
fi
4864
 
4865
# Create a temporary directory, and hook for its removal unless debugging.
4866
$debug ||
4867
{
4868
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4869
  trap '{ (exit 1); exit 1; }' 1 2 13 15
4870
}
4871
 
4872
# Create a (secure) tmp directory for tmp files.
4873
: ${TMPDIR=/tmp}
4874
{
4875
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4876
  test -n "$tmp" && test -d "$tmp"
4877
}  ||
4878
{
4879
  tmp=$TMPDIR/cs$$-$RANDOM
4880
  (umask 077 && mkdir $tmp)
4881
} ||
4882
{
4883
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4884
   { (exit 1); exit 1; }
4885
}
4886
 
4887
EOF
4888
 
4889
cat >>$CONFIG_STATUS <
4890
 
4891
#
4892
# CONFIG_FILES section.
4893
#
4894
 
4895
# No need to generate the scripts if there are no CONFIG_FILES.
4896
# This happens for instance when ./config.status config.h
4897
if test -n "\$CONFIG_FILES"; then
4898
  # Protect against being on the right side of a sed subst in config.status.
4899
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4900
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4901
s,@SHELL@,$SHELL,;t t
4902
s,@exec_prefix@,$exec_prefix,;t t
4903
s,@prefix@,$prefix,;t t
4904
s,@program_transform_name@,$program_transform_name,;t t
4905
s,@bindir@,$bindir,;t t
4906
s,@sbindir@,$sbindir,;t t
4907
s,@libexecdir@,$libexecdir,;t t
4908
s,@datadir@,$datadir,;t t
4909
s,@sysconfdir@,$sysconfdir,;t t
4910
s,@sharedstatedir@,$sharedstatedir,;t t
4911
s,@localstatedir@,$localstatedir,;t t
4912
s,@libdir@,$libdir,;t t
4913
s,@includedir@,$includedir,;t t
4914
s,@oldincludedir@,$oldincludedir,;t t
4915
s,@infodir@,$infodir,;t t
4916
s,@mandir@,$mandir,;t t
4917
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4918
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4919
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4920
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4921
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4922
s,@build_alias@,$build_alias,;t t
4923
s,@host_alias@,$host_alias,;t t
4924
s,@target_alias@,$target_alias,;t t
4925
s,@ECHO_C@,$ECHO_C,;t t
4926
s,@ECHO_N@,$ECHO_N,;t t
4927
s,@ECHO_T@,$ECHO_T,;t t
4928
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4929
s,@DEFS@,$DEFS,;t t
4930
s,@LIBS@,$LIBS,;t t
4931
s,@MAKE@,$MAKE,;t t
4932
s,@ENDIF@,$ENDIF,;t t
4933
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
4934
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
4935
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
4936
s,@build@,$build,;t t
4937
s,@build_cpu@,$build_cpu,;t t
4938
s,@build_vendor@,$build_vendor,;t t
4939
s,@build_os@,$build_os,;t t
4940
s,@host@,$host,;t t
4941
s,@host_cpu@,$host_cpu,;t t
4942
s,@host_vendor@,$host_vendor,;t t
4943
s,@host_os@,$host_os,;t t
4944
s,@target@,$target,;t t
4945
s,@target_cpu@,$target_cpu,;t t
4946
s,@target_vendor@,$target_vendor,;t t
4947
s,@target_os@,$target_os,;t t
4948
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
4949
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4950
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4951
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4952
s,@PACKAGE@,$PACKAGE,;t t
4953
s,@VERSION@,$VERSION,;t t
4954
s,@ACLOCAL@,$ACLOCAL,;t t
4955
s,@AUTOCONF@,$AUTOCONF,;t t
4956
s,@AUTOMAKE@,$AUTOMAKE,;t t
4957
s,@AUTOHEADER@,$AUTOHEADER,;t t
4958
s,@MAKEINFO@,$MAKEINFO,;t t
4959
s,@AMTAR@,$AMTAR,;t t
4960
s,@install_sh@,$install_sh,;t t
4961
s,@STRIP@,$STRIP,;t t
4962
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4963
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4964
s,@AWK@,$AWK,;t t
4965
s,@SET_MAKE@,$SET_MAKE,;t t
4966
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4967
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4968
s,@MAINT@,$MAINT,;t t
4969
s,@RTEMS_HAS_POSIX_API@,$RTEMS_HAS_POSIX_API,;t t
4970
s,@RTEMS_HAS_ITRON_API@,$RTEMS_HAS_ITRON_API,;t t
4971
s,@RTEMS_HAS_NETWORKING@,$RTEMS_HAS_NETWORKING,;t t
4972
s,@RTEMS_HAS_RDBG@,$RTEMS_HAS_RDBG,;t t
4973
s,@RTEMS_USE_MACROS@,$RTEMS_USE_MACROS,;t t
4974
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
4975
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
4976
s,@GCC_SPECS@,$GCC_SPECS,;t t
4977
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
4978
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
4979
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
4980
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
4981
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
4982
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
4983
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
4984
s,@bsplibdir@,$bsplibdir,;t t
4985
s,@CAT@,$CAT,;t t
4986
s,@CP@,$CP,;t t
4987
s,@MV@,$MV,;t t
4988
s,@LN@,$LN,;t t
4989
s,@LN_S@,$LN_S,;t t
4990
s,@CHMOD@,$CHMOD,;t t
4991
s,@SORT@,$SORT,;t t
4992
s,@PERL@,$PERL,;t t
4993
s,@TOUCH@,$TOUCH,;t t
4994
s,@CMP@,$CMP,;t t
4995
s,@SED@,$SED,;t t
4996
s,@M4@,$M4,;t t
4997
s,@KSH@,$KSH,;t t
4998
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
4999
s,@PACKHEX@,$PACKHEX,;t t
5000
s,@CC@,$CC,;t t
5001
s,@CFLAGS@,$CFLAGS,;t t
5002
s,@LDFLAGS@,$LDFLAGS,;t t
5003
s,@CPPFLAGS@,$CPPFLAGS,;t t
5004
s,@ac_ct_CC@,$ac_ct_CC,;t t
5005
s,@EXEEXT@,$EXEEXT,;t t
5006
s,@OBJEXT@,$OBJEXT,;t t
5007
s,@DEPDIR@,$DEPDIR,;t t
5008
s,@am__include@,$am__include,;t t
5009
s,@am__quote@,$am__quote,;t t
5010
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5011
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5012
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5013
s,@CCDEPMODE@,$CCDEPMODE,;t t
5014
s,@CPP@,$CPP,;t t
5015
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
5016
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
5017
s,@GCCSED@,$GCCSED,;t t
5018
s,@CXX@,$CXX,;t t
5019
s,@CXXFLAGS@,$CXXFLAGS,;t t
5020
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5021
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
5022
s,@AR@,$AR,;t t
5023
s,@AS@,$AS,;t t
5024
s,@LD@,$LD,;t t
5025
s,@NM@,$NM,;t t
5026
s,@RANLIB@,$RANLIB,;t t
5027
s,@OBJCOPY@,$OBJCOPY,;t t
5028
s,@SIZE@,$SIZE,;t t
5029
s,@RTEMS_GAS_CODE16@,$RTEMS_GAS_CODE16,;t t
5030
s,@HAS_MP@,$HAS_MP,;t t
5031
s,@HAS_NETWORKING@,$HAS_NETWORKING,;t t
5032
s,@HAS_RDBG@,$HAS_RDBG,;t t
5033
s,@HAS_POSIX_API@,$HAS_POSIX_API,;t t
5034
s,@HAS_CPLUSPLUS@,$HAS_CPLUSPLUS,;t t
5035
s,@CPLUS_LD_LIBS@,$CPLUS_LD_LIBS,;t t
5036
s,@HAS_ITRON_API@,$HAS_ITRON_API,;t t
5037
s,@rtems_cv_prog_cc_cross@,$rtems_cv_prog_cc_cross,;t t
5038
s,@RTEMS_HAS_CPLUSPLUS@,$RTEMS_HAS_CPLUSPLUS,;t t
5039
s,@program_prefix@,$program_prefix,;t t
5040
s,@CC_CFLAGS_DEFAULT@,$CC_CFLAGS_DEFAULT,;t t
5041
s,@CC_CFLAGS_DEBUG_V@,$CC_CFLAGS_DEBUG_V,;t t
5042
s,@CC_CFLAGS_PROFILE_V@,$CC_CFLAGS_PROFILE_V,;t t
5043
s,@CC_LDFLAGS_PROFILE_V@,$CC_LDFLAGS_PROFILE_V,;t t
5044
s,@CUSTOM_CFG_FILES@,$CUSTOM_CFG_FILES,;t t
5045
s,@cfg_dir@,$cfg_dir,;t t
5046
CEOF
5047
 
5048
EOF
5049
 
5050
  cat >>$CONFIG_STATUS <<\EOF
5051
  # Split the substitutions into bite-sized pieces for seds with
5052
  # small command number limits, like on Digital OSF/1 and HP-UX.
5053
  ac_max_sed_lines=48
5054
  ac_sed_frag=1 # Number of current file.
5055
  ac_beg=1 # First line for current file.
5056
  ac_end=$ac_max_sed_lines # Line after last line for current file.
5057
  ac_more_lines=:
5058
  ac_sed_cmds=
5059
  while $ac_more_lines; do
5060
    if test $ac_beg -gt 1; then
5061
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5062
    else
5063
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5064
    fi
5065
    if test ! -s $tmp/subs.frag; then
5066
      ac_more_lines=false
5067
    else
5068
      # The purpose of the label and of the branching condition is to
5069
      # speed up the sed processing (if there are no `@' at all, there
5070
      # is no need to browse any of the substitutions).
5071
      # These are the two extra sed commands mentioned above.
5072
      (echo ':t
5073
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5074
      if test -z "$ac_sed_cmds"; then
5075
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5076
      else
5077
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5078
      fi
5079
      ac_sed_frag=`expr $ac_sed_frag + 1`
5080
      ac_beg=$ac_end
5081
      ac_end=`expr $ac_end + $ac_max_sed_lines`
5082
    fi
5083
  done
5084
  if test -z "$ac_sed_cmds"; then
5085
    ac_sed_cmds=cat
5086
  fi
5087
fi # test -n "$CONFIG_FILES"
5088
 
5089
EOF
5090
cat >>$CONFIG_STATUS <<\EOF
5091
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5092
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5093
  case $ac_file in
5094
  - | *:- | *:-:* ) # input from stdin
5095
        cat >$tmp/stdin
5096
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5097
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5098
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5099
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5100
  * )   ac_file_in=$ac_file.in ;;
5101
  esac
5102
 
5103
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5104
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5105
         X"$ac_file" : 'X\(//\)[^/]' \| \
5106
         X"$ac_file" : 'X\(//\)$' \| \
5107
         X"$ac_file" : 'X\(/\)' \| \
5108
         .     : '\(.\)' 2>/dev/null ||
5109
echo X"$ac_file" |
5110
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5111
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5112
          /^X\(\/\/\)$/{ s//\1/; q; }
5113
          /^X\(\/\).*/{ s//\1/; q; }
5114
          s/.*/./; q'`
5115
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5116
    { case "$ac_dir" in
5117
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5118
  *)                      as_incr_dir=.;;
5119
esac
5120
as_dummy="$ac_dir"
5121
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5122
  case $as_mkdir_dir in
5123
    # Skip DOS drivespec
5124
    ?:) as_incr_dir=$as_mkdir_dir ;;
5125
    *)
5126
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5127
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5128
    ;;
5129
  esac
5130
done; }
5131
 
5132
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5133
    # A "../" for each directory in $ac_dir_suffix.
5134
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5135
  else
5136
    ac_dir_suffix= ac_dots=
5137
  fi
5138
 
5139
  case $srcdir in
5140
  .)  ac_srcdir=.
5141
      if test -z "$ac_dots"; then
5142
         ac_top_srcdir=.
5143
      else
5144
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5145
      fi ;;
5146
  [\\/]* | ?:[\\/]* )
5147
      ac_srcdir=$srcdir$ac_dir_suffix;
5148
      ac_top_srcdir=$srcdir ;;
5149
  *) # Relative path.
5150
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5151
    ac_top_srcdir=$ac_dots$srcdir ;;
5152
  esac
5153
 
5154
  case $INSTALL in
5155
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5156
  *) ac_INSTALL=$ac_dots$INSTALL ;;
5157
  esac
5158
 
5159
  if test x"$ac_file" != x-; then
5160
    { echo "$as_me:5160: creating $ac_file" >&5
5161
echo "$as_me: creating $ac_file" >&6;}
5162
    rm -f "$ac_file"
5163
  fi
5164
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5165
  # use $as_me), people would be surprised to read:
5166
  #    /* config.h.  Generated automatically by config.status.  */
5167
  configure_input="Generated automatically from `echo $ac_file_in |
5168
                                                 sed 's,.*/,,'` by configure."
5169
 
5170
  # First look for the input files in the build tree, otherwise in the
5171
  # src tree.
5172
  ac_file_inputs=`IFS=:
5173
    for f in $ac_file_in; do
5174
      case $f in
5175
      -) echo $tmp/stdin ;;
5176
      [\\/$]*)
5177
         # Absolute (can't be DOS-style, as IFS=:)
5178
         test -f "$f" || { { echo "$as_me:5178: error: cannot find input file: $f" >&5
5179
echo "$as_me: error: cannot find input file: $f" >&2;}
5180
   { (exit 1); exit 1; }; }
5181
         echo $f;;
5182
      *) # Relative
5183
         if test -f "$f"; then
5184
           # Build tree
5185
           echo $f
5186
         elif test -f "$srcdir/$f"; then
5187
           # Source tree
5188
           echo $srcdir/$f
5189
         else
5190
           # /dev/null tree
5191
           { { echo "$as_me:5191: error: cannot find input file: $f" >&5
5192
echo "$as_me: error: cannot find input file: $f" >&2;}
5193
   { (exit 1); exit 1; }; }
5194
         fi;;
5195
      esac
5196
    done` || { (exit 1); exit 1; }
5197
EOF
5198
cat >>$CONFIG_STATUS <
5199
  sed "$ac_vpsub
5200
$extrasub
5201
EOF
5202
cat >>$CONFIG_STATUS <<\EOF
5203
:t
5204
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5205
s,@configure_input@,$configure_input,;t t
5206
s,@srcdir@,$ac_srcdir,;t t
5207
s,@top_srcdir@,$ac_top_srcdir,;t t
5208
s,@INSTALL@,$ac_INSTALL,;t t
5209
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5210
  rm -f $tmp/stdin
5211
  if test x"$ac_file" != x-; then
5212
    mv $tmp/out $ac_file
5213
  else
5214
    cat $tmp/out
5215
    rm -f $tmp/out
5216
  fi
5217
 
5218
done
5219
EOF
5220
cat >>$CONFIG_STATUS <<\EOF
5221
 
5222
#
5223
# CONFIG_LINKS section.
5224
#
5225
 
5226
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5227
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5228
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5229
 
5230
  { echo "$as_me:5230: linking $srcdir/$ac_source to $ac_dest" >&5
5231
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5232
 
5233
  if test ! -r $srcdir/$ac_source; then
5234
    { { echo "$as_me:5234: error: $srcdir/$ac_source: File not found" >&5
5235
echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
5236
   { (exit 1); exit 1; }; }
5237
  fi
5238
  rm -f $ac_dest
5239
 
5240
  # Make relative symlinks.
5241
  ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5242
         X"$ac_dest" : 'X\(//\)[^/]' \| \
5243
         X"$ac_dest" : 'X\(//\)$' \| \
5244
         X"$ac_dest" : 'X\(/\)' \| \
5245
         .     : '\(.\)' 2>/dev/null ||
5246
echo X"$ac_dest" |
5247
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5248
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5249
          /^X\(\/\/\)$/{ s//\1/; q; }
5250
          /^X\(\/\).*/{ s//\1/; q; }
5251
          s/.*/./; q'`
5252
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5253
    { case "$ac_dest_dir" in
5254
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5255
  *)                      as_incr_dir=.;;
5256
esac
5257
as_dummy="$ac_dest_dir"
5258
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5259
  case $as_mkdir_dir in
5260
    # Skip DOS drivespec
5261
    ?:) as_incr_dir=$as_mkdir_dir ;;
5262
    *)
5263
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5264
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5265
    ;;
5266
  esac
5267
done; }
5268
 
5269
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`"
5270
    # A "../" for each directory in $ac_dest_dir_suffix.
5271
    ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
5272
  else
5273
    ac_dest_dir_suffix= ac_dots=
5274
  fi
5275
 
5276
  case $srcdir in
5277
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
5278
      *) ac_rel_source=$ac_dots$srcdir/$ac_source ;;
5279
  esac
5280
 
5281
  # Make a symlink if possible; otherwise try a hard link.
5282
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5283
    ln $srcdir/$ac_source $ac_dest ||
5284
    { { echo "$as_me:5284: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
5285
echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
5286
   { (exit 1); exit 1; }; }
5287
done
5288
EOF
5289
cat >>$CONFIG_STATUS <<\EOF
5290
 
5291
#
5292
# CONFIG_COMMANDS section.
5293
#
5294
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5295
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5296
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5297
 
5298
  case $ac_dest in
5299
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5300
  # Strip MF so we end up with the name of the file.
5301
  mf=`echo "$mf" | sed -e 's/:.*$//'`
5302
  # Check whether this is an Automake generated Makefile or not.
5303
  # We used to match only the files named `Makefile.in', but
5304
  # some people rename them; so instead we look at the file content.
5305
  # Grep'ing the first line is not enough: some people post-process
5306
  # each Makefile.in and add a new line on top of each file to say so.
5307
  # So let's grep whole file.
5308
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5309
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5310
         X"$mf" : 'X\(//\)[^/]' \| \
5311
         X"$mf" : 'X\(//\)$' \| \
5312
         X"$mf" : 'X\(/\)' \| \
5313
         .     : '\(.\)' 2>/dev/null ||
5314
echo X"$mf" |
5315
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5316
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5317
          /^X\(\/\/\)$/{ s//\1/; q; }
5318
          /^X\(\/\).*/{ s//\1/; q; }
5319
          s/.*/./; q'`
5320
  else
5321
    continue
5322
  fi
5323
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5324
  # Extract the definition of DEP_FILES from the Makefile without
5325
  # running `make'.
5326
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5327
  test -z "$DEPDIR" && continue
5328
  # When using ansi2knr, U may be empty or an underscore; expand it
5329
  U=`sed -n -e '/^U = / s///p' < "$mf"`
5330
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5331
  # We invoke sed twice because it is the simplest approach to
5332
  # changing $(DEPDIR) to its actual value in the expansion.
5333
  for file in `sed -n -e '
5334
    /^DEP_FILES = .*\\\\$/ {
5335
      s/^DEP_FILES = //
5336
      :loop
5337
        s/\\\\$//
5338
        p
5339
        n
5340
        /\\\\$/ b loop
5341
      p
5342
    }
5343
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5344
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5345
    # Make sure the directory exists.
5346
    test -f "$dirpart/$file" && continue
5347
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5348
         X"$file" : 'X\(//\)[^/]' \| \
5349
         X"$file" : 'X\(//\)$' \| \
5350
         X"$file" : 'X\(/\)' \| \
5351
         .     : '\(.\)' 2>/dev/null ||
5352
echo X"$file" |
5353
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5354
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5355
          /^X\(\/\/\)$/{ s//\1/; q; }
5356
          /^X\(\/\).*/{ s//\1/; q; }
5357
          s/.*/./; q'`
5358
    { case $dirpart/$fdir in
5359
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5360
  *)                      as_incr_dir=.;;
5361
esac
5362
as_dummy=$dirpart/$fdir
5363
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5364
  case $as_mkdir_dir in
5365
    # Skip DOS drivespec
5366
    ?:) as_incr_dir=$as_mkdir_dir ;;
5367
    *)
5368
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5369
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5370
    ;;
5371
  esac
5372
done; }
5373
 
5374
    # echo "creating $dirpart/$file"
5375
    echo '# dummy' > "$dirpart/$file"
5376
  done
5377
done
5378
 ;;
5379
    default ) ${MAKE} $RTEMS_BSP.cache
5380
 ;;
5381
  esac
5382
done
5383
EOF
5384
 
5385
cat >>$CONFIG_STATUS <<\EOF
5386
 
5387
{ (exit 0); exit 0; }
5388
EOF
5389
chmod +x $CONFIG_STATUS
5390
ac_clean_files=$ac_clean_files_save
5391
 
5392
# configure is writing to config.log, and then calls config.status.
5393
# config.status does its own redirection, appending to config.log.
5394
# Unfortunately, on DOS this fails, as config.log is still kept open
5395
# by configure, so config.status won't be able to write to it; its
5396
# output is simply discarded.  So we exec the FD to /dev/null,
5397
# effectively closing config.log, so it can be properly (re)opened and
5398
# appended to by config.status.  When coming back to configure, we
5399
# need to make the FD available again.
5400
if test "$no_create" != yes; then
5401
  ac_cs_success=:
5402
  exec 5>/dev/null
5403
  $SHELL $CONFIG_STATUS || ac_cs_success=false
5404
  exec 5>>config.log
5405
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5406
  # would make configure fail if this is the last instruction.
5407
  $ac_cs_success || { (exit 1); exit 1; }
5408
fi
5409
 

powered by: WebSVN 2.1.0

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