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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libfs/] [configure] - Blame information for rev 1774

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

powered by: WebSVN 2.1.0

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