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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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