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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [configure] - Blame information for rev 1782

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

powered by: WebSVN 2.1.0

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