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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [tests/] [samples/] [configure] - Blame information for rev 1026

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

powered by: WebSVN 2.1.0

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