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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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