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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libblock/] [configure] - Blame information for rev 1780

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

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

powered by: WebSVN 2.1.0

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