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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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