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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_help="$ac_help
15
  --enable-multilib         build many library versions (default)"
16
ac_help="$ac_help
17
  --enable-target-optspace  optimize for space"
18
ac_help="$ac_help
19
  --enable-malloc-debugging indicate malloc debugging requested"
20
ac_help="$ac_help
21
  --enable-newlib-mb        enable multibyte support"
22
ac_help="$ac_help
23
  --enable-maintainer-mode enable make rules and dependencies not useful
24
                          (and sometimes confusing) to the casual installer"
25
ac_help="$ac_help
26
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
27
ac_help="$ac_help
28
  --enable-static[=PKGS]  build static libraries [default=yes]"
29
ac_help="$ac_help
30
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
31
ac_help="$ac_help
32
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
33
ac_help="$ac_help
34
  --disable-libtool-lock  avoid locking (might break parallel builds)"
35
 
36
# Initialize some variables set by options.
37
# The variables have the same names as the options, with
38
# dashes changed to underlines.
39
build=NONE
40
cache_file=./config.cache
41
exec_prefix=NONE
42
host=NONE
43
no_create=
44
nonopt=NONE
45
no_recursion=
46
prefix=NONE
47
program_prefix=NONE
48
program_suffix=NONE
49
program_transform_name=s,x,x,
50
silent=
51
site=
52
sitefile=
53
srcdir=
54
target=NONE
55
verbose=
56
x_includes=NONE
57
x_libraries=NONE
58
bindir='${exec_prefix}/bin'
59
sbindir='${exec_prefix}/sbin'
60
libexecdir='${exec_prefix}/libexec'
61
datadir='${prefix}/share'
62
sysconfdir='${prefix}/etc'
63
sharedstatedir='${prefix}/com'
64
localstatedir='${prefix}/var'
65
libdir='${exec_prefix}/lib'
66
includedir='${prefix}/include'
67
oldincludedir='/usr/include'
68
infodir='${prefix}/info'
69
mandir='${prefix}/man'
70
 
71
# Initialize some other variables.
72
subdirs=
73
MFLAGS= MAKEFLAGS=
74
SHELL=${CONFIG_SHELL-/bin/sh}
75
# Maximum number of lines to put in a shell here document.
76
ac_max_here_lines=12
77
 
78
ac_prev=
79
for ac_option
80
do
81
 
82
  # If the previous option needs an argument, assign it.
83
  if test -n "$ac_prev"; then
84
    eval "$ac_prev=\$ac_option"
85
    ac_prev=
86
    continue
87
  fi
88
 
89
  case "$ac_option" in
90
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91
  *) ac_optarg= ;;
92
  esac
93
 
94
  # Accept the important Cygnus configure options, so we can diagnose typos.
95
 
96
  case "$ac_option" in
97
 
98
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
99
    ac_prev=bindir ;;
100
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101
    bindir="$ac_optarg" ;;
102
 
103
  -build | --build | --buil | --bui | --bu)
104
    ac_prev=build ;;
105
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106
    build="$ac_optarg" ;;
107
 
108
  -cache-file | --cache-file | --cache-fil | --cache-fi \
109
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110
    ac_prev=cache_file ;;
111
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113
    cache_file="$ac_optarg" ;;
114
 
115
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116
    ac_prev=datadir ;;
117
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118
  | --da=*)
119
    datadir="$ac_optarg" ;;
120
 
121
  -disable-* | --disable-*)
122
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123
    # Reject names that are not valid shell variable names.
124
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126
    fi
127
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128
    eval "enable_${ac_feature}=no" ;;
129
 
130
  -enable-* | --enable-*)
131
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132
    # Reject names that are not valid shell variable names.
133
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135
    fi
136
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137
    case "$ac_option" in
138
      *=*) ;;
139
      *) ac_optarg=yes ;;
140
    esac
141
    eval "enable_${ac_feature}='$ac_optarg'" ;;
142
 
143
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145
  | --exec | --exe | --ex)
146
    ac_prev=exec_prefix ;;
147
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149
  | --exec=* | --exe=* | --ex=*)
150
    exec_prefix="$ac_optarg" ;;
151
 
152
  -gas | --gas | --ga | --g)
153
    # Obsolete; use --with-gas.
154
    with_gas=yes ;;
155
 
156
  -help | --help | --hel | --he)
157
    # Omit some internal or obsolete options to make the list less imposing.
158
    # This message is too long to be a string in the A/UX 3.1 sh.
159
    cat << EOF
160
Usage: configure [options] [host]
161
Options: [defaults in brackets after descriptions]
162
Configuration:
163
  --cache-file=FILE       cache test results in FILE
164
  --help                  print this message
165
  --no-create             do not create output files
166
  --quiet, --silent       do not print \`checking...' messages
167
  --site-file=FILE        use FILE as the site file
168
  --version               print the version of autoconf that created configure
169
Directory and file names:
170
  --prefix=PREFIX         install architecture-independent files in PREFIX
171
                          [$ac_default_prefix]
172
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
173
                          [same as prefix]
174
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
175
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
176
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
177
  --datadir=DIR           read-only architecture-independent data in DIR
178
                          [PREFIX/share]
179
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
180
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
181
                          [PREFIX/com]
182
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
183
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
184
  --includedir=DIR        C header files in DIR [PREFIX/include]
185
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
186
  --infodir=DIR           info documentation in DIR [PREFIX/info]
187
  --mandir=DIR            man documentation in DIR [PREFIX/man]
188
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
189
  --program-prefix=PREFIX prepend PREFIX to installed program names
190
  --program-suffix=SUFFIX append SUFFIX to installed program names
191
  --program-transform-name=PROGRAM
192
                          run sed PROGRAM on installed program names
193
EOF
194
    cat << EOF
195
Host type:
196
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
197
  --host=HOST             configure for HOST [guessed]
198
  --target=TARGET         configure for TARGET [TARGET=HOST]
199
Features and packages:
200
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
201
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
202
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
203
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
204
  --x-includes=DIR        X include files are in DIR
205
  --x-libraries=DIR       X library files are in DIR
206
EOF
207
    if test -n "$ac_help"; then
208
      echo "--enable and --with options recognized:$ac_help"
209
    fi
210
    exit 0 ;;
211
 
212
  -host | --host | --hos | --ho)
213
    ac_prev=host ;;
214
  -host=* | --host=* | --hos=* | --ho=*)
215
    host="$ac_optarg" ;;
216
 
217
  -includedir | --includedir | --includedi | --included | --include \
218
  | --includ | --inclu | --incl | --inc)
219
    ac_prev=includedir ;;
220
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221
  | --includ=* | --inclu=* | --incl=* | --inc=*)
222
    includedir="$ac_optarg" ;;
223
 
224
  -infodir | --infodir | --infodi | --infod | --info | --inf)
225
    ac_prev=infodir ;;
226
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227
    infodir="$ac_optarg" ;;
228
 
229
  -libdir | --libdir | --libdi | --libd)
230
    ac_prev=libdir ;;
231
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
232
    libdir="$ac_optarg" ;;
233
 
234
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235
  | --libexe | --libex | --libe)
236
    ac_prev=libexecdir ;;
237
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238
  | --libexe=* | --libex=* | --libe=*)
239
    libexecdir="$ac_optarg" ;;
240
 
241
  -localstatedir | --localstatedir | --localstatedi | --localstated \
242
  | --localstate | --localstat | --localsta | --localst \
243
  | --locals | --local | --loca | --loc | --lo)
244
    ac_prev=localstatedir ;;
245
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248
    localstatedir="$ac_optarg" ;;
249
 
250
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251
    ac_prev=mandir ;;
252
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253
    mandir="$ac_optarg" ;;
254
 
255
  -nfp | --nfp | --nf)
256
    # Obsolete; use --without-fp.
257
    with_fp=no ;;
258
 
259
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260
  | --no-cr | --no-c)
261
    no_create=yes ;;
262
 
263
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265
    no_recursion=yes ;;
266
 
267
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269
  | --oldin | --oldi | --old | --ol | --o)
270
    ac_prev=oldincludedir ;;
271
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274
    oldincludedir="$ac_optarg" ;;
275
 
276
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277
    ac_prev=prefix ;;
278
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279
    prefix="$ac_optarg" ;;
280
 
281
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
282
  | --program-pre | --program-pr | --program-p)
283
    ac_prev=program_prefix ;;
284
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
285
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286
    program_prefix="$ac_optarg" ;;
287
 
288
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
289
  | --program-suf | --program-su | --program-s)
290
    ac_prev=program_suffix ;;
291
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
292
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293
    program_suffix="$ac_optarg" ;;
294
 
295
  -program-transform-name | --program-transform-name \
296
  | --program-transform-nam | --program-transform-na \
297
  | --program-transform-n | --program-transform- \
298
  | --program-transform | --program-transfor \
299
  | --program-transfo | --program-transf \
300
  | --program-trans | --program-tran \
301
  | --progr-tra | --program-tr | --program-t)
302
    ac_prev=program_transform_name ;;
303
  -program-transform-name=* | --program-transform-name=* \
304
  | --program-transform-nam=* | --program-transform-na=* \
305
  | --program-transform-n=* | --program-transform-=* \
306
  | --program-transform=* | --program-transfor=* \
307
  | --program-transfo=* | --program-transf=* \
308
  | --program-trans=* | --program-tran=* \
309
  | --progr-tra=* | --program-tr=* | --program-t=*)
310
    program_transform_name="$ac_optarg" ;;
311
 
312
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313
  | -silent | --silent | --silen | --sile | --sil)
314
    silent=yes ;;
315
 
316
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317
    ac_prev=sbindir ;;
318
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319
  | --sbi=* | --sb=*)
320
    sbindir="$ac_optarg" ;;
321
 
322
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
323
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324
  | --sharedst | --shareds | --shared | --share | --shar \
325
  | --sha | --sh)
326
    ac_prev=sharedstatedir ;;
327
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330
  | --sha=* | --sh=*)
331
    sharedstatedir="$ac_optarg" ;;
332
 
333
  -site | --site | --sit)
334
    ac_prev=site ;;
335
  -site=* | --site=* | --sit=*)
336
    site="$ac_optarg" ;;
337
 
338
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
339
    ac_prev=sitefile ;;
340
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341
    sitefile="$ac_optarg" ;;
342
 
343
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344
    ac_prev=srcdir ;;
345
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346
    srcdir="$ac_optarg" ;;
347
 
348
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349
  | --syscon | --sysco | --sysc | --sys | --sy)
350
    ac_prev=sysconfdir ;;
351
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353
    sysconfdir="$ac_optarg" ;;
354
 
355
  -target | --target | --targe | --targ | --tar | --ta | --t)
356
    ac_prev=target ;;
357
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358
    target="$ac_optarg" ;;
359
 
360
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
361
    verbose=yes ;;
362
 
363
  -version | --version | --versio | --versi | --vers)
364
    echo "configure generated by autoconf version 2.13"
365
    exit 0 ;;
366
 
367
  -with-* | --with-*)
368
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369
    # Reject names that are not valid shell variable names.
370
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372
    fi
373
    ac_package=`echo $ac_package| sed 's/-/_/g'`
374
    case "$ac_option" in
375
      *=*) ;;
376
      *) ac_optarg=yes ;;
377
    esac
378
    eval "with_${ac_package}='$ac_optarg'" ;;
379
 
380
  -without-* | --without-*)
381
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382
    # Reject names that are not valid shell variable names.
383
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385
    fi
386
    ac_package=`echo $ac_package| sed 's/-/_/g'`
387
    eval "with_${ac_package}=no" ;;
388
 
389
  --x)
390
    # Obsolete; use --with-x.
391
    with_x=yes ;;
392
 
393
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394
  | --x-incl | --x-inc | --x-in | --x-i)
395
    ac_prev=x_includes ;;
396
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398
    x_includes="$ac_optarg" ;;
399
 
400
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
401
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402
    ac_prev=x_libraries ;;
403
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405
    x_libraries="$ac_optarg" ;;
406
 
407
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408
    ;;
409
 
410
  *)
411
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412
      echo "configure: warning: $ac_option: invalid host type" 1>&2
413
    fi
414
    if test "x$nonopt" != xNONE; then
415
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416
    fi
417
    nonopt="$ac_option"
418
    ;;
419
 
420
  esac
421
done
422
 
423
if test -n "$ac_prev"; then
424
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425
fi
426
 
427
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
 
429
# File descriptor usage:
430
# 0 standard input
431
# 1 file creation
432
# 2 errors and warnings
433
# 3 some systems may open it to /dev/tty
434
# 4 used on the Kubota Titan
435
# 6 checking for... messages and results
436
# 5 compiler messages saved in config.log
437
if test "$silent" = yes; then
438
  exec 6>/dev/null
439
else
440
  exec 6>&1
441
fi
442
exec 5>./config.log
443
 
444
echo "\
445
This file contains any messages produced by compilers while
446
running configure, to aid debugging if configure makes a mistake.
447
" 1>&5
448
 
449
# Strip out --no-create and --no-recursion so they do not pile up.
450
# Also quote any args containing shell metacharacters.
451
ac_configure_args=
452
for ac_arg
453
do
454
  case "$ac_arg" in
455
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456
  | --no-cr | --no-c) ;;
457
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462
  esac
463
done
464
 
465
# NLS nuisances.
466
# Only set these to C if already set.  These must not be set unconditionally
467
# because not all systems understand e.g. LANG=C (notably SCO).
468
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469
# Non-C LC_CTYPE values break the ctype check.
470
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
471
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
474
 
475
# confdefs.h avoids OS command line length limits that DEFS can exceed.
476
rm -rf conftest* confdefs.h
477
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
478
echo > confdefs.h
479
 
480
# A filename unique to this package, relative to the directory that
481
# configure is in, which we can look for to find out if srcdir is correct.
482
ac_unique_file=sys.tex
483
 
484
# Find the source files, if location was not specified.
485
if test -z "$srcdir"; then
486
  ac_srcdir_defaulted=yes
487
  # Try the directory containing this script, then its parent.
488
  ac_prog=$0
489
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491
  srcdir=$ac_confdir
492
  if test ! -r $srcdir/$ac_unique_file; then
493
    srcdir=..
494
  fi
495
else
496
  ac_srcdir_defaulted=no
497
fi
498
if test ! -r $srcdir/$ac_unique_file; then
499
  if test "$ac_srcdir_defaulted" = yes; then
500
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501
  else
502
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503
  fi
504
fi
505
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
 
507
# Prefer explicitly selected file to automatically selected ones.
508
if test -z "$sitefile"; then
509
  if test -z "$CONFIG_SITE"; then
510
    if test "x$prefix" != xNONE; then
511
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512
    else
513
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514
    fi
515
  fi
516
else
517
  CONFIG_SITE="$sitefile"
518
fi
519
for ac_site_file in $CONFIG_SITE; do
520
  if test -r "$ac_site_file"; then
521
    echo "loading site script $ac_site_file"
522
    . "$ac_site_file"
523
  fi
524
done
525
 
526
if test -r "$cache_file"; then
527
  echo "loading cache $cache_file"
528
  . $cache_file
529
else
530
  echo "creating cache $cache_file"
531
  > $cache_file
532
fi
533
 
534
ac_ext=c
535
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536
ac_cpp='$CPP $CPPFLAGS'
537
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539
cross_compiling=$ac_cv_prog_cc_cross
540
 
541
ac_exeext=
542
ac_objext=o
543
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546
    ac_n= ac_c='
547
' ac_t='        '
548
  else
549
    ac_n=-n ac_c= ac_t=
550
  fi
551
else
552
  ac_n= ac_c='\c' ac_t=
553
fi
554
 
555
 
556
 
557
ac_aux_dir=
558
for ac_dir in ../.. $srcdir/../..; do
559
  if test -f $ac_dir/install-sh; then
560
    ac_aux_dir=$ac_dir
561
    ac_install_sh="$ac_aux_dir/install-sh -c"
562
    break
563
  elif test -f $ac_dir/install.sh; then
564
    ac_aux_dir=$ac_dir
565
    ac_install_sh="$ac_aux_dir/install.sh -c"
566
    break
567
  fi
568
done
569
if test -z "$ac_aux_dir"; then
570
  { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
571
fi
572
ac_config_guess=$ac_aux_dir/config.guess
573
ac_config_sub=$ac_aux_dir/config.sub
574
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575
 
576
 
577
# Find a good install program.  We prefer a C program (faster),
578
# so one script is as good as another.  But avoid the broken or
579
# incompatible versions:
580
# SysV /etc/install, /usr/sbin/install
581
# SunOS /usr/etc/install
582
# IRIX /sbin/install
583
# AIX /bin/install
584
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
585
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
586
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
587
# ./install, which can be erroneously created by make from ./install.sh.
588
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
589
echo "configure:590: checking for a BSD compatible install" >&5
590
if test -z "$INSTALL"; then
591
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
592
  echo $ac_n "(cached) $ac_c" 1>&6
593
else
594
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
595
  for ac_dir in $PATH; do
596
    # Account for people who put trailing slashes in PATH elements.
597
    case "$ac_dir/" in
598
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
599
    *)
600
      # OSF1 and SCO ODT 3.0 have their own names for install.
601
      # Don't use installbsd from OSF since it installs stuff as root
602
      # by default.
603
      for ac_prog in ginstall scoinst install; do
604
        if test -f $ac_dir/$ac_prog; then
605
          if test $ac_prog = install &&
606
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
607
            # AIX install.  It has an incompatible calling convention.
608
            :
609
          else
610
            ac_cv_path_install="$ac_dir/$ac_prog -c"
611
            break 2
612
          fi
613
        fi
614
      done
615
      ;;
616
    esac
617
  done
618
  IFS="$ac_save_IFS"
619
 
620
fi
621
  if test "${ac_cv_path_install+set}" = set; then
622
    INSTALL="$ac_cv_path_install"
623
  else
624
    # As a last resort, use the slow shell script.  We don't cache a
625
    # path for INSTALL within a source directory, because that will
626
    # break other packages using the cache if that directory is
627
    # removed, or if the path is relative.
628
    INSTALL="$ac_install_sh"
629
  fi
630
fi
631
echo "$ac_t""$INSTALL" 1>&6
632
 
633
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634
# It thinks the first close brace ends the variable substitution.
635
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
636
 
637
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
638
 
639
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
640
 
641
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
642
echo "configure:643: checking whether build environment is sane" >&5
643
# Just in case
644
sleep 1
645
echo timestamp > conftestfile
646
# Do `set' in a subshell so we don't clobber the current shell's
647
# arguments.  Must try -L first in case configure is actually a
648
# symlink; some systems play weird games with the mod time of symlinks
649
# (eg FreeBSD returns the mod time of the symlink's containing
650
# directory).
651
if (
652
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
653
   if test "$*" = "X"; then
654
      # -L didn't work.
655
      set X `ls -t $srcdir/configure conftestfile`
656
   fi
657
   if test "$*" != "X $srcdir/configure conftestfile" \
658
      && test "$*" != "X conftestfile $srcdir/configure"; then
659
 
660
      # If neither matched, then we have a broken ls.  This can happen
661
      # if, for instance, CONFIG_SHELL is bash and it inherits a
662
      # broken ls alias from the environment.  This has actually
663
      # happened.  Such a system could not be considered "sane".
664
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
665
alias in your environment" 1>&2; exit 1; }
666
   fi
667
 
668
   test "$2" = conftestfile
669
   )
670
then
671
   # Ok.
672
   :
673
else
674
   { echo "configure: error: newly created file is older than distributed files!
675
Check your system clock" 1>&2; exit 1; }
676
fi
677
rm -f conftest*
678
echo "$ac_t""yes" 1>&6
679
if test "$program_transform_name" = s,x,x,; then
680
  program_transform_name=
681
else
682
  # Double any \ or $.  echo might interpret backslashes.
683
  cat <<\EOF_SED > conftestsed
684
s,\\,\\\\,g; s,\$,$$,g
685
EOF_SED
686
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
687
  rm -f conftestsed
688
fi
689
test "$program_prefix" != NONE &&
690
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
691
# Use a double $ so make ignores it.
692
test "$program_suffix" != NONE &&
693
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
694
 
695
# sed with no file args requires a program.
696
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
697
 
698
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
699
echo "configure:700: checking whether ${MAKE-make} sets \${MAKE}" >&5
700
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
701
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
702
  echo $ac_n "(cached) $ac_c" 1>&6
703
else
704
  cat > conftestmake <<\EOF
705
all:
706
        @echo 'ac_maketemp="${MAKE}"'
707
EOF
708
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
709
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
710
if test -n "$ac_maketemp"; then
711
  eval ac_cv_prog_make_${ac_make}_set=yes
712
else
713
  eval ac_cv_prog_make_${ac_make}_set=no
714
fi
715
rm -f conftestmake
716
fi
717
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
718
  echo "$ac_t""yes" 1>&6
719
  SET_MAKE=
720
else
721
  echo "$ac_t""no" 1>&6
722
  SET_MAKE="MAKE=${MAKE-make}"
723
fi
724
 
725
if test $host != $build; then
726
  ac_tool_prefix=${host_alias}-
727
else
728
  ac_tool_prefix=
729
fi
730
 
731
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
732
echo "configure:733: checking for Cygwin environment" >&5
733
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
734
  echo $ac_n "(cached) $ac_c" 1>&6
735
else
736
  cat > conftest.$ac_ext <
737
#line 738 "configure"
738
#include "confdefs.h"
739
 
740
int main() {
741
 
742
#ifndef __CYGWIN__
743
#define __CYGWIN__ __CYGWIN32__
744
#endif
745
return __CYGWIN__;
746
; return 0; }
747
EOF
748
if { (eval echo configure:749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
749
  rm -rf conftest*
750
  ac_cv_cygwin=yes
751
else
752
  echo "configure: failed program was:" >&5
753
  cat conftest.$ac_ext >&5
754
  rm -rf conftest*
755
  ac_cv_cygwin=no
756
fi
757
rm -f conftest*
758
rm -f conftest*
759
fi
760
 
761
echo "$ac_t""$ac_cv_cygwin" 1>&6
762
CYGWIN=
763
test "$ac_cv_cygwin" = yes && CYGWIN=yes
764
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
765
echo "configure:766: checking for mingw32 environment" >&5
766
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
767
  echo $ac_n "(cached) $ac_c" 1>&6
768
else
769
  cat > conftest.$ac_ext <
770
#line 771 "configure"
771
#include "confdefs.h"
772
 
773
int main() {
774
return __MINGW32__;
775
; return 0; }
776
EOF
777
if { (eval echo configure:778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
778
  rm -rf conftest*
779
  ac_cv_mingw32=yes
780
else
781
  echo "configure: failed program was:" >&5
782
  cat conftest.$ac_ext >&5
783
  rm -rf conftest*
784
  ac_cv_mingw32=no
785
fi
786
rm -f conftest*
787
rm -f conftest*
788
fi
789
 
790
echo "$ac_t""$ac_cv_mingw32" 1>&6
791
MINGW32=
792
test "$ac_cv_mingw32" = yes && MINGW32=yes
793
 
794
# Check whether --enable-multilib or --disable-multilib was given.
795
if test "${enable_multilib+set}" = set; then
796
  enableval="$enable_multilib"
797
  case "${enableval}" in
798
  yes) multilib=yes ;;
799
  no)  multilib=no ;;
800
  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
801
 esac
802
else
803
  multilib=yes
804
fi
805
 
806
# Check whether --enable-target-optspace or --disable-target-optspace was given.
807
if test "${enable_target_optspace+set}" = set; then
808
  enableval="$enable_target_optspace"
809
  case "${enableval}" in
810
  yes) target_optspace=yes ;;
811
  no)  target_optspace=no ;;
812
  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
813
 esac
814
else
815
  target_optspace=
816
fi
817
 
818
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
819
if test "${enable_malloc_debugging+set}" = set; then
820
  enableval="$enable_malloc_debugging"
821
  case "${enableval}" in
822
  yes) malloc_debugging=yes ;;
823
  no)  malloc_debugging=no ;;
824
  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
825
 esac
826
else
827
  malloc_debugging=
828
fi
829
 
830
# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
831
if test "${enable_newlib_mb+set}" = set; then
832
  enableval="$enable_newlib_mb"
833
  case "${enableval}" in
834
  yes) newlib_mb=yes ;;
835
  no)  newlib_mb=no ;;
836
  *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
837
 esac
838
else
839
  newlib_mb=no
840
fi
841
 
842
 
843
test -z "${with_target_subdir}" && with_target_subdir=.
844
 
845
if test "${srcdir}" = "."; then
846
  if test "${with_target_subdir}" != "."; then
847
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
848
  else
849
    newlib_basedir="${srcdir}/${with_multisrctop}.."
850
  fi
851
else
852
  newlib_basedir="${srcdir}/.."
853
fi
854
 
855
 
856
 
857
# Make sure we can run config.sub.
858
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
859
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
860
fi
861
 
862
echo $ac_n "checking host system type""... $ac_c" 1>&6
863
echo "configure:864: checking host system type" >&5
864
 
865
host_alias=$host
866
case "$host_alias" in
867
NONE)
868
  case $nonopt in
869
  NONE)
870
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
871
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
872
    fi ;;
873
  *) host_alias=$nonopt ;;
874
  esac ;;
875
esac
876
 
877
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
878
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881
echo "$ac_t""$host" 1>&6
882
 
883
 
884
 
885
PACKAGE=newlib
886
 
887
VERSION=1.10.0
888
 
889
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
890
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
891
fi
892
cat >> confdefs.h <
893
#define PACKAGE "$PACKAGE"
894
EOF
895
 
896
cat >> confdefs.h <
897
#define VERSION "$VERSION"
898
EOF
899
 
900
 
901
 
902
missing_dir=`cd $ac_aux_dir && pwd`
903
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
904
echo "configure:905: checking for working aclocal" >&5
905
# Run test in a subshell; some versions of sh will print an error if
906
# an executable is not found, even if stderr is redirected.
907
# Redirect stdin to placate older versions of autoconf.  Sigh.
908
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
909
   ACLOCAL=aclocal
910
   echo "$ac_t""found" 1>&6
911
else
912
   ACLOCAL="$missing_dir/missing aclocal"
913
   echo "$ac_t""missing" 1>&6
914
fi
915
 
916
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
917
echo "configure:918: checking for working autoconf" >&5
918
# Run test in a subshell; some versions of sh will print an error if
919
# an executable is not found, even if stderr is redirected.
920
# Redirect stdin to placate older versions of autoconf.  Sigh.
921
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
922
   AUTOCONF=autoconf
923
   echo "$ac_t""found" 1>&6
924
else
925
   AUTOCONF="$missing_dir/missing autoconf"
926
   echo "$ac_t""missing" 1>&6
927
fi
928
 
929
echo $ac_n "checking for working automake""... $ac_c" 1>&6
930
echo "configure:931: checking for working automake" >&5
931
# Run test in a subshell; some versions of sh will print an error if
932
# an executable is not found, even if stderr is redirected.
933
# Redirect stdin to placate older versions of autoconf.  Sigh.
934
if (automake --version) < /dev/null > /dev/null 2>&1; then
935
   AUTOMAKE=automake
936
   echo "$ac_t""found" 1>&6
937
else
938
   AUTOMAKE="$missing_dir/missing automake"
939
   echo "$ac_t""missing" 1>&6
940
fi
941
 
942
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
943
echo "configure:944: checking for working autoheader" >&5
944
# Run test in a subshell; some versions of sh will print an error if
945
# an executable is not found, even if stderr is redirected.
946
# Redirect stdin to placate older versions of autoconf.  Sigh.
947
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
948
   AUTOHEADER=autoheader
949
   echo "$ac_t""found" 1>&6
950
else
951
   AUTOHEADER="$missing_dir/missing autoheader"
952
   echo "$ac_t""missing" 1>&6
953
fi
954
 
955
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
956
echo "configure:957: checking for working makeinfo" >&5
957
# Run test in a subshell; some versions of sh will print an error if
958
# an executable is not found, even if stderr is redirected.
959
# Redirect stdin to placate older versions of autoconf.  Sigh.
960
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
961
   MAKEINFO=makeinfo
962
   echo "$ac_t""found" 1>&6
963
else
964
   MAKEINFO="$missing_dir/missing makeinfo"
965
   echo "$ac_t""missing" 1>&6
966
fi
967
 
968
 
969
 
970
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
971
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
972
# are probably using a cross compiler, which will not be able to fully
973
# link an executable.  This should really be fixed in autoconf
974
# itself.
975
 
976
 
977
 
978
# Extract the first word of "gcc", so it can be a program name with args.
979
set dummy gcc; ac_word=$2
980
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981
echo "configure:982: checking for $ac_word" >&5
982
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983
  echo $ac_n "(cached) $ac_c" 1>&6
984
else
985
  if test -n "$CC"; then
986
  ac_cv_prog_CC="$CC" # Let the user override the test.
987
else
988
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
989
  ac_dummy="$PATH"
990
  for ac_dir in $ac_dummy; do
991
    test -z "$ac_dir" && ac_dir=.
992
    if test -f $ac_dir/$ac_word; then
993
      ac_cv_prog_CC="gcc"
994
      break
995
    fi
996
  done
997
  IFS="$ac_save_ifs"
998
fi
999
fi
1000
CC="$ac_cv_prog_CC"
1001
if test -n "$CC"; then
1002
  echo "$ac_t""$CC" 1>&6
1003
else
1004
  echo "$ac_t""no" 1>&6
1005
fi
1006
 
1007
if test -z "$CC"; then
1008
  # Extract the first word of "cc", so it can be a program name with args.
1009
set dummy cc; ac_word=$2
1010
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011
echo "configure:1012: checking for $ac_word" >&5
1012
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013
  echo $ac_n "(cached) $ac_c" 1>&6
1014
else
1015
  if test -n "$CC"; then
1016
  ac_cv_prog_CC="$CC" # Let the user override the test.
1017
else
1018
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1019
  ac_prog_rejected=no
1020
  ac_dummy="$PATH"
1021
  for ac_dir in $ac_dummy; do
1022
    test -z "$ac_dir" && ac_dir=.
1023
    if test -f $ac_dir/$ac_word; then
1024
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025
        ac_prog_rejected=yes
1026
        continue
1027
      fi
1028
      ac_cv_prog_CC="cc"
1029
      break
1030
    fi
1031
  done
1032
  IFS="$ac_save_ifs"
1033
if test $ac_prog_rejected = yes; then
1034
  # We found a bogon in the path, so make sure we never use it.
1035
  set dummy $ac_cv_prog_CC
1036
  shift
1037
  if test $# -gt 0; then
1038
    # We chose a different compiler from the bogus one.
1039
    # However, it has the same basename, so the bogon will be chosen
1040
    # first if we set CC to just the basename; use the full file name.
1041
    shift
1042
    set dummy "$ac_dir/$ac_word" "$@"
1043
    shift
1044
    ac_cv_prog_CC="$@"
1045
  fi
1046
fi
1047
fi
1048
fi
1049
CC="$ac_cv_prog_CC"
1050
if test -n "$CC"; then
1051
  echo "$ac_t""$CC" 1>&6
1052
else
1053
  echo "$ac_t""no" 1>&6
1054
fi
1055
 
1056
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1057
fi
1058
 
1059
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1060
echo "configure:1061: checking whether we are using GNU C" >&5
1061
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1062
  echo $ac_n "(cached) $ac_c" 1>&6
1063
else
1064
  cat > conftest.c <
1065
#ifdef __GNUC__
1066
  yes;
1067
#endif
1068
EOF
1069
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1070
  ac_cv_prog_gcc=yes
1071
else
1072
  ac_cv_prog_gcc=no
1073
fi
1074
fi
1075
 
1076
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1077
 
1078
if test $ac_cv_prog_gcc = yes; then
1079
  GCC=yes
1080
  ac_test_CFLAGS="${CFLAGS+set}"
1081
  ac_save_CFLAGS="$CFLAGS"
1082
  CFLAGS=
1083
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1084
echo "configure:1085: checking whether ${CC-cc} accepts -g" >&5
1085
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1086
  echo $ac_n "(cached) $ac_c" 1>&6
1087
else
1088
  echo 'void f(){}' > conftest.c
1089
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1090
  ac_cv_prog_cc_g=yes
1091
else
1092
  ac_cv_prog_cc_g=no
1093
fi
1094
rm -f conftest*
1095
 
1096
fi
1097
 
1098
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1099
  if test "$ac_test_CFLAGS" = set; then
1100
    CFLAGS="$ac_save_CFLAGS"
1101
  elif test $ac_cv_prog_cc_g = yes; then
1102
    CFLAGS="-g -O2"
1103
  else
1104
    CFLAGS="-O2"
1105
  fi
1106
else
1107
  GCC=
1108
  test "${CFLAGS+set}" = set || CFLAGS="-g"
1109
fi
1110
 
1111
 
1112
# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1113
# run it explicitly here, it will be run implicitly before
1114
# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1115
# be run before AC_CANONICAL_HOST.
1116
echo $ac_n "checking build system type""... $ac_c" 1>&6
1117
echo "configure:1118: checking build system type" >&5
1118
 
1119
build_alias=$build
1120
case "$build_alias" in
1121
NONE)
1122
  case $nonopt in
1123
  NONE) build_alias=$host_alias ;;
1124
  *) build_alias=$nonopt ;;
1125
  esac ;;
1126
esac
1127
 
1128
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1129
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1130
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1131
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132
echo "$ac_t""$build" 1>&6
1133
 
1134
 
1135
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1136
set dummy ${ac_tool_prefix}as; ac_word=$2
1137
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138
echo "configure:1139: checking for $ac_word" >&5
1139
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1140
  echo $ac_n "(cached) $ac_c" 1>&6
1141
else
1142
  if test -n "$AS"; then
1143
  ac_cv_prog_AS="$AS" # Let the user override the test.
1144
else
1145
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1146
  ac_dummy="$PATH"
1147
  for ac_dir in $ac_dummy; do
1148
    test -z "$ac_dir" && ac_dir=.
1149
    if test -f $ac_dir/$ac_word; then
1150
      ac_cv_prog_AS="${ac_tool_prefix}as"
1151
      break
1152
    fi
1153
  done
1154
  IFS="$ac_save_ifs"
1155
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1156
fi
1157
fi
1158
AS="$ac_cv_prog_AS"
1159
if test -n "$AS"; then
1160
  echo "$ac_t""$AS" 1>&6
1161
else
1162
  echo "$ac_t""no" 1>&6
1163
fi
1164
 
1165
 
1166
 
1167
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1168
set dummy ${ac_tool_prefix}ar; ac_word=$2
1169
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170
echo "configure:1171: checking for $ac_word" >&5
1171
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1172
  echo $ac_n "(cached) $ac_c" 1>&6
1173
else
1174
  if test -n "$AR"; then
1175
  ac_cv_prog_AR="$AR" # Let the user override the test.
1176
else
1177
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1178
  ac_dummy="$PATH"
1179
  for ac_dir in $ac_dummy; do
1180
    test -z "$ac_dir" && ac_dir=.
1181
    if test -f $ac_dir/$ac_word; then
1182
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1183
      break
1184
    fi
1185
  done
1186
  IFS="$ac_save_ifs"
1187
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1188
fi
1189
fi
1190
AR="$ac_cv_prog_AR"
1191
if test -n "$AR"; then
1192
  echo "$ac_t""$AR" 1>&6
1193
else
1194
  echo "$ac_t""no" 1>&6
1195
fi
1196
 
1197
 
1198
 
1199
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1200
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1201
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1202
echo "configure:1203: checking for $ac_word" >&5
1203
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1204
  echo $ac_n "(cached) $ac_c" 1>&6
1205
else
1206
  if test -n "$RANLIB"; then
1207
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1208
else
1209
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1210
  ac_dummy="$PATH"
1211
  for ac_dir in $ac_dummy; do
1212
    test -z "$ac_dir" && ac_dir=.
1213
    if test -f $ac_dir/$ac_word; then
1214
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1215
      break
1216
    fi
1217
  done
1218
  IFS="$ac_save_ifs"
1219
fi
1220
fi
1221
RANLIB="$ac_cv_prog_RANLIB"
1222
if test -n "$RANLIB"; then
1223
  echo "$ac_t""$RANLIB" 1>&6
1224
else
1225
  echo "$ac_t""no" 1>&6
1226
fi
1227
 
1228
 
1229
if test -z "$ac_cv_prog_RANLIB"; then
1230
if test -n "$ac_tool_prefix"; then
1231
  # Extract the first word of "ranlib", so it can be a program name with args.
1232
set dummy ranlib; ac_word=$2
1233
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234
echo "configure:1235: checking for $ac_word" >&5
1235
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1236
  echo $ac_n "(cached) $ac_c" 1>&6
1237
else
1238
  if test -n "$RANLIB"; then
1239
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1240
else
1241
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1242
  ac_dummy="$PATH"
1243
  for ac_dir in $ac_dummy; do
1244
    test -z "$ac_dir" && ac_dir=.
1245
    if test -f $ac_dir/$ac_word; then
1246
      ac_cv_prog_RANLIB="ranlib"
1247
      break
1248
    fi
1249
  done
1250
  IFS="$ac_save_ifs"
1251
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1252
fi
1253
fi
1254
RANLIB="$ac_cv_prog_RANLIB"
1255
if test -n "$RANLIB"; then
1256
  echo "$ac_t""$RANLIB" 1>&6
1257
else
1258
  echo "$ac_t""no" 1>&6
1259
fi
1260
 
1261
else
1262
  RANLIB=":"
1263
fi
1264
fi
1265
 
1266
 
1267
# Find a good install program.  We prefer a C program (faster),
1268
# so one script is as good as another.  But avoid the broken or
1269
# incompatible versions:
1270
# SysV /etc/install, /usr/sbin/install
1271
# SunOS /usr/etc/install
1272
# IRIX /sbin/install
1273
# AIX /bin/install
1274
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1275
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277
# ./install, which can be erroneously created by make from ./install.sh.
1278
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279
echo "configure:1280: checking for a BSD compatible install" >&5
1280
if test -z "$INSTALL"; then
1281
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282
  echo $ac_n "(cached) $ac_c" 1>&6
1283
else
1284
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1285
  for ac_dir in $PATH; do
1286
    # Account for people who put trailing slashes in PATH elements.
1287
    case "$ac_dir/" in
1288
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1289
    *)
1290
      # OSF1 and SCO ODT 3.0 have their own names for install.
1291
      # Don't use installbsd from OSF since it installs stuff as root
1292
      # by default.
1293
      for ac_prog in ginstall scoinst install; do
1294
        if test -f $ac_dir/$ac_prog; then
1295
          if test $ac_prog = install &&
1296
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1297
            # AIX install.  It has an incompatible calling convention.
1298
            :
1299
          else
1300
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1301
            break 2
1302
          fi
1303
        fi
1304
      done
1305
      ;;
1306
    esac
1307
  done
1308
  IFS="$ac_save_IFS"
1309
 
1310
fi
1311
  if test "${ac_cv_path_install+set}" = set; then
1312
    INSTALL="$ac_cv_path_install"
1313
  else
1314
    # As a last resort, use the slow shell script.  We don't cache a
1315
    # path for INSTALL within a source directory, because that will
1316
    # break other packages using the cache if that directory is
1317
    # removed, or if the path is relative.
1318
    INSTALL="$ac_install_sh"
1319
  fi
1320
fi
1321
echo "$ac_t""$INSTALL" 1>&6
1322
 
1323
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1324
# It thinks the first close brace ends the variable substitution.
1325
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1326
 
1327
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1328
 
1329
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1330
 
1331
 
1332
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1333
echo "configure:1334: checking whether to enable maintainer-specific portions of Makefiles" >&5
1334
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1335
if test "${enable_maintainer_mode+set}" = set; then
1336
  enableval="$enable_maintainer_mode"
1337
  USE_MAINTAINER_MODE=$enableval
1338
else
1339
  USE_MAINTAINER_MODE=no
1340
fi
1341
 
1342
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1343
 
1344
 
1345
if test $USE_MAINTAINER_MODE = yes; then
1346
  MAINTAINER_MODE_TRUE=
1347
  MAINTAINER_MODE_FALSE='#'
1348
else
1349
  MAINTAINER_MODE_TRUE='#'
1350
  MAINTAINER_MODE_FALSE=
1351
fi
1352
  MAINT=$MAINTAINER_MODE_TRUE
1353
 
1354
 
1355
 
1356
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1357
# at least currently, we never actually build a program, so we never
1358
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1359
# fails, because we are probably configuring with a cross compiler
1360
# which can't create executables.  So we include AC_EXEEXT to keep
1361
# automake happy, but we don't execute it, since we don't care about
1362
# the result.
1363
if false; then
1364
 
1365
 
1366
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1367
echo "configure:1368: checking for executable suffix" >&5
1368
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1369
  echo $ac_n "(cached) $ac_c" 1>&6
1370
else
1371
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1372
  ac_cv_exeext=.exe
1373
else
1374
  rm -f conftest*
1375
  echo 'int main () { return 0; }' > conftest.$ac_ext
1376
  ac_cv_exeext=
1377
  if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1378
    for file in conftest.*; do
1379
      case $file in
1380
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1381
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1382
      esac
1383
    done
1384
  else
1385
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1386
  fi
1387
  rm -f conftest*
1388
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1389
fi
1390
fi
1391
 
1392
EXEEXT=""
1393
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1394
echo "$ac_t""${ac_cv_exeext}" 1>&6
1395
ac_exeext=$EXEEXT
1396
 
1397
fi
1398
 
1399
. ${newlib_basedir}/configure.host
1400
 
1401
case ${newlib_basedir} in
1402
/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1403
*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1404
esac
1405
 
1406
newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../targ-include -I${newlib_flagbasedir}/libc/include"
1407
case "${host}" in
1408
  *-*-cygwin*)
1409
    newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1410
    ;;
1411
esac
1412
 
1413
newlib_cflags="${newlib_cflags} -fno-builtin"
1414
 
1415
NEWLIB_CFLAGS=${newlib_cflags}
1416
 
1417
 
1418
LDFLAGS=${ldflags}
1419
 
1420
 
1421
 
1422
 
1423
if test x${use_libtool} = xyes; then
1424
  USE_LIBTOOL_TRUE=
1425
  USE_LIBTOOL_FALSE='#'
1426
else
1427
  USE_LIBTOOL_TRUE='#'
1428
  USE_LIBTOOL_FALSE=
1429
fi
1430
 
1431
 
1432
 
1433
 
1434
 
1435
 
1436
 
1437
 
1438
 
1439
if test "${use_libtool}" = "yes"; then
1440
 
1441
# Check whether --enable-shared or --disable-shared was given.
1442
if test "${enable_shared+set}" = set; then
1443
  enableval="$enable_shared"
1444
  p=${PACKAGE-default}
1445
case "$enableval" in
1446
yes) enable_shared=yes ;;
1447
no) enable_shared=no ;;
1448
*)
1449
  enable_shared=no
1450
  # Look at the argument we got.  We use all the common list separators.
1451
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1452
  for pkg in $enableval; do
1453
    if test "X$pkg" = "X$p"; then
1454
      enable_shared=yes
1455
    fi
1456
  done
1457
  IFS="$ac_save_ifs"
1458
  ;;
1459
esac
1460
else
1461
  enable_shared=yes
1462
fi
1463
 
1464
# Check whether --enable-static or --disable-static was given.
1465
if test "${enable_static+set}" = set; then
1466
  enableval="$enable_static"
1467
  p=${PACKAGE-default}
1468
case "$enableval" in
1469
yes) enable_static=yes ;;
1470
no) enable_static=no ;;
1471
*)
1472
  enable_static=no
1473
  # Look at the argument we got.  We use all the common list separators.
1474
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1475
  for pkg in $enableval; do
1476
    if test "X$pkg" = "X$p"; then
1477
      enable_static=yes
1478
    fi
1479
  done
1480
  IFS="$ac_save_ifs"
1481
  ;;
1482
esac
1483
else
1484
  enable_static=yes
1485
fi
1486
 
1487
# Check whether --enable-fast-install or --disable-fast-install was given.
1488
if test "${enable_fast_install+set}" = set; then
1489
  enableval="$enable_fast_install"
1490
  p=${PACKAGE-default}
1491
case "$enableval" in
1492
yes) enable_fast_install=yes ;;
1493
no) enable_fast_install=no ;;
1494
*)
1495
  enable_fast_install=no
1496
  # Look at the argument we got.  We use all the common list separators.
1497
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1498
  for pkg in $enableval; do
1499
    if test "X$pkg" = "X$p"; then
1500
      enable_fast_install=yes
1501
    fi
1502
  done
1503
  IFS="$ac_save_ifs"
1504
  ;;
1505
esac
1506
else
1507
  enable_fast_install=yes
1508
fi
1509
 
1510
# Extract the first word of "ranlib", so it can be a program name with args.
1511
set dummy ranlib; ac_word=$2
1512
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513
echo "configure:1514: checking for $ac_word" >&5
1514
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1515
  echo $ac_n "(cached) $ac_c" 1>&6
1516
else
1517
  if test -n "$RANLIB"; then
1518
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1519
else
1520
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1521
  ac_dummy="$PATH"
1522
  for ac_dir in $ac_dummy; do
1523
    test -z "$ac_dir" && ac_dir=.
1524
    if test -f $ac_dir/$ac_word; then
1525
      ac_cv_prog_RANLIB="ranlib"
1526
      break
1527
    fi
1528
  done
1529
  IFS="$ac_save_ifs"
1530
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1531
fi
1532
fi
1533
RANLIB="$ac_cv_prog_RANLIB"
1534
if test -n "$RANLIB"; then
1535
  echo "$ac_t""$RANLIB" 1>&6
1536
else
1537
  echo "$ac_t""no" 1>&6
1538
fi
1539
 
1540
# Extract the first word of "gcc", so it can be a program name with args.
1541
set dummy gcc; ac_word=$2
1542
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1543
echo "configure:1544: checking for $ac_word" >&5
1544
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1545
  echo $ac_n "(cached) $ac_c" 1>&6
1546
else
1547
  if test -n "$CC"; then
1548
  ac_cv_prog_CC="$CC" # Let the user override the test.
1549
else
1550
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1551
  ac_dummy="$PATH"
1552
  for ac_dir in $ac_dummy; do
1553
    test -z "$ac_dir" && ac_dir=.
1554
    if test -f $ac_dir/$ac_word; then
1555
      ac_cv_prog_CC="gcc"
1556
      break
1557
    fi
1558
  done
1559
  IFS="$ac_save_ifs"
1560
fi
1561
fi
1562
CC="$ac_cv_prog_CC"
1563
if test -n "$CC"; then
1564
  echo "$ac_t""$CC" 1>&6
1565
else
1566
  echo "$ac_t""no" 1>&6
1567
fi
1568
 
1569
if test -z "$CC"; then
1570
  # Extract the first word of "cc", so it can be a program name with args.
1571
set dummy cc; ac_word=$2
1572
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573
echo "configure:1574: checking for $ac_word" >&5
1574
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1575
  echo $ac_n "(cached) $ac_c" 1>&6
1576
else
1577
  if test -n "$CC"; then
1578
  ac_cv_prog_CC="$CC" # Let the user override the test.
1579
else
1580
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1581
  ac_prog_rejected=no
1582
  ac_dummy="$PATH"
1583
  for ac_dir in $ac_dummy; do
1584
    test -z "$ac_dir" && ac_dir=.
1585
    if test -f $ac_dir/$ac_word; then
1586
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1587
        ac_prog_rejected=yes
1588
        continue
1589
      fi
1590
      ac_cv_prog_CC="cc"
1591
      break
1592
    fi
1593
  done
1594
  IFS="$ac_save_ifs"
1595
if test $ac_prog_rejected = yes; then
1596
  # We found a bogon in the path, so make sure we never use it.
1597
  set dummy $ac_cv_prog_CC
1598
  shift
1599
  if test $# -gt 0; then
1600
    # We chose a different compiler from the bogus one.
1601
    # However, it has the same basename, so the bogon will be chosen
1602
    # first if we set CC to just the basename; use the full file name.
1603
    shift
1604
    set dummy "$ac_dir/$ac_word" "$@"
1605
    shift
1606
    ac_cv_prog_CC="$@"
1607
  fi
1608
fi
1609
fi
1610
fi
1611
CC="$ac_cv_prog_CC"
1612
if test -n "$CC"; then
1613
  echo "$ac_t""$CC" 1>&6
1614
else
1615
  echo "$ac_t""no" 1>&6
1616
fi
1617
 
1618
  if test -z "$CC"; then
1619
    case "`uname -s`" in
1620
    *win32* | *WIN32*)
1621
      # Extract the first word of "cl", so it can be a program name with args.
1622
set dummy cl; ac_word=$2
1623
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624
echo "configure:1625: checking for $ac_word" >&5
1625
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1626
  echo $ac_n "(cached) $ac_c" 1>&6
1627
else
1628
  if test -n "$CC"; then
1629
  ac_cv_prog_CC="$CC" # Let the user override the test.
1630
else
1631
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1632
  ac_dummy="$PATH"
1633
  for ac_dir in $ac_dummy; do
1634
    test -z "$ac_dir" && ac_dir=.
1635
    if test -f $ac_dir/$ac_word; then
1636
      ac_cv_prog_CC="cl"
1637
      break
1638
    fi
1639
  done
1640
  IFS="$ac_save_ifs"
1641
fi
1642
fi
1643
CC="$ac_cv_prog_CC"
1644
if test -n "$CC"; then
1645
  echo "$ac_t""$CC" 1>&6
1646
else
1647
  echo "$ac_t""no" 1>&6
1648
fi
1649
 ;;
1650
    esac
1651
  fi
1652
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1653
fi
1654
 
1655
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1656
echo "configure:1657: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1657
 
1658
ac_ext=c
1659
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1660
ac_cpp='$CPP $CPPFLAGS'
1661
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1662
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1663
cross_compiling=$ac_cv_prog_cc_cross
1664
 
1665
cat > conftest.$ac_ext << EOF
1666
 
1667
#line 1668 "configure"
1668
#include "confdefs.h"
1669
 
1670
main(){return(0);}
1671
EOF
1672
if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1673
  ac_cv_prog_cc_works=yes
1674
  # If we can't run a trivial program, we are probably using a cross compiler.
1675
  if (./conftest; exit) 2>/dev/null; then
1676
    ac_cv_prog_cc_cross=no
1677
  else
1678
    ac_cv_prog_cc_cross=yes
1679
  fi
1680
else
1681
  echo "configure: failed program was:" >&5
1682
  cat conftest.$ac_ext >&5
1683
  ac_cv_prog_cc_works=no
1684
fi
1685
rm -fr conftest*
1686
ac_ext=c
1687
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1688
ac_cpp='$CPP $CPPFLAGS'
1689
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1690
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1691
cross_compiling=$ac_cv_prog_cc_cross
1692
 
1693
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1694
if test $ac_cv_prog_cc_works = no; then
1695
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1696
fi
1697
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1698
echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1699
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1700
cross_compiling=$ac_cv_prog_cc_cross
1701
 
1702
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1703
echo "configure:1704: checking whether we are using GNU C" >&5
1704
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1705
  echo $ac_n "(cached) $ac_c" 1>&6
1706
else
1707
  cat > conftest.c <
1708
#ifdef __GNUC__
1709
  yes;
1710
#endif
1711
EOF
1712
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1713
  ac_cv_prog_gcc=yes
1714
else
1715
  ac_cv_prog_gcc=no
1716
fi
1717
fi
1718
 
1719
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1720
 
1721
if test $ac_cv_prog_gcc = yes; then
1722
  GCC=yes
1723
else
1724
  GCC=
1725
fi
1726
 
1727
ac_test_CFLAGS="${CFLAGS+set}"
1728
ac_save_CFLAGS="$CFLAGS"
1729
CFLAGS=
1730
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1731
echo "configure:1732: checking whether ${CC-cc} accepts -g" >&5
1732
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1733
  echo $ac_n "(cached) $ac_c" 1>&6
1734
else
1735
  echo 'void f(){}' > conftest.c
1736
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1737
  ac_cv_prog_cc_g=yes
1738
else
1739
  ac_cv_prog_cc_g=no
1740
fi
1741
rm -f conftest*
1742
 
1743
fi
1744
 
1745
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1746
if test "$ac_test_CFLAGS" = set; then
1747
  CFLAGS="$ac_save_CFLAGS"
1748
elif test $ac_cv_prog_cc_g = yes; then
1749
  if test "$GCC" = yes; then
1750
    CFLAGS="-g -O2"
1751
  else
1752
    CFLAGS="-g"
1753
  fi
1754
else
1755
  if test "$GCC" = yes; then
1756
    CFLAGS="-O2"
1757
  else
1758
    CFLAGS=
1759
  fi
1760
fi
1761
 
1762
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1763
if test "${with_gnu_ld+set}" = set; then
1764
  withval="$with_gnu_ld"
1765
  test "$withval" = no || with_gnu_ld=yes
1766
else
1767
  with_gnu_ld=no
1768
fi
1769
 
1770
ac_prog=ld
1771
if test "$ac_cv_prog_gcc" = yes; then
1772
  # Check if gcc -print-prog-name=ld gives a path.
1773
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1774
echo "configure:1775: checking for ld used by GCC" >&5
1775
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1776
  case "$ac_prog" in
1777
    # Accept absolute paths.
1778
    [\\/]* | [A-Za-z]:[\\/]*)
1779
      re_direlt='/[^/][^/]*/\.\./'
1780
      # Canonicalize the path of ld
1781
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1782
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1783
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1784
      done
1785
      test -z "$LD" && LD="$ac_prog"
1786
      ;;
1787
  "")
1788
    # If it fails, then pretend we aren't using GCC.
1789
    ac_prog=ld
1790
    ;;
1791
  *)
1792
    # If it is relative, then search for the first ld in PATH.
1793
    with_gnu_ld=unknown
1794
    ;;
1795
  esac
1796
elif test "$with_gnu_ld" = yes; then
1797
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1798
echo "configure:1799: checking for GNU ld" >&5
1799
else
1800
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1801
echo "configure:1802: checking for non-GNU ld" >&5
1802
fi
1803
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1804
  echo $ac_n "(cached) $ac_c" 1>&6
1805
else
1806
  if test -z "$LD"; then
1807
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1808
  for ac_dir in $PATH; do
1809
    test -z "$ac_dir" && ac_dir=.
1810
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1811
      ac_cv_path_LD="$ac_dir/$ac_prog"
1812
      # Check to see if the program is GNU ld.  I'd rather use --version,
1813
      # but apparently some GNU ld's only accept -v.
1814
      # Break only if it was the GNU/non-GNU ld that we prefer.
1815
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1816
        test "$with_gnu_ld" != no && break
1817
      else
1818
        test "$with_gnu_ld" != yes && break
1819
      fi
1820
    fi
1821
  done
1822
  IFS="$ac_save_ifs"
1823
else
1824
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1825
fi
1826
fi
1827
 
1828
LD="$ac_cv_path_LD"
1829
if test -n "$LD"; then
1830
  echo "$ac_t""$LD" 1>&6
1831
else
1832
  echo "$ac_t""no" 1>&6
1833
fi
1834
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1835
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1836
echo "configure:1837: checking if the linker ($LD) is GNU ld" >&5
1837
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1838
  echo $ac_n "(cached) $ac_c" 1>&6
1839
else
1840
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1841
if $LD -v 2>&1 &5; then
1842
  ac_cv_prog_gnu_ld=yes
1843
else
1844
  ac_cv_prog_gnu_ld=no
1845
fi
1846
fi
1847
 
1848
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1849
 
1850
 
1851
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1852
echo "configure:1853: checking for BSD-compatible nm" >&5
1853
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1854
  echo $ac_n "(cached) $ac_c" 1>&6
1855
else
1856
  if test -n "$NM"; then
1857
  # Let the user override the test.
1858
  ac_cv_path_NM="$NM"
1859
else
1860
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1861
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1862
    test -z "$ac_dir" && ac_dir=.
1863
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1864
      # Check to see if the nm accepts a BSD-compat flag.
1865
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1866
      #   nm: unknown option "B" ignored
1867
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1868
        ac_cv_path_NM="$ac_dir/nm -B"
1869
        break
1870
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1871
        ac_cv_path_NM="$ac_dir/nm -p"
1872
        break
1873
      else
1874
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1875
        continue # so that we can try to find one that supports BSD flags
1876
      fi
1877
    fi
1878
  done
1879
  IFS="$ac_save_ifs"
1880
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1881
fi
1882
fi
1883
 
1884
NM="$ac_cv_path_NM"
1885
echo "$ac_t""$NM" 1>&6
1886
 
1887
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1888
echo "configure:1889: checking whether ln -s works" >&5
1889
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1890
  echo $ac_n "(cached) $ac_c" 1>&6
1891
else
1892
  rm -f conftestdata
1893
if ln -s X conftestdata 2>/dev/null
1894
then
1895
  rm -f conftestdata
1896
  ac_cv_prog_LN_S="ln -s"
1897
else
1898
  ac_cv_prog_LN_S=ln
1899
fi
1900
fi
1901
LN_S="$ac_cv_prog_LN_S"
1902
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1903
  echo "$ac_t""yes" 1>&6
1904
else
1905
  echo "$ac_t""no" 1>&6
1906
fi
1907
 
1908
 
1909
# Check for any special flags to pass to ltconfig.
1910
libtool_flags="--cache-file=$cache_file"
1911
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1912
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1913
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1914
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1915
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1916
 
1917
libtool_flags="$libtool_flags --enable-win32-dll"
1918
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1919
if test "${enable_libtool_lock+set}" = set; then
1920
  enableval="$enable_libtool_lock"
1921
  :
1922
fi
1923
 
1924
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1925
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1926
 
1927
# Some flags need to be propagated to the compiler or linker for good
1928
# libtool support.
1929
case "$host" in
1930
*-*-irix6*)
1931
  # Find out which ABI we are using.
1932
  echo '#line 1933 "configure"' > conftest.$ac_ext
1933
  if { (eval echo configure:1934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934
    case "`/usr/bin/file conftest.o`" in
1935
    *32-bit*)
1936
      LD="${LD-ld} -32"
1937
      ;;
1938
    *N32*)
1939
      LD="${LD-ld} -n32"
1940
      ;;
1941
    *64-bit*)
1942
      LD="${LD-ld} -64"
1943
      ;;
1944
    esac
1945
  fi
1946
  rm -rf conftest*
1947
  ;;
1948
 
1949
*-*-sco3.2v5*)
1950
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1951
  SAVE_CFLAGS="$CFLAGS"
1952
  CFLAGS="$CFLAGS -belf"
1953
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1954
echo "configure:1955: checking whether the C compiler needs -belf" >&5
1955
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1956
  echo $ac_n "(cached) $ac_c" 1>&6
1957
else
1958
  cat > conftest.$ac_ext <
1959
#line 1960 "configure"
1960
#include "confdefs.h"
1961
 
1962
int main() {
1963
 
1964
; return 0; }
1965
EOF
1966
if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967
  rm -rf conftest*
1968
  lt_cv_cc_needs_belf=yes
1969
else
1970
  echo "configure: failed program was:" >&5
1971
  cat conftest.$ac_ext >&5
1972
  rm -rf conftest*
1973
  lt_cv_cc_needs_belf=no
1974
fi
1975
rm -f conftest*
1976
fi
1977
 
1978
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1979
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1980
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1981
    CFLAGS="$SAVE_CFLAGS"
1982
  fi
1983
  ;;
1984
 
1985
*-*-cygwin* | *-*-mingw*)
1986
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1987
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1988
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989
echo "configure:1990: checking for $ac_word" >&5
1990
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1991
  echo $ac_n "(cached) $ac_c" 1>&6
1992
else
1993
  if test -n "$DLLTOOL"; then
1994
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1995
else
1996
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1997
  ac_dummy="$PATH"
1998
  for ac_dir in $ac_dummy; do
1999
    test -z "$ac_dir" && ac_dir=.
2000
    if test -f $ac_dir/$ac_word; then
2001
      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2002
      break
2003
    fi
2004
  done
2005
  IFS="$ac_save_ifs"
2006
fi
2007
fi
2008
DLLTOOL="$ac_cv_prog_DLLTOOL"
2009
if test -n "$DLLTOOL"; then
2010
  echo "$ac_t""$DLLTOOL" 1>&6
2011
else
2012
  echo "$ac_t""no" 1>&6
2013
fi
2014
 
2015
 
2016
if test -z "$ac_cv_prog_DLLTOOL"; then
2017
if test -n "$ac_tool_prefix"; then
2018
  # Extract the first word of "dlltool", so it can be a program name with args.
2019
set dummy dlltool; ac_word=$2
2020
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021
echo "configure:2022: checking for $ac_word" >&5
2022
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2023
  echo $ac_n "(cached) $ac_c" 1>&6
2024
else
2025
  if test -n "$DLLTOOL"; then
2026
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2027
else
2028
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2029
  ac_dummy="$PATH"
2030
  for ac_dir in $ac_dummy; do
2031
    test -z "$ac_dir" && ac_dir=.
2032
    if test -f $ac_dir/$ac_word; then
2033
      ac_cv_prog_DLLTOOL="dlltool"
2034
      break
2035
    fi
2036
  done
2037
  IFS="$ac_save_ifs"
2038
  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2039
fi
2040
fi
2041
DLLTOOL="$ac_cv_prog_DLLTOOL"
2042
if test -n "$DLLTOOL"; then
2043
  echo "$ac_t""$DLLTOOL" 1>&6
2044
else
2045
  echo "$ac_t""no" 1>&6
2046
fi
2047
 
2048
else
2049
  DLLTOOL="false"
2050
fi
2051
fi
2052
 
2053
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2054
set dummy ${ac_tool_prefix}as; ac_word=$2
2055
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056
echo "configure:2057: checking for $ac_word" >&5
2057
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2058
  echo $ac_n "(cached) $ac_c" 1>&6
2059
else
2060
  if test -n "$AS"; then
2061
  ac_cv_prog_AS="$AS" # Let the user override the test.
2062
else
2063
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2064
  ac_dummy="$PATH"
2065
  for ac_dir in $ac_dummy; do
2066
    test -z "$ac_dir" && ac_dir=.
2067
    if test -f $ac_dir/$ac_word; then
2068
      ac_cv_prog_AS="${ac_tool_prefix}as"
2069
      break
2070
    fi
2071
  done
2072
  IFS="$ac_save_ifs"
2073
fi
2074
fi
2075
AS="$ac_cv_prog_AS"
2076
if test -n "$AS"; then
2077
  echo "$ac_t""$AS" 1>&6
2078
else
2079
  echo "$ac_t""no" 1>&6
2080
fi
2081
 
2082
 
2083
if test -z "$ac_cv_prog_AS"; then
2084
if test -n "$ac_tool_prefix"; then
2085
  # Extract the first word of "as", so it can be a program name with args.
2086
set dummy as; ac_word=$2
2087
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088
echo "configure:2089: checking for $ac_word" >&5
2089
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2090
  echo $ac_n "(cached) $ac_c" 1>&6
2091
else
2092
  if test -n "$AS"; then
2093
  ac_cv_prog_AS="$AS" # Let the user override the test.
2094
else
2095
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2096
  ac_dummy="$PATH"
2097
  for ac_dir in $ac_dummy; do
2098
    test -z "$ac_dir" && ac_dir=.
2099
    if test -f $ac_dir/$ac_word; then
2100
      ac_cv_prog_AS="as"
2101
      break
2102
    fi
2103
  done
2104
  IFS="$ac_save_ifs"
2105
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2106
fi
2107
fi
2108
AS="$ac_cv_prog_AS"
2109
if test -n "$AS"; then
2110
  echo "$ac_t""$AS" 1>&6
2111
else
2112
  echo "$ac_t""no" 1>&6
2113
fi
2114
 
2115
else
2116
  AS="false"
2117
fi
2118
fi
2119
 
2120
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2121
set dummy ${ac_tool_prefix}objdump; ac_word=$2
2122
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123
echo "configure:2124: checking for $ac_word" >&5
2124
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2125
  echo $ac_n "(cached) $ac_c" 1>&6
2126
else
2127
  if test -n "$OBJDUMP"; then
2128
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2129
else
2130
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2131
  ac_dummy="$PATH"
2132
  for ac_dir in $ac_dummy; do
2133
    test -z "$ac_dir" && ac_dir=.
2134
    if test -f $ac_dir/$ac_word; then
2135
      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2136
      break
2137
    fi
2138
  done
2139
  IFS="$ac_save_ifs"
2140
fi
2141
fi
2142
OBJDUMP="$ac_cv_prog_OBJDUMP"
2143
if test -n "$OBJDUMP"; then
2144
  echo "$ac_t""$OBJDUMP" 1>&6
2145
else
2146
  echo "$ac_t""no" 1>&6
2147
fi
2148
 
2149
 
2150
if test -z "$ac_cv_prog_OBJDUMP"; then
2151
if test -n "$ac_tool_prefix"; then
2152
  # Extract the first word of "objdump", so it can be a program name with args.
2153
set dummy objdump; ac_word=$2
2154
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2155
echo "configure:2156: checking for $ac_word" >&5
2156
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2157
  echo $ac_n "(cached) $ac_c" 1>&6
2158
else
2159
  if test -n "$OBJDUMP"; then
2160
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2161
else
2162
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2163
  ac_dummy="$PATH"
2164
  for ac_dir in $ac_dummy; do
2165
    test -z "$ac_dir" && ac_dir=.
2166
    if test -f $ac_dir/$ac_word; then
2167
      ac_cv_prog_OBJDUMP="objdump"
2168
      break
2169
    fi
2170
  done
2171
  IFS="$ac_save_ifs"
2172
  test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2173
fi
2174
fi
2175
OBJDUMP="$ac_cv_prog_OBJDUMP"
2176
if test -n "$OBJDUMP"; then
2177
  echo "$ac_t""$OBJDUMP" 1>&6
2178
else
2179
  echo "$ac_t""no" 1>&6
2180
fi
2181
 
2182
else
2183
  OBJDUMP="false"
2184
fi
2185
fi
2186
 
2187
  ;;
2188
 
2189
esac
2190
 
2191
 
2192
# Save cache, so that ltconfig can load it
2193
cat > confcache <<\EOF
2194
# This file is a shell script that caches the results of configure
2195
# tests run on this system so they can be shared between configure
2196
# scripts and configure runs.  It is not useful on other systems.
2197
# If it contains results you don't want to keep, you may remove or edit it.
2198
#
2199
# By default, configure uses ./config.cache as the cache file,
2200
# creating it if it does not exist already.  You can give configure
2201
# the --cache-file=FILE option to use a different cache file; that is
2202
# what configure does when it calls configure scripts in
2203
# subdirectories, so they share the cache.
2204
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2205
# config.status only pays attention to the cache file if you give it the
2206
# --recheck option to rerun configure.
2207
#
2208
EOF
2209
# The following way of writing the cache mishandles newlines in values,
2210
# but we know of no workaround that is simple, portable, and efficient.
2211
# So, don't put newlines in cache variables' values.
2212
# Ultrix sh set writes to stderr and can't be redirected directly,
2213
# and sets the high bit in the cache file unless we assign to the vars.
2214
(set) 2>&1 |
2215
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2216
  *ac_space=\ *)
2217
    # `set' does not quote correctly, so add quotes (double-quote substitution
2218
    # turns \\\\ into \\, and sed turns \\ into \).
2219
    sed -n \
2220
      -e "s/'/'\\\\''/g" \
2221
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2222
    ;;
2223
  *)
2224
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2225
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2226
    ;;
2227
  esac >> confcache
2228
if cmp -s $cache_file confcache; then
2229
  :
2230
else
2231
  if test -w $cache_file; then
2232
    echo "updating cache $cache_file"
2233
    cat confcache > $cache_file
2234
  else
2235
    echo "not updating unwritable cache $cache_file"
2236
  fi
2237
fi
2238
rm -f confcache
2239
 
2240
 
2241
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2242
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2243
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2244
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2245
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2246
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2247
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2248
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2249
 
2250
# Reload cache, that may have been modified by ltconfig
2251
if test -r "$cache_file"; then
2252
  echo "loading cache $cache_file"
2253
  . $cache_file
2254
else
2255
  echo "creating cache $cache_file"
2256
  > $cache_file
2257
fi
2258
 
2259
 
2260
# This can be used to rebuild libtool when needed
2261
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2262
 
2263
# Always use our own libtool.
2264
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2265
 
2266
# Redirect the config.log output again, so that the ltconfig log is not
2267
# clobbered by the next message.
2268
exec 5>>./config.log
2269
 
2270
fi
2271
 
2272
subdirs="machine sys"
2273
 
2274
 
2275
CRT0=
2276
if test -n "${sys_dir}"; then
2277
  CRT0=crt0.o
2278
fi
2279
 
2280
 
2281
 
2282
LIBC_POSIX_LIB=
2283
if test -n "${posix_dir}"; then
2284
  if test "${use_libtool}" = "yes"; then
2285
    LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
2286
  else
2287
    LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
2288
  fi
2289
fi
2290
 
2291
 
2292
 
2293
if test x${posix_dir} != x; then
2294
  HAVE_POSIX_DIR_TRUE=
2295
  HAVE_POSIX_DIR_FALSE='#'
2296
else
2297
  HAVE_POSIX_DIR_TRUE='#'
2298
  HAVE_POSIX_DIR_FALSE=
2299
fi
2300
 
2301
LIBC_SIGNAL_LIB=
2302
LIBC_SIGNAL_DEF=
2303
if test -n "${signal_dir}"; then
2304
  if test "${use_libtool}" = "yes"; then
2305
    LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
2306
  else
2307
    LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
2308
  fi
2309
  LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
2310
fi
2311
 
2312
 
2313
 
2314
 
2315
if test x${signal_dir} != x; then
2316
  HAVE_SIGNAL_DIR_TRUE=
2317
  HAVE_SIGNAL_DIR_FALSE='#'
2318
else
2319
  HAVE_SIGNAL_DIR_TRUE='#'
2320
  HAVE_SIGNAL_DIR_FALSE=
2321
fi
2322
 
2323
LIBC_SYSCALL_LIB=
2324
if test -n "${syscall_dir}"; then
2325
  if test "${use_libtool}" = "yes"; then
2326
    LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
2327
  else
2328
    LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
2329
  fi
2330
fi
2331
 
2332
 
2333
 
2334
if test x${syscall_dir} != x; then
2335
  HAVE_SYSCALL_DIR_TRUE=
2336
  HAVE_SYSCALL_DIR_FALSE='#'
2337
else
2338
  HAVE_SYSCALL_DIR_TRUE='#'
2339
  HAVE_SYSCALL_DIR_FALSE=
2340
fi
2341
 
2342
LIBC_UNIX_LIB=
2343
if test -n "${unix_dir}"; then
2344
  if test "${use_libtool}" = "yes"; then
2345
    LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
2346
  else
2347
    LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
2348
  fi
2349
fi
2350
 
2351
 
2352
 
2353
if test x${unix_dir} != x; then
2354
  HAVE_UNIX_DIR_TRUE=
2355
  HAVE_UNIX_DIR_FALSE='#'
2356
else
2357
  HAVE_UNIX_DIR_TRUE='#'
2358
  HAVE_UNIX_DIR_FALSE=
2359
fi
2360
 
2361
 
2362
LIBC_SYS_LIB=
2363
if test -n "${sys_dir}"; then
2364
  if test "${use_libtool}" = "yes"; then
2365
    LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
2366
  else
2367
    LIBC_SYS_LIB=sys/lib.${aext}
2368
  fi
2369
fi
2370
 
2371
 
2372
 
2373
LIBC_MACHINE_LIB=
2374
if test -n "${machine_dir}"; then
2375
  if test "${use_libtool}" = "yes"; then
2376
    LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
2377
  else
2378
    LIBC_MACHINE_LIB=machine/lib.${aext}
2379
  fi
2380
fi
2381
 
2382
 
2383
 
2384
trap '' 1 2 15
2385
cat > confcache <<\EOF
2386
# This file is a shell script that caches the results of configure
2387
# tests run on this system so they can be shared between configure
2388
# scripts and configure runs.  It is not useful on other systems.
2389
# If it contains results you don't want to keep, you may remove or edit it.
2390
#
2391
# By default, configure uses ./config.cache as the cache file,
2392
# creating it if it does not exist already.  You can give configure
2393
# the --cache-file=FILE option to use a different cache file; that is
2394
# what configure does when it calls configure scripts in
2395
# subdirectories, so they share the cache.
2396
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2397
# config.status only pays attention to the cache file if you give it the
2398
# --recheck option to rerun configure.
2399
#
2400
EOF
2401
# The following way of writing the cache mishandles newlines in values,
2402
# but we know of no workaround that is simple, portable, and efficient.
2403
# So, don't put newlines in cache variables' values.
2404
# Ultrix sh set writes to stderr and can't be redirected directly,
2405
# and sets the high bit in the cache file unless we assign to the vars.
2406
(set) 2>&1 |
2407
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2408
  *ac_space=\ *)
2409
    # `set' does not quote correctly, so add quotes (double-quote substitution
2410
    # turns \\\\ into \\, and sed turns \\ into \).
2411
    sed -n \
2412
      -e "s/'/'\\\\''/g" \
2413
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2414
    ;;
2415
  *)
2416
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2417
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2418
    ;;
2419
  esac >> confcache
2420
if cmp -s $cache_file confcache; then
2421
  :
2422
else
2423
  if test -w $cache_file; then
2424
    echo "updating cache $cache_file"
2425
    cat confcache > $cache_file
2426
  else
2427
    echo "not updating unwritable cache $cache_file"
2428
  fi
2429
fi
2430
rm -f confcache
2431
 
2432
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2433
 
2434
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2435
# Let make expand exec_prefix.
2436
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2437
 
2438
# Any assignment to VPATH causes Sun make to only execute
2439
# the first set of double-colon rules, so remove it if not needed.
2440
# If there is a colon in the path, we need to keep it.
2441
if test "x$srcdir" = x.; then
2442
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2443
fi
2444
 
2445
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2446
 
2447
# Transform confdefs.h into DEFS.
2448
# Protect against shell expansion while executing Makefile rules.
2449
# Protect against Makefile macro expansion.
2450
cat > conftest.defs <<\EOF
2451
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2452
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2453
s%\[%\\&%g
2454
s%\]%\\&%g
2455
s%\$%$$%g
2456
EOF
2457
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2458
rm -f conftest.defs
2459
 
2460
 
2461
# Without the "./", some shells look in PATH for config.status.
2462
: ${CONFIG_STATUS=./config.status}
2463
 
2464
echo creating $CONFIG_STATUS
2465
rm -f $CONFIG_STATUS
2466
cat > $CONFIG_STATUS <
2467
#! /bin/sh
2468
# Generated automatically by configure.
2469
# Run this file to recreate the current configuration.
2470
# This directory was configured as follows,
2471
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2472
#
2473
# $0 $ac_configure_args
2474
#
2475
# Compiler output produced by configure, useful for debugging
2476
# configure, is in ./config.log if it exists.
2477
 
2478
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2479
for ac_option
2480
do
2481
  case "\$ac_option" in
2482
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2483
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2484
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2485
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2486
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2487
    exit 0 ;;
2488
  -help | --help | --hel | --he | --h)
2489
    echo "\$ac_cs_usage"; exit 0 ;;
2490
  *) echo "\$ac_cs_usage"; exit 1 ;;
2491
  esac
2492
done
2493
 
2494
ac_given_srcdir=$srcdir
2495
ac_given_INSTALL="$INSTALL"
2496
 
2497
trap 'rm -fr `echo "Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile stdio/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2498
EOF
2499
cat >> $CONFIG_STATUS <
2500
 
2501
# Protect against being on the right side of a sed subst in config.status.
2502
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2503
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2504
$ac_vpsub
2505
$extrasub
2506
s%@SHELL@%$SHELL%g
2507
s%@CFLAGS@%$CFLAGS%g
2508
s%@CPPFLAGS@%$CPPFLAGS%g
2509
s%@CXXFLAGS@%$CXXFLAGS%g
2510
s%@FFLAGS@%$FFLAGS%g
2511
s%@DEFS@%$DEFS%g
2512
s%@LDFLAGS@%$LDFLAGS%g
2513
s%@LIBS@%$LIBS%g
2514
s%@exec_prefix@%$exec_prefix%g
2515
s%@prefix@%$prefix%g
2516
s%@program_transform_name@%$program_transform_name%g
2517
s%@bindir@%$bindir%g
2518
s%@sbindir@%$sbindir%g
2519
s%@libexecdir@%$libexecdir%g
2520
s%@datadir@%$datadir%g
2521
s%@sysconfdir@%$sysconfdir%g
2522
s%@sharedstatedir@%$sharedstatedir%g
2523
s%@localstatedir@%$localstatedir%g
2524
s%@libdir@%$libdir%g
2525
s%@includedir@%$includedir%g
2526
s%@oldincludedir@%$oldincludedir%g
2527
s%@infodir@%$infodir%g
2528
s%@mandir@%$mandir%g
2529
s%@newlib_basedir@%$newlib_basedir%g
2530
s%@host@%$host%g
2531
s%@host_alias@%$host_alias%g
2532
s%@host_cpu@%$host_cpu%g
2533
s%@host_vendor@%$host_vendor%g
2534
s%@host_os@%$host_os%g
2535
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2536
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2537
s%@INSTALL_DATA@%$INSTALL_DATA%g
2538
s%@PACKAGE@%$PACKAGE%g
2539
s%@VERSION@%$VERSION%g
2540
s%@ACLOCAL@%$ACLOCAL%g
2541
s%@AUTOCONF@%$AUTOCONF%g
2542
s%@AUTOMAKE@%$AUTOMAKE%g
2543
s%@AUTOHEADER@%$AUTOHEADER%g
2544
s%@MAKEINFO@%$MAKEINFO%g
2545
s%@SET_MAKE@%$SET_MAKE%g
2546
s%@CC@%$CC%g
2547
s%@build@%$build%g
2548
s%@build_alias@%$build_alias%g
2549
s%@build_cpu@%$build_cpu%g
2550
s%@build_vendor@%$build_vendor%g
2551
s%@build_os@%$build_os%g
2552
s%@AS@%$AS%g
2553
s%@AR@%$AR%g
2554
s%@RANLIB@%$RANLIB%g
2555
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2556
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2557
s%@MAINT@%$MAINT%g
2558
s%@EXEEXT@%$EXEEXT%g
2559
s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2560
s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2561
s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2562
s%@oext@%$oext%g
2563
s%@aext@%$aext%g
2564
s%@libm_machine_dir@%$libm_machine_dir%g
2565
s%@machine_dir@%$machine_dir%g
2566
s%@sys_dir@%$sys_dir%g
2567
s%@LN_S@%$LN_S%g
2568
s%@DLLTOOL@%$DLLTOOL%g
2569
s%@OBJDUMP@%$OBJDUMP%g
2570
s%@LIBTOOL@%$LIBTOOL%g
2571
s%@subdirs@%$subdirs%g
2572
s%@CRT0@%$CRT0%g
2573
s%@LIBC_POSIX_LIB@%$LIBC_POSIX_LIB%g
2574
s%@HAVE_POSIX_DIR_TRUE@%$HAVE_POSIX_DIR_TRUE%g
2575
s%@HAVE_POSIX_DIR_FALSE@%$HAVE_POSIX_DIR_FALSE%g
2576
s%@LIBC_SIGNAL_LIB@%$LIBC_SIGNAL_LIB%g
2577
s%@LIBC_SIGNAL_DEF@%$LIBC_SIGNAL_DEF%g
2578
s%@HAVE_SIGNAL_DIR_TRUE@%$HAVE_SIGNAL_DIR_TRUE%g
2579
s%@HAVE_SIGNAL_DIR_FALSE@%$HAVE_SIGNAL_DIR_FALSE%g
2580
s%@LIBC_SYSCALL_LIB@%$LIBC_SYSCALL_LIB%g
2581
s%@HAVE_SYSCALL_DIR_TRUE@%$HAVE_SYSCALL_DIR_TRUE%g
2582
s%@HAVE_SYSCALL_DIR_FALSE@%$HAVE_SYSCALL_DIR_FALSE%g
2583
s%@LIBC_UNIX_LIB@%$LIBC_UNIX_LIB%g
2584
s%@HAVE_UNIX_DIR_TRUE@%$HAVE_UNIX_DIR_TRUE%g
2585
s%@HAVE_UNIX_DIR_FALSE@%$HAVE_UNIX_DIR_FALSE%g
2586
s%@LIBC_SYS_LIB@%$LIBC_SYS_LIB%g
2587
s%@LIBC_MACHINE_LIB@%$LIBC_MACHINE_LIB%g
2588
 
2589
CEOF
2590
EOF
2591
 
2592
cat >> $CONFIG_STATUS <<\EOF
2593
 
2594
# Split the substitutions into bite-sized pieces for seds with
2595
# small command number limits, like on Digital OSF/1 and HP-UX.
2596
ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2597
ac_file=1 # Number of current file.
2598
ac_beg=1 # First line for current file.
2599
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2600
ac_more_lines=:
2601
ac_sed_cmds=""
2602
while $ac_more_lines; do
2603
  if test $ac_beg -gt 1; then
2604
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2605
  else
2606
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2607
  fi
2608
  if test ! -s conftest.s$ac_file; then
2609
    ac_more_lines=false
2610
    rm -f conftest.s$ac_file
2611
  else
2612
    if test -z "$ac_sed_cmds"; then
2613
      ac_sed_cmds="sed -f conftest.s$ac_file"
2614
    else
2615
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2616
    fi
2617
    ac_file=`expr $ac_file + 1`
2618
    ac_beg=$ac_end
2619
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2620
  fi
2621
done
2622
if test -z "$ac_sed_cmds"; then
2623
  ac_sed_cmds=cat
2624
fi
2625
EOF
2626
 
2627
cat >> $CONFIG_STATUS <
2628
 
2629
CONFIG_FILES=\${CONFIG_FILES-"Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile stdio/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile"}
2630
EOF
2631
cat >> $CONFIG_STATUS <<\EOF
2632
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2633
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2634
  case "$ac_file" in
2635
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2636
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2637
  *) ac_file_in="${ac_file}.in" ;;
2638
  esac
2639
 
2640
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2641
 
2642
  # Remove last slash and all that follows it.  Not all systems have dirname.
2643
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2644
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2645
    # The file is in a subdirectory.
2646
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2647
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2648
    # A "../" for each directory in $ac_dir_suffix.
2649
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2650
  else
2651
    ac_dir_suffix= ac_dots=
2652
  fi
2653
 
2654
  case "$ac_given_srcdir" in
2655
  .)  srcdir=.
2656
      if test -z "$ac_dots"; then top_srcdir=.
2657
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2658
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2659
  *) # Relative path.
2660
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2661
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2662
  esac
2663
 
2664
  case "$ac_given_INSTALL" in
2665
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2666
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2667
  esac
2668
 
2669
  echo creating "$ac_file"
2670
  rm -f "$ac_file"
2671
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2672
  case "$ac_file" in
2673
  *Makefile*) ac_comsub="1i\\
2674
# $configure_input" ;;
2675
  *) ac_comsub= ;;
2676
  esac
2677
 
2678
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2679
  sed -e "$ac_comsub
2680
s%@configure_input@%$configure_input%g
2681
s%@srcdir@%$srcdir%g
2682
s%@top_srcdir@%$top_srcdir%g
2683
s%@INSTALL@%$INSTALL%g
2684
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2685
fi; done
2686
rm -f conftest.s*
2687
 
2688
EOF
2689
cat >> $CONFIG_STATUS <
2690
 
2691
EOF
2692
cat >> $CONFIG_STATUS <<\EOF
2693
 
2694
exit 0
2695
EOF
2696
chmod +x $CONFIG_STATUS
2697
rm -fr confdefs* $ac_clean_files
2698
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2699
 
2700
if test "$no_recursion" != yes; then
2701
 
2702
  # Remove --cache-file and --srcdir arguments so they do not pile up.
2703
  ac_sub_configure_args=
2704
  ac_prev=
2705
  for ac_arg in $ac_configure_args; do
2706
    if test -n "$ac_prev"; then
2707
      ac_prev=
2708
      continue
2709
    fi
2710
    case "$ac_arg" in
2711
    -cache-file | --cache-file | --cache-fil | --cache-fi \
2712
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2713
      ac_prev=cache_file ;;
2714
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2715
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2716
      ;;
2717
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2718
      ac_prev=srcdir ;;
2719
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2720
      ;;
2721
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2722
    esac
2723
  done
2724
 
2725
  for ac_config_dir in machine sys; do
2726
 
2727
    # Do not complain, so a configure script can configure whichever
2728
    # parts of a large source tree are present.
2729
    if test ! -d $srcdir/$ac_config_dir; then
2730
      continue
2731
    fi
2732
 
2733
    echo configuring in $ac_config_dir
2734
 
2735
    case "$srcdir" in
2736
    .) ;;
2737
    *)
2738
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2739
      else
2740
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2741
      fi
2742
      ;;
2743
    esac
2744
 
2745
    ac_popdir=`pwd`
2746
    cd $ac_config_dir
2747
 
2748
      # A "../" for each directory in /$ac_config_dir.
2749
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2750
 
2751
    case "$srcdir" in
2752
    .) # No --srcdir option.  We are building in place.
2753
      ac_sub_srcdir=$srcdir ;;
2754
    /*) # Absolute path.
2755
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2756
    *) # Relative path.
2757
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2758
    esac
2759
 
2760
    # Check for guested configure; otherwise get Cygnus style configure.
2761
    if test -f $ac_sub_srcdir/configure; then
2762
      ac_sub_configure=$ac_sub_srcdir/configure
2763
    elif test -f $ac_sub_srcdir/configure.in; then
2764
      ac_sub_configure=$ac_configure
2765
    else
2766
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2767
      ac_sub_configure=
2768
    fi
2769
 
2770
    # The recursion is here.
2771
    if test -n "$ac_sub_configure"; then
2772
 
2773
      # Make the cache file name correct relative to the subdirectory.
2774
      case "$cache_file" in
2775
      /*) ac_sub_cache_file=$cache_file ;;
2776
      *) # Relative path.
2777
        ac_sub_cache_file="$ac_dots$cache_file" ;;
2778
      esac
2779
  case "$ac_given_INSTALL" in
2780
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2781
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2782
        esac
2783
 
2784
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2785
      # The eval makes quoting arguments work.
2786
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2787
      then :
2788
      else
2789
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2790
      fi
2791
    fi
2792
 
2793
    cd $ac_popdir
2794
  done
2795
fi
2796
 

powered by: WebSVN 2.1.0

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