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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [tools/] [build/] [configure] - Blame information for rev 1026

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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