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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [contrib/] [cygwin/] [configure] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52 for rtems-contrib-cygwin _RTEMS_VERSION.
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="setup"
110
 
111
# Initialize some variables set by options.
112
ac_init_help=
113
ac_init_version=false
114
# The variables have the same names as the options, with
115
# dashes changed to underlines.
116
cache_file=/dev/null
117
exec_prefix=NONE
118
no_create=
119
no_recursion=
120
prefix=NONE
121
program_prefix=NONE
122
program_suffix=NONE
123
program_transform_name=s,x,x,
124
silent=
125
site=
126
srcdir=
127
verbose=
128
x_includes=NONE
129
x_libraries=NONE
130
 
131
# Installation directory options.
132
# These are left unexpanded so users can "make install exec_prefix=/foo"
133
# and all the variables that are supposed to be based on exec_prefix
134
# by default will actually change.
135
# Use braces instead of parens because sh, perl, etc. also accept them.
136
bindir='${exec_prefix}/bin'
137
sbindir='${exec_prefix}/sbin'
138
libexecdir='${exec_prefix}/libexec'
139
datadir='${prefix}/share'
140
sysconfdir='${prefix}/etc'
141
sharedstatedir='${prefix}/com'
142
localstatedir='${prefix}/var'
143
libdir='${exec_prefix}/lib'
144
includedir='${prefix}/include'
145
oldincludedir='/usr/include'
146
infodir='${prefix}/info'
147
mandir='${prefix}/man'
148
 
149
# Identity of this package.
150
PACKAGE_NAME='rtems-contrib-cygwin'
151
PACKAGE_TARNAME='rtems-contrib-cygwin'
152
PACKAGE_VERSION='_RTEMS_VERSION'
153
PACKAGE_STRING='rtems-contrib-cygwin _RTEMS_VERSION'
154
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
155
 
156
ac_prev=
157
for ac_option
158
do
159
  # If the previous option needs an argument, assign it.
160
  if test -n "$ac_prev"; then
161
    eval "$ac_prev=\$ac_option"
162
    ac_prev=
163
    continue
164
  fi
165
 
166
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167
 
168
  # Accept the important Cygnus configure options, so we can diagnose typos.
169
 
170
  case $ac_option in
171
 
172
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
173
    ac_prev=bindir ;;
174
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175
    bindir=$ac_optarg ;;
176
 
177
  -build | --build | --buil | --bui | --bu)
178
    ac_prev=build_alias ;;
179
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180
    build_alias=$ac_optarg ;;
181
 
182
  -cache-file | --cache-file | --cache-fil | --cache-fi \
183
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184
    ac_prev=cache_file ;;
185
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187
    cache_file=$ac_optarg ;;
188
 
189
  --config-cache | -C)
190
    cache_file=config.cache ;;
191
 
192
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193
    ac_prev=datadir ;;
194
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195
  | --da=*)
196
    datadir=$ac_optarg ;;
197
 
198
  -disable-* | --disable-*)
199
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
200
    # Reject names that are not valid shell variable names.
201
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
202
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
203
   { (exit 1); exit 1; }; }
204
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
205
    eval "enable_$ac_feature=no" ;;
206
 
207
  -enable-* | --enable-*)
208
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
209
    # Reject names that are not valid shell variable names.
210
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
211
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
212
   { (exit 1); exit 1; }; }
213
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214
    case $ac_option in
215
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216
      *) ac_optarg=yes ;;
217
    esac
218
    eval "enable_$ac_feature='$ac_optarg'" ;;
219
 
220
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222
  | --exec | --exe | --ex)
223
    ac_prev=exec_prefix ;;
224
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226
  | --exec=* | --exe=* | --ex=*)
227
    exec_prefix=$ac_optarg ;;
228
 
229
  -gas | --gas | --ga | --g)
230
    # Obsolete; use --with-gas.
231
    with_gas=yes ;;
232
 
233
  -help | --help | --hel | --he | -h)
234
    ac_init_help=long ;;
235
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
236
    ac_init_help=recursive ;;
237
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
238
    ac_init_help=short ;;
239
 
240
  -host | --host | --hos | --ho)
241
    ac_prev=host_alias ;;
242
  -host=* | --host=* | --hos=* | --ho=*)
243
    host_alias=$ac_optarg ;;
244
 
245
  -includedir | --includedir | --includedi | --included | --include \
246
  | --includ | --inclu | --incl | --inc)
247
    ac_prev=includedir ;;
248
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249
  | --includ=* | --inclu=* | --incl=* | --inc=*)
250
    includedir=$ac_optarg ;;
251
 
252
  -infodir | --infodir | --infodi | --infod | --info | --inf)
253
    ac_prev=infodir ;;
254
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255
    infodir=$ac_optarg ;;
256
 
257
  -libdir | --libdir | --libdi | --libd)
258
    ac_prev=libdir ;;
259
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
260
    libdir=$ac_optarg ;;
261
 
262
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263
  | --libexe | --libex | --libe)
264
    ac_prev=libexecdir ;;
265
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266
  | --libexe=* | --libex=* | --libe=*)
267
    libexecdir=$ac_optarg ;;
268
 
269
  -localstatedir | --localstatedir | --localstatedi | --localstated \
270
  | --localstate | --localstat | --localsta | --localst \
271
  | --locals | --local | --loca | --loc | --lo)
272
    ac_prev=localstatedir ;;
273
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276
    localstatedir=$ac_optarg ;;
277
 
278
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279
    ac_prev=mandir ;;
280
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281
    mandir=$ac_optarg ;;
282
 
283
  -nfp | --nfp | --nf)
284
    # Obsolete; use --without-fp.
285
    with_fp=no ;;
286
 
287
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288
  | --no-cr | --no-c)
289
    no_create=yes ;;
290
 
291
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293
    no_recursion=yes ;;
294
 
295
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297
  | --oldin | --oldi | --old | --ol | --o)
298
    ac_prev=oldincludedir ;;
299
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302
    oldincludedir=$ac_optarg ;;
303
 
304
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305
    ac_prev=prefix ;;
306
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307
    prefix=$ac_optarg ;;
308
 
309
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
310
  | --program-pre | --program-pr | --program-p)
311
    ac_prev=program_prefix ;;
312
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
313
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314
    program_prefix=$ac_optarg ;;
315
 
316
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
317
  | --program-suf | --program-su | --program-s)
318
    ac_prev=program_suffix ;;
319
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
320
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321
    program_suffix=$ac_optarg ;;
322
 
323
  -program-transform-name | --program-transform-name \
324
  | --program-transform-nam | --program-transform-na \
325
  | --program-transform-n | --program-transform- \
326
  | --program-transform | --program-transfor \
327
  | --program-transfo | --program-transf \
328
  | --program-trans | --program-tran \
329
  | --progr-tra | --program-tr | --program-t)
330
    ac_prev=program_transform_name ;;
331
  -program-transform-name=* | --program-transform-name=* \
332
  | --program-transform-nam=* | --program-transform-na=* \
333
  | --program-transform-n=* | --program-transform-=* \
334
  | --program-transform=* | --program-transfor=* \
335
  | --program-transfo=* | --program-transf=* \
336
  | --program-trans=* | --program-tran=* \
337
  | --progr-tra=* | --program-tr=* | --program-t=*)
338
    program_transform_name=$ac_optarg ;;
339
 
340
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341
  | -silent | --silent | --silen | --sile | --sil)
342
    silent=yes ;;
343
 
344
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345
    ac_prev=sbindir ;;
346
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347
  | --sbi=* | --sb=*)
348
    sbindir=$ac_optarg ;;
349
 
350
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
351
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352
  | --sharedst | --shareds | --shared | --share | --shar \
353
  | --sha | --sh)
354
    ac_prev=sharedstatedir ;;
355
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358
  | --sha=* | --sh=*)
359
    sharedstatedir=$ac_optarg ;;
360
 
361
  -site | --site | --sit)
362
    ac_prev=site ;;
363
  -site=* | --site=* | --sit=*)
364
    site=$ac_optarg ;;
365
 
366
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367
    ac_prev=srcdir ;;
368
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369
    srcdir=$ac_optarg ;;
370
 
371
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372
  | --syscon | --sysco | --sysc | --sys | --sy)
373
    ac_prev=sysconfdir ;;
374
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376
    sysconfdir=$ac_optarg ;;
377
 
378
  -target | --target | --targe | --targ | --tar | --ta | --t)
379
    ac_prev=target_alias ;;
380
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381
    target_alias=$ac_optarg ;;
382
 
383
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
384
    verbose=yes ;;
385
 
386
  -version | --version | --versio | --versi | --vers | -V)
387
    ac_init_version=: ;;
388
 
389
  -with-* | --with-*)
390
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
391
    # Reject names that are not valid shell variable names.
392
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393
      { echo "$as_me: error: invalid package name: $ac_package" >&2
394
   { (exit 1); exit 1; }; }
395
    ac_package=`echo $ac_package| sed 's/-/_/g'`
396
    case $ac_option in
397
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398
      *) ac_optarg=yes ;;
399
    esac
400
    eval "with_$ac_package='$ac_optarg'" ;;
401
 
402
  -without-* | --without-*)
403
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
404
    # Reject names that are not valid shell variable names.
405
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406
      { echo "$as_me: error: invalid package name: $ac_package" >&2
407
   { (exit 1); exit 1; }; }
408
    ac_package=`echo $ac_package | sed 's/-/_/g'`
409
    eval "with_$ac_package=no" ;;
410
 
411
  --x)
412
    # Obsolete; use --with-x.
413
    with_x=yes ;;
414
 
415
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416
  | --x-incl | --x-inc | --x-in | --x-i)
417
    ac_prev=x_includes ;;
418
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420
    x_includes=$ac_optarg ;;
421
 
422
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
423
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424
    ac_prev=x_libraries ;;
425
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427
    x_libraries=$ac_optarg ;;
428
 
429
  -*) { echo "$as_me: error: unrecognized option: $ac_option
430
Try \`$0 --help' for more information." >&2
431
   { (exit 1); exit 1; }; }
432
    ;;
433
 
434
  *=*)
435
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
436
    # Reject names that are not valid shell variable names.
437
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
438
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
439
   { (exit 1); exit 1; }; }
440
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
441
    eval "$ac_envvar='$ac_optarg'"
442
    export $ac_envvar ;;
443
 
444
  *)
445
    # FIXME: should be removed in autoconf 3.0.
446
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
447
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
448
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
449
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
450
    ;;
451
 
452
  esac
453
done
454
 
455
if test -n "$ac_prev"; then
456
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
457
  { echo "$as_me: error: missing argument to $ac_option" >&2
458
   { (exit 1); exit 1; }; }
459
fi
460
 
461
# Be sure to have absolute paths.
462
for ac_var in exec_prefix prefix
463
do
464
  eval ac_val=$`echo $ac_var`
465
  case $ac_val in
466
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
467
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
468
   { (exit 1); exit 1; }; };;
469
  esac
470
done
471
 
472
# Be sure to have absolute paths.
473
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
474
              localstatedir libdir includedir oldincludedir infodir mandir
475
do
476
  eval ac_val=$`echo $ac_var`
477
  case $ac_val in
478
    [\\/$]* | ?:[\\/]* ) ;;
479
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
480
   { (exit 1); exit 1; }; };;
481
  esac
482
done
483
 
484
# There might be people who depend on the old broken behavior: `$host'
485
# used to hold the argument of --host etc.
486
build=$build_alias
487
host=$host_alias
488
target=$target_alias
489
 
490
# FIXME: should be removed in autoconf 3.0.
491
if test "x$host_alias" != x; then
492
  if test "x$build_alias" = x; then
493
    cross_compiling=maybe
494
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
495
    If a cross compiler is detected then cross compile mode will be used." >&2
496
  elif test "x$build_alias" != "x$host_alias"; then
497
    cross_compiling=yes
498
  fi
499
fi
500
 
501
ac_tool_prefix=
502
test -n "$host_alias" && ac_tool_prefix=$host_alias-
503
 
504
test "$silent" = yes && exec 6>/dev/null
505
 
506
# Find the source files, if location was not specified.
507
if test -z "$srcdir"; then
508
  ac_srcdir_defaulted=yes
509
  # Try the directory containing this script, then its parent.
510
  ac_prog=$0
511
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
512
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513
  srcdir=$ac_confdir
514
  if test ! -r $srcdir/$ac_unique_file; then
515
    srcdir=..
516
  fi
517
else
518
  ac_srcdir_defaulted=no
519
fi
520
if test ! -r $srcdir/$ac_unique_file; then
521
  if test "$ac_srcdir_defaulted" = yes; then
522
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
523
   { (exit 1); exit 1; }; }
524
  else
525
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
526
   { (exit 1); exit 1; }; }
527
  fi
528
fi
529
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
530
ac_env_build_alias_set=${build_alias+set}
531
ac_env_build_alias_value=$build_alias
532
ac_cv_env_build_alias_set=${build_alias+set}
533
ac_cv_env_build_alias_value=$build_alias
534
ac_env_host_alias_set=${host_alias+set}
535
ac_env_host_alias_value=$host_alias
536
ac_cv_env_host_alias_set=${host_alias+set}
537
ac_cv_env_host_alias_value=$host_alias
538
ac_env_target_alias_set=${target_alias+set}
539
ac_env_target_alias_value=$target_alias
540
ac_cv_env_target_alias_set=${target_alias+set}
541
ac_cv_env_target_alias_value=$target_alias
542
 
543
#
544
# Report the --help message.
545
#
546
if test "$ac_init_help" = "long"; then
547
  # Omit some internal or obsolete options to make the list less imposing.
548
  # This message is too long to be a string in the A/UX 3.1 sh.
549
  cat <
550
\`configure' configures rtems-contrib-cygwin _RTEMS_VERSION to adapt to many kinds of systems.
551
 
552
Usage: $0 [OPTION]... [VAR=VALUE]...
553
 
554
To assign environment variables (e.g., CC, CFLAGS...), specify them as
555
VAR=VALUE.  See below for descriptions of some of the useful variables.
556
 
557
Defaults for the options are specified in brackets.
558
 
559
Configuration:
560
  -h, --help              display this help and exit
561
      --help=short        display options specific to this package
562
      --help=recursive    display the short help of all the included packages
563
  -V, --version           display version information and exit
564
  -q, --quiet, --silent   do not print \`checking...' messages
565
      --cache-file=FILE   cache test results in FILE [disabled]
566
  -C, --config-cache      alias for \`--cache-file=config.cache'
567
  -n, --no-create         do not create output files
568
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
569
 
570
EOF
571
 
572
  cat <
573
Installation directories:
574
  --prefix=PREFIX         install architecture-independent files in PREFIX
575
                          [$ac_default_prefix]
576
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
577
                          [PREFIX]
578
 
579
By default, \`make install' will install all the files in
580
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
581
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
582
for instance \`--prefix=\$HOME'.
583
 
584
For better control, use the options below.
585
 
586
Fine tuning of the installation directories:
587
  --bindir=DIR           user executables [EPREFIX/bin]
588
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
589
  --libexecdir=DIR       program executables [EPREFIX/libexec]
590
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
591
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
592
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
593
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
594
  --libdir=DIR           object code libraries [EPREFIX/lib]
595
  --includedir=DIR       C header files [PREFIX/include]
596
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
597
  --infodir=DIR          info documentation [PREFIX/info]
598
  --mandir=DIR           man documentation [PREFIX/man]
599
EOF
600
 
601
  cat <<\EOF
602
 
603
Program names:
604
  --program-prefix=PREFIX            prepend PREFIX to installed program names
605
  --program-suffix=SUFFIX            append SUFFIX to installed program names
606
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
607
EOF
608
fi
609
 
610
if test -n "$ac_init_help"; then
611
  case $ac_init_help in
612
     short | recursive ) echo "Configuration of rtems-contrib-cygwin _RTEMS_VERSION:";;
613
   esac
614
  cat <<\EOF
615
 
616
Report bugs to .
617
EOF
618
fi
619
 
620
if test "$ac_init_help" = "recursive"; then
621
  # If there are subdirs, report their specific --help.
622
  ac_popdir=`pwd`
623
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
624
    cd $ac_subdir
625
    # A "../" for each directory in /$ac_subdir.
626
    ac_dots=`echo $ac_subdir |
627
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
628
 
629
    case $srcdir in
630
    .) # No --srcdir option.  We are building in place.
631
      ac_sub_srcdir=$srcdir ;;
632
    [\\/]* | ?:[\\/]* ) # Absolute path.
633
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
634
    *) # Relative path.
635
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
636
    esac
637
 
638
    # Check for guested configure; otherwise get Cygnus style configure.
639
    if test -f $ac_sub_srcdir/configure.gnu; then
640
      echo
641
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
642
    elif test -f $ac_sub_srcdir/configure; then
643
      echo
644
      $SHELL $ac_sub_srcdir/configure  --help=recursive
645
    elif test -f $ac_sub_srcdir/configure.ac ||
646
           test -f $ac_sub_srcdir/configure.in; then
647
      echo
648
      $ac_configure --help
649
    else
650
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
651
    fi
652
    cd $ac_popdir
653
  done
654
fi
655
 
656
test -n "$ac_init_help" && exit 0
657
if $ac_init_version; then
658
  cat <<\EOF
659
rtems-contrib-cygwin configure _RTEMS_VERSION
660
generated by GNU Autoconf 2.52
661
 
662
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
663
Free Software Foundation, Inc.
664
This configure script is free software; the Free Software Foundation
665
gives unlimited permission to copy, distribute and modify it.
666
EOF
667
  exit 0
668
fi
669
exec 5>config.log
670
cat >&5 <
671
This file contains any messages produced by compilers while
672
running configure, to aid debugging if configure makes a mistake.
673
 
674
It was created by rtems-contrib-cygwin $as_me _RTEMS_VERSION, which was
675
generated by GNU Autoconf 2.52.  Invocation command line was
676
 
677
  $ $0 $@
678
 
679
EOF
680
{
681
cat <<_ASUNAME
682
## ---------- ##
683
## Platform.  ##
684
## ---------- ##
685
 
686
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
687
uname -m = `(uname -m) 2>/dev/null || echo unknown`
688
uname -r = `(uname -r) 2>/dev/null || echo unknown`
689
uname -s = `(uname -s) 2>/dev/null || echo unknown`
690
uname -v = `(uname -v) 2>/dev/null || echo unknown`
691
 
692
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
693
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
694
 
695
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
696
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
697
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
698
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
699
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
700
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
701
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
702
 
703
PATH = $PATH
704
 
705
_ASUNAME
706
} >&5
707
 
708
cat >&5 <
709
## ------------ ##
710
## Core tests.  ##
711
## ------------ ##
712
 
713
EOF
714
 
715
# Keep a trace of the command line.
716
# Strip out --no-create and --no-recursion so they do not pile up.
717
# Also quote any args containing shell meta-characters.
718
ac_configure_args=
719
ac_sep=
720
for ac_arg
721
do
722
  case $ac_arg in
723
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
724
  | --no-cr | --no-c) ;;
725
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
726
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
727
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
728
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
729
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
730
    ac_sep=" " ;;
731
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
732
     ac_sep=" " ;;
733
  esac
734
  # Get rid of the leading space.
735
done
736
 
737
# When interrupted or exit'd, cleanup temporary files, and complete
738
# config.log.  We remove comments because anyway the quotes in there
739
# would cause problems or look ugly.
740
trap 'exit_status=$?
741
  # Save into config.log some information that might help in debugging.
742
  echo >&5
743
  echo "## ----------------- ##" >&5
744
  echo "## Cache variables.  ##" >&5
745
  echo "## ----------------- ##" >&5
746
  echo >&5
747
  # The following way of writing the cache mishandles newlines in values,
748
{
749
  (set) 2>&1 |
750
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
751
    *ac_space=\ *)
752
      sed -n \
753
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
754
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
755
      ;;
756
    *)
757
      sed -n \
758
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
759
      ;;
760
    esac;
761
} >&5
762
  sed "/^$/d" confdefs.h >conftest.log
763
  if test -s conftest.log; then
764
    echo >&5
765
    echo "## ------------ ##" >&5
766
    echo "## confdefs.h.  ##" >&5
767
    echo "## ------------ ##" >&5
768
    echo >&5
769
    cat conftest.log >&5
770
  fi
771
  (echo; echo) >&5
772
  test "$ac_signal" != 0 &&
773
    echo "$as_me: caught signal $ac_signal" >&5
774
  echo "$as_me: exit $exit_status" >&5
775
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
776
    exit $exit_status
777
     ' 0
778
for ac_signal in 1 2 13 15; do
779
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
780
done
781
ac_signal=0
782
 
783
# confdefs.h avoids OS command line length limits that DEFS can exceed.
784
rm -rf conftest* confdefs.h
785
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
786
echo >confdefs.h
787
 
788
# Let the site file select an alternate cache file if it wants to.
789
# Prefer explicitly selected file to automatically selected ones.
790
if test -z "$CONFIG_SITE"; then
791
  if test "x$prefix" != xNONE; then
792
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
793
  else
794
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
795
  fi
796
fi
797
for ac_site_file in $CONFIG_SITE; do
798
  if test -r "$ac_site_file"; then
799
    { echo "$as_me:799: loading site script $ac_site_file" >&5
800
echo "$as_me: loading site script $ac_site_file" >&6;}
801
    cat "$ac_site_file" >&5
802
    . "$ac_site_file"
803
  fi
804
done
805
 
806
if test -r "$cache_file"; then
807
  # Some versions of bash will fail to source /dev/null (special
808
  # files actually), so we avoid doing that.
809
  if test -f "$cache_file"; then
810
    { echo "$as_me:810: loading cache $cache_file" >&5
811
echo "$as_me: loading cache $cache_file" >&6;}
812
    case $cache_file in
813
      [\\/]* | ?:[\\/]* ) . $cache_file;;
814
      *)                      . ./$cache_file;;
815
    esac
816
  fi
817
else
818
  { echo "$as_me:818: creating cache $cache_file" >&5
819
echo "$as_me: creating cache $cache_file" >&6;}
820
  >$cache_file
821
fi
822
 
823
# Check that the precious variables saved in the cache have kept the same
824
# value.
825
ac_cache_corrupted=false
826
for ac_var in `(set) 2>&1 |
827
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
828
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
829
  eval ac_new_set=\$ac_env_${ac_var}_set
830
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
831
  eval ac_new_val="\$ac_env_${ac_var}_value"
832
  case $ac_old_set,$ac_new_set in
833
    set,)
834
      { echo "$as_me:834: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
835
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
836
      ac_cache_corrupted=: ;;
837
    ,set)
838
      { echo "$as_me:838: error: \`$ac_var' was not set in the previous run" >&5
839
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
840
      ac_cache_corrupted=: ;;
841
    ,);;
842
    *)
843
      if test "x$ac_old_val" != "x$ac_new_val"; then
844
        { echo "$as_me:844: error: \`$ac_var' has changed since the previous run:" >&5
845
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
846
        { echo "$as_me:846:   former value:  $ac_old_val" >&5
847
echo "$as_me:   former value:  $ac_old_val" >&2;}
848
        { echo "$as_me:848:   current value: $ac_new_val" >&5
849
echo "$as_me:   current value: $ac_new_val" >&2;}
850
        ac_cache_corrupted=:
851
      fi;;
852
  esac
853
  # Pass precious variables to config.status.  It doesn't matter if
854
  # we pass some twice (in addition to the command line arguments).
855
  if test "$ac_new_set" = set; then
856
    case $ac_new_val in
857
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
858
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
859
      ac_configure_args="$ac_configure_args '$ac_arg'"
860
      ;;
861
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
862
       ;;
863
    esac
864
  fi
865
done
866
if $ac_cache_corrupted; then
867
  { echo "$as_me:867: error: changes in the environment can compromise the build" >&5
868
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
869
  { { echo "$as_me:869: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
870
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
871
   { (exit 1); exit 1; }; }
872
fi
873
 
874
ac_ext=c
875
ac_cpp='$CPP $CPPFLAGS'
876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
879
 
880
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
881
  *c*,-n*) ECHO_N= ECHO_C='
882
' ECHO_T='      ' ;;
883
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
884
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
885
esac
886
echo "#! $SHELL" >conftest.sh
887
echo  "exit 0"   >>conftest.sh
888
chmod +x conftest.sh
889
if { (echo "$as_me:889: PATH=\".;.\"; conftest.sh") >&5
890
  (PATH=".;."; conftest.sh) 2>&5
891
  ac_status=$?
892
  echo "$as_me:892: \$? = $ac_status" >&5
893
  (exit $ac_status); }; then
894
  ac_path_separator=';'
895
else
896
  ac_path_separator=:
897
fi
898
PATH_SEPARATOR="$ac_path_separator"
899
rm -f conftest.sh
900
 
901
am__api_version="1.6"
902
ac_aux_dir=
903
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
904
  if test -f $ac_dir/install-sh; then
905
    ac_aux_dir=$ac_dir
906
    ac_install_sh="$ac_aux_dir/install-sh -c"
907
    break
908
  elif test -f $ac_dir/install.sh; then
909
    ac_aux_dir=$ac_dir
910
    ac_install_sh="$ac_aux_dir/install.sh -c"
911
    break
912
  elif test -f $ac_dir/shtool; then
913
    ac_aux_dir=$ac_dir
914
    ac_install_sh="$ac_aux_dir/shtool install -c"
915
    break
916
  fi
917
done
918
if test -z "$ac_aux_dir"; then
919
  { { echo "$as_me:919: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
920
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
921
   { (exit 1); exit 1; }; }
922
fi
923
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
924
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
925
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
926
 
927
# Find a good install program.  We prefer a C program (faster),
928
# so one script is as good as another.  But avoid the broken or
929
# incompatible versions:
930
# SysV /etc/install, /usr/sbin/install
931
# SunOS /usr/etc/install
932
# IRIX /sbin/install
933
# AIX /bin/install
934
# AmigaOS /C/install, which installs bootblocks on floppy discs
935
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
936
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
937
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
938
# ./install, which can be erroneously created by make from ./install.sh.
939
echo "$as_me:939: checking for a BSD compatible install" >&5
940
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
941
if test -z "$INSTALL"; then
942
if test "${ac_cv_path_install+set}" = set; then
943
  echo $ECHO_N "(cached) $ECHO_C" >&6
944
else
945
    ac_save_IFS=$IFS; IFS=$ac_path_separator
946
  for ac_dir in $PATH; do
947
    IFS=$ac_save_IFS
948
    # Account for people who put trailing slashes in PATH elements.
949
    case $ac_dir/ in
950
    / | ./ | .// | /cC/* \
951
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
952
    | /usr/ucb/* ) ;;
953
    *)
954
      # OSF1 and SCO ODT 3.0 have their own names for install.
955
      # Don't use installbsd from OSF since it installs stuff as root
956
      # by default.
957
      for ac_prog in ginstall scoinst install; do
958
        if $as_executable_p "$ac_dir/$ac_prog"; then
959
          if test $ac_prog = install &&
960
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
961
            # AIX install.  It has an incompatible calling convention.
962
            :
963
          elif test $ac_prog = install &&
964
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
965
            # program-specific install script used by HP pwplus--don't use.
966
            :
967
          else
968
            ac_cv_path_install="$ac_dir/$ac_prog -c"
969
            break 2
970
          fi
971
        fi
972
      done
973
      ;;
974
    esac
975
  done
976
 
977
fi
978
  if test "${ac_cv_path_install+set}" = set; then
979
    INSTALL=$ac_cv_path_install
980
  else
981
    # As a last resort, use the slow shell script.  We don't cache a
982
    # path for INSTALL within a source directory, because that will
983
    # break other packages using the cache if that directory is
984
    # removed, or if the path is relative.
985
    INSTALL=$ac_install_sh
986
  fi
987
fi
988
echo "$as_me:988: result: $INSTALL" >&5
989
echo "${ECHO_T}$INSTALL" >&6
990
 
991
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
992
# It thinks the first close brace ends the variable substitution.
993
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
994
 
995
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
996
 
997
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
998
 
999
echo "$as_me:999: checking whether build environment is sane" >&5
1000
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1001
# Just in case
1002
sleep 1
1003
echo timestamp > conftest.file
1004
# Do `set' in a subshell so we don't clobber the current shell's
1005
# arguments.  Must try -L first in case configure is actually a
1006
# symlink; some systems play weird games with the mod time of symlinks
1007
# (eg FreeBSD returns the mod time of the symlink's containing
1008
# directory).
1009
if (
1010
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1011
   if test "$*" = "X"; then
1012
      # -L didn't work.
1013
      set X `ls -t $srcdir/configure conftest.file`
1014
   fi
1015
   rm -f conftest.file
1016
   if test "$*" != "X $srcdir/configure conftest.file" \
1017
      && test "$*" != "X conftest.file $srcdir/configure"; then
1018
 
1019
      # If neither matched, then we have a broken ls.  This can happen
1020
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1021
      # broken ls alias from the environment.  This has actually
1022
      # happened.  Such a system could not be considered "sane".
1023
      { { echo "$as_me:1023: error: ls -t appears to fail.  Make sure there is not a broken
1024
alias in your environment" >&5
1025
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1026
alias in your environment" >&2;}
1027
   { (exit 1); exit 1; }; }
1028
   fi
1029
 
1030
   test "$2" = conftest.file
1031
   )
1032
then
1033
   # Ok.
1034
   :
1035
else
1036
   { { echo "$as_me:1036: error: newly created file is older than distributed files!
1037
Check your system clock" >&5
1038
echo "$as_me: error: newly created file is older than distributed files!
1039
Check your system clock" >&2;}
1040
   { (exit 1); exit 1; }; }
1041
fi
1042
echo "$as_me:1042: result: yes" >&5
1043
echo "${ECHO_T}yes" >&6
1044
test "$program_prefix" != NONE &&
1045
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1046
# Use a double $ so make ignores it.
1047
test "$program_suffix" != NONE &&
1048
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1049
# Double any \ or $.  echo might interpret backslashes.
1050
# By default was `s,x,x', remove it if useless.
1051
cat <<\_ACEOF >conftest.sed
1052
s/[\\$]/&&/g;s/;s,x,x,$//
1053
_ACEOF
1054
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1055
rm conftest.sed
1056
 
1057
# expand $ac_aux_dir to an absolute path
1058
am_aux_dir=`cd $ac_aux_dir && pwd`
1059
 
1060
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1061
# Use eval to expand $SHELL
1062
if eval "$MISSING --run true"; then
1063
  am_missing_run="$MISSING --run "
1064
else
1065
  am_missing_run=
1066
  { echo "$as_me:1066: WARNING: \`missing' script is too old or missing" >&5
1067
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1068
fi
1069
 
1070
for ac_prog in mawk gawk nawk awk
1071
do
1072
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1073
set dummy $ac_prog; ac_word=$2
1074
echo "$as_me:1074: checking for $ac_word" >&5
1075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1076
if test "${ac_cv_prog_AWK+set}" = set; then
1077
  echo $ECHO_N "(cached) $ECHO_C" >&6
1078
else
1079
  if test -n "$AWK"; then
1080
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1081
else
1082
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1083
ac_dummy="$PATH"
1084
for ac_dir in $ac_dummy; do
1085
  IFS=$ac_save_IFS
1086
  test -z "$ac_dir" && ac_dir=.
1087
  $as_executable_p "$ac_dir/$ac_word" || continue
1088
ac_cv_prog_AWK="$ac_prog"
1089
echo "$as_me:1089: found $ac_dir/$ac_word" >&5
1090
break
1091
done
1092
 
1093
fi
1094
fi
1095
AWK=$ac_cv_prog_AWK
1096
if test -n "$AWK"; then
1097
  echo "$as_me:1097: result: $AWK" >&5
1098
echo "${ECHO_T}$AWK" >&6
1099
else
1100
  echo "$as_me:1100: result: no" >&5
1101
echo "${ECHO_T}no" >&6
1102
fi
1103
 
1104
  test -n "$AWK" && break
1105
done
1106
 
1107
echo "$as_me:1107: checking whether ${MAKE-make} sets \${MAKE}" >&5
1108
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1109
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1110
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1111
  echo $ECHO_N "(cached) $ECHO_C" >&6
1112
else
1113
  cat >conftest.make <<\EOF
1114
all:
1115
        @echo 'ac_maketemp="${MAKE}"'
1116
EOF
1117
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1118
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1119
if test -n "$ac_maketemp"; then
1120
  eval ac_cv_prog_make_${ac_make}_set=yes
1121
else
1122
  eval ac_cv_prog_make_${ac_make}_set=no
1123
fi
1124
rm -f conftest.make
1125
fi
1126
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1127
  echo "$as_me:1127: result: yes" >&5
1128
echo "${ECHO_T}yes" >&6
1129
  SET_MAKE=
1130
else
1131
  echo "$as_me:1131: result: no" >&5
1132
echo "${ECHO_T}no" >&6
1133
  SET_MAKE="MAKE=${MAKE-make}"
1134
fi
1135
 
1136
 # test to see if srcdir already configured
1137
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1138
   test -f $srcdir/config.status; then
1139
  { { echo "$as_me:1139: error: source directory already configured; run \"make distclean\" there first" >&5
1140
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1141
   { (exit 1); exit 1; }; }
1142
fi
1143
 
1144
# Define the identity of the package.
1145
 PACKAGE=rtems-contrib-cygwin
1146
 VERSION=_RTEMS_VERSION
1147
 
1148
# Some tools Automake needs.
1149
 
1150
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1151
 
1152
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1153
 
1154
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1155
 
1156
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1157
 
1158
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1159
 
1160
AMTAR=${AMTAR-"${am_missing_run}tar"}
1161
 
1162
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1163
 
1164
# Installed binaries are usually stripped using `strip' when the user
1165
# run `make install-strip'.  However `strip' might not be the right
1166
# tool to use in cross-compilation environments, therefore Automake
1167
# will honor the `STRIP' environment variable to overrule this program.
1168
if test "$cross_compiling" != no; then
1169
  if test -n "$ac_tool_prefix"; then
1170
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1171
set dummy ${ac_tool_prefix}strip; ac_word=$2
1172
echo "$as_me:1172: checking for $ac_word" >&5
1173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1174
if test "${ac_cv_prog_STRIP+set}" = set; then
1175
  echo $ECHO_N "(cached) $ECHO_C" >&6
1176
else
1177
  if test -n "$STRIP"; then
1178
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1179
else
1180
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1181
ac_dummy="$PATH"
1182
for ac_dir in $ac_dummy; do
1183
  IFS=$ac_save_IFS
1184
  test -z "$ac_dir" && ac_dir=.
1185
  $as_executable_p "$ac_dir/$ac_word" || continue
1186
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1187
echo "$as_me:1187: found $ac_dir/$ac_word" >&5
1188
break
1189
done
1190
 
1191
fi
1192
fi
1193
STRIP=$ac_cv_prog_STRIP
1194
if test -n "$STRIP"; then
1195
  echo "$as_me:1195: result: $STRIP" >&5
1196
echo "${ECHO_T}$STRIP" >&6
1197
else
1198
  echo "$as_me:1198: result: no" >&5
1199
echo "${ECHO_T}no" >&6
1200
fi
1201
 
1202
fi
1203
if test -z "$ac_cv_prog_STRIP"; then
1204
  ac_ct_STRIP=$STRIP
1205
  # Extract the first word of "strip", so it can be a program name with args.
1206
set dummy strip; ac_word=$2
1207
echo "$as_me:1207: checking for $ac_word" >&5
1208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1209
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1210
  echo $ECHO_N "(cached) $ECHO_C" >&6
1211
else
1212
  if test -n "$ac_ct_STRIP"; then
1213
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1214
else
1215
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1216
ac_dummy="$PATH"
1217
for ac_dir in $ac_dummy; do
1218
  IFS=$ac_save_IFS
1219
  test -z "$ac_dir" && ac_dir=.
1220
  $as_executable_p "$ac_dir/$ac_word" || continue
1221
ac_cv_prog_ac_ct_STRIP="strip"
1222
echo "$as_me:1222: found $ac_dir/$ac_word" >&5
1223
break
1224
done
1225
 
1226
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1227
fi
1228
fi
1229
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1230
if test -n "$ac_ct_STRIP"; then
1231
  echo "$as_me:1231: result: $ac_ct_STRIP" >&5
1232
echo "${ECHO_T}$ac_ct_STRIP" >&6
1233
else
1234
  echo "$as_me:1234: result: no" >&5
1235
echo "${ECHO_T}no" >&6
1236
fi
1237
 
1238
  STRIP=$ac_ct_STRIP
1239
else
1240
  STRIP="$ac_cv_prog_STRIP"
1241
fi
1242
 
1243
fi
1244
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1245
 
1246
# We need awk for the "check" target.  The system "awk" is bad on
1247
# some platforms.
1248
 
1249
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
1250
. ./setup.cache
1251
 
1252
# Some linux distributions use /usr/src/packages
1253
# redhat uses /usr/src/redhat
1254
# others might use /usr/src
1255
echo "$as_me:1255: checking for rpm SPECS directory" >&5
1256
echo $ECHO_N "checking for rpm SPECS directory... $ECHO_C" >&6
1257
if test -d /usr/src/packages/SPECS;
1258
then
1259
  RPM_SPECSdir=/usr/src/packages/SPECS;
1260
elif test -d /usr/src/redhat/SPECS;
1261
then
1262
  RPM_SPECSdir=/usr/src/redhat/SPECS;
1263
elif test -d /usr/src/SPECS;
1264
then
1265
  RPM_SPECSdir=/usr/src/SPECS;
1266
elif test -d /usr/local/src/redhat/SPECS;
1267
then
1268
  RPM_SPECSdir=/usr/local/src/redhat/SPECS;
1269
fi
1270
if test x"$RPM_SPECSdir" = x"" ; then
1271
{ { echo "$as_me:1271: error: not found" >&5
1272
echo "$as_me: error: not found" >&2;}
1273
   { (exit 1); exit 1; }; }
1274
fi
1275
echo "$as_me:1275: result: $RPM_SPECSdir" >&5
1276
echo "${ECHO_T}$RPM_SPECSdir" >&6
1277
 
1278
BINUTILS_VERS="${binutils_version}"
1279
 
1280
BINUTILS_RPMVERS=`echo ${binutils_version} | tr '-' '_'`
1281
 
1282
BINUTILS_RPMREL="${binutils_rpm_release}"
1283
 
1284
MINGW_VERS="${mingw_version}"
1285
 
1286
MINGW_RPMVERS=`echo ${mingw_version} | tr '-' '_'`
1287
 
1288
MINGW_RPMREL="${mingw_rpm_release}"
1289
 
1290
W32API_VERS="${w32api_version}"
1291
 
1292
W32API_RPMVERS=`echo ${w32api_version} | tr '-' '_'`
1293
 
1294
W32API_RPMREL="${w32api_rpm_release}"
1295
 
1296
CYGWIN_VERS="${cygwin_version}"
1297
 
1298
CYGWIN_RPMVERS=`echo ${cygwin_version} | tr '-' '_'`
1299
 
1300
CYGWIN_RPMREL="${cygwin_rpm_release}"
1301
 
1302
GCC_VERS="${gcc_version}"
1303
 
1304
GCC_RPMVERS=`echo ${gcc_version} | tr '-' '_'`
1305
 
1306
GCC_RPMREL="${gcc_rpm_release}"
1307
 
1308
RPM_BUILD_ROOT="$rpm_build_root/%{name}-root"
1309
 
1310
ac_config_files="$ac_config_files Makefile i386-cygwin-binutils.spec i386-cygwin-libs.spec i386-cygwin-w32api.spec i386-cygwin-gcc.spec i386-cygwin-mingw.spec"
1311
 
1312
cat >confcache <<\_ACEOF
1313
# This file is a shell script that caches the results of configure
1314
# tests run on this system so they can be shared between configure
1315
# scripts and configure runs, see configure's option --config-cache.
1316
# It is not useful on other systems.  If it contains results you don't
1317
# want to keep, you may remove or edit it.
1318
#
1319
# config.status only pays attention to the cache file if you give it
1320
# the --recheck option to rerun configure.
1321
#
1322
# `ac_cv_env_foo' variables (set or unset) will be overriden when
1323
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1324
# following values.
1325
 
1326
_ACEOF
1327
 
1328
# The following way of writing the cache mishandles newlines in values,
1329
# but we know of no workaround that is simple, portable, and efficient.
1330
# So, don't put newlines in cache variables' values.
1331
# Ultrix sh set writes to stderr and can't be redirected directly,
1332
# and sets the high bit in the cache file unless we assign to the vars.
1333
{
1334
  (set) 2>&1 |
1335
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
1336
    *ac_space=\ *)
1337
      # `set' does not quote correctly, so add quotes (double-quote
1338
      # substitution turns \\\\ into \\, and sed turns \\ into \).
1339
      sed -n \
1340
        "s/'/'\\\\''/g;
1341
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1342
      ;;
1343
    *)
1344
      # `set' quotes correctly as required by POSIX, so do not add quotes.
1345
      sed -n \
1346
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347
      ;;
1348
    esac;
1349
} |
1350
  sed '
1351
     t clear
1352
     : clear
1353
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1354
     t end
1355
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1356
     : end' >>confcache
1357
if cmp -s $cache_file confcache; then :; else
1358
  if test -w $cache_file; then
1359
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1360
    cat confcache >$cache_file
1361
  else
1362
    echo "not updating unwritable cache $cache_file"
1363
  fi
1364
fi
1365
rm -f confcache
1366
 
1367
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1368
# Let make expand exec_prefix.
1369
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1370
 
1371
# VPATH may cause trouble with some makes, so we remove $(srcdir),
1372
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1373
# trailing colons and then remove the whole line if VPATH becomes empty
1374
# (actually we leave an empty line to preserve line numbers).
1375
if test "x$srcdir" = x.; then
1376
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
1377
s/:*\$(srcdir):*/:/;
1378
s/:*\${srcdir}:*/:/;
1379
s/:*@srcdir@:*/:/;
1380
s/^\([^=]*=[    ]*\):*/\1/;
1381
s/:*$//;
1382
s/^[^=]*=[      ]*$//;
1383
}'
1384
fi
1385
 
1386
# Transform confdefs.h into DEFS.
1387
# Protect against shell expansion while executing Makefile rules.
1388
# Protect against Makefile macro expansion.
1389
#
1390
# If the first sed substitution is executed (which looks for macros that
1391
# take arguments), then we branch to the quote section.  Otherwise,
1392
# look for a macro that doesn't take arguments.
1393
cat >confdef2opt.sed <<\EOF
1394
t clear
1395
: clear
1396
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1397
t quote
1398
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1399
t quote
1400
d
1401
: quote
1402
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1403
s,\[,\\&,g
1404
s,\],\\&,g
1405
s,\$,$$,g
1406
p
1407
EOF
1408
# We use echo to avoid assuming a particular line-breaking character.
1409
# The extra dot is to prevent the shell from consuming trailing
1410
# line-breaks from the sub-command output.  A line-break within
1411
# single-quotes doesn't work because, if this script is created in a
1412
# platform that uses two characters for line-breaks (e.g., DOS), tr
1413
# would break.
1414
ac_LF_and_DOT=`echo; echo .`
1415
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1416
rm -f confdef2opt.sed
1417
 
1418
: ${CONFIG_STATUS=./config.status}
1419
ac_clean_files_save=$ac_clean_files
1420
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1421
{ echo "$as_me:1421: creating $CONFIG_STATUS" >&5
1422
echo "$as_me: creating $CONFIG_STATUS" >&6;}
1423
cat >$CONFIG_STATUS <<_ACEOF
1424
#! $SHELL
1425
# Generated automatically by configure.
1426
# Run this file to recreate the current configuration.
1427
# Compiler output produced by configure, useful for debugging
1428
# configure, is in config.log if it exists.
1429
 
1430
debug=false
1431
SHELL=\${CONFIG_SHELL-$SHELL}
1432
ac_cs_invocation="\$0 \$@"
1433
 
1434
_ACEOF
1435
 
1436
cat >>$CONFIG_STATUS <<\_ACEOF
1437
# Be Bourne compatible
1438
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1439
  emulate sh
1440
  NULLCMD=:
1441
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1442
  set -o posix
1443
fi
1444
 
1445
# Name of the executable.
1446
as_me=`echo "$0" |sed 's,.*[\\/],,'`
1447
 
1448
if expr a : '\(a\)' >/dev/null 2>&1; then
1449
  as_expr=expr
1450
else
1451
  as_expr=false
1452
fi
1453
 
1454
rm -f conf$$ conf$$.exe conf$$.file
1455
echo >conf$$.file
1456
if ln -s conf$$.file conf$$ 2>/dev/null; then
1457
  # We could just check for DJGPP; but this test a) works b) is more generic
1458
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1459
  if test -f conf$$.exe; then
1460
    # Don't use ln at all; we don't have any links
1461
    as_ln_s='cp -p'
1462
  else
1463
    as_ln_s='ln -s'
1464
  fi
1465
elif ln conf$$.file conf$$ 2>/dev/null; then
1466
  as_ln_s=ln
1467
else
1468
  as_ln_s='cp -p'
1469
fi
1470
rm -f conf$$ conf$$.exe conf$$.file
1471
 
1472
as_executable_p="test -f"
1473
 
1474
# Support unset when possible.
1475
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1476
  as_unset=unset
1477
else
1478
  as_unset=false
1479
fi
1480
 
1481
# NLS nuisances.
1482
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1483
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1484
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1485
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1486
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1487
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1488
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1489
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1490
 
1491
# IFS
1492
# We need space, tab and new line, in precisely that order.
1493
as_nl='
1494
'
1495
IFS="   $as_nl"
1496
 
1497
# CDPATH.
1498
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1499
 
1500
exec 6>&1
1501
 
1502
_ACEOF
1503
 
1504
# Files that config.status was made for.
1505
if test -n "$ac_config_files"; then
1506
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1507
fi
1508
 
1509
if test -n "$ac_config_headers"; then
1510
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1511
fi
1512
 
1513
if test -n "$ac_config_links"; then
1514
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1515
fi
1516
 
1517
if test -n "$ac_config_commands"; then
1518
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1519
fi
1520
 
1521
cat >>$CONFIG_STATUS <<\EOF
1522
 
1523
ac_cs_usage="\
1524
\`$as_me' instantiates files from templates according to the
1525
current configuration.
1526
 
1527
Usage: $0 [OPTIONS] [FILE]...
1528
 
1529
  -h, --help       print this help, then exit
1530
  -V, --version    print version number, then exit
1531
  -d, --debug      don't remove temporary files
1532
      --recheck    update $as_me by reconfiguring in the same conditions
1533
  --file=FILE[:TEMPLATE]
1534
                   instantiate the configuration file FILE
1535
 
1536
Configuration files:
1537
$config_files
1538
 
1539
Report bugs to ."
1540
EOF
1541
 
1542
cat >>$CONFIG_STATUS <
1543
ac_cs_version="\\
1544
rtems-contrib-cygwin config.status _RTEMS_VERSION
1545
configured by $0, generated by GNU Autoconf 2.52,
1546
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1547
 
1548
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1549
Free Software Foundation, Inc.
1550
This config.status script is free software; the Free Software Foundation
1551
gives unlimited permission to copy, distribute and modify it."
1552
srcdir=$srcdir
1553
INSTALL="$INSTALL"
1554
EOF
1555
 
1556
cat >>$CONFIG_STATUS <<\EOF
1557
# If no file are specified by the user, then we need to provide default
1558
# value.  By we need to know if files were specified by the user.
1559
ac_need_defaults=:
1560
while test $# != 0
1561
do
1562
  case $1 in
1563
  --*=*)
1564
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
1565
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1566
    shift
1567
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1568
    shift
1569
    ;;
1570
  -*);;
1571
  *) # This is not an option, so the user has probably given explicit
1572
     # arguments.
1573
     ac_need_defaults=false;;
1574
  esac
1575
 
1576
  case $1 in
1577
  # Handling of the options.
1578
EOF
1579
cat >>$CONFIG_STATUS <
1580
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1581
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1582
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1583
EOF
1584
cat >>$CONFIG_STATUS <<\EOF
1585
  --version | --vers* | -V )
1586
    echo "$ac_cs_version"; exit 0 ;;
1587
  --he | --h)
1588
    # Conflict between --help and --header
1589
    { { echo "$as_me:1589: error: ambiguous option: $1
1590
Try \`$0 --help' for more information." >&5
1591
echo "$as_me: error: ambiguous option: $1
1592
Try \`$0 --help' for more information." >&2;}
1593
   { (exit 1); exit 1; }; };;
1594
  --help | --hel | -h )
1595
    echo "$ac_cs_usage"; exit 0 ;;
1596
  --debug | --d* | -d )
1597
    debug=: ;;
1598
  --file | --fil | --fi | --f )
1599
    shift
1600
    CONFIG_FILES="$CONFIG_FILES $1"
1601
    ac_need_defaults=false;;
1602
  --header | --heade | --head | --hea )
1603
    shift
1604
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
1605
    ac_need_defaults=false;;
1606
 
1607
  # This is an error.
1608
  -*) { { echo "$as_me:1608: error: unrecognized option: $1
1609
Try \`$0 --help' for more information." >&5
1610
echo "$as_me: error: unrecognized option: $1
1611
Try \`$0 --help' for more information." >&2;}
1612
   { (exit 1); exit 1; }; } ;;
1613
 
1614
  *) ac_config_targets="$ac_config_targets $1" ;;
1615
 
1616
  esac
1617
  shift
1618
done
1619
 
1620
exec 5>>config.log
1621
cat >&5 << _ACEOF
1622
 
1623
## ----------------------- ##
1624
## Running config.status.  ##
1625
## ----------------------- ##
1626
 
1627
This file was extended by $as_me (rtems-contrib-cygwin _RTEMS_VERSION) 2.52, executed with
1628
  CONFIG_FILES    = $CONFIG_FILES
1629
  CONFIG_HEADERS  = $CONFIG_HEADERS
1630
  CONFIG_LINKS    = $CONFIG_LINKS
1631
  CONFIG_COMMANDS = $CONFIG_COMMANDS
1632
  > $ac_cs_invocation
1633
on `(hostname || uname -n) 2>/dev/null | sed 1q`
1634
 
1635
_ACEOF
1636
EOF
1637
 
1638
cat >>$CONFIG_STATUS <<\EOF
1639
for ac_config_target in $ac_config_targets
1640
do
1641
  case "$ac_config_target" in
1642
  # Handling of arguments.
1643
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1644
  "i386-cygwin-binutils.spec" ) CONFIG_FILES="$CONFIG_FILES i386-cygwin-binutils.spec" ;;
1645
  "i386-cygwin-libs.spec" ) CONFIG_FILES="$CONFIG_FILES i386-cygwin-libs.spec" ;;
1646
  "i386-cygwin-w32api.spec" ) CONFIG_FILES="$CONFIG_FILES i386-cygwin-w32api.spec" ;;
1647
  "i386-cygwin-gcc.spec" ) CONFIG_FILES="$CONFIG_FILES i386-cygwin-gcc.spec" ;;
1648
  "i386-cygwin-mingw.spec" ) CONFIG_FILES="$CONFIG_FILES i386-cygwin-mingw.spec" ;;
1649
  *) { { echo "$as_me:1649: error: invalid argument: $ac_config_target" >&5
1650
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1651
   { (exit 1); exit 1; }; };;
1652
  esac
1653
done
1654
 
1655
# If the user did not use the arguments to specify the items to instantiate,
1656
# then the envvar interface is used.  Set only those that are not.
1657
# We use the long form for the default assignment because of an extremely
1658
# bizarre bug on SunOS 4.1.3.
1659
if $ac_need_defaults; then
1660
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1661
fi
1662
 
1663
# Create a temporary directory, and hook for its removal unless debugging.
1664
$debug ||
1665
{
1666
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1667
  trap '{ (exit 1); exit 1; }' 1 2 13 15
1668
}
1669
 
1670
# Create a (secure) tmp directory for tmp files.
1671
: ${TMPDIR=/tmp}
1672
{
1673
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1674
  test -n "$tmp" && test -d "$tmp"
1675
}  ||
1676
{
1677
  tmp=$TMPDIR/cs$$-$RANDOM
1678
  (umask 077 && mkdir $tmp)
1679
} ||
1680
{
1681
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1682
   { (exit 1); exit 1; }
1683
}
1684
 
1685
EOF
1686
 
1687
cat >>$CONFIG_STATUS <
1688
 
1689
#
1690
# CONFIG_FILES section.
1691
#
1692
 
1693
# No need to generate the scripts if there are no CONFIG_FILES.
1694
# This happens for instance when ./config.status config.h
1695
if test -n "\$CONFIG_FILES"; then
1696
  # Protect against being on the right side of a sed subst in config.status.
1697
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1698
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1699
s,@SHELL@,$SHELL,;t t
1700
s,@exec_prefix@,$exec_prefix,;t t
1701
s,@prefix@,$prefix,;t t
1702
s,@program_transform_name@,$program_transform_name,;t t
1703
s,@bindir@,$bindir,;t t
1704
s,@sbindir@,$sbindir,;t t
1705
s,@libexecdir@,$libexecdir,;t t
1706
s,@datadir@,$datadir,;t t
1707
s,@sysconfdir@,$sysconfdir,;t t
1708
s,@sharedstatedir@,$sharedstatedir,;t t
1709
s,@localstatedir@,$localstatedir,;t t
1710
s,@libdir@,$libdir,;t t
1711
s,@includedir@,$includedir,;t t
1712
s,@oldincludedir@,$oldincludedir,;t t
1713
s,@infodir@,$infodir,;t t
1714
s,@mandir@,$mandir,;t t
1715
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1716
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1717
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1718
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1719
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1720
s,@build_alias@,$build_alias,;t t
1721
s,@host_alias@,$host_alias,;t t
1722
s,@target_alias@,$target_alias,;t t
1723
s,@ECHO_C@,$ECHO_C,;t t
1724
s,@ECHO_N@,$ECHO_N,;t t
1725
s,@ECHO_T@,$ECHO_T,;t t
1726
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1727
s,@DEFS@,$DEFS,;t t
1728
s,@LIBS@,$LIBS,;t t
1729
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1730
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1731
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1732
s,@PACKAGE@,$PACKAGE,;t t
1733
s,@VERSION@,$VERSION,;t t
1734
s,@ACLOCAL@,$ACLOCAL,;t t
1735
s,@AUTOCONF@,$AUTOCONF,;t t
1736
s,@AUTOMAKE@,$AUTOMAKE,;t t
1737
s,@AUTOHEADER@,$AUTOHEADER,;t t
1738
s,@MAKEINFO@,$MAKEINFO,;t t
1739
s,@AMTAR@,$AMTAR,;t t
1740
s,@install_sh@,$install_sh,;t t
1741
s,@STRIP@,$STRIP,;t t
1742
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
1743
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1744
s,@AWK@,$AWK,;t t
1745
s,@SET_MAKE@,$SET_MAKE,;t t
1746
s,@RPM_SPECSdir@,$RPM_SPECSdir,;t t
1747
s,@BINUTILS_VERS@,$BINUTILS_VERS,;t t
1748
s,@BINUTILS_RPMVERS@,$BINUTILS_RPMVERS,;t t
1749
s,@BINUTILS_RPMREL@,$BINUTILS_RPMREL,;t t
1750
s,@MINGW_VERS@,$MINGW_VERS,;t t
1751
s,@MINGW_RPMVERS@,$MINGW_RPMVERS,;t t
1752
s,@MINGW_RPMREL@,$MINGW_RPMREL,;t t
1753
s,@W32API_VERS@,$W32API_VERS,;t t
1754
s,@W32API_RPMVERS@,$W32API_RPMVERS,;t t
1755
s,@W32API_RPMREL@,$W32API_RPMREL,;t t
1756
s,@CYGWIN_VERS@,$CYGWIN_VERS,;t t
1757
s,@CYGWIN_RPMVERS@,$CYGWIN_RPMVERS,;t t
1758
s,@CYGWIN_RPMREL@,$CYGWIN_RPMREL,;t t
1759
s,@GCC_VERS@,$GCC_VERS,;t t
1760
s,@GCC_RPMVERS@,$GCC_RPMVERS,;t t
1761
s,@GCC_RPMREL@,$GCC_RPMREL,;t t
1762
s,@RPM_BUILD_ROOT@,$RPM_BUILD_ROOT,;t t
1763
CEOF
1764
 
1765
EOF
1766
 
1767
  cat >>$CONFIG_STATUS <<\EOF
1768
  # Split the substitutions into bite-sized pieces for seds with
1769
  # small command number limits, like on Digital OSF/1 and HP-UX.
1770
  ac_max_sed_lines=48
1771
  ac_sed_frag=1 # Number of current file.
1772
  ac_beg=1 # First line for current file.
1773
  ac_end=$ac_max_sed_lines # Line after last line for current file.
1774
  ac_more_lines=:
1775
  ac_sed_cmds=
1776
  while $ac_more_lines; do
1777
    if test $ac_beg -gt 1; then
1778
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1779
    else
1780
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1781
    fi
1782
    if test ! -s $tmp/subs.frag; then
1783
      ac_more_lines=false
1784
    else
1785
      # The purpose of the label and of the branching condition is to
1786
      # speed up the sed processing (if there are no `@' at all, there
1787
      # is no need to browse any of the substitutions).
1788
      # These are the two extra sed commands mentioned above.
1789
      (echo ':t
1790
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1791
      if test -z "$ac_sed_cmds"; then
1792
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1793
      else
1794
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1795
      fi
1796
      ac_sed_frag=`expr $ac_sed_frag + 1`
1797
      ac_beg=$ac_end
1798
      ac_end=`expr $ac_end + $ac_max_sed_lines`
1799
    fi
1800
  done
1801
  if test -z "$ac_sed_cmds"; then
1802
    ac_sed_cmds=cat
1803
  fi
1804
fi # test -n "$CONFIG_FILES"
1805
 
1806
EOF
1807
cat >>$CONFIG_STATUS <<\EOF
1808
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1809
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1810
  case $ac_file in
1811
  - | *:- | *:-:* ) # input from stdin
1812
        cat >$tmp/stdin
1813
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1814
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1815
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1816
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1817
  * )   ac_file_in=$ac_file.in ;;
1818
  esac
1819
 
1820
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1821
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1822
         X"$ac_file" : 'X\(//\)[^/]' \| \
1823
         X"$ac_file" : 'X\(//\)$' \| \
1824
         X"$ac_file" : 'X\(/\)' \| \
1825
         .     : '\(.\)' 2>/dev/null ||
1826
echo X"$ac_file" |
1827
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1828
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1829
          /^X\(\/\/\)$/{ s//\1/; q; }
1830
          /^X\(\/\).*/{ s//\1/; q; }
1831
          s/.*/./; q'`
1832
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1833
    { case "$ac_dir" in
1834
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1835
  *)                      as_incr_dir=.;;
1836
esac
1837
as_dummy="$ac_dir"
1838
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1839
  case $as_mkdir_dir in
1840
    # Skip DOS drivespec
1841
    ?:) as_incr_dir=$as_mkdir_dir ;;
1842
    *)
1843
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
1844
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
1845
    ;;
1846
  esac
1847
done; }
1848
 
1849
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1850
    # A "../" for each directory in $ac_dir_suffix.
1851
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1852
  else
1853
    ac_dir_suffix= ac_dots=
1854
  fi
1855
 
1856
  case $srcdir in
1857
  .)  ac_srcdir=.
1858
      if test -z "$ac_dots"; then
1859
         ac_top_srcdir=.
1860
      else
1861
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
1862
      fi ;;
1863
  [\\/]* | ?:[\\/]* )
1864
      ac_srcdir=$srcdir$ac_dir_suffix;
1865
      ac_top_srcdir=$srcdir ;;
1866
  *) # Relative path.
1867
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
1868
    ac_top_srcdir=$ac_dots$srcdir ;;
1869
  esac
1870
 
1871
  case $INSTALL in
1872
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1873
  *) ac_INSTALL=$ac_dots$INSTALL ;;
1874
  esac
1875
 
1876
  if test x"$ac_file" != x-; then
1877
    { echo "$as_me:1877: creating $ac_file" >&5
1878
echo "$as_me: creating $ac_file" >&6;}
1879
    rm -f "$ac_file"
1880
  fi
1881
  # Let's still pretend it is `configure' which instantiates (i.e., don't
1882
  # use $as_me), people would be surprised to read:
1883
  #    /* config.h.  Generated automatically by config.status.  */
1884
  configure_input="Generated automatically from `echo $ac_file_in |
1885
                                                 sed 's,.*/,,'` by configure."
1886
 
1887
  # First look for the input files in the build tree, otherwise in the
1888
  # src tree.
1889
  ac_file_inputs=`IFS=:
1890
    for f in $ac_file_in; do
1891
      case $f in
1892
      -) echo $tmp/stdin ;;
1893
      [\\/$]*)
1894
         # Absolute (can't be DOS-style, as IFS=:)
1895
         test -f "$f" || { { echo "$as_me:1895: error: cannot find input file: $f" >&5
1896
echo "$as_me: error: cannot find input file: $f" >&2;}
1897
   { (exit 1); exit 1; }; }
1898
         echo $f;;
1899
      *) # Relative
1900
         if test -f "$f"; then
1901
           # Build tree
1902
           echo $f
1903
         elif test -f "$srcdir/$f"; then
1904
           # Source tree
1905
           echo $srcdir/$f
1906
         else
1907
           # /dev/null tree
1908
           { { echo "$as_me:1908: error: cannot find input file: $f" >&5
1909
echo "$as_me: error: cannot find input file: $f" >&2;}
1910
   { (exit 1); exit 1; }; }
1911
         fi;;
1912
      esac
1913
    done` || { (exit 1); exit 1; }
1914
EOF
1915
cat >>$CONFIG_STATUS <
1916
  sed "$ac_vpsub
1917
$extrasub
1918
EOF
1919
cat >>$CONFIG_STATUS <<\EOF
1920
:t
1921
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1922
s,@configure_input@,$configure_input,;t t
1923
s,@srcdir@,$ac_srcdir,;t t
1924
s,@top_srcdir@,$ac_top_srcdir,;t t
1925
s,@INSTALL@,$ac_INSTALL,;t t
1926
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1927
  rm -f $tmp/stdin
1928
  if test x"$ac_file" != x-; then
1929
    mv $tmp/out $ac_file
1930
  else
1931
    cat $tmp/out
1932
    rm -f $tmp/out
1933
  fi
1934
 
1935
done
1936
EOF
1937
 
1938
cat >>$CONFIG_STATUS <<\EOF
1939
 
1940
{ (exit 0); exit 0; }
1941
EOF
1942
chmod +x $CONFIG_STATUS
1943
ac_clean_files=$ac_clean_files_save
1944
 
1945
# configure is writing to config.log, and then calls config.status.
1946
# config.status does its own redirection, appending to config.log.
1947
# Unfortunately, on DOS this fails, as config.log is still kept open
1948
# by configure, so config.status won't be able to write to it; its
1949
# output is simply discarded.  So we exec the FD to /dev/null,
1950
# effectively closing config.log, so it can be properly (re)opened and
1951
# appended to by config.status.  When coming back to configure, we
1952
# need to make the FD available again.
1953
if test "$no_create" != yes; then
1954
  ac_cs_success=:
1955
  exec 5>/dev/null
1956
  $SHELL $CONFIG_STATUS || ac_cs_success=false
1957
  exec 5>>config.log
1958
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1959
  # would make configure fail if this is the last instruction.
1960
  $ac_cs_success || { (exit 1); exit 1; }
1961
fi
1962
 

powered by: WebSVN 2.1.0

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