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

Subversion Repositories or1k

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

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

powered by: WebSVN 2.1.0

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