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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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