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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sh/] [shsim/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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