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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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