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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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