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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [librpc/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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