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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [configure] - Blame information for rev 1774

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

Line No. Rev Author Line
1 56 joel
#! /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-newlib-hw-fp    Turn on hardware floating point math"
16
ac_help="$ac_help
17
  --enable-multilib         build many library versions (default)"
18
ac_help="$ac_help
19
  --enable-target-optspace  optimize for space"
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
 
26
# Initialize some variables set by options.
27
# The variables have the same names as the options, with
28
# dashes changed to underlines.
29
build=NONE
30
cache_file=./config.cache
31
exec_prefix=NONE
32
host=NONE
33
no_create=
34
nonopt=NONE
35
no_recursion=
36
prefix=NONE
37
program_prefix=NONE
38
program_suffix=NONE
39
program_transform_name=s,x,x,
40
silent=
41
site=
42
srcdir=
43
target=NONE
44
verbose=
45
x_includes=NONE
46
x_libraries=NONE
47
bindir='${exec_prefix}/bin'
48
sbindir='${exec_prefix}/sbin'
49
libexecdir='${exec_prefix}/libexec'
50
datadir='${prefix}/share'
51
sysconfdir='${prefix}/etc'
52
sharedstatedir='${prefix}/com'
53
localstatedir='${prefix}/var'
54
libdir='${exec_prefix}/lib'
55
includedir='${prefix}/include'
56
oldincludedir='/usr/include'
57
infodir='${prefix}/info'
58
mandir='${prefix}/man'
59
 
60
# Initialize some other variables.
61
subdirs=
62
MFLAGS= MAKEFLAGS=
63
SHELL=${CONFIG_SHELL-/bin/sh}
64
# Maximum number of lines to put in a shell here document.
65
ac_max_here_lines=12
66
 
67
ac_prev=
68
for ac_option
69
do
70
 
71
  # If the previous option needs an argument, assign it.
72
  if test -n "$ac_prev"; then
73
    eval "$ac_prev=\$ac_option"
74
    ac_prev=
75
    continue
76
  fi
77
 
78
  case "$ac_option" in
79
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80
  *) ac_optarg= ;;
81
  esac
82
 
83
  # Accept the important Cygnus configure options, so we can diagnose typos.
84
 
85
  case "$ac_option" in
86
 
87
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
88
    ac_prev=bindir ;;
89
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
90
    bindir="$ac_optarg" ;;
91
 
92
  -build | --build | --buil | --bui | --bu)
93
    ac_prev=build ;;
94
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95
    build="$ac_optarg" ;;
96
 
97
  -cache-file | --cache-file | --cache-fil | --cache-fi \
98
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99
    ac_prev=cache_file ;;
100
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
101
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
102
    cache_file="$ac_optarg" ;;
103
 
104
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105
    ac_prev=datadir ;;
106
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107
  | --da=*)
108
    datadir="$ac_optarg" ;;
109
 
110
  -disable-* | --disable-*)
111
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
112
    # Reject names that are not valid shell variable names.
113
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115
    fi
116
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117
    eval "enable_${ac_feature}=no" ;;
118
 
119
  -enable-* | --enable-*)
120
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121
    # Reject names that are not valid shell variable names.
122
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124
    fi
125
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126
    case "$ac_option" in
127
      *=*) ;;
128
      *) ac_optarg=yes ;;
129
    esac
130
    eval "enable_${ac_feature}='$ac_optarg'" ;;
131
 
132
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134
  | --exec | --exe | --ex)
135
    ac_prev=exec_prefix ;;
136
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138
  | --exec=* | --exe=* | --ex=*)
139
    exec_prefix="$ac_optarg" ;;
140
 
141
  -gas | --gas | --ga | --g)
142
    # Obsolete; use --with-gas.
143
    with_gas=yes ;;
144
 
145
  -help | --help | --hel | --he)
146
    # Omit some internal or obsolete options to make the list less imposing.
147
    # This message is too long to be a string in the A/UX 3.1 sh.
148
    cat << EOF
149
Usage: configure [options] [host]
150
Options: [defaults in brackets after descriptions]
151
Configuration:
152
  --cache-file=FILE       cache test results in FILE
153
  --help                  print this message
154
  --no-create             do not create output files
155
  --quiet, --silent       do not print \`checking...' messages
156
  --version               print the version of autoconf that created configure
157
Directory and file names:
158
  --prefix=PREFIX         install architecture-independent files in PREFIX
159
                          [$ac_default_prefix]
160
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
161
                          [same as prefix]
162
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
163
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
164
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
165
  --datadir=DIR           read-only architecture-independent data in DIR
166
                          [PREFIX/share]
167
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
168
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
169
                          [PREFIX/com]
170
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
171
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
172
  --includedir=DIR        C header files in DIR [PREFIX/include]
173
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
174
  --infodir=DIR           info documentation in DIR [PREFIX/info]
175
  --mandir=DIR            man documentation in DIR [PREFIX/man]
176
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
177
  --program-prefix=PREFIX prepend PREFIX to installed program names
178
  --program-suffix=SUFFIX append SUFFIX to installed program names
179
  --program-transform-name=PROGRAM
180
                          run sed PROGRAM on installed program names
181
EOF
182
    cat << EOF
183
Host type:
184
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
185
  --host=HOST             configure for HOST [guessed]
186
  --target=TARGET         configure for TARGET [TARGET=HOST]
187
Features and packages:
188
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
189
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
190
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
191
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
192
  --x-includes=DIR        X include files are in DIR
193
  --x-libraries=DIR       X library files are in DIR
194
EOF
195
    if test -n "$ac_help"; then
196
      echo "--enable and --with options recognized:$ac_help"
197
    fi
198
    exit 0 ;;
199
 
200
  -host | --host | --hos | --ho)
201
    ac_prev=host ;;
202
  -host=* | --host=* | --hos=* | --ho=*)
203
    host="$ac_optarg" ;;
204
 
205
  -includedir | --includedir | --includedi | --included | --include \
206
  | --includ | --inclu | --incl | --inc)
207
    ac_prev=includedir ;;
208
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209
  | --includ=* | --inclu=* | --incl=* | --inc=*)
210
    includedir="$ac_optarg" ;;
211
 
212
  -infodir | --infodir | --infodi | --infod | --info | --inf)
213
    ac_prev=infodir ;;
214
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215
    infodir="$ac_optarg" ;;
216
 
217
  -libdir | --libdir | --libdi | --libd)
218
    ac_prev=libdir ;;
219
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
220
    libdir="$ac_optarg" ;;
221
 
222
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223
  | --libexe | --libex | --libe)
224
    ac_prev=libexecdir ;;
225
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226
  | --libexe=* | --libex=* | --libe=*)
227
    libexecdir="$ac_optarg" ;;
228
 
229
  -localstatedir | --localstatedir | --localstatedi | --localstated \
230
  | --localstate | --localstat | --localsta | --localst \
231
  | --locals | --local | --loca | --loc | --lo)
232
    ac_prev=localstatedir ;;
233
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236
    localstatedir="$ac_optarg" ;;
237
 
238
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239
    ac_prev=mandir ;;
240
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241
    mandir="$ac_optarg" ;;
242
 
243
  -nfp | --nfp | --nf)
244
    # Obsolete; use --without-fp.
245
    with_fp=no ;;
246
 
247
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248
  | --no-cr | --no-c)
249
    no_create=yes ;;
250
 
251
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253
    no_recursion=yes ;;
254
 
255
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257
  | --oldin | --oldi | --old | --ol | --o)
258
    ac_prev=oldincludedir ;;
259
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262
    oldincludedir="$ac_optarg" ;;
263
 
264
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265
    ac_prev=prefix ;;
266
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267
    prefix="$ac_optarg" ;;
268
 
269
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
270
  | --program-pre | --program-pr | --program-p)
271
    ac_prev=program_prefix ;;
272
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
273
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274
    program_prefix="$ac_optarg" ;;
275
 
276
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
277
  | --program-suf | --program-su | --program-s)
278
    ac_prev=program_suffix ;;
279
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
280
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281
    program_suffix="$ac_optarg" ;;
282
 
283
  -program-transform-name | --program-transform-name \
284
  | --program-transform-nam | --program-transform-na \
285
  | --program-transform-n | --program-transform- \
286
  | --program-transform | --program-transfor \
287
  | --program-transfo | --program-transf \
288
  | --program-trans | --program-tran \
289
  | --progr-tra | --program-tr | --program-t)
290
    ac_prev=program_transform_name ;;
291
  -program-transform-name=* | --program-transform-name=* \
292
  | --program-transform-nam=* | --program-transform-na=* \
293
  | --program-transform-n=* | --program-transform-=* \
294
  | --program-transform=* | --program-transfor=* \
295
  | --program-transfo=* | --program-transf=* \
296
  | --program-trans=* | --program-tran=* \
297
  | --progr-tra=* | --program-tr=* | --program-t=*)
298
    program_transform_name="$ac_optarg" ;;
299
 
300
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301
  | -silent | --silent | --silen | --sile | --sil)
302
    silent=yes ;;
303
 
304
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305
    ac_prev=sbindir ;;
306
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307
  | --sbi=* | --sb=*)
308
    sbindir="$ac_optarg" ;;
309
 
310
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
311
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312
  | --sharedst | --shareds | --shared | --share | --shar \
313
  | --sha | --sh)
314
    ac_prev=sharedstatedir ;;
315
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318
  | --sha=* | --sh=*)
319
    sharedstatedir="$ac_optarg" ;;
320
 
321
  -site | --site | --sit)
322
    ac_prev=site ;;
323
  -site=* | --site=* | --sit=*)
324
    site="$ac_optarg" ;;
325
 
326
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327
    ac_prev=srcdir ;;
328
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329
    srcdir="$ac_optarg" ;;
330
 
331
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332
  | --syscon | --sysco | --sysc | --sys | --sy)
333
    ac_prev=sysconfdir ;;
334
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336
    sysconfdir="$ac_optarg" ;;
337
 
338
  -target | --target | --targe | --targ | --tar | --ta | --t)
339
    ac_prev=target ;;
340
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341
    target="$ac_optarg" ;;
342
 
343
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
344
    verbose=yes ;;
345
 
346
  -version | --version | --versio | --versi | --vers)
347
    echo "configure generated by autoconf version 2.13"
348
    exit 0 ;;
349
 
350
  -with-* | --with-*)
351
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352
    # Reject names that are not valid shell variable names.
353
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355
    fi
356
    ac_package=`echo $ac_package| sed 's/-/_/g'`
357
    case "$ac_option" in
358
      *=*) ;;
359
      *) ac_optarg=yes ;;
360
    esac
361
    eval "with_${ac_package}='$ac_optarg'" ;;
362
 
363
  -without-* | --without-*)
364
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365
    # Reject names that are not valid shell variable names.
366
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368
    fi
369
    ac_package=`echo $ac_package| sed 's/-/_/g'`
370
    eval "with_${ac_package}=no" ;;
371
 
372
  --x)
373
    # Obsolete; use --with-x.
374
    with_x=yes ;;
375
 
376
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377
  | --x-incl | --x-inc | --x-in | --x-i)
378
    ac_prev=x_includes ;;
379
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381
    x_includes="$ac_optarg" ;;
382
 
383
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
384
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385
    ac_prev=x_libraries ;;
386
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388
    x_libraries="$ac_optarg" ;;
389
 
390
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391
    ;;
392
 
393
  *)
394
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395
      echo "configure: warning: $ac_option: invalid host type" 1>&2
396
    fi
397
    if test "x$nonopt" != xNONE; then
398
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399
    fi
400
    nonopt="$ac_option"
401
    ;;
402
 
403
  esac
404
done
405
 
406
if test -n "$ac_prev"; then
407
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408
fi
409
 
410
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411
 
412
# File descriptor usage:
413
# 0 standard input
414
# 1 file creation
415
# 2 errors and warnings
416
# 3 some systems may open it to /dev/tty
417
# 4 used on the Kubota Titan
418
# 6 checking for... messages and results
419
# 5 compiler messages saved in config.log
420
if test "$silent" = yes; then
421
  exec 6>/dev/null
422
else
423
  exec 6>&1
424
fi
425
exec 5>./config.log
426
 
427
echo "\
428
This file contains any messages produced by compilers while
429
running configure, to aid debugging if configure makes a mistake.
430
" 1>&5
431
 
432
# Strip out --no-create and --no-recursion so they do not pile up.
433
# Also quote any args containing shell metacharacters.
434
ac_configure_args=
435
for ac_arg
436
do
437
  case "$ac_arg" in
438
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439
  | --no-cr | --no-c) ;;
440
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445
  esac
446
done
447
 
448
# NLS nuisances.
449
# Only set these to C if already set.  These must not be set unconditionally
450
# because not all systems understand e.g. LANG=C (notably SCO).
451
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452
# Non-C LC_CTYPE values break the ctype check.
453
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
454
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
457
 
458
# confdefs.h avoids OS command line length limits that DEFS can exceed.
459
rm -rf conftest* confdefs.h
460
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
461
echo > confdefs.h
462
 
463
# A filename unique to this package, relative to the directory that
464
# configure is in, which we can look for to find out if srcdir is correct.
465
ac_unique_file=libm.texinfo
466
 
467
# Find the source files, if location was not specified.
468
if test -z "$srcdir"; then
469
  ac_srcdir_defaulted=yes
470
  # Try the directory containing this script, then its parent.
471
  ac_prog=$0
472
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474
  srcdir=$ac_confdir
475
  if test ! -r $srcdir/$ac_unique_file; then
476
    srcdir=..
477
  fi
478
else
479
  ac_srcdir_defaulted=no
480
fi
481
if test ! -r $srcdir/$ac_unique_file; then
482
  if test "$ac_srcdir_defaulted" = yes; then
483
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484
  else
485
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486
  fi
487
fi
488
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489
 
490
# Prefer explicitly selected file to automatically selected ones.
491
if test -z "$CONFIG_SITE"; then
492
  if test "x$prefix" != xNONE; then
493
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494
  else
495
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496
  fi
497
fi
498
for ac_site_file in $CONFIG_SITE; do
499
  if test -r "$ac_site_file"; then
500
    echo "loading site script $ac_site_file"
501
    . "$ac_site_file"
502
  fi
503
done
504
 
505
if test -r "$cache_file"; then
506
  echo "loading cache $cache_file"
507
  . $cache_file
508
else
509
  echo "creating cache $cache_file"
510
  > $cache_file
511
fi
512
 
513
ac_ext=c
514
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515
ac_cpp='$CPP $CPPFLAGS'
516
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518
cross_compiling=$ac_cv_prog_cc_cross
519
 
520
ac_exeext=
521
ac_objext=o
522
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525
    ac_n= ac_c='
526
' ac_t='        '
527
  else
528
    ac_n=-n ac_c= ac_t=
529
  fi
530
else
531
  ac_n= ac_c='\c' ac_t=
532
fi
533
 
534
 
535
 
536
# Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
537
if test "${enable_newlib_hw_fp+set}" = set; then
538
  enableval="$enable_newlib_hw_fp"
539
  case "${enableval}" in
540
   yes) newlib_hw_fp=true ;;
541
   no)  newlib_hw_fp=false ;;
542
   *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
543
 esac
544
else
545
  newlib_hw_fp=false
546
fi
547
 
548
 
549
 
550
if test x$newlib_hw_fp = xtrue; then
551
  NEWLIB_HW_FP_TRUE=
552
  NEWLIB_HW_FP_FALSE='#'
553
else
554
  NEWLIB_HW_FP_TRUE='#'
555
  NEWLIB_HW_FP_FALSE=
556
fi
557
 
558
ac_aux_dir=
559
for ac_dir in ../.. $srcdir/../..; do
560
  if test -f $ac_dir/install-sh; then
561
    ac_aux_dir=$ac_dir
562
    ac_install_sh="$ac_aux_dir/install-sh -c"
563
    break
564
  elif test -f $ac_dir/install.sh; then
565
    ac_aux_dir=$ac_dir
566
    ac_install_sh="$ac_aux_dir/install.sh -c"
567
    break
568
  fi
569
done
570
if test -z "$ac_aux_dir"; then
571
  { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
572
fi
573
ac_config_guess=$ac_aux_dir/config.guess
574
ac_config_sub=$ac_aux_dir/config.sub
575
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
576
 
577
 
578
# Find a good install program.  We prefer a C program (faster),
579
# so one script is as good as another.  But avoid the broken or
580
# incompatible versions:
581
# SysV /etc/install, /usr/sbin/install
582
# SunOS /usr/etc/install
583
# IRIX /sbin/install
584
# AIX /bin/install
585
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
586
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
587
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
588
# ./install, which can be erroneously created by make from ./install.sh.
589
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
590
echo "configure:591: checking for a BSD compatible install" >&5
591
if test -z "$INSTALL"; then
592
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
593
  echo $ac_n "(cached) $ac_c" 1>&6
594
else
595
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
596
  for ac_dir in $PATH; do
597
    # Account for people who put trailing slashes in PATH elements.
598
    case "$ac_dir/" in
599
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
600
    *)
601
      # OSF1 and SCO ODT 3.0 have their own names for install.
602
      # Don't use installbsd from OSF since it installs stuff as root
603
      # by default.
604
      for ac_prog in ginstall scoinst install; do
605
        if test -f $ac_dir/$ac_prog; then
606
          if test $ac_prog = install &&
607
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
608
            # AIX install.  It has an incompatible calling convention.
609
            :
610
          else
611
            ac_cv_path_install="$ac_dir/$ac_prog -c"
612
            break 2
613
          fi
614
        fi
615
      done
616
      ;;
617
    esac
618
  done
619
  IFS="$ac_save_IFS"
620
 
621
fi
622
  if test "${ac_cv_path_install+set}" = set; then
623
    INSTALL="$ac_cv_path_install"
624
  else
625
    # As a last resort, use the slow shell script.  We don't cache a
626
    # path for INSTALL within a source directory, because that will
627
    # break other packages using the cache if that directory is
628
    # removed, or if the path is relative.
629
    INSTALL="$ac_install_sh"
630
  fi
631
fi
632
echo "$ac_t""$INSTALL" 1>&6
633
 
634
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
635
# It thinks the first close brace ends the variable substitution.
636
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
637
 
638
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
639
 
640
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
641
 
642
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
643
echo "configure:644: checking whether build environment is sane" >&5
644
# Just in case
645
sleep 1
646
echo timestamp > conftestfile
647
# Do `set' in a subshell so we don't clobber the current shell's
648
# arguments.  Must try -L first in case configure is actually a
649
# symlink; some systems play weird games with the mod time of symlinks
650
# (eg FreeBSD returns the mod time of the symlink's containing
651
# directory).
652
if (
653
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
654
   if test "$*" = "X"; then
655
      # -L didn't work.
656
      set X `ls -t $srcdir/configure conftestfile`
657
   fi
658
   if test "$*" != "X $srcdir/configure conftestfile" \
659
      && test "$*" != "X conftestfile $srcdir/configure"; then
660
 
661
      # If neither matched, then we have a broken ls.  This can happen
662
      # if, for instance, CONFIG_SHELL is bash and it inherits a
663
      # broken ls alias from the environment.  This has actually
664
      # happened.  Such a system could not be considered "sane".
665
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
666
alias in your environment" 1>&2; exit 1; }
667
   fi
668
 
669
   test "$2" = conftestfile
670
   )
671
then
672
   # Ok.
673
   :
674
else
675
   { echo "configure: error: newly created file is older than distributed files!
676
Check your system clock" 1>&2; exit 1; }
677
fi
678
rm -f conftest*
679
echo "$ac_t""yes" 1>&6
680
if test "$program_transform_name" = s,x,x,; then
681
  program_transform_name=
682
else
683
  # Double any \ or $.  echo might interpret backslashes.
684
  cat <<\EOF_SED > conftestsed
685
s,\\,\\\\,g; s,\$,$$,g
686
EOF_SED
687
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
688
  rm -f conftestsed
689
fi
690
test "$program_prefix" != NONE &&
691
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
692
# Use a double $ so make ignores it.
693
test "$program_suffix" != NONE &&
694
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
695
 
696
# sed with no file args requires a program.
697
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
698
 
699
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
700
echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5
701
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
702
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
703
  echo $ac_n "(cached) $ac_c" 1>&6
704
else
705
  cat > conftestmake <<\EOF
706
all:
707
        @echo 'ac_maketemp="${MAKE}"'
708
EOF
709
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
710
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
711
if test -n "$ac_maketemp"; then
712
  eval ac_cv_prog_make_${ac_make}_set=yes
713
else
714
  eval ac_cv_prog_make_${ac_make}_set=no
715
fi
716
rm -f conftestmake
717
fi
718
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
719
  echo "$ac_t""yes" 1>&6
720
  SET_MAKE=
721
else
722
  echo "$ac_t""no" 1>&6
723
  SET_MAKE="MAKE=${MAKE-make}"
724
fi
725
 
726
if test $host != $build; then
727
  ac_tool_prefix=${host_alias}-
728
else
729
  ac_tool_prefix=
730
fi
731
 
732
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
733
echo "configure:734: checking for Cygwin environment" >&5
734
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
735
  echo $ac_n "(cached) $ac_c" 1>&6
736
else
737
  cat > conftest.$ac_ext <
738
#line 739 "configure"
739
#include "confdefs.h"
740
 
741
int main() {
742
 
743
#ifndef __CYGWIN__
744
#define __CYGWIN__ __CYGWIN32__
745
#endif
746
return __CYGWIN__;
747
; return 0; }
748
EOF
749
if { (eval echo configure:750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
750
  rm -rf conftest*
751
  ac_cv_cygwin=yes
752
else
753
  echo "configure: failed program was:" >&5
754
  cat conftest.$ac_ext >&5
755
  rm -rf conftest*
756
  ac_cv_cygwin=no
757
fi
758
rm -f conftest*
759
rm -f conftest*
760
fi
761
 
762
echo "$ac_t""$ac_cv_cygwin" 1>&6
763
CYGWIN=
764
test "$ac_cv_cygwin" = yes && CYGWIN=yes
765
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
766
echo "configure:767: checking for mingw32 environment" >&5
767
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
768
  echo $ac_n "(cached) $ac_c" 1>&6
769
else
770
  cat > conftest.$ac_ext <
771
#line 772 "configure"
772
#include "confdefs.h"
773
 
774
int main() {
775
return __MINGW32__;
776
; return 0; }
777
EOF
778
if { (eval echo configure:779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
779
  rm -rf conftest*
780
  ac_cv_mingw32=yes
781
else
782
  echo "configure: failed program was:" >&5
783
  cat conftest.$ac_ext >&5
784
  rm -rf conftest*
785
  ac_cv_mingw32=no
786
fi
787
rm -f conftest*
788
rm -f conftest*
789
fi
790
 
791
echo "$ac_t""$ac_cv_mingw32" 1>&6
792
MINGW32=
793
test "$ac_cv_mingw32" = yes && MINGW32=yes
794
 
795
# Check whether --enable-multilib or --disable-multilib was given.
796
if test "${enable_multilib+set}" = set; then
797
  enableval="$enable_multilib"
798
  case "${enableval}" in
799
  yes) multilib=yes ;;
800
  no)  multilib=no ;;
801
  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
802
 esac
803
else
804
  multilib=yes
805
fi
806
 
807
# Check whether --enable-target-optspace or --disable-target-optspace was given.
808
if test "${enable_target_optspace+set}" = set; then
809
  enableval="$enable_target_optspace"
810
  case "${enableval}" in
811
  yes) target_optspace=yes ;;
812
  no)  target_optspace=no ;;
813
  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
814
 esac
815
else
816
  target_optspace=
817
fi
818
 
819
# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
820
if test "${enable_newlib_mb+set}" = set; then
821
  enableval="$enable_newlib_mb"
822
  case "${enableval}" in
823
  yes) newlib_mb=yes ;;
824
  no)  newlib_mb=no ;;
825
  *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
826
 esac
827
else
828
  newlib_mb=no
829
fi
830
 
831
 
832
test -z "${with_target_subdir}" && with_target_subdir=.
833
 
834
if test "${srcdir}" = "."; then
835
  if test "${with_target_subdir}" != "."; then
836
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
837
  else
838
    newlib_basedir="${srcdir}/${with_multisrctop}.."
839
  fi
840
else
841
  newlib_basedir="${srcdir}/.."
842
fi
843
 
844
 
845
 
846
# Make sure we can run config.sub.
847
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
848
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
849
fi
850
 
851
echo $ac_n "checking host system type""... $ac_c" 1>&6
852
echo "configure:853: checking host system type" >&5
853
 
854
host_alias=$host
855
case "$host_alias" in
856
NONE)
857
  case $nonopt in
858
  NONE)
859
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
860
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
861
    fi ;;
862
  *) host_alias=$nonopt ;;
863
  esac ;;
864
esac
865
 
866
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
867
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
868
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
869
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
870
echo "$ac_t""$host" 1>&6
871
 
872
 
873
 
874
PACKAGE=newlib
875
 
876
VERSION=1.8.2
877
 
878
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
879
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
880
fi
881
cat >> confdefs.h <
882
#define PACKAGE "$PACKAGE"
883
EOF
884
 
885
cat >> confdefs.h <
886
#define VERSION "$VERSION"
887
EOF
888
 
889
 
890
 
891
missing_dir=`cd $ac_aux_dir && pwd`
892
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
893
echo "configure:894: checking for working aclocal" >&5
894
# Run test in a subshell; some versions of sh will print an error if
895
# an executable is not found, even if stderr is redirected.
896
# Redirect stdin to placate older versions of autoconf.  Sigh.
897
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
898
   ACLOCAL=aclocal
899
   echo "$ac_t""found" 1>&6
900
else
901
   ACLOCAL="$missing_dir/missing aclocal"
902
   echo "$ac_t""missing" 1>&6
903
fi
904
 
905
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
906
echo "configure:907: checking for working autoconf" >&5
907
# Run test in a subshell; some versions of sh will print an error if
908
# an executable is not found, even if stderr is redirected.
909
# Redirect stdin to placate older versions of autoconf.  Sigh.
910
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
911
   AUTOCONF=autoconf
912
   echo "$ac_t""found" 1>&6
913
else
914
   AUTOCONF="$missing_dir/missing autoconf"
915
   echo "$ac_t""missing" 1>&6
916
fi
917
 
918
echo $ac_n "checking for working automake""... $ac_c" 1>&6
919
echo "configure:920: checking for working automake" >&5
920
# Run test in a subshell; some versions of sh will print an error if
921
# an executable is not found, even if stderr is redirected.
922
# Redirect stdin to placate older versions of autoconf.  Sigh.
923
if (automake --version) < /dev/null > /dev/null 2>&1; then
924
   AUTOMAKE=automake
925
   echo "$ac_t""found" 1>&6
926
else
927
   AUTOMAKE="$missing_dir/missing automake"
928
   echo "$ac_t""missing" 1>&6
929
fi
930
 
931
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
932
echo "configure:933: checking for working autoheader" >&5
933
# Run test in a subshell; some versions of sh will print an error if
934
# an executable is not found, even if stderr is redirected.
935
# Redirect stdin to placate older versions of autoconf.  Sigh.
936
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
937
   AUTOHEADER=autoheader
938
   echo "$ac_t""found" 1>&6
939
else
940
   AUTOHEADER="$missing_dir/missing autoheader"
941
   echo "$ac_t""missing" 1>&6
942
fi
943
 
944
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
945
echo "configure:946: checking for working makeinfo" >&5
946
# Run test in a subshell; some versions of sh will print an error if
947
# an executable is not found, even if stderr is redirected.
948
# Redirect stdin to placate older versions of autoconf.  Sigh.
949
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
950
   MAKEINFO=makeinfo
951
   echo "$ac_t""found" 1>&6
952
else
953
   MAKEINFO="$missing_dir/missing makeinfo"
954
   echo "$ac_t""missing" 1>&6
955
fi
956
 
957
 
958
 
959
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
960
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
961
# are probably using a cross compiler, which will not be able to fully
962
# link an executable.  This should really be fixed in autoconf
963
# itself.
964
 
965
 
966
 
967
# Extract the first word of "gcc", so it can be a program name with args.
968
set dummy gcc; ac_word=$2
969
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970
echo "configure:971: checking for $ac_word" >&5
971
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972
  echo $ac_n "(cached) $ac_c" 1>&6
973
else
974
  if test -n "$CC"; then
975
  ac_cv_prog_CC="$CC" # Let the user override the test.
976
else
977
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
978
  ac_dummy="$PATH"
979
  for ac_dir in $ac_dummy; do
980
    test -z "$ac_dir" && ac_dir=.
981
    if test -f $ac_dir/$ac_word; then
982
      ac_cv_prog_CC="gcc"
983
      break
984
    fi
985
  done
986
  IFS="$ac_save_ifs"
987
fi
988
fi
989
CC="$ac_cv_prog_CC"
990
if test -n "$CC"; then
991
  echo "$ac_t""$CC" 1>&6
992
else
993
  echo "$ac_t""no" 1>&6
994
fi
995
 
996
if test -z "$CC"; then
997
  # Extract the first word of "cc", so it can be a program name with args.
998
set dummy cc; ac_word=$2
999
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000
echo "configure:1001: checking for $ac_word" >&5
1001
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1002
  echo $ac_n "(cached) $ac_c" 1>&6
1003
else
1004
  if test -n "$CC"; then
1005
  ac_cv_prog_CC="$CC" # Let the user override the test.
1006
else
1007
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1008
  ac_prog_rejected=no
1009
  ac_dummy="$PATH"
1010
  for ac_dir in $ac_dummy; do
1011
    test -z "$ac_dir" && ac_dir=.
1012
    if test -f $ac_dir/$ac_word; then
1013
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1014
        ac_prog_rejected=yes
1015
        continue
1016
      fi
1017
      ac_cv_prog_CC="cc"
1018
      break
1019
    fi
1020
  done
1021
  IFS="$ac_save_ifs"
1022
if test $ac_prog_rejected = yes; then
1023
  # We found a bogon in the path, so make sure we never use it.
1024
  set dummy $ac_cv_prog_CC
1025
  shift
1026
  if test $# -gt 0; then
1027
    # We chose a different compiler from the bogus one.
1028
    # However, it has the same basename, so the bogon will be chosen
1029
    # first if we set CC to just the basename; use the full file name.
1030
    shift
1031
    set dummy "$ac_dir/$ac_word" "$@"
1032
    shift
1033
    ac_cv_prog_CC="$@"
1034
  fi
1035
fi
1036
fi
1037
fi
1038
CC="$ac_cv_prog_CC"
1039
if test -n "$CC"; then
1040
  echo "$ac_t""$CC" 1>&6
1041
else
1042
  echo "$ac_t""no" 1>&6
1043
fi
1044
 
1045
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1046
fi
1047
 
1048
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1049
echo "configure:1050: checking whether we are using GNU C" >&5
1050
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1051
  echo $ac_n "(cached) $ac_c" 1>&6
1052
else
1053
  cat > conftest.c <
1054
#ifdef __GNUC__
1055
  yes;
1056
#endif
1057
EOF
1058
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1059
  ac_cv_prog_gcc=yes
1060
else
1061
  ac_cv_prog_gcc=no
1062
fi
1063
fi
1064
 
1065
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1066
 
1067
if test $ac_cv_prog_gcc = yes; then
1068
  GCC=yes
1069
  ac_test_CFLAGS="${CFLAGS+set}"
1070
  ac_save_CFLAGS="$CFLAGS"
1071
  CFLAGS=
1072
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1073
echo "configure:1074: checking whether ${CC-cc} accepts -g" >&5
1074
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1075
  echo $ac_n "(cached) $ac_c" 1>&6
1076
else
1077
  echo 'void f(){}' > conftest.c
1078
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1079
  ac_cv_prog_cc_g=yes
1080
else
1081
  ac_cv_prog_cc_g=no
1082
fi
1083
rm -f conftest*
1084
 
1085
fi
1086
 
1087
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1088
  if test "$ac_test_CFLAGS" = set; then
1089
    CFLAGS="$ac_save_CFLAGS"
1090
  elif test $ac_cv_prog_cc_g = yes; then
1091
    CFLAGS="-g -O2"
1092
  else
1093
    CFLAGS="-O2"
1094
  fi
1095
else
1096
  GCC=
1097
  test "${CFLAGS+set}" = set || CFLAGS="-g"
1098
fi
1099
 
1100
 
1101
# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1102
# run it explicitly here, it will be run implicitly before
1103
# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1104
# be run before AC_CANONICAL_HOST.
1105
echo $ac_n "checking build system type""... $ac_c" 1>&6
1106
echo "configure:1107: checking build system type" >&5
1107
 
1108
build_alias=$build
1109
case "$build_alias" in
1110
NONE)
1111
  case $nonopt in
1112
  NONE) build_alias=$host_alias ;;
1113
  *) build_alias=$nonopt ;;
1114
  esac ;;
1115
esac
1116
 
1117
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1118
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1119
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1120
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1121
echo "$ac_t""$build" 1>&6
1122
 
1123
 
1124
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1125
set dummy ${ac_tool_prefix}as; ac_word=$2
1126
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1127
echo "configure:1128: checking for $ac_word" >&5
1128
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1129
  echo $ac_n "(cached) $ac_c" 1>&6
1130
else
1131
  if test -n "$AS"; then
1132
  ac_cv_prog_AS="$AS" # Let the user override the test.
1133
else
1134
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1135
  ac_dummy="$PATH"
1136
  for ac_dir in $ac_dummy; do
1137
    test -z "$ac_dir" && ac_dir=.
1138
    if test -f $ac_dir/$ac_word; then
1139
      ac_cv_prog_AS="${ac_tool_prefix}as"
1140
      break
1141
    fi
1142
  done
1143
  IFS="$ac_save_ifs"
1144
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1145
fi
1146
fi
1147
AS="$ac_cv_prog_AS"
1148
if test -n "$AS"; then
1149
  echo "$ac_t""$AS" 1>&6
1150
else
1151
  echo "$ac_t""no" 1>&6
1152
fi
1153
 
1154
 
1155
 
1156
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1157
set dummy ${ac_tool_prefix}ar; ac_word=$2
1158
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159
echo "configure:1160: checking for $ac_word" >&5
1160
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1161
  echo $ac_n "(cached) $ac_c" 1>&6
1162
else
1163
  if test -n "$AR"; then
1164
  ac_cv_prog_AR="$AR" # Let the user override the test.
1165
else
1166
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1167
  ac_dummy="$PATH"
1168
  for ac_dir in $ac_dummy; do
1169
    test -z "$ac_dir" && ac_dir=.
1170
    if test -f $ac_dir/$ac_word; then
1171
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1172
      break
1173
    fi
1174
  done
1175
  IFS="$ac_save_ifs"
1176
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1177
fi
1178
fi
1179
AR="$ac_cv_prog_AR"
1180
if test -n "$AR"; then
1181
  echo "$ac_t""$AR" 1>&6
1182
else
1183
  echo "$ac_t""no" 1>&6
1184
fi
1185
 
1186
 
1187
 
1188
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1189
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1190
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191
echo "configure:1192: checking for $ac_word" >&5
1192
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1193
  echo $ac_n "(cached) $ac_c" 1>&6
1194
else
1195
  if test -n "$RANLIB"; then
1196
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197
else
1198
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1199
  ac_dummy="$PATH"
1200
  for ac_dir in $ac_dummy; do
1201
    test -z "$ac_dir" && ac_dir=.
1202
    if test -f $ac_dir/$ac_word; then
1203
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1204
      break
1205
    fi
1206
  done
1207
  IFS="$ac_save_ifs"
1208
fi
1209
fi
1210
RANLIB="$ac_cv_prog_RANLIB"
1211
if test -n "$RANLIB"; then
1212
  echo "$ac_t""$RANLIB" 1>&6
1213
else
1214
  echo "$ac_t""no" 1>&6
1215
fi
1216
 
1217
 
1218
if test -z "$ac_cv_prog_RANLIB"; then
1219
if test -n "$ac_tool_prefix"; then
1220
  # Extract the first word of "ranlib", so it can be a program name with args.
1221
set dummy ranlib; ac_word=$2
1222
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223
echo "configure:1224: checking for $ac_word" >&5
1224
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1225
  echo $ac_n "(cached) $ac_c" 1>&6
1226
else
1227
  if test -n "$RANLIB"; then
1228
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1229
else
1230
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231
  ac_dummy="$PATH"
1232
  for ac_dir in $ac_dummy; do
1233
    test -z "$ac_dir" && ac_dir=.
1234
    if test -f $ac_dir/$ac_word; then
1235
      ac_cv_prog_RANLIB="ranlib"
1236
      break
1237
    fi
1238
  done
1239
  IFS="$ac_save_ifs"
1240
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1241
fi
1242
fi
1243
RANLIB="$ac_cv_prog_RANLIB"
1244
if test -n "$RANLIB"; then
1245
  echo "$ac_t""$RANLIB" 1>&6
1246
else
1247
  echo "$ac_t""no" 1>&6
1248
fi
1249
 
1250
else
1251
  RANLIB=":"
1252
fi
1253
fi
1254
 
1255
 
1256
# Find a good install program.  We prefer a C program (faster),
1257
# so one script is as good as another.  But avoid the broken or
1258
# incompatible versions:
1259
# SysV /etc/install, /usr/sbin/install
1260
# SunOS /usr/etc/install
1261
# IRIX /sbin/install
1262
# AIX /bin/install
1263
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1264
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1265
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1266
# ./install, which can be erroneously created by make from ./install.sh.
1267
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1268
echo "configure:1269: checking for a BSD compatible install" >&5
1269
if test -z "$INSTALL"; then
1270
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1271
  echo $ac_n "(cached) $ac_c" 1>&6
1272
else
1273
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1274
  for ac_dir in $PATH; do
1275
    # Account for people who put trailing slashes in PATH elements.
1276
    case "$ac_dir/" in
1277
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1278
    *)
1279
      # OSF1 and SCO ODT 3.0 have their own names for install.
1280
      # Don't use installbsd from OSF since it installs stuff as root
1281
      # by default.
1282
      for ac_prog in ginstall scoinst install; do
1283
        if test -f $ac_dir/$ac_prog; then
1284
          if test $ac_prog = install &&
1285
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1286
            # AIX install.  It has an incompatible calling convention.
1287
            :
1288
          else
1289
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1290
            break 2
1291
          fi
1292
        fi
1293
      done
1294
      ;;
1295
    esac
1296
  done
1297
  IFS="$ac_save_IFS"
1298
 
1299
fi
1300
  if test "${ac_cv_path_install+set}" = set; then
1301
    INSTALL="$ac_cv_path_install"
1302
  else
1303
    # As a last resort, use the slow shell script.  We don't cache a
1304
    # path for INSTALL within a source directory, because that will
1305
    # break other packages using the cache if that directory is
1306
    # removed, or if the path is relative.
1307
    INSTALL="$ac_install_sh"
1308
  fi
1309
fi
1310
echo "$ac_t""$INSTALL" 1>&6
1311
 
1312
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1313
# It thinks the first close brace ends the variable substitution.
1314
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1315
 
1316
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1317
 
1318
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1319
 
1320
 
1321
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1322
echo "configure:1323: checking whether to enable maintainer-specific portions of Makefiles" >&5
1323
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1324
if test "${enable_maintainer_mode+set}" = set; then
1325
  enableval="$enable_maintainer_mode"
1326
  USE_MAINTAINER_MODE=$enableval
1327
else
1328
  USE_MAINTAINER_MODE=no
1329
fi
1330
 
1331
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1332
 
1333
 
1334
if test $USE_MAINTAINER_MODE = yes; then
1335
  MAINTAINER_MODE_TRUE=
1336
  MAINTAINER_MODE_FALSE='#'
1337
else
1338
  MAINTAINER_MODE_TRUE='#'
1339
  MAINTAINER_MODE_FALSE=
1340
fi
1341
  MAINT=$MAINTAINER_MODE_TRUE
1342
 
1343
 
1344
 
1345
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1346
# at least currently, we never actually build a program, so we never
1347
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1348
# fails, because we are probably configuring with a cross compiler
1349
# which can't create executables.  So we include AC_EXEEXT to keep
1350
# automake happy, but we don't execute it, since we don't care about
1351
# the result.
1352
if false; then
1353
 
1354
 
1355
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1356
echo "configure:1357: checking for executable suffix" >&5
1357
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1358
  echo $ac_n "(cached) $ac_c" 1>&6
1359
else
1360
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1361
  ac_cv_exeext=.exe
1362
else
1363
  rm -f conftest*
1364
  echo 'int main () { return 0; }' > conftest.$ac_ext
1365
  ac_cv_exeext=
1366
  if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1367
    for file in conftest.*; do
1368
      case $file in
1369
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1370
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1371
      esac
1372
    done
1373
  else
1374
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1375
  fi
1376
  rm -f conftest*
1377
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1378
fi
1379
fi
1380
 
1381
EXEEXT=""
1382
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1383
echo "$ac_t""${ac_cv_exeext}" 1>&6
1384
ac_exeext=$EXEEXT
1385
 
1386
fi
1387
 
1388
. ${newlib_basedir}/configure.host
1389
 
1390
case ${newlib_basedir} in
1391
/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1392
*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1393
esac
1394
 
1395
newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../targ-include -I${newlib_flagbasedir}/libc/include"
1396
case "${host}" in
1397
  *-*-cygwin*)
1398
    newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include"
1399
    ;;
1400
esac
1401
 
1402
newlib_cflags="${newlib_cflags} -fno-builtin"
1403
 
1404
NEWLIB_CFLAGS=${newlib_cflags}
1405
 
1406
 
1407
 
1408
 
1409
 
1410
 
1411
trap '' 1 2 15
1412
cat > confcache <<\EOF
1413
# This file is a shell script that caches the results of configure
1414
# tests run on this system so they can be shared between configure
1415
# scripts and configure runs.  It is not useful on other systems.
1416
# If it contains results you don't want to keep, you may remove or edit it.
1417
#
1418
# By default, configure uses ./config.cache as the cache file,
1419
# creating it if it does not exist already.  You can give configure
1420
# the --cache-file=FILE option to use a different cache file; that is
1421
# what configure does when it calls configure scripts in
1422
# subdirectories, so they share the cache.
1423
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1424
# config.status only pays attention to the cache file if you give it the
1425
# --recheck option to rerun configure.
1426
#
1427
EOF
1428
# The following way of writing the cache mishandles newlines in values,
1429
# but we know of no workaround that is simple, portable, and efficient.
1430
# So, don't put newlines in cache variables' values.
1431
# Ultrix sh set writes to stderr and can't be redirected directly,
1432
# and sets the high bit in the cache file unless we assign to the vars.
1433
(set) 2>&1 |
1434
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1435
  *ac_space=\ *)
1436
    # `set' does not quote correctly, so add quotes (double-quote substitution
1437
    # turns \\\\ into \\, and sed turns \\ into \).
1438
    sed -n \
1439
      -e "s/'/'\\\\''/g" \
1440
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1441
    ;;
1442
  *)
1443
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1444
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1445
    ;;
1446
  esac >> confcache
1447
if cmp -s $cache_file confcache; then
1448
  :
1449
else
1450
  if test -w $cache_file; then
1451
    echo "updating cache $cache_file"
1452
    cat confcache > $cache_file
1453
  else
1454
    echo "not updating unwritable cache $cache_file"
1455
  fi
1456
fi
1457
rm -f confcache
1458
 
1459
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1460
 
1461
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1462
# Let make expand exec_prefix.
1463
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1464
 
1465
# Any assignment to VPATH causes Sun make to only execute
1466
# the first set of double-colon rules, so remove it if not needed.
1467
# If there is a colon in the path, we need to keep it.
1468
if test "x$srcdir" = x.; then
1469
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1470
fi
1471
 
1472
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1473
 
1474
# Transform confdefs.h into DEFS.
1475
# Protect against shell expansion while executing Makefile rules.
1476
# Protect against Makefile macro expansion.
1477
cat > conftest.defs <<\EOF
1478
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1479
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1480
s%\[%\\&%g
1481
s%\]%\\&%g
1482
s%\$%$$%g
1483
EOF
1484
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1485
rm -f conftest.defs
1486
 
1487
 
1488
# Without the "./", some shells look in PATH for config.status.
1489
: ${CONFIG_STATUS=./config.status}
1490
 
1491
echo creating $CONFIG_STATUS
1492
rm -f $CONFIG_STATUS
1493
cat > $CONFIG_STATUS <
1494
#! /bin/sh
1495
# Generated automatically by configure.
1496
# Run this file to recreate the current configuration.
1497
# This directory was configured as follows,
1498
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1499
#
1500
# $0 $ac_configure_args
1501
#
1502
# Compiler output produced by configure, useful for debugging
1503
# configure, is in ./config.log if it exists.
1504
 
1505
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1506
for ac_option
1507
do
1508
  case "\$ac_option" in
1509
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1510
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1511
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1512
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1513
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1514
    exit 0 ;;
1515
  -help | --help | --hel | --he | --h)
1516
    echo "\$ac_cs_usage"; exit 0 ;;
1517
  *) echo "\$ac_cs_usage"; exit 1 ;;
1518
  esac
1519
done
1520
 
1521
ac_given_srcdir=$srcdir
1522
ac_given_INSTALL="$INSTALL"
1523
 
1524
trap 'rm -fr `echo "Makefile math/Makefile mathfp/Makefile common/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1525
EOF
1526
cat >> $CONFIG_STATUS <
1527
 
1528
# Protect against being on the right side of a sed subst in config.status.
1529
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1530
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1531
$ac_vpsub
1532
$extrasub
1533
s%@SHELL@%$SHELL%g
1534
s%@CFLAGS@%$CFLAGS%g
1535
s%@CPPFLAGS@%$CPPFLAGS%g
1536
s%@CXXFLAGS@%$CXXFLAGS%g
1537
s%@FFLAGS@%$FFLAGS%g
1538
s%@DEFS@%$DEFS%g
1539
s%@LDFLAGS@%$LDFLAGS%g
1540
s%@LIBS@%$LIBS%g
1541
s%@exec_prefix@%$exec_prefix%g
1542
s%@prefix@%$prefix%g
1543
s%@program_transform_name@%$program_transform_name%g
1544
s%@bindir@%$bindir%g
1545
s%@sbindir@%$sbindir%g
1546
s%@libexecdir@%$libexecdir%g
1547
s%@datadir@%$datadir%g
1548
s%@sysconfdir@%$sysconfdir%g
1549
s%@sharedstatedir@%$sharedstatedir%g
1550
s%@localstatedir@%$localstatedir%g
1551
s%@libdir@%$libdir%g
1552
s%@includedir@%$includedir%g
1553
s%@oldincludedir@%$oldincludedir%g
1554
s%@infodir@%$infodir%g
1555
s%@mandir@%$mandir%g
1556
s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
1557
s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
1558
s%@newlib_basedir@%$newlib_basedir%g
1559
s%@host@%$host%g
1560
s%@host_alias@%$host_alias%g
1561
s%@host_cpu@%$host_cpu%g
1562
s%@host_vendor@%$host_vendor%g
1563
s%@host_os@%$host_os%g
1564
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1565
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1566
s%@INSTALL_DATA@%$INSTALL_DATA%g
1567
s%@PACKAGE@%$PACKAGE%g
1568
s%@VERSION@%$VERSION%g
1569
s%@ACLOCAL@%$ACLOCAL%g
1570
s%@AUTOCONF@%$AUTOCONF%g
1571
s%@AUTOMAKE@%$AUTOMAKE%g
1572
s%@AUTOHEADER@%$AUTOHEADER%g
1573
s%@MAKEINFO@%$MAKEINFO%g
1574
s%@SET_MAKE@%$SET_MAKE%g
1575
s%@CC@%$CC%g
1576
s%@build@%$build%g
1577
s%@build_alias@%$build_alias%g
1578
s%@build_cpu@%$build_cpu%g
1579
s%@build_vendor@%$build_vendor%g
1580
s%@build_os@%$build_os%g
1581
s%@AS@%$AS%g
1582
s%@AR@%$AR%g
1583
s%@RANLIB@%$RANLIB%g
1584
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1585
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1586
s%@MAINT@%$MAINT%g
1587
s%@EXEEXT@%$EXEEXT%g
1588
s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1589
s%@machine_dir@%$machine_dir%g
1590
s%@sys_dir@%$sys_dir%g
1591
 
1592
CEOF
1593
EOF
1594
 
1595
cat >> $CONFIG_STATUS <<\EOF
1596
 
1597
# Split the substitutions into bite-sized pieces for seds with
1598
# small command number limits, like on Digital OSF/1 and HP-UX.
1599
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1600
ac_file=1 # Number of current file.
1601
ac_beg=1 # First line for current file.
1602
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1603
ac_more_lines=:
1604
ac_sed_cmds=""
1605
while $ac_more_lines; do
1606
  if test $ac_beg -gt 1; then
1607
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1608
  else
1609
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1610
  fi
1611
  if test ! -s conftest.s$ac_file; then
1612
    ac_more_lines=false
1613
    rm -f conftest.s$ac_file
1614
  else
1615
    if test -z "$ac_sed_cmds"; then
1616
      ac_sed_cmds="sed -f conftest.s$ac_file"
1617
    else
1618
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1619
    fi
1620
    ac_file=`expr $ac_file + 1`
1621
    ac_beg=$ac_end
1622
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1623
  fi
1624
done
1625
if test -z "$ac_sed_cmds"; then
1626
  ac_sed_cmds=cat
1627
fi
1628
EOF
1629
 
1630
cat >> $CONFIG_STATUS <
1631
 
1632
CONFIG_FILES=\${CONFIG_FILES-"Makefile math/Makefile mathfp/Makefile common/Makefile"}
1633
EOF
1634
cat >> $CONFIG_STATUS <<\EOF
1635
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1636
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1637
  case "$ac_file" in
1638
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1639
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1640
  *) ac_file_in="${ac_file}.in" ;;
1641
  esac
1642
 
1643
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1644
 
1645
  # Remove last slash and all that follows it.  Not all systems have dirname.
1646
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1647
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1648
    # The file is in a subdirectory.
1649
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1650
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1651
    # A "../" for each directory in $ac_dir_suffix.
1652
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1653
  else
1654
    ac_dir_suffix= ac_dots=
1655
  fi
1656
 
1657
  case "$ac_given_srcdir" in
1658
  .)  srcdir=.
1659
      if test -z "$ac_dots"; then top_srcdir=.
1660
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1661
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1662
  *) # Relative path.
1663
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1664
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1665
  esac
1666
 
1667
  case "$ac_given_INSTALL" in
1668
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1669
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1670
  esac
1671
 
1672
  echo creating "$ac_file"
1673
  rm -f "$ac_file"
1674
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1675
  case "$ac_file" in
1676
  *Makefile*) ac_comsub="1i\\
1677
# $configure_input" ;;
1678
  *) ac_comsub= ;;
1679
  esac
1680
 
1681
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1682
  sed -e "$ac_comsub
1683
s%@configure_input@%$configure_input%g
1684
s%@srcdir@%$srcdir%g
1685
s%@top_srcdir@%$top_srcdir%g
1686
s%@INSTALL@%$INSTALL%g
1687
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1688
fi; done
1689
rm -f conftest.s*
1690
 
1691
EOF
1692
cat >> $CONFIG_STATUS <
1693
 
1694
EOF
1695
cat >> $CONFIG_STATUS <<\EOF
1696
 
1697
exit 0
1698
EOF
1699
chmod +x $CONFIG_STATUS
1700
rm -fr confdefs* $ac_clean_files
1701
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1702
 

powered by: WebSVN 2.1.0

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