]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
* gcc.c (.h spec): Fix typo.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3
BK
1#! /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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32ac_help="$ac_help
3840fa2a 33 --disable-libtool-lock avoid locking (might break parallel builds)"
b2dad0e3
BK
34ac_help="$ac_help
35 --enable-debug extra debugging, turn off optimization [default=no]"
36ac_help="$ac_help
37 --enable-cstdio enable GNU libio for target io package. (default)
38 --enable-cstdio=LIB use LIB target-speific io package."
39ac_help="$ac_help
5b80666b 40 --enable-long-long turns on 'long long' [default=yes]"
99246c90 41ac_help="$ac_help
d0d88ce3
BK
42 --enable-cshadow-headers construct "shadowed" C header files for
43 g++ [default=no]"
b2dad0e3
BK
44ac_help="$ac_help
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
dcfa0bc8
PE
47ac_help="$ac_help
48 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
32a4595e 49 [default=none]"
b2dad0e3
BK
50
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
60df8b81 67sitefile=
b2dad0e3
BK
68srcdir=
69target=NONE
70verbose=
71x_includes=NONE
72x_libraries=NONE
73bindir='${exec_prefix}/bin'
74sbindir='${exec_prefix}/sbin'
75libexecdir='${exec_prefix}/libexec'
76datadir='${prefix}/share'
77sysconfdir='${prefix}/etc'
78sharedstatedir='${prefix}/com'
79localstatedir='${prefix}/var'
80libdir='${exec_prefix}/lib'
81includedir='${prefix}/include'
82oldincludedir='/usr/include'
83infodir='${prefix}/info'
84mandir='${prefix}/man'
85
86# Initialize some other variables.
87subdirs=
88MFLAGS= MAKEFLAGS=
89SHELL=${CONFIG_SHELL-/bin/sh}
90# Maximum number of lines to put in a shell here document.
91ac_max_here_lines=12
92
93ac_prev=
94for ac_option
95do
96
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
100 ac_prev=
101 continue
102 fi
103
104 case "$ac_option" in
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 *) ac_optarg= ;;
107 esac
108
109 # Accept the important Cygnus configure options, so we can diagnose typos.
110
111 case "$ac_option" in
112
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 ac_prev=bindir ;;
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
117
118 -build | --build | --buil | --bui | --bu)
119 ac_prev=build ;;
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
122
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
129
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 ac_prev=datadir ;;
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 | --da=*)
134 datadir="$ac_optarg" ;;
135
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
144
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 fi
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 case "$ac_option" in
153 *=*) ;;
154 *) ac_optarg=yes ;;
155 esac
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
157
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
166
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
169 with_gas=yes ;;
170
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
174 cat << EOF
175Usage: configure [options] [host]
176Options: [defaults in brackets after descriptions]
177Configuration:
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
60df8b81 182 --site-file=FILE use FILE as the site file
b2dad0e3
BK
183 --version print the version of autoconf that created configure
184Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 [same as prefix]
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208EOF
209 cat << EOF
210Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
221EOF
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
60df8b81
BK
353 -site-file | --site-file | --site-fil | --site-fi | --site-f)
354 ac_prev=sitefile ;;
355 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
356 sitefile="$ac_optarg" ;;
357
b2dad0e3
BK
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359 ac_prev=srcdir ;;
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
362
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
369
370 -target | --target | --targe | --targ | --tar | --ta | --t)
371 ac_prev=target ;;
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
374
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 verbose=yes ;;
377
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.13"
380 exit 0 ;;
381
382 -with-* | --with-*)
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 fi
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 case "$ac_option" in
390 *=*) ;;
391 *) ac_optarg=yes ;;
392 esac
393 eval "with_${ac_package}='$ac_optarg'" ;;
394
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 fi
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
403
404 --x)
405 # Obsolete; use --with-x.
406 with_x=yes ;;
407
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
414
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
421
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 ;;
424
425 *)
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 fi
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 fi
432 nonopt="$ac_option"
433 ;;
434
435 esac
436done
437
438if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440fi
441
442trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443
444# File descriptor usage:
445# 0 standard input
446# 1 file creation
447# 2 errors and warnings
448# 3 some systems may open it to /dev/tty
449# 4 used on the Kubota Titan
450# 6 checking for... messages and results
451# 5 compiler messages saved in config.log
452if test "$silent" = yes; then
453 exec 6>/dev/null
454else
455 exec 6>&1
456fi
457exec 5>./config.log
458
459echo "\
460This file contains any messages produced by compilers while
461running configure, to aid debugging if configure makes a mistake.
462" 1>&5
463
464# Strip out --no-create and --no-recursion so they do not pile up.
465# Also quote any args containing shell metacharacters.
466ac_configure_args=
467for ac_arg
468do
469 case "$ac_arg" in
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477 esac
478done
479
480# NLS nuisances.
481# Only set these to C if already set. These must not be set unconditionally
482# because not all systems understand e.g. LANG=C (notably SCO).
483# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484# Non-C LC_CTYPE values break the ctype check.
485if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489
490# confdefs.h avoids OS command line length limits that DEFS can exceed.
491rm -rf conftest* confdefs.h
492# AIX cpp loses on an empty file, so make sure it contains at least a newline.
493echo > confdefs.h
494
495# A filename unique to this package, relative to the directory that
496# configure is in, which we can look for to find out if srcdir is correct.
497ac_unique_file=src/complex.cc
498
499# Find the source files, if location was not specified.
500if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
503 ac_prog=$0
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506 srcdir=$ac_confdir
507 if test ! -r $srcdir/$ac_unique_file; then
508 srcdir=..
509 fi
510else
511 ac_srcdir_defaulted=no
512fi
513if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 else
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 fi
519fi
520srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521
522# Prefer explicitly selected file to automatically selected ones.
60df8b81
BK
523if test -z "$sitefile"; then
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 fi
b2dad0e3 530 fi
60df8b81
BK
531else
532 CONFIG_SITE="$sitefile"
b2dad0e3
BK
533fi
534for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
537 . "$ac_site_file"
538 fi
539done
540
541if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
543 . $cache_file
544else
545 echo "creating cache $cache_file"
546 > $cache_file
547fi
548
549ac_ext=c
550# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551ac_cpp='$CPP $CPPFLAGS'
552ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554cross_compiling=$ac_cv_prog_cc_cross
555
556ac_exeext=
557ac_objext=o
558if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='
562' ac_t=' '
563 else
564 ac_n=-n ac_c= ac_t=
565 fi
566else
567 ac_n= ac_c='\c' ac_t=
568fi
569
570
571ac_aux_dir=
572for ac_dir in .. $srcdir/..; do
573 if test -f $ac_dir/install-sh; then
574 ac_aux_dir=$ac_dir
575 ac_install_sh="$ac_aux_dir/install-sh -c"
576 break
577 elif test -f $ac_dir/install.sh; then
578 ac_aux_dir=$ac_dir
579 ac_install_sh="$ac_aux_dir/install.sh -c"
580 break
581 fi
582done
583if test -z "$ac_aux_dir"; then
584 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
585fi
586ac_config_guess=$ac_aux_dir/config.guess
587ac_config_sub=$ac_aux_dir/config.sub
588ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589
590
591# Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
592
593# Do some error checking and defaulting for the host and target type.
594# The inputs are:
595# configure --host=HOST --target=TARGET --build=BUILD NONOPT
596#
597# The rules are:
598# 1. You are not allowed to specify --host, --target, and nonopt at the
599# same time.
600# 2. Host defaults to nonopt.
601# 3. If nonopt is not specified, then host defaults to the current host,
602# as determined by config.guess.
603# 4. Target and build default to nonopt.
604# 5. If nonopt is not specified, then target and build default to host.
605
606# The aliases save the names the user supplied, while $host etc.
607# will get canonicalized.
608case $host---$target---$nonopt in
609NONE---*---* | *---NONE---* | *---*---NONE) ;;
610*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
611esac
612
613
614# Make sure we can run config.sub.
615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
616else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617fi
618
619echo $ac_n "checking host system type""... $ac_c" 1>&6
60df8b81 620echo "configure:621: checking host system type" >&5
b2dad0e3
BK
621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 fi ;;
630 *) host_alias=$nonopt ;;
631 esac ;;
632esac
633
634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638echo "$ac_t""$host" 1>&6
639
640echo $ac_n "checking target system type""... $ac_c" 1>&6
60df8b81 641echo "configure:642: checking target system type" >&5
b2dad0e3
BK
642
643target_alias=$target
644case "$target_alias" in
645NONE)
646 case $nonopt in
647 NONE) target_alias=$host_alias ;;
648 *) target_alias=$nonopt ;;
649 esac ;;
650esac
651
652target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
653target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656echo "$ac_t""$target" 1>&6
657
658echo $ac_n "checking build system type""... $ac_c" 1>&6
60df8b81 659echo "configure:660: checking build system type" >&5
b2dad0e3
BK
660
661build_alias=$build
662case "$build_alias" in
663NONE)
664 case $nonopt in
665 NONE) build_alias=$host_alias ;;
666 *) build_alias=$nonopt ;;
667 esac ;;
668esac
669
670build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
671build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674echo "$ac_t""$build" 1>&6
675
676test "$host_alias" != "$target_alias" &&
677 test "$program_prefix$program_suffix$program_transform_name" = \
678 NONENONEs,x,x, &&
679 program_prefix=${target_alias}-
680
681
682# We use these options to decide which functions to include.
683# Check whether --with-target-subdir or --without-target-subdir was given.
684if test "${with_target_subdir+set}" = set; then
685 withval="$with_target_subdir"
686 :
687fi
688
689# Check whether --with-cross-host or --without-cross-host was given.
690if test "${with_cross_host+set}" = set; then
691 withval="$with_cross_host"
692 :
693fi
694
695
696# Find a good install program. We prefer a C program (faster),
697# so one script is as good as another. But avoid the broken or
698# incompatible versions:
699# SysV /etc/install, /usr/sbin/install
700# SunOS /usr/etc/install
701# IRIX /sbin/install
702# AIX /bin/install
703# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
704# AFS /usr/afsws/bin/install, which mishandles nonexistent args
705# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
706# ./install, which can be erroneously created by make from ./install.sh.
707echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
60df8b81 708echo "configure:709: checking for a BSD compatible install" >&5
b2dad0e3
BK
709if test -z "$INSTALL"; then
710if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712else
713 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
714 for ac_dir in $PATH; do
715 # Account for people who put trailing slashes in PATH elements.
716 case "$ac_dir/" in
717 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
718 *)
719 # OSF1 and SCO ODT 3.0 have their own names for install.
720 # Don't use installbsd from OSF since it installs stuff as root
721 # by default.
722 for ac_prog in ginstall scoinst install; do
723 if test -f $ac_dir/$ac_prog; then
724 if test $ac_prog = install &&
725 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
726 # AIX install. It has an incompatible calling convention.
727 :
728 else
729 ac_cv_path_install="$ac_dir/$ac_prog -c"
730 break 2
731 fi
732 fi
733 done
734 ;;
735 esac
736 done
737 IFS="$ac_save_IFS"
738
739fi
740 if test "${ac_cv_path_install+set}" = set; then
741 INSTALL="$ac_cv_path_install"
742 else
743 # As a last resort, use the slow shell script. We don't cache a
744 # path for INSTALL within a source directory, because that will
745 # break other packages using the cache if that directory is
746 # removed, or if the path is relative.
747 INSTALL="$ac_install_sh"
748 fi
749fi
750echo "$ac_t""$INSTALL" 1>&6
751
752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
753# It thinks the first close brace ends the variable substitution.
754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
755
756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757
758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
759
760echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
60df8b81 761echo "configure:762: checking whether build environment is sane" >&5
b2dad0e3
BK
762# Just in case
763sleep 1
764echo timestamp > conftestfile
765# Do `set' in a subshell so we don't clobber the current shell's
766# arguments. Must try -L first in case configure is actually a
767# symlink; some systems play weird games with the mod time of symlinks
768# (eg FreeBSD returns the mod time of the symlink's containing
769# directory).
770if (
771 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
772 if test "$*" = "X"; then
773 # -L didn't work.
774 set X `ls -t $srcdir/configure conftestfile`
775 fi
776 if test "$*" != "X $srcdir/configure conftestfile" \
777 && test "$*" != "X conftestfile $srcdir/configure"; then
778
779 # If neither matched, then we have a broken ls. This can happen
780 # if, for instance, CONFIG_SHELL is bash and it inherits a
781 # broken ls alias from the environment. This has actually
782 # happened. Such a system could not be considered "sane".
783 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
784alias in your environment" 1>&2; exit 1; }
785 fi
786
787 test "$2" = conftestfile
788 )
789then
790 # Ok.
791 :
792else
793 { echo "configure: error: newly created file is older than distributed files!
794Check your system clock" 1>&2; exit 1; }
795fi
796rm -f conftest*
797echo "$ac_t""yes" 1>&6
798if test "$program_transform_name" = s,x,x,; then
799 program_transform_name=
800else
801 # Double any \ or $. echo might interpret backslashes.
802 cat <<\EOF_SED > conftestsed
803s,\\,\\\\,g; s,\$,$$,g
804EOF_SED
805 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
806 rm -f conftestsed
807fi
808test "$program_prefix" != NONE &&
809 program_transform_name="s,^,${program_prefix},; $program_transform_name"
810# Use a double $ so make ignores it.
811test "$program_suffix" != NONE &&
812 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
813
814# sed with no file args requires a program.
815test "$program_transform_name" = "" && program_transform_name="s,x,x,"
816
817echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
60df8b81 818echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5
b2dad0e3
BK
819set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
820if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
822else
823 cat > conftestmake <<\EOF
824all:
825 @echo 'ac_maketemp="${MAKE}"'
826EOF
827# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
828eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
829if test -n "$ac_maketemp"; then
830 eval ac_cv_prog_make_${ac_make}_set=yes
831else
832 eval ac_cv_prog_make_${ac_make}_set=no
833fi
834rm -f conftestmake
835fi
836if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
837 echo "$ac_t""yes" 1>&6
838 SET_MAKE=
839else
840 echo "$ac_t""no" 1>&6
841 SET_MAKE="MAKE=${MAKE-make}"
842fi
843
844if test $host != $build; then
845 ac_tool_prefix=${host_alias}-
846else
847 ac_tool_prefix=
848fi
849
850echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
60df8b81 851echo "configure:852: checking for Cygwin environment" >&5
b2dad0e3
BK
852if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
854else
855 cat > conftest.$ac_ext <<EOF
60df8b81 856#line 857 "configure"
b2dad0e3
BK
857#include "confdefs.h"
858
859int main() {
860
861#ifndef __CYGWIN__
862#define __CYGWIN__ __CYGWIN32__
863#endif
864return __CYGWIN__;
865; return 0; }
866EOF
60df8b81 867if { (eval echo configure:868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
868 rm -rf conftest*
869 ac_cv_cygwin=yes
870else
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
873 rm -rf conftest*
874 ac_cv_cygwin=no
875fi
876rm -f conftest*
877rm -f conftest*
878fi
879
880echo "$ac_t""$ac_cv_cygwin" 1>&6
881CYGWIN=
882test "$ac_cv_cygwin" = yes && CYGWIN=yes
883echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
60df8b81 884echo "configure:885: checking for mingw32 environment" >&5
b2dad0e3
BK
885if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
887else
888 cat > conftest.$ac_ext <<EOF
60df8b81 889#line 890 "configure"
b2dad0e3
BK
890#include "confdefs.h"
891
892int main() {
893return __MINGW32__;
894; return 0; }
895EOF
60df8b81 896if { (eval echo configure:897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
897 rm -rf conftest*
898 ac_cv_mingw32=yes
899else
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
902 rm -rf conftest*
903 ac_cv_mingw32=no
904fi
905rm -f conftest*
906rm -f conftest*
907fi
908
909echo "$ac_t""$ac_cv_mingw32" 1>&6
910MINGW32=
911test "$ac_cv_mingw32" = yes && MINGW32=yes
912
913 # Check whether --enable-multilib or --disable-multilib was given.
914if test "${enable_multilib+set}" = set; then
915 enableval="$enable_multilib"
916 case "${enableval}" in
917 yes) multilib=yes ;;
918 no) multilib=no ;;
919 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
920 esac
921else
922 multilib=yes
923fi
924
925 if test "${srcdir}" = "."; then
926 if test "${with_target_subdir}" != "."; then
927 glibcpp_basedir="${srcdir}/${with_multisrctop}../."
928 else
929 glibcpp_basedir="${srcdir}/${with_multisrctop}."
930 fi
931 else
932 glibcpp_basedir="${srcdir}/."
933 fi
934
935
936
937# Make sure we can run config.sub.
938if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
939else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
940fi
941
942echo $ac_n "checking host system type""... $ac_c" 1>&6
60df8b81 943echo "configure:944: checking host system type" >&5
b2dad0e3
BK
944
945host_alias=$host
946case "$host_alias" in
947NONE)
948 case $nonopt in
949 NONE)
950 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
951 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
952 fi ;;
953 *) host_alias=$nonopt ;;
954 esac ;;
955esac
956
957host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
958host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
959host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
960host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
961echo "$ac_t""$host" 1>&6
962
963
964
965PACKAGE=libstdc++
966
967VERSION=2.90.8
968
969if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
970 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
971fi
972cat >> confdefs.h <<EOF
973#define PACKAGE "$PACKAGE"
974EOF
975
976cat >> confdefs.h <<EOF
977#define VERSION "$VERSION"
978EOF
979
980
981
982missing_dir=`cd $ac_aux_dir && pwd`
983echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
60df8b81 984echo "configure:985: checking for working aclocal" >&5
b2dad0e3
BK
985# Run test in a subshell; some versions of sh will print an error if
986# an executable is not found, even if stderr is redirected.
987# Redirect stdin to placate older versions of autoconf. Sigh.
988if (aclocal --version) < /dev/null > /dev/null 2>&1; then
989 ACLOCAL=aclocal
990 echo "$ac_t""found" 1>&6
991else
992 ACLOCAL="$missing_dir/missing aclocal"
993 echo "$ac_t""missing" 1>&6
994fi
995
996echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
60df8b81 997echo "configure:998: checking for working autoconf" >&5
b2dad0e3
BK
998# Run test in a subshell; some versions of sh will print an error if
999# an executable is not found, even if stderr is redirected.
1000# Redirect stdin to placate older versions of autoconf. Sigh.
1001if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1002 AUTOCONF=autoconf
1003 echo "$ac_t""found" 1>&6
1004else
1005 AUTOCONF="$missing_dir/missing autoconf"
1006 echo "$ac_t""missing" 1>&6
1007fi
1008
1009echo $ac_n "checking for working automake""... $ac_c" 1>&6
60df8b81 1010echo "configure:1011: checking for working automake" >&5
b2dad0e3
BK
1011# Run test in a subshell; some versions of sh will print an error if
1012# an executable is not found, even if stderr is redirected.
1013# Redirect stdin to placate older versions of autoconf. Sigh.
1014if (automake --version) < /dev/null > /dev/null 2>&1; then
1015 AUTOMAKE=automake
1016 echo "$ac_t""found" 1>&6
1017else
1018 AUTOMAKE="$missing_dir/missing automake"
1019 echo "$ac_t""missing" 1>&6
1020fi
1021
1022echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
60df8b81 1023echo "configure:1024: checking for working autoheader" >&5
b2dad0e3
BK
1024# Run test in a subshell; some versions of sh will print an error if
1025# an executable is not found, even if stderr is redirected.
1026# Redirect stdin to placate older versions of autoconf. Sigh.
1027if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1028 AUTOHEADER=autoheader
1029 echo "$ac_t""found" 1>&6
1030else
1031 AUTOHEADER="$missing_dir/missing autoheader"
1032 echo "$ac_t""missing" 1>&6
1033fi
1034
1035echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
60df8b81 1036echo "configure:1037: checking for working makeinfo" >&5
b2dad0e3
BK
1037# Run test in a subshell; some versions of sh will print an error if
1038# an executable is not found, even if stderr is redirected.
1039# Redirect stdin to placate older versions of autoconf. Sigh.
1040if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1041 MAKEINFO=makeinfo
1042 echo "$ac_t""found" 1>&6
1043else
1044 MAKEINFO="$missing_dir/missing makeinfo"
1045 echo "$ac_t""missing" 1>&6
1046fi
1047
1048
1049
1050# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1051# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1052# are probably using a cross compiler, which will not be able to fully
1053# link an executable. This should really be fixed in autoconf
1054# itself.
1055
1056
1057
1058
1059# Extract the first word of "gcc", so it can be a program name with args.
1060set dummy gcc; ac_word=$2
1061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1062echo "configure:1063: checking for $ac_word" >&5
b2dad0e3
BK
1063if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1065else
1066 if test -n "$CC"; then
1067 ac_cv_prog_CC="$CC" # Let the user override the test.
1068else
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 ac_dummy="$PATH"
1071 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 if test -f $ac_dir/$ac_word; then
1074 ac_cv_prog_CC="gcc"
1075 break
1076 fi
1077 done
1078 IFS="$ac_save_ifs"
1079fi
1080fi
1081CC="$ac_cv_prog_CC"
1082if test -n "$CC"; then
1083 echo "$ac_t""$CC" 1>&6
1084else
1085 echo "$ac_t""no" 1>&6
1086fi
1087
1088if test -z "$CC"; then
1089 # Extract the first word of "cc", so it can be a program name with args.
1090set dummy cc; ac_word=$2
1091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1092echo "configure:1093: checking for $ac_word" >&5
b2dad0e3
BK
1093if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095else
1096 if test -n "$CC"; then
1097 ac_cv_prog_CC="$CC" # Let the user override the test.
1098else
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 ac_prog_rejected=no
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1106 ac_prog_rejected=yes
1107 continue
1108 fi
1109 ac_cv_prog_CC="cc"
1110 break
1111 fi
1112 done
1113 IFS="$ac_save_ifs"
1114if test $ac_prog_rejected = yes; then
1115 # We found a bogon in the path, so make sure we never use it.
1116 set dummy $ac_cv_prog_CC
1117 shift
1118 if test $# -gt 0; then
1119 # We chose a different compiler from the bogus one.
1120 # However, it has the same basename, so the bogon will be chosen
1121 # first if we set CC to just the basename; use the full file name.
1122 shift
1123 set dummy "$ac_dir/$ac_word" "$@"
1124 shift
1125 ac_cv_prog_CC="$@"
1126 fi
1127fi
1128fi
1129fi
1130CC="$ac_cv_prog_CC"
1131if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1133else
1134 echo "$ac_t""no" 1>&6
1135fi
1136
1137 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1138fi
1139
1140echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
60df8b81 1141echo "configure:1142: checking whether we are using GNU C" >&5
b2dad0e3
BK
1142if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144else
1145 cat > conftest.c <<EOF
1146#ifdef __GNUC__
1147 yes;
1148#endif
1149EOF
60df8b81 1150if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1151 ac_cv_prog_gcc=yes
1152else
1153 ac_cv_prog_gcc=no
1154fi
1155fi
1156
1157echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1158
1159if test $ac_cv_prog_gcc = yes; then
1160 GCC=yes
1161 ac_test_CFLAGS="${CFLAGS+set}"
1162 ac_save_CFLAGS="$CFLAGS"
1163 CFLAGS=
1164 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
60df8b81 1165echo "configure:1166: checking whether ${CC-cc} accepts -g" >&5
b2dad0e3
BK
1166if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168else
1169 echo 'void f(){}' > conftest.c
1170if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1171 ac_cv_prog_cc_g=yes
1172else
1173 ac_cv_prog_cc_g=no
1174fi
1175rm -f conftest*
1176
1177fi
1178
1179echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1180 if test "$ac_test_CFLAGS" = set; then
1181 CFLAGS="$ac_save_CFLAGS"
1182 elif test $ac_cv_prog_cc_g = yes; then
1183 CFLAGS="-g -O2"
1184 else
1185 CFLAGS="-O2"
1186 fi
1187else
1188 GCC=
1189 test "${CFLAGS+set}" = set || CFLAGS="-g"
1190fi
1191
1192
1193# Likewise for AC_PROG_CXX.
1194
1195
1196
1197for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1198do
1199# Extract the first word of "$ac_prog", so it can be a program name with args.
1200set dummy $ac_prog; ac_word=$2
1201echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1202echo "configure:1203: checking for $ac_word" >&5
b2dad0e3
BK
1203if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205else
1206 if test -n "$CXX"; then
1207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1208else
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_CXX="$ac_prog"
1215 break
1216 fi
1217 done
1218 IFS="$ac_save_ifs"
1219fi
1220fi
1221CXX="$ac_cv_prog_CXX"
1222if test -n "$CXX"; then
1223 echo "$ac_t""$CXX" 1>&6
1224else
1225 echo "$ac_t""no" 1>&6
1226fi
1227
1228test -n "$CXX" && break
1229done
1230test -n "$CXX" || CXX="gcc"
1231
1232test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1233
1234echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
60df8b81 1235echo "configure:1236: checking whether we are using GNU C++" >&5
b2dad0e3
BK
1236if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239 cat > conftest.C <<EOF
1240#ifdef __GNUC__
1241 yes;
1242#endif
1243EOF
60df8b81 1244if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1245 ac_cv_prog_gxx=yes
1246else
1247 ac_cv_prog_gxx=no
1248fi
1249fi
1250
1251echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1252
1253if test $ac_cv_prog_gxx = yes; then
1254 GXX=yes
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1257 CXXFLAGS=
1258 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
60df8b81 1259echo "configure:1260: checking whether ${CXX-g++} accepts -g" >&5
b2dad0e3
BK
1260if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262else
1263 echo 'void f(){}' > conftest.cc
1264if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1266else
1267 ac_cv_prog_cxx_g=no
1268fi
1269rm -f conftest*
1270
1271fi
1272
1273echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 CXXFLAGS="-g -O2"
1278 else
1279 CXXFLAGS="-O2"
1280 fi
1281else
1282 GXX=
1283 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1284fi
1285
1286
1287# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1288# run it explicitly here, it will be run implicitly before
1289# LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1290# be run before AC_CANONICAL_HOST.
1291echo $ac_n "checking build system type""... $ac_c" 1>&6
60df8b81 1292echo "configure:1293: checking build system type" >&5
b2dad0e3
BK
1293
1294build_alias=$build
1295case "$build_alias" in
1296NONE)
1297 case $nonopt in
1298 NONE) build_alias=$host_alias ;;
1299 *) build_alias=$nonopt ;;
1300 esac ;;
1301esac
1302
1303build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1304build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1305build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1306build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1307echo "$ac_t""$build" 1>&6
1308
1309
1310# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1311set dummy ${ac_tool_prefix}as; ac_word=$2
1312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1313echo "configure:1314: checking for $ac_word" >&5
b2dad0e3
BK
1314if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317 if test -n "$AS"; then
1318 ac_cv_prog_AS="$AS" # Let the user override the test.
1319else
1320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1321 ac_dummy="$PATH"
1322 for ac_dir in $ac_dummy; do
1323 test -z "$ac_dir" && ac_dir=.
1324 if test -f $ac_dir/$ac_word; then
1325 ac_cv_prog_AS="${ac_tool_prefix}as"
1326 break
1327 fi
1328 done
1329 IFS="$ac_save_ifs"
1330 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1331fi
1332fi
1333AS="$ac_cv_prog_AS"
1334if test -n "$AS"; then
1335 echo "$ac_t""$AS" 1>&6
1336else
1337 echo "$ac_t""no" 1>&6
1338fi
1339
1340
1341
1342# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1343set dummy ${ac_tool_prefix}ar; ac_word=$2
1344echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1345echo "configure:1346: checking for $ac_word" >&5
b2dad0e3
BK
1346if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
1349 if test -n "$AR"; then
1350 ac_cv_prog_AR="$AR" # Let the user override the test.
1351else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_AR="${ac_tool_prefix}ar"
1358 break
1359 fi
1360 done
1361 IFS="$ac_save_ifs"
1362 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1363fi
1364fi
1365AR="$ac_cv_prog_AR"
1366if test -n "$AR"; then
1367 echo "$ac_t""$AR" 1>&6
1368else
1369 echo "$ac_t""no" 1>&6
1370fi
1371
1372
1373
1374# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1375set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1377echo "configure:1378: checking for $ac_word" >&5
b2dad0e3
BK
1378if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381 if test -n "$RANLIB"; then
1382 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1383else
1384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1385 ac_dummy="$PATH"
1386 for ac_dir in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1390 break
1391 fi
1392 done
1393 IFS="$ac_save_ifs"
1394fi
1395fi
1396RANLIB="$ac_cv_prog_RANLIB"
1397if test -n "$RANLIB"; then
1398 echo "$ac_t""$RANLIB" 1>&6
1399else
1400 echo "$ac_t""no" 1>&6
1401fi
1402
1403
1404if test -z "$ac_cv_prog_RANLIB"; then
1405if test -n "$ac_tool_prefix"; then
1406 # Extract the first word of "ranlib", so it can be a program name with args.
1407set dummy ranlib; ac_word=$2
1408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
60df8b81 1409echo "configure:1410: checking for $ac_word" >&5
b2dad0e3
BK
1410if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412else
1413 if test -n "$RANLIB"; then
1414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1415else
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 ac_dummy="$PATH"
1418 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_RANLIB="ranlib"
1422 break
1423 fi
1424 done
1425 IFS="$ac_save_ifs"
1426 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1427fi
1428fi
1429RANLIB="$ac_cv_prog_RANLIB"
1430if test -n "$RANLIB"; then
1431 echo "$ac_t""$RANLIB" 1>&6
1432else
1433 echo "$ac_t""no" 1>&6
1434fi
1435
1436else
1437 RANLIB=":"
1438fi
1439fi
1440
1441
1442# Find a good install program. We prefer a C program (faster),
1443# so one script is as good as another. But avoid the broken or
1444# incompatible versions:
1445# SysV /etc/install, /usr/sbin/install
1446# SunOS /usr/etc/install
1447# IRIX /sbin/install
1448# AIX /bin/install
1449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452# ./install, which can be erroneously created by make from ./install.sh.
1453echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
60df8b81 1454echo "configure:1455: checking for a BSD compatible install" >&5
b2dad0e3
BK
1455if test -z "$INSTALL"; then
1456if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458else
1459 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1460 for ac_dir in $PATH; do
1461 # Account for people who put trailing slashes in PATH elements.
1462 case "$ac_dir/" in
1463 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1464 *)
1465 # OSF1 and SCO ODT 3.0 have their own names for install.
1466 # Don't use installbsd from OSF since it installs stuff as root
1467 # by default.
1468 for ac_prog in ginstall scoinst install; do
1469 if test -f $ac_dir/$ac_prog; then
1470 if test $ac_prog = install &&
1471 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1472 # AIX install. It has an incompatible calling convention.
1473 :
1474 else
1475 ac_cv_path_install="$ac_dir/$ac_prog -c"
1476 break 2
1477 fi
1478 fi
1479 done
1480 ;;
1481 esac
1482 done
1483 IFS="$ac_save_IFS"
1484
1485fi
1486 if test "${ac_cv_path_install+set}" = set; then
1487 INSTALL="$ac_cv_path_install"
1488 else
1489 # As a last resort, use the slow shell script. We don't cache a
1490 # path for INSTALL within a source directory, because that will
1491 # break other packages using the cache if that directory is
1492 # removed, or if the path is relative.
1493 INSTALL="$ac_install_sh"
1494 fi
1495fi
1496echo "$ac_t""$INSTALL" 1>&6
1497
1498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499# It thinks the first close brace ends the variable substitution.
1500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501
1502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1503
1504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505
1506
1507echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
60df8b81 1508echo "configure:1509: checking whether to enable maintainer-specific portions of Makefiles" >&5
b2dad0e3
BK
1509 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1510if test "${enable_maintainer_mode+set}" = set; then
1511 enableval="$enable_maintainer_mode"
1512 USE_MAINTAINER_MODE=$enableval
1513else
1514 USE_MAINTAINER_MODE=no
1515fi
1516
1517 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1518
1519
1520if test $USE_MAINTAINER_MODE = yes; then
1521 MAINTAINER_MODE_TRUE=
1522 MAINTAINER_MODE_FALSE='#'
1523else
1524 MAINTAINER_MODE_TRUE='#'
1525 MAINTAINER_MODE_FALSE=
1526fi
1527 MAINT=$MAINTAINER_MODE_TRUE
1528
1529
1530
1531# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1532# at least currently, we never actually build a program, so we never
1533# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1534# fails, because we are probably configuring with a cross compiler
1535# which cant create executables. So we include AC_EXEEXT to keep
1536# automake happy, but we dont execute it, since we dont care about
1537# the result.
1538if false; then
1539
1540
1541echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
60df8b81 1542echo "configure:1543: checking for executable suffix" >&5
b2dad0e3
BK
1543if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545else
1546 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1547 ac_cv_exeext=.exe
1548else
1549 rm -f conftest*
1550 echo 'int main () { return 0; }' > conftest.$ac_ext
1551 ac_cv_exeext=
60df8b81 1552 if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
b2dad0e3
BK
1553 for file in conftest.*; do
1554 case $file in
60df8b81 1555 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
b2dad0e3
BK
1556 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1557 esac
1558 done
1559 else
1560 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1561 fi
1562 rm -f conftest*
1563 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1564fi
1565fi
1566
1567EXEEXT=""
1568test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1569echo "$ac_t""${ac_cv_exeext}" 1>&6
1570ac_exeext=$EXEEXT
1571
1572fi
1573
1574# configure.host sets the following important variables
1575# glibcpp_cflags - host specific C compiler flags
1576# glibcpp_cxxflags - host specific C++ compiler flags
1577
1578glibcpp_cflags=
1579glibcpp_cxxflags=
1580
1581. ${glibcpp_basedir}/configure.host
1582
1583case ${glibcpp_basedir} in
1584/* | A-Za-z:/\\*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1585*) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1586esac
1587
1588GLIBCPP_CFLAGS="${glibcpp_cflags}"
1589GLIBCPP_CXXFLAGS="${glibcpp_cxxflags}"
1590
1591
1592
3840fa2a 1593
29bd52c8
PE
1594echo $ac_n "checking for GNU make""... $ac_c" 1>&6
1595echo "configure:1596: checking for GNU make" >&5
1596if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1598else
1599 _cv_gnu_make_command='' ;
1600 for a in "${MAKE:-make}" make gmake gnumake ; do
1601 if ( $a --version 2> /dev/null | grep -q GNU ) ; then
1602 _cv_gnu_make_command=$a ;
1603 break;
1604 fi
1605 done ;
1606
1607fi
1608
1609echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
1610 if test "x$_cv_gnu_make_command" != "x" ; then
1611 ifGNUmake='' ;
1612 else
1613 ifGNUmake='#' ;
1614 fi
1615
1616
1617 if test "x$_cv_gnu_make_command" = "x"; then
1618 { echo "configure: error: GNU Make not found. Please install it or correct your path." 1>&2; exit 1; }
1619 fi
b2dad0e3
BK
1620# Check whether --enable-shared or --disable-shared was given.
1621if test "${enable_shared+set}" = set; then
1622 enableval="$enable_shared"
1623 p=${PACKAGE-default}
1624case "$enableval" in
1625yes) enable_shared=yes ;;
1626no) enable_shared=no ;;
1627*)
1628 enable_shared=no
1629 # Look at the argument we got. We use all the common list separators.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1631 for pkg in $enableval; do
1632 if test "X$pkg" = "X$p"; then
1633 enable_shared=yes
1634 fi
1635 done
1636 IFS="$ac_save_ifs"
1637 ;;
1638esac
1639else
1640 enable_shared=yes
1641fi
1642
1643# Check whether --enable-static or --disable-static was given.
1644if test "${enable_static+set}" = set; then
1645 enableval="$enable_static"
1646 p=${PACKAGE-default}
1647case "$enableval" in
1648yes) enable_static=yes ;;
1649no) enable_static=no ;;
1650*)
1651 enable_static=no
1652 # Look at the argument we got. We use all the common list separators.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1654 for pkg in $enableval; do
1655 if test "X$pkg" = "X$p"; then
1656 enable_static=yes
1657 fi
1658 done
1659 IFS="$ac_save_ifs"
1660 ;;
1661esac
1662else
1663 enable_static=yes
1664fi
1665
1666# Check whether --enable-fast-install or --disable-fast-install was given.
1667if test "${enable_fast_install+set}" = set; then
1668 enableval="$enable_fast_install"
1669 p=${PACKAGE-default}
1670case "$enableval" in
1671yes) enable_fast_install=yes ;;
1672no) enable_fast_install=no ;;
1673*)
1674 enable_fast_install=no
1675 # Look at the argument we got. We use all the common list separators.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1677 for pkg in $enableval; do
1678 if test "X$pkg" = "X$p"; then
1679 enable_fast_install=yes
1680 fi
1681 done
1682 IFS="$ac_save_ifs"
1683 ;;
1684esac
1685else
1686 enable_fast_install=yes
1687fi
1688
1689# Extract the first word of "ranlib", so it can be a program name with args.
1690set dummy ranlib; ac_word=$2
1691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29bd52c8 1692echo "configure:1693: checking for $ac_word" >&5
b2dad0e3
BK
1693if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695else
1696 if test -n "$RANLIB"; then
1697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1698else
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1700 ac_dummy="$PATH"
1701 for ac_dir in $ac_dummy; do
1702 test -z "$ac_dir" && ac_dir=.
1703 if test -f $ac_dir/$ac_word; then
1704 ac_cv_prog_RANLIB="ranlib"
1705 break
1706 fi
1707 done
1708 IFS="$ac_save_ifs"
1709 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1710fi
1711fi
1712RANLIB="$ac_cv_prog_RANLIB"
1713if test -n "$RANLIB"; then
1714 echo "$ac_t""$RANLIB" 1>&6
1715else
1716 echo "$ac_t""no" 1>&6
1717fi
1718
1719# Check whether --with-gnu-ld or --without-gnu-ld was given.
1720if test "${with_gnu_ld+set}" = set; then
1721 withval="$with_gnu_ld"
1722 test "$withval" = no || with_gnu_ld=yes
1723else
1724 with_gnu_ld=no
1725fi
1726
1727ac_prog=ld
1728if test "$ac_cv_prog_gcc" = yes; then
1729 # Check if gcc -print-prog-name=ld gives a path.
1730 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
29bd52c8 1731echo "configure:1732: checking for ld used by GCC" >&5
b2dad0e3
BK
1732 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1733 case "$ac_prog" in
1734 # Accept absolute paths.
3840fa2a 1735 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
1736 re_direlt='/[^/][^/]*/\.\./'
1737 # Canonicalize the path of ld
1738 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1739 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1740 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1741 done
1742 test -z "$LD" && LD="$ac_prog"
1743 ;;
1744 "")
1745 # If it fails, then pretend we aren't using GCC.
1746 ac_prog=ld
1747 ;;
1748 *)
1749 # If it is relative, then search for the first ld in PATH.
1750 with_gnu_ld=unknown
1751 ;;
1752 esac
1753elif test "$with_gnu_ld" = yes; then
1754 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
29bd52c8 1755echo "configure:1756: checking for GNU ld" >&5
b2dad0e3
BK
1756else
1757 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
29bd52c8 1758echo "configure:1759: checking for non-GNU ld" >&5
b2dad0e3
BK
1759fi
1760if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762else
1763 if test -z "$LD"; then
3840fa2a 1764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1765 for ac_dir in $PATH; do
1766 test -z "$ac_dir" && ac_dir=.
3840fa2a 1767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
b2dad0e3
BK
1768 ac_cv_path_LD="$ac_dir/$ac_prog"
1769 # Check to see if the program is GNU ld. I'd rather use --version,
1770 # but apparently some GNU ld's only accept -v.
1771 # Break only if it was the GNU/non-GNU ld that we prefer.
1772 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1773 test "$with_gnu_ld" != no && break
1774 else
1775 test "$with_gnu_ld" != yes && break
1776 fi
1777 fi
1778 done
1779 IFS="$ac_save_ifs"
1780else
1781 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1782fi
1783fi
1784
1785LD="$ac_cv_path_LD"
1786if test -n "$LD"; then
1787 echo "$ac_t""$LD" 1>&6
1788else
1789 echo "$ac_t""no" 1>&6
1790fi
1791test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1792echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
29bd52c8 1793echo "configure:1794: checking if the linker ($LD) is GNU ld" >&5
b2dad0e3
BK
1794if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1798if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1799 ac_cv_prog_gnu_ld=yes
1800else
1801 ac_cv_prog_gnu_ld=no
1802fi
1803fi
1804
1805echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1806
1807
1808echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
29bd52c8 1809echo "configure:1810: checking for BSD-compatible nm" >&5
b2dad0e3
BK
1810if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812else
1813 if test -n "$NM"; then
1814 # Let the user override the test.
1815 ac_cv_path_NM="$NM"
1816else
3840fa2a 1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1818 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1819 test -z "$ac_dir" && ac_dir=.
3840fa2a 1820 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
b2dad0e3
BK
1821 # Check to see if the nm accepts a BSD-compat flag.
1822 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1823 # nm: unknown option "B" ignored
1824 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1825 ac_cv_path_NM="$ac_dir/nm -B"
1826 break
1827 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1828 ac_cv_path_NM="$ac_dir/nm -p"
1829 break
1830 else
1831 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1832 continue # so that we can try to find one that supports BSD flags
1833 fi
1834 fi
1835 done
1836 IFS="$ac_save_ifs"
1837 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1838fi
1839fi
1840
1841NM="$ac_cv_path_NM"
1842echo "$ac_t""$NM" 1>&6
1843
1844echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
29bd52c8 1845echo "configure:1846: checking whether ln -s works" >&5
b2dad0e3
BK
1846if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848else
1849 rm -f conftestdata
1850if ln -s X conftestdata 2>/dev/null
1851then
1852 rm -f conftestdata
1853 ac_cv_prog_LN_S="ln -s"
1854else
1855 ac_cv_prog_LN_S=ln
1856fi
1857fi
1858LN_S="$ac_cv_prog_LN_S"
1859if test "$ac_cv_prog_LN_S" = "ln -s"; then
1860 echo "$ac_t""yes" 1>&6
1861else
1862 echo "$ac_t""no" 1>&6
1863fi
1864
1865
b2dad0e3
BK
1866# Check for any special flags to pass to ltconfig.
1867libtool_flags="--cache-file=$cache_file"
1868test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1869test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1870test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1871test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1872test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3840fa2a
BK
1873libtool_flags="$libtool_flags --enable-dlopen"
1874
1875# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1876if test "${enable_libtool_lock+set}" = set; then
1877 enableval="$enable_libtool_lock"
1878 :
1879fi
1880
1881test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1882test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3
BK
1883
1884# Some flags need to be propagated to the compiler or linker for good
1885# libtool support.
93c63813 1886case "$host" in
b2dad0e3
BK
1887*-*-irix6*)
1888 # Find out which ABI we are using.
29bd52c8
PE
1889 echo '#line 1890 "configure"' > conftest.$ac_ext
1890 if { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
1891 case "`/usr/bin/file conftest.o`" in
1892 *32-bit*)
1893 LD="${LD-ld} -32"
1894 ;;
1895 *N32*)
1896 LD="${LD-ld} -n32"
1897 ;;
1898 *64-bit*)
1899 LD="${LD-ld} -64"
1900 ;;
1901 esac
1902 fi
1903 rm -rf conftest*
1904 ;;
1905
1906*-*-sco3.2v5*)
1907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1908 SAVE_CFLAGS="$CFLAGS"
1909 CFLAGS="$CFLAGS -belf"
1910 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
29bd52c8 1911echo "configure:1912: checking whether the C compiler needs -belf" >&5
b2dad0e3
BK
1912if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915 cat > conftest.$ac_ext <<EOF
29bd52c8 1916#line 1917 "configure"
b2dad0e3
BK
1917#include "confdefs.h"
1918
1919int main() {
1920
1921; return 0; }
1922EOF
29bd52c8 1923if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
1924 rm -rf conftest*
1925 lt_cv_cc_needs_belf=yes
1926else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 lt_cv_cc_needs_belf=no
1931fi
1932rm -f conftest*
1933fi
1934
1935echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1938 CFLAGS="$SAVE_CFLAGS"
1939 fi
1940 ;;
1941
1942
1943esac
1944
1945
1946# Save cache, so that ltconfig can load it
1947cat > confcache <<\EOF
1948# This file is a shell script that caches the results of configure
1949# tests run on this system so they can be shared between configure
1950# scripts and configure runs. It is not useful on other systems.
1951# If it contains results you don't want to keep, you may remove or edit it.
1952#
1953# By default, configure uses ./config.cache as the cache file,
1954# creating it if it does not exist already. You can give configure
1955# the --cache-file=FILE option to use a different cache file; that is
1956# what configure does when it calls configure scripts in
1957# subdirectories, so they share the cache.
1958# Giving --cache-file=/dev/null disables caching, for debugging configure.
1959# config.status only pays attention to the cache file if you give it the
1960# --recheck option to rerun configure.
1961#
1962EOF
1963# The following way of writing the cache mishandles newlines in values,
1964# but we know of no workaround that is simple, portable, and efficient.
1965# So, don't put newlines in cache variables' values.
1966# Ultrix sh set writes to stderr and can't be redirected directly,
1967# and sets the high bit in the cache file unless we assign to the vars.
1968(set) 2>&1 |
1969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1970 *ac_space=\ *)
1971 # `set' does not quote correctly, so add quotes (double-quote substitution
1972 # turns \\\\ into \\, and sed turns \\ into \).
1973 sed -n \
1974 -e "s/'/'\\\\''/g" \
1975 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1976 ;;
1977 *)
1978 # `set' quotes correctly as required by POSIX, so do not add quotes.
1979 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1980 ;;
1981 esac >> confcache
1982if cmp -s $cache_file confcache; then
1983 :
1984else
1985 if test -w $cache_file; then
1986 echo "updating cache $cache_file"
1987 cat confcache > $cache_file
1988 else
1989 echo "not updating unwritable cache $cache_file"
1990 fi
1991fi
1992rm -f confcache
1993
1994
1995# Actually configure libtool. ac_aux_dir is where install-sh is found.
1996CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3840fa2a
BK
1997LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1998LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1999DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
b2dad0e3 2000${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
93c63813 2001$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
b2dad0e3
BK
2002|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2003
2004# Reload cache, that may have been modified by ltconfig
2005if test -r "$cache_file"; then
2006 echo "loading cache $cache_file"
2007 . $cache_file
2008else
2009 echo "creating cache $cache_file"
2010 > $cache_file
2011fi
2012
2013
2014# This can be used to rebuild libtool when needed
2015LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2016
2017# Always use our own libtool.
2018LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2019
2020# Redirect the config.log output again, so that the ltconfig log is not
2021# clobbered by the next message.
2022exec 5>>./config.log
2023
2024
2025
2026
2027
2028# Check for c++ or library specific bits that don't require linking.
c470c17d 2029echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
29bd52c8 2030echo "configure:2031: checking how to run the C preprocessor" >&5
c470c17d
BK
2031# On Suns, sometimes $CPP names a directory.
2032if test -n "$CPP" && test -d "$CPP"; then
2033 CPP=
2034fi
2035if test -z "$CPP"; then
2036if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
b2dad0e3
BK
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038else
c470c17d
BK
2039 # This must be in double quotes, not single quotes, because CPP may get
2040 # substituted into the Makefile and "${CC-cc}" will confuse make.
2041 CPP="${CC-cc} -E"
2042 # On the NeXT, cc -E runs the code through the compiler's parser,
2043 # not just through cpp.
b2dad0e3 2044 cat > conftest.$ac_ext <<EOF
29bd52c8 2045#line 2046 "configure"
b2dad0e3 2046#include "confdefs.h"
c470c17d
BK
2047#include <assert.h>
2048Syntax Error
b2dad0e3
BK
2049EOF
2050ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2051{ (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2052ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053if test -z "$ac_err"; then
2054 :
2055else
2056 echo "$ac_err" >&5
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
c470c17d
BK
2060 CPP="${CC-cc} -E -traditional-cpp"
2061 cat > conftest.$ac_ext <<EOF
29bd52c8 2062#line 2063 "configure"
c470c17d
BK
2063#include "confdefs.h"
2064#include <assert.h>
2065Syntax Error
2066EOF
2067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2068{ (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2069ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070if test -z "$ac_err"; then
2071 :
2072else
2073 echo "$ac_err" >&5
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 CPP="${CC-cc} -nologo -E"
2078 cat > conftest.$ac_ext <<EOF
29bd52c8 2079#line 2080 "configure"
c470c17d
BK
2080#include "confdefs.h"
2081#include <assert.h>
2082Syntax Error
2083EOF
2084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2085{ (eval echo configure:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2086ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2087if test -z "$ac_err"; then
2088 :
2089else
2090 echo "$ac_err" >&5
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 CPP=/lib/cpp
b2dad0e3
BK
2095fi
2096rm -f conftest*
2097fi
c470c17d 2098rm -f conftest*
b2dad0e3 2099fi
c470c17d
BK
2100rm -f conftest*
2101 ac_cv_prog_CPP="$CPP"
2102fi
2103 CPP="$ac_cv_prog_CPP"
2104else
2105 ac_cv_prog_CPP="$CPP"
2106fi
2107echo "$ac_t""$CPP" 1>&6
b2dad0e3 2108
a4e99046 2109
d3a12960 2110 # Sanity check that g++ is capable of dealing with v-3.
5b80666b 2111 echo $ac_n "checking for g++ that will successfully compile this code""... $ac_c" 1>&6
29bd52c8 2112echo "configure:2113: checking for g++ that will successfully compile this code" >&5
b2dad0e3 2113 cat > conftest.$ac_ext <<EOF
29bd52c8 2114#line 2115 "configure"
b2dad0e3
BK
2115#include "confdefs.h"
2116
2117 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2118 ok
2119 #endif
2120
2121EOF
2122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123 egrep "ok" >/dev/null 2>&1; then
2124 rm -rf conftest*
2125 gpp_satisfactory=yes
2126else
2127 rm -rf conftest*
2128 { echo "configure: error: "please upgrade to gcc-2.95 or above"" 1>&2; exit 1; }
2129fi
2130rm -f conftest*
2131
2132 echo "$ac_t""$gpp_satisfactory" 1>&6
2133
b2dad0e3
BK
2134
2135 echo $ac_n "checking for cpu primitives directory""... $ac_c" 1>&6
29bd52c8 2136echo "configure:2137: checking for cpu primitives directory" >&5
c470c17d 2137 CPU_FLAGS=
b2dad0e3
BK
2138 case "$target_cpu" in
2139 alpha*)
2140 cpu_include_dir="config/cpu/alpha"
2141 ;;
2142 arm*)
2143 cpu_include_dir="config/cpu/arm"
2144 ;;
bf93f43b 2145 i386)
b2dad0e3 2146 cpu_include_dir="config/cpu/i386"
bf93f43b
BK
2147 ;;
2148 i486 | i586 | i686 | i786)
2149 cpu_include_dir="config/cpu/i486"
b2dad0e3
BK
2150 ;;
2151 powerpc | rs6000)
2152 cpu_include_dir="config/cpu/powerpc"
c470c17d 2153 CPU_FLAGS='-mcpu=powerpc'
b2dad0e3
BK
2154 ;;
2155 sparc64 | ultrasparc)
2156 cpu_include_dir="config/cpu/sparc/sparc64"
2157 ;;
2158 sparc*)
2159 cpu_include_dir="config/cpu/sparc/sparc32"
2160 ;;
2161 *)
2162 cpu_include_dir="config/cpu/generic"
2163 ;;
2164 esac
2165 echo "$ac_t""$cpu_include_dir" 1>&6
2166
cde28f0d 2167
b2dad0e3
BK
2168
2169
2170# Enable all the crazy c++ stuff.
2171# Check whether --enable-debug or --disable-debug was given.
2172if test "${enable_debug+set}" = set; then
2173 enableval="$enable_debug"
2174 case "$enableval" in
2175 yes) enable_debug=yes ;;
2176 no) enable_debug=no ;;
2177 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2178 esac
2179else
2180 enable_debug=no
2181fi
2182case "$enable_debug" in
cde28f0d 2183 yes)
c470c17d 2184 DEBUG_FLAGS='-O0 -ggdb'
cde28f0d 2185 ;;
f3b004d8 2186 no)
c470c17d 2187 DEBUG_FLAGS='-g'
f3b004d8 2188 ;;
b2dad0e3
BK
2189esac
2190
2191
2192
2193 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
29bd52c8 2194echo "configure:2195: checking for cstdio to use" >&5
b2dad0e3
BK
2195 # Check whether --enable-cstdio or --disable-cstdio was given.
2196if test "${enable_cstdio+set}" = set; then
2197 enableval="$enable_cstdio"
2198 if test x$enable_cstdio = xno; then
2199 enable_cstdio=libio
2200 fi
2201else
2202 enable_cstdio=libio
2203fi
2204
2205
2206 enable_cstdio_flag=$enable_cstdio
2207
2208 case x${enable_cstdio_flag} in
2209 xlibio | x | xno | xnone | xyes)
c4561450
BK
2210 # default
2211 CSTDIO_H=config/c_io_libio.h
2212 CSTDIO_CC=config/c_io_libio.cc
2213 echo "$ac_t""libio" 1>&6
b2dad0e3 2214
c4561450
BK
2215 # see if we are on a system with libio native (ie, linux)
2216 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
b2dad0e3 2217echo $ac_n "checking for libio.h""... $ac_c" 1>&6
29bd52c8 2218echo "configure:2219: checking for libio.h" >&5
b2dad0e3
BK
2219if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221else
2222 cat > conftest.$ac_ext <<EOF
29bd52c8 2223#line 2224 "configure"
b2dad0e3
BK
2224#include "confdefs.h"
2225#include <libio.h>
2226EOF
2227ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2228{ (eval echo configure:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2229ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2230if test -z "$ac_err"; then
2231 rm -rf conftest*
2232 eval "ac_cv_header_$ac_safe=yes"
2233else
2234 echo "$ac_err" >&5
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 eval "ac_cv_header_$ac_safe=no"
2239fi
2240rm -f conftest*
2241fi
2242if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 has_libio=yes
2245else
2246 echo "$ac_t""no" 1>&6
2247has_libio=no
2248fi
2249
20427c6b 2250
c4561450
BK
2251 # bkoz XXX hack hack need version checks, this is temporary
2252 has_libio=no
20427c6b 2253
c4561450
BK
2254 if test $has_libio = "yes"; then
2255 BUILD_LIBIO_INCLUDE=
2256 need_libio=no
2257 else
2258 BUILD_LIBIO_INCLUDE='-I../libio'
2259 need_libio=yes
2260 fi
2261
f3b004d8 2262
c4561450
BK
2263 # see if the _G_config.h header needs to be built.
2264 # NB: This replaces the _G_CONFIG_H machinery in libio-v2
2265 ac_safe=`echo "_G_config.h" | sed 'y%./+-%__p_%'`
f3b004d8 2266echo $ac_n "checking for _G_config.h""... $ac_c" 1>&6
29bd52c8 2267echo "configure:2268: checking for _G_config.h" >&5
f3b004d8
BK
2268if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270else
2271 cat > conftest.$ac_ext <<EOF
29bd52c8 2272#line 2273 "configure"
f3b004d8
BK
2273#include "confdefs.h"
2274#include <_G_config.h>
2275EOF
2276ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2277{ (eval echo configure:2278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f3b004d8
BK
2278ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2279if test -z "$ac_err"; then
2280 rm -rf conftest*
2281 eval "ac_cv_header_$ac_safe=yes"
2282else
2283 echo "$ac_err" >&5
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 rm -rf conftest*
2287 eval "ac_cv_header_$ac_safe=no"
2288fi
2289rm -f conftest*
2290fi
2291if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 has_gconf_h=yes
2294else
2295 echo "$ac_t""no" 1>&6
2296has_gconf_h=no
2297fi
2298
c4561450 2299
f3b004d8
BK
2300
2301if test "$has_gconf_h" = no; then
2302 GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE=
2303 GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE='#'
2304else
2305 GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE='#'
2306 GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE=
2307fi
c4561450
BK
2308 # bkoz XXX hack need to add support for non-glibc systems here
2309 has_gconf=no
20427c6b 2310
c4561450
BK
2311 # bkoz XXX need to add checks for this
2312 need_wlibio=yes
2313 ;;
b2dad0e3 2314 xwince)
c4561450
BK
2315 CSTDIO_H=config/c_io_wince.h
2316 CSTDIO_CC=config/c_io_wince.cc
2317 echo "$ac_t""wince" 1>&6
2318
2319 need_libio=no
2320 BUILD_LIBIO_INCLUDE=
2321
2322 ;;
b2dad0e3 2323 *)
c4561450
BK
2324 echo "$enable_cstdio is an unknown io package" 1>&2
2325 exit 1
2326 ;;
b2dad0e3
BK
2327 esac
2328
2329
2330
2331
2332if test "$need_libio" = yes; then
2333 GLIBCPP_NEED_LIBIO_TRUE=
2334 GLIBCPP_NEED_LIBIO_FALSE='#'
2335else
2336 GLIBCPP_NEED_LIBIO_TRUE='#'
2337 GLIBCPP_NEED_LIBIO_FALSE=
2338fi
20427c6b
BK
2339
2340
2341if test "$need_wlibio" = yes; then
2342 GLIBCPP_NEED_WLIBIO_TRUE=
2343 GLIBCPP_NEED_WLIBIO_FALSE='#'
2344else
2345 GLIBCPP_NEED_WLIBIO_TRUE='#'
2346 GLIBCPP_NEED_WLIBIO_FALSE=
2347fi
b2dad0e3 2348
209fe19b 2349
209fe19b
BK
2350 # Check whether --enable-long-long or --disable-long-long was given.
2351if test "${enable_long_long+set}" = set; then
2352 enableval="$enable_long_long"
2353 case "$enableval" in
2354 yes) enable_long_long=yes ;;
2355 no) enable_long_long=no ;;
2356 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2357 esac
2358else
2359 enable_long_long=yes
2360fi
2361
2362 # Check for the existance of functions used if long long is enabled.
0137be2d 2363 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
29bd52c8 2364echo "configure:2365: checking for strtoll" >&5
0137be2d
PE
2365if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367else
2368 cat > conftest.$ac_ext <<EOF
29bd52c8 2369#line 2370 "configure"
0137be2d
PE
2370#include "confdefs.h"
2371/* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char strtoll(); below. */
2373#include <assert.h>
2374/* Override any gcc2 internal prototype to avoid an error. */
2375/* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377char strtoll();
2378
2379int main() {
2380
2381/* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384#if defined (__stub_strtoll) || defined (__stub___strtoll)
2385choke me
2386#else
2387strtoll();
2388#endif
2389
2390; return 0; }
2391EOF
29bd52c8 2392if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0137be2d
PE
2393 rm -rf conftest*
2394 eval "ac_cv_func_strtoll=yes"
2395else
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2398 rm -rf conftest*
2399 eval "ac_cv_func_strtoll=no"
2400fi
2401rm -f conftest*
2402fi
2403
2404if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 :
2407else
2408 echo "$ac_t""no" 1>&6
209fe19b 2409ac_strtoll=no
0137be2d
PE
2410fi
2411
209fe19b 2412 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
29bd52c8 2413echo "configure:2414: checking for strtoull" >&5
209fe19b
BK
2414if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
b2dad0e3 2416else
209fe19b 2417 cat > conftest.$ac_ext <<EOF
29bd52c8 2418#line 2419 "configure"
209fe19b
BK
2419#include "confdefs.h"
2420/* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char strtoull(); below. */
2422#include <assert.h>
2423/* Override any gcc2 internal prototype to avoid an error. */
2424/* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2426char strtoull();
2427
2428int main() {
2429
2430/* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433#if defined (__stub_strtoull) || defined (__stub___strtoull)
2434choke me
2435#else
2436strtoull();
2437#endif
2438
2439; return 0; }
2440EOF
29bd52c8 2441if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
209fe19b
BK
2442 rm -rf conftest*
2443 eval "ac_cv_func_strtoull=yes"
2444else
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 rm -rf conftest*
2448 eval "ac_cv_func_strtoull=no"
b2dad0e3 2449fi
209fe19b
BK
2450rm -f conftest*
2451fi
2452
2453if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 :
2456else
2457 echo "$ac_t""no" 1>&6
2458ac_strtoull=no
2459fi
2460
2461
3840fa2a 2462 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
29bd52c8 2463echo "configure:2464: checking for enabled long long" >&5
209fe19b 2464 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3840fa2a
BK
2465 enable_long_long=no;
2466 fi;
d0d88ce3 2467 echo "$ac_t""$enable_long_long" 1>&6
3840fa2a 2468
b2dad0e3
BK
2469 case "$enable_long_long" in
2470 yes) cat >> confdefs.h <<\EOF
2471#define _GLIBCPP_USE_LONG_LONG 1
2472EOF
2473
2474 ;;
2475 esac
2476
d0d88ce3 2477echo $ac_n "checking for enabled cshadow headers""... $ac_c" 1>&6
29bd52c8 2478echo "configure:2479: checking for enabled cshadow headers" >&5
d0d88ce3
BK
2479# Check whether --enable-cshadow-headers or --disable-cshadow-headers was given.
2480if test "${enable_cshadow_headers+set}" = set; then
2481 enableval="$enable_cshadow_headers"
99246c90 2482 case "$enableval" in
d0d88ce3
BK
2483 yes) enable_cshadow_headers=yes
2484 ;;
2485 no) enable_cshadow_headers=no
2486 ;;
2487 *) { echo "configure: error: Unknown argument to enable/disable shadowed C headers" 1>&2; exit 1; }
2488 ;;
99246c90
PE
2489 esac
2490else
d0d88ce3 2491 enable_cshadow_headers=no
99246c90 2492fi
d0d88ce3
BK
2493echo "$ac_t""$enable_cshadow_headers" 1>&6
2494case "$enable_cshadow_headers" in
99246c90 2495 yes)
e95706d5 2496 CSHADOWFLAGS="-D_GNU_SOURCE"
5b80666b 2497 CSHADOW_INCLUDES=" -I$srcdir/shadow -I$blddir/cshadow"
99246c90
PE
2498 ;;
2499 no)
5b80666b
BK
2500 CSHADOWFLAGS=""
2501 CSHADOW_INCLUDES=""
99246c90
PE
2502 ;;
2503esac
2504
2505
b2dad0e3 2506
5b80666b
BK
2507
2508
2509if test "$enable_cshadow_headers" = yes; then
2510 GLIBCPP_USE_CSHADOW_TRUE=
2511 GLIBCPP_USE_CSHADOW_FALSE='#'
2512else
2513 GLIBCPP_USE_CSHADOW_TRUE='#'
2514 GLIBCPP_USE_CSHADOW_FALSE=
2515fi
2516
2517
b2dad0e3 2518 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
29bd52c8 2519echo "configure:2520: checking for threads package to use" >&5
b2dad0e3
BK
2520 # Check whether --enable-threads or --disable-threads was given.
2521if test "${enable_threads+set}" = set; then
2522 enableval="$enable_threads"
2523 if test x$enable_threads = xno; then
2524 enable_threads=''
2525 fi
2526else
2527 enable_threads=''
2528fi
2529
2530
2531 enable_threads_flag=$enable_threads
2532
2533 case x${enable_threads_flag} in
2534 x | xno | xnone)
2535 # No threads
2536 target_thread_file='single'
2537 ;;
2538 xyes)
2539 # default
2540 target_thread_file=''
2541 ;;
2542 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
2543 xsolaris | xwin32 | xdce | xvxworks)
2544 target_thread_file=$enable_threads_flag
2545 ;;
2546 *)
2547 echo "$enable_threads is an unknown thread package" 1>&2
2548 exit 1
2549 ;;
2550 esac
2551
2552 case "$target_thread_file" in
2553 no | none | single)
2554 THREADS=none
2555 ;;
2556 posix | pthreads)
2557 THREADS=posix
0828a0bd 2558 case "$target" in
b2dad0e3
BK
2559 *-*-linux*)
2560 ;;
2561 esac
2562 ;;
2563 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2564 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2565 ;;
2566 *)
2567 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2568 ;;
2569 esac
2570 echo "$ac_t""$THREADS" 1>&6
2571
2572 THREADLIBS=
2573 THREADINCS=
2574 THREADDEPS=
2575 THREADOBJS=
2576 THREADH=
2577 THREADSPEC=
2578 case "$THREADS" in
2579 posix)
2580 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2581echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
29bd52c8 2582echo "configure:2583: checking for pthread.h" >&5
b2dad0e3
BK
2583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585else
2586 cat > conftest.$ac_ext <<EOF
29bd52c8 2587#line 2588 "configure"
b2dad0e3
BK
2588#include "confdefs.h"
2589#include <pthread.h>
2590EOF
2591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2592{ (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2593ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594if test -z "$ac_err"; then
2595 rm -rf conftest*
2596 eval "ac_cv_header_$ac_safe=yes"
2597else
2598 echo "$ac_err" >&5
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 rm -rf conftest*
2602 eval "ac_cv_header_$ac_safe=no"
2603fi
2604rm -f conftest*
2605fi
2606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 have_pthread_h=yes
2609else
2610 echo "$ac_t""no" 1>&6
2611have_pthread_h=
2612fi
2613
2614 THREADLIBS=-lpthread
2615 THREADSPEC=-lpthread
2616 THREADH=threads-posix.h
2617 ;;
2618 none)
2619 THREADH=threads-no.h
2620 ;;
2621 esac
2622
2623
2624
2625
2626
c4561450 2627
b2dad0e3 2628
b2dad0e3 2629#GLIBCPP_ENABLE_RELIBGCC([../..])
dcfa0bc8
PE
2630# Check whether --enable-cxx-flags or --disable-cxx-flags was given.
2631if test "${enable_cxx_flags+set}" = set; then
2632 enableval="$enable_cxx_flags"
2633 case "x$enableval" in
2634 xyes) { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
32a4595e 2635 xno|x) enable_cxx_flags='' ;;
dcfa0bc8
PE
2636 *) enable_cxx_flags="$enableval" ;;
2637 esac
2638else
32a4595e 2639 enable_cxx_flags='none'
dcfa0bc8 2640fi
32a4595e 2641if test "$enable_cxx_flags" = "none"; then enable_cxx_flags=''; fi
dcfa0bc8
PE
2642if test -n "$enable_cxx_flags"; then
2643 for f in $enable_cxx_flags; do
2644 case "$f" in
991a40fc 2645 -fhonor-std) ;;
dcfa0bc8
PE
2646 -*) ;;
2647 *) # and we're trying to pass /what/ exactly?
2648 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
2649 esac
2650 done
2651fi
2652EXTRA_CXX_FLAGS="$enable_cxx_flags"
2653
2654
b2dad0e3 2655
cde28f0d 2656
b2dad0e3
BK
2657if test -n "$with_cross_host"; then
2658
2659 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2660 # may not work correctly, because the compiler may not be able to
2661 # link executables.
2662
2663 xcompiling=1
2664 NATIVE=no
2665 # If Canadian cross, then don't pick up tools from the build
2666 # directory.
2667 if test "$build" != "$with_cross_host"; then
2668 CANADIAN=yes
2669 NULL_TARGET=yes
2670 else
2671 CANADIAN=no
2672 NULL_TARGET=no
2673 fi
2674
2675 case "$target_alias" in
2676 *-wince-*)
2677 # Configure for Microsoft Windows CE, or whatever they are
2678 # currently calling it.
2679 cat >> confdefs.h <<\EOF
2680#define HAVE_FLOAT_H 1
2681EOF
2682
2683
2684 cat >> confdefs.h <<\EOF
2685#define HAVE__FINITE 1
2686EOF
2687
2688 cat >> confdefs.h <<\EOF
2689#define HAVE__ISNAN 1
2690EOF
2691
2692 cat >> confdefs.h <<\EOF
2693#define HAVE__COPYSIGN 1
2694EOF
2695
2696 cat >> confdefs.h <<\EOF
2697#define HAVE__FPCLASS 1
2698EOF
2699
2700 cat >> confdefs.h <<\EOF
2701#define HAVE_MODF 1
2702EOF
2703
2704
2705 ctype_include_dir="config/wince"
2706
2707
2708 cat >> confdefs.h <<\EOF
2709#define _GLIBCPP_NEED_MBSTATE_T 1
2710EOF
2711
2712
2713 cat >> confdefs.h <<\EOF
2714#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
2715EOF
2716
2717 cat >> confdefs.h <<\EOF
2718#define _GLIBCPP_BUGGY_COMPLEX 1
2719EOF
2720
2721 ;;
2722 *)
2723 # We assume newlib. This lets us hard-code the functions we know
2724 # we'll have.
2725 cat >> confdefs.h <<\EOF
2726#define HAVE_FINITE 1
2727EOF
2728
2729 cat >> confdefs.h <<\EOF
2730#define HAVE_ISNAN 1
2731EOF
2732
2733 cat >> confdefs.h <<\EOF
2734#define HAVE_ISNANF 1
2735EOF
2736
2737 cat >> confdefs.h <<\EOF
2738#define HAVE_ISINF 1
2739EOF
2740
2741 cat >> confdefs.h <<\EOF
2742#define HAVE_ISINFF 1
2743EOF
2744
2745
2746 ctype_include_dir="config/newlib"
2747
2748
2749 cat >> confdefs.h <<\EOF
2750#define _GLIBCPP_NEED_MBSTATE_T 1
2751EOF
2752
2753
2754 cat >> confdefs.h <<\EOF
2755#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
2756EOF
2757
2758 cat >> confdefs.h <<\EOF
2759#define _GLIBCPP_BUGGY_COMPLEX 1
2760EOF
2761
2762 # need to ceck for faster f versions of math functions, ie sinf?
2763 ;;
2764 esac
2765else
2766
2767 # We are being configured natively. We can do more elaborate tests
2768 # that include AC_TRY_COMPILE now, as the linker is assumed to be
2769 # working.
2770
2771 xcompiling=0
2772 NATIVE=yes
2773 CANADIAN=no
2774 NULL_TARGET=no
2775
2776 # Check for available headers.
2777 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
2778 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h
2779do
2780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29bd52c8 2782echo "configure:2783: checking for $ac_hdr" >&5
b2dad0e3
BK
2783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2785else
2786 cat > conftest.$ac_ext <<EOF
29bd52c8 2787#line 2788 "configure"
b2dad0e3
BK
2788#include "confdefs.h"
2789#include <$ac_hdr>
2790EOF
2791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 2792{ (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2794if test -z "$ac_err"; then
2795 rm -rf conftest*
2796 eval "ac_cv_header_$ac_safe=yes"
2797else
2798 echo "$ac_err" >&5
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 rm -rf conftest*
2802 eval "ac_cv_header_$ac_safe=no"
2803fi
2804rm -f conftest*
2805fi
2806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2809 cat >> confdefs.h <<EOF
2810#define $ac_tr_hdr 1
2811EOF
2812
2813else
2814 echo "$ac_t""no" 1>&6
2815fi
2816done
2817
2818
2819
c470c17d
BK
2820 # All these tests are for C++; save the language and the compiler flags.
2821 # The CXXFLAGS thing is suspicious, but based on similar bits
2822 # found in GLIBCPP_CONFIGURE.
2823
2824 ac_ext=C
2825# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2826ac_cpp='$CXXCPP $CPPFLAGS'
2827ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2828ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2829cross_compiling=$ac_cv_prog_cxx_cross
2830
2831 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2832 ac_save_CXXFLAGS="$CXXFLAGS"
2833 WERROR='-Werror'
2834
2835 # Check for pragma system_header.
2836 echo $ac_n "checking for g++ that supports pragma system_header""... $ac_c" 1>&6
29bd52c8 2837echo "configure:2838: checking for g++ that supports pragma system_header" >&5
c470c17d
BK
2838 CXXFLAGS='-Wunknown-pragmas -Werror'
2839 cat > conftest.$ac_ext <<EOF
29bd52c8 2840#line 2841 "configure"
c470c17d
BK
2841#include "confdefs.h"
2842#pragma system_header
2843int main() {
2844int foo;
2845
2846; return 0; }
2847EOF
29bd52c8 2848if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2849 rm -rf conftest*
2850 ac_newpragma=yes
2851else
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 ac_newpragma=no
2856fi
2857rm -f conftest*
2858 if test "$ac_test_CXXFLAGS" = set; then
2859 CXXFLAGS="$ac_save_CXXFLAGS"
2860 else
2861 # this is the suspicious part
2862 CXXFLAGS=''
2863 fi
2864 if test "$ac_newpragma" = "no"; then
2865 WERROR="$WERROR -Wno-unknown-pragmas"
2866 fi
2867 echo "$ac_t""$ac_newpragma" 1>&6
2868
2869 # Check for more sophisticated diagnostic control.
2870 echo $ac_n "checking for g++ that supports -fdiagnostics-show-location=once""... $ac_c" 1>&6
29bd52c8 2871echo "configure:2872: checking for g++ that supports -fdiagnostics-show-location=once" >&5
c470c17d
BK
2872 CXXFLAGS='-fdiagnostics-show-location=once'
2873 cat > conftest.$ac_ext <<EOF
29bd52c8 2874#line 2875 "configure"
c470c17d
BK
2875#include "confdefs.h"
2876
2877int main() {
2878int foo;
2879
2880; return 0; }
2881EOF
29bd52c8 2882if { (eval echo configure:2883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2883 rm -rf conftest*
2884 ac_gabydiags=yes
2885else
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888 rm -rf conftest*
2889 ac_gabydiags=no
2890fi
2891rm -f conftest*
2892 if test "$ac_test_CXXFLAGS" = set; then
2893 CXXFLAGS="$ac_save_CXXFLAGS"
2894 else
2895 # this is the suspicious part
2896 CXXFLAGS=''
2897 fi
2898 if test "$ac_gabydiags" = "yes"; then
2899 WFMT_FLAGS='-fdiagnostics-show-location=once'
2900 fi
2901 echo "$ac_t""$ac_gabydiags" 1>&6
2902
2903 # Check for -ffunction-sections -fdata-sections
2904 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
29bd52c8 2905echo "configure:2906: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
c470c17d
BK
2906 CXXFLAGS='-ffunction-sections -fdata-sections'
2907 cat > conftest.$ac_ext <<EOF
29bd52c8 2908#line 2909 "configure"
c470c17d
BK
2909#include "confdefs.h"
2910
2911int main() {
2912int foo;
2913
2914; return 0; }
2915EOF
29bd52c8 2916if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2917 rm -rf conftest*
2918 ac_fdsections=yes
2919else
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2922 rm -rf conftest*
2923 ac_fdsections=no
2924fi
2925rm -f conftest*
2926 if test "$ac_test_CXXFLAGS" = set; then
2927 CXXFLAGS="$ac_save_CXXFLAGS"
2928 else
2929 # this is the suspicious part
2930 CXXFLAGS=''
2931 fi
2932 if test "$ac_fdsections" = "yes"; then
2933 SECTION_FLAGS='-ffunction-sections -fdata-sections'
2934 fi
2935 echo "$ac_t""$ac_fdsections" 1>&6
2936
2937 ac_ext=c
2938# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2941ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2942cross_compiling=$ac_cv_prog_cc_cross
2943
2944
2945
2946
2947
2948
2949 # All these tests are for C++; save the language and the compiler flags.
5f349042
BK
2950 # Need to do this so that g++ won't try to link in libstdc++
2951 ac_test_CFLAGS="${CFLAGS+set}"
2952 ac_save_CFLAGS="$CFLAGS"
2953 CFLAGS='-x c++ -Wl,--gc-sections'
c470c17d
BK
2954
2955 # Check for -Wl,--gc-sections
2956 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
29bd52c8 2957echo "configure:2958: checking for ld that supports -Wl,--gc-sections" >&5
38bd7296
BK
2958 if test "$cross_compiling" = yes; then
2959 ac_sectionLDflags=yes
2960else
c470c17d 2961 cat > conftest.$ac_ext <<EOF
29bd52c8 2962#line 2963 "configure"
c470c17d
BK
2963#include "confdefs.h"
2964
5f349042 2965 int main(void)
38bd7296
BK
2966 {
2967 try { throw 1; }
2968 catch (...) { };
2969 return 0;
2970 }
c470c17d 2971
c470c17d 2972EOF
29bd52c8 2973if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
38bd7296 2974then
c470c17d
BK
2975 ac_sectionLDflags=yes
2976else
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
38bd7296 2979 rm -fr conftest*
c470c17d
BK
2980 ac_sectionLFflags=no
2981fi
38bd7296
BK
2982rm -fr conftest*
2983fi
2984
5f349042
BK
2985 if test "$ac_test_CFLAGS" = set; then
2986 CFLAGS="$ac_save_CFLAGS"
c470c17d
BK
2987 else
2988 # this is the suspicious part
5f349042 2989 CFLAGS=''
c470c17d
BK
2990 fi
2991 if test "$ac_sectionLDflags" = "yes"; then
2992 SECTION_LDFLAGS='-Wl,--gc-sections'
2993 fi
2994 echo "$ac_t""$ac_sectionLDflags" 1>&6
2995
c470c17d
BK
2996
2997
2998
11fc1858
BK
2999
3000
54fa7415
SK
3001 ac_ext=C
3002# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3003ac_cpp='$CXXCPP $CPPFLAGS'
3004ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3005ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3006cross_compiling=$ac_cv_prog_cxx_cross
3007
11fc1858 3008 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
29bd52c8 3009echo "configure:3010: checking for __builtin_abs declaration" >&5
b2dad0e3 3010 cat > conftest.$ac_ext <<EOF
29bd52c8 3011#line 3012 "configure"
b2dad0e3
BK
3012#include "confdefs.h"
3013#include <math.h>
3014int main() {
11fc1858 3015 __builtin_abs(0);
b2dad0e3
BK
3016; return 0; }
3017EOF
29bd52c8 3018if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3019 rm -rf conftest*
11fc1858 3020 use___builtin_abs=yes
b2dad0e3
BK
3021else
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 rm -rf conftest*
11fc1858 3025 use___builtin_abs=no
b2dad0e3
BK
3026fi
3027rm -f conftest*
11fc1858
BK
3028 echo "$ac_t""$use___builtin_abs" 1>&6
3029 ac_ext=c
3030# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3033ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3034cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3035
11fc1858
BK
3036 if test x$use___builtin_abs = x"yes"; then
3037 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
29bd52c8 3038echo "configure:3039: checking for __builtin_abs linkage" >&5
11fc1858 3039 cat > conftest.$ac_ext <<EOF
29bd52c8 3040#line 3041 "configure"
b2dad0e3
BK
3041#include "confdefs.h"
3042#include <math.h>
3043int main() {
11fc1858 3044 __builtin_abs(0);
b2dad0e3
BK
3045; return 0; }
3046EOF
29bd52c8 3047if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3048 rm -rf conftest*
11fc1858 3049 link___builtin_abs=yes
b2dad0e3
BK
3050else
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 rm -rf conftest*
11fc1858 3054 link___builtin_abs=no
b2dad0e3
BK
3055fi
3056rm -f conftest*
11fc1858
BK
3057 echo "$ac_t""$link___builtin_abs" 1>&6
3058 if test x$link___builtin_abs = x"yes"; then
3059 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3060 cat >> confdefs.h <<EOF
3061#define ${ac_tr_func} 1
b2dad0e3
BK
3062EOF
3063
11fc1858 3064 fi
b2dad0e3 3065 fi
b2dad0e3 3066
11fc1858
BK
3067
3068
3069 ac_ext=C
3070# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3071ac_cpp='$CXXCPP $CPPFLAGS'
3072ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3073ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3074cross_compiling=$ac_cv_prog_cxx_cross
b2dad0e3 3075
11fc1858 3076 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
29bd52c8 3077echo "configure:3078: checking for __builtin_fabsf declaration" >&5
54fa7415 3078 cat > conftest.$ac_ext <<EOF
29bd52c8 3079#line 3080 "configure"
b2dad0e3 3080#include "confdefs.h"
54fa7415 3081#include <math.h>
b2dad0e3 3082int main() {
11fc1858 3083 __builtin_fabsf(0);
b2dad0e3
BK
3084; return 0; }
3085EOF
29bd52c8 3086if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3087 rm -rf conftest*
11fc1858 3088 use___builtin_fabsf=yes
b2dad0e3
BK
3089else
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 rm -rf conftest*
11fc1858 3093 use___builtin_fabsf=no
b2dad0e3
BK
3094fi
3095rm -f conftest*
11fc1858
BK
3096 echo "$ac_t""$use___builtin_fabsf" 1>&6
3097 ac_ext=c
3098# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3101ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3102cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3103
11fc1858
BK
3104 if test x$use___builtin_fabsf = x"yes"; then
3105 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
29bd52c8 3106echo "configure:3107: checking for __builtin_fabsf linkage" >&5
11fc1858 3107 cat > conftest.$ac_ext <<EOF
29bd52c8 3108#line 3109 "configure"
b2dad0e3 3109#include "confdefs.h"
54fa7415
SK
3110#include <math.h>
3111int main() {
11fc1858 3112 __builtin_fabsf(0);
54fa7415 3113; return 0; }
b2dad0e3 3114EOF
29bd52c8 3115if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3116 rm -rf conftest*
11fc1858 3117 link___builtin_fabsf=yes
b2dad0e3 3118else
b2dad0e3
BK
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 rm -rf conftest*
11fc1858 3122 link___builtin_fabsf=no
b2dad0e3
BK
3123fi
3124rm -f conftest*
11fc1858
BK
3125 echo "$ac_t""$link___builtin_fabsf" 1>&6
3126 if test x$link___builtin_fabsf = x"yes"; then
3127 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3128 cat >> confdefs.h <<EOF
3129#define ${ac_tr_func} 1
b2dad0e3 3130EOF
b2dad0e3 3131
11fc1858 3132 fi
54fa7415 3133 fi
b2dad0e3 3134
11fc1858
BK
3135
3136
3137 ac_ext=C
3138# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3139ac_cpp='$CXXCPP $CPPFLAGS'
3140ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3141ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3142cross_compiling=$ac_cv_prog_cxx_cross
b2dad0e3 3143
11fc1858 3144 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
29bd52c8 3145echo "configure:3146: checking for __builtin_fabs declaration" >&5
b2dad0e3 3146 cat > conftest.$ac_ext <<EOF
29bd52c8 3147#line 3148 "configure"
b2dad0e3 3148#include "confdefs.h"
54fa7415 3149#include <math.h>
b2dad0e3 3150int main() {
11fc1858 3151 __builtin_fabs(0);
b2dad0e3
BK
3152; return 0; }
3153EOF
29bd52c8 3154if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3155 rm -rf conftest*
11fc1858 3156 use___builtin_fabs=yes
b2dad0e3
BK
3157else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
11fc1858 3161 use___builtin_fabs=no
b2dad0e3
BK
3162fi
3163rm -f conftest*
11fc1858
BK
3164 echo "$ac_t""$use___builtin_fabs" 1>&6
3165 ac_ext=c
3166# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3169ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3170cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3171
11fc1858
BK
3172 if test x$use___builtin_fabs = x"yes"; then
3173 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
29bd52c8 3174echo "configure:3175: checking for __builtin_fabs linkage" >&5
11fc1858 3175 cat > conftest.$ac_ext <<EOF
29bd52c8 3176#line 3177 "configure"
b2dad0e3 3177#include "confdefs.h"
54fa7415 3178#include <math.h>
b2dad0e3 3179int main() {
11fc1858 3180 __builtin_fabs(0);
b2dad0e3
BK
3181; return 0; }
3182EOF
29bd52c8 3183if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3184 rm -rf conftest*
11fc1858 3185 link___builtin_fabs=yes
b2dad0e3
BK
3186else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
11fc1858 3190 link___builtin_fabs=no
54fa7415
SK
3191fi
3192rm -f conftest*
11fc1858
BK
3193 echo "$ac_t""$link___builtin_fabs" 1>&6
3194 if test x$link___builtin_fabs = x"yes"; then
3195 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 cat >> confdefs.h <<EOF
3197#define ${ac_tr_func} 1
54fa7415
SK
3198EOF
3199
11fc1858 3200 fi
54fa7415 3201 fi
54fa7415 3202
11fc1858
BK
3203
3204
3205 ac_ext=C
3206# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3207ac_cpp='$CXXCPP $CPPFLAGS'
3208ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3209ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3210cross_compiling=$ac_cv_prog_cxx_cross
54fa7415 3211
11fc1858 3212 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
29bd52c8 3213echo "configure:3214: checking for __builtin_fabsl declaration" >&5
54fa7415 3214 cat > conftest.$ac_ext <<EOF
29bd52c8 3215#line 3216 "configure"
54fa7415
SK
3216#include "confdefs.h"
3217#include <math.h>
3218int main() {
11fc1858 3219 __builtin_fabsl(0);
54fa7415
SK
3220; return 0; }
3221EOF
29bd52c8 3222if { (eval echo configure:3223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3223 rm -rf conftest*
11fc1858 3224 use___builtin_fabsl=yes
54fa7415
SK
3225else
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 rm -rf conftest*
11fc1858 3229 use___builtin_fabsl=no
54fa7415
SK
3230fi
3231rm -f conftest*
11fc1858
BK
3232 echo "$ac_t""$use___builtin_fabsl" 1>&6
3233 ac_ext=c
3234# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3237ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3238cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3239
11fc1858
BK
3240 if test x$use___builtin_fabsl = x"yes"; then
3241 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
29bd52c8 3242echo "configure:3243: checking for __builtin_fabsl linkage" >&5
11fc1858 3243 cat > conftest.$ac_ext <<EOF
29bd52c8 3244#line 3245 "configure"
54fa7415
SK
3245#include "confdefs.h"
3246#include <math.h>
3247int main() {
11fc1858 3248 __builtin_fabsl(0);
54fa7415
SK
3249; return 0; }
3250EOF
29bd52c8 3251if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3252 rm -rf conftest*
11fc1858 3253 link___builtin_fabsl=yes
54fa7415
SK
3254else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
11fc1858 3258 link___builtin_fabsl=no
54fa7415
SK
3259fi
3260rm -f conftest*
11fc1858
BK
3261 echo "$ac_t""$link___builtin_fabsl" 1>&6
3262 if test x$link___builtin_fabsl = x"yes"; then
3263 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3264 cat >> confdefs.h <<EOF
3265#define ${ac_tr_func} 1
54fa7415
SK
3266EOF
3267
11fc1858 3268 fi
54fa7415 3269 fi
54fa7415 3270
11fc1858
BK
3271
3272
3273 ac_ext=C
3274# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3275ac_cpp='$CXXCPP $CPPFLAGS'
3276ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3277ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3278cross_compiling=$ac_cv_prog_cxx_cross
3279
3280 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
29bd52c8 3281echo "configure:3282: checking for __builtin_labs declaration" >&5
54fa7415 3282 cat > conftest.$ac_ext <<EOF
29bd52c8 3283#line 3284 "configure"
54fa7415
SK
3284#include "confdefs.h"
3285#include <math.h>
3286int main() {
11fc1858 3287 __builtin_labs(0);
54fa7415
SK
3288; return 0; }
3289EOF
29bd52c8 3290if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3291 rm -rf conftest*
11fc1858 3292 use___builtin_labs=yes
54fa7415
SK
3293else
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -rf conftest*
11fc1858 3297 use___builtin_labs=no
54fa7415
SK
3298fi
3299rm -f conftest*
11fc1858
BK
3300 echo "$ac_t""$use___builtin_labs" 1>&6
3301 ac_ext=c
3302# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3303ac_cpp='$CPP $CPPFLAGS'
3304ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3305ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3306cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3307
11fc1858
BK
3308 if test x$use___builtin_labs = x"yes"; then
3309 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
29bd52c8 3310echo "configure:3311: checking for __builtin_labs linkage" >&5
11fc1858 3311 cat > conftest.$ac_ext <<EOF
29bd52c8 3312#line 3313 "configure"
54fa7415
SK
3313#include "confdefs.h"
3314#include <math.h>
3315int main() {
11fc1858 3316 __builtin_labs(0);
54fa7415
SK
3317; return 0; }
3318EOF
29bd52c8 3319if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3320 rm -rf conftest*
11fc1858 3321 link___builtin_labs=yes
54fa7415
SK
3322else
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
11fc1858 3326 link___builtin_labs=no
54fa7415
SK
3327fi
3328rm -f conftest*
11fc1858
BK
3329 echo "$ac_t""$link___builtin_labs" 1>&6
3330 if test x$link___builtin_labs = x"yes"; then
3331 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3332 cat >> confdefs.h <<EOF
3333#define ${ac_tr_func} 1
54fa7415
SK
3334EOF
3335
11fc1858 3336 fi
54fa7415 3337 fi
11fc1858
BK
3338
3339
3340
3341
3342 ac_ext=C
3343# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3344ac_cpp='$CXXCPP $CPPFLAGS'
3345ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3346ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3347cross_compiling=$ac_cv_prog_cxx_cross
3348
3349 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
29bd52c8 3350echo "configure:3351: checking for __builtin_sqrtf declaration" >&5
54fa7415 3351 cat > conftest.$ac_ext <<EOF
29bd52c8 3352#line 3353 "configure"
54fa7415
SK
3353#include "confdefs.h"
3354#include <math.h>
3355int main() {
11fc1858 3356 __builtin_sqrtf(0);
54fa7415
SK
3357; return 0; }
3358EOF
29bd52c8 3359if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3360 rm -rf conftest*
11fc1858 3361 use___builtin_sqrtf=yes
54fa7415
SK
3362else
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 rm -rf conftest*
11fc1858 3366 use___builtin_sqrtf=no
54fa7415
SK
3367fi
3368rm -f conftest*
11fc1858
BK
3369 echo "$ac_t""$use___builtin_sqrtf" 1>&6
3370 ac_ext=c
3371# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3374ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3375cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3376
11fc1858
BK
3377 if test x$use___builtin_sqrtf = x"yes"; then
3378 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
29bd52c8 3379echo "configure:3380: checking for __builtin_sqrtf linkage" >&5
11fc1858 3380 cat > conftest.$ac_ext <<EOF
29bd52c8 3381#line 3382 "configure"
54fa7415
SK
3382#include "confdefs.h"
3383#include <math.h>
3384int main() {
11fc1858 3385 __builtin_sqrtf(0);
54fa7415
SK
3386; return 0; }
3387EOF
29bd52c8 3388if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3389 rm -rf conftest*
11fc1858 3390 link___builtin_sqrtf=yes
54fa7415
SK
3391else
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 rm -rf conftest*
11fc1858 3395 link___builtin_sqrtf=no
54fa7415
SK
3396fi
3397rm -f conftest*
11fc1858
BK
3398 echo "$ac_t""$link___builtin_sqrtf" 1>&6
3399 if test x$link___builtin_sqrtf = x"yes"; then
3400 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3401 cat >> confdefs.h <<EOF
3402#define ${ac_tr_func} 1
54fa7415
SK
3403EOF
3404
11fc1858 3405 fi
54fa7415 3406 fi
11fc1858
BK
3407
3408
3409
3410 ac_ext=C
3411# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3412ac_cpp='$CXXCPP $CPPFLAGS'
3413ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3414ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3415cross_compiling=$ac_cv_prog_cxx_cross
3416
3417 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
29bd52c8 3418echo "configure:3419: checking for __builtin_fsqrt declaration" >&5
54fa7415 3419 cat > conftest.$ac_ext <<EOF
29bd52c8 3420#line 3421 "configure"
54fa7415
SK
3421#include "confdefs.h"
3422#include <math.h>
3423int main() {
11fc1858 3424 __builtin_fsqrt(0);
54fa7415
SK
3425; return 0; }
3426EOF
29bd52c8 3427if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3428 rm -rf conftest*
11fc1858 3429 use___builtin_fsqrt=yes
54fa7415
SK
3430else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
11fc1858 3434 use___builtin_fsqrt=no
54fa7415
SK
3435fi
3436rm -f conftest*
11fc1858
BK
3437 echo "$ac_t""$use___builtin_fsqrt" 1>&6
3438 ac_ext=c
3439# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3442ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3443cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3444
11fc1858
BK
3445 if test x$use___builtin_fsqrt = x"yes"; then
3446 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
29bd52c8 3447echo "configure:3448: checking for __builtin_fsqrt linkage" >&5
11fc1858 3448 cat > conftest.$ac_ext <<EOF
29bd52c8 3449#line 3450 "configure"
54fa7415
SK
3450#include "confdefs.h"
3451#include <math.h>
3452int main() {
11fc1858 3453 __builtin_fsqrt(0);
54fa7415
SK
3454; return 0; }
3455EOF
29bd52c8 3456if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3457 rm -rf conftest*
11fc1858 3458 link___builtin_fsqrt=yes
54fa7415
SK
3459else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
11fc1858 3463 link___builtin_fsqrt=no
54fa7415
SK
3464fi
3465rm -f conftest*
11fc1858
BK
3466 echo "$ac_t""$link___builtin_fsqrt" 1>&6
3467 if test x$link___builtin_fsqrt = x"yes"; then
3468 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3469 cat >> confdefs.h <<EOF
3470#define ${ac_tr_func} 1
54fa7415
SK
3471EOF
3472
11fc1858 3473 fi
54fa7415 3474 fi
11fc1858
BK
3475
3476
3477
3478 ac_ext=C
3479# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3480ac_cpp='$CXXCPP $CPPFLAGS'
3481ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3482ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3483cross_compiling=$ac_cv_prog_cxx_cross
3484
3485 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
29bd52c8 3486echo "configure:3487: checking for __builtin_sqrtl declaration" >&5
54fa7415 3487 cat > conftest.$ac_ext <<EOF
29bd52c8 3488#line 3489 "configure"
54fa7415
SK
3489#include "confdefs.h"
3490#include <math.h>
3491int main() {
11fc1858 3492 __builtin_sqrtl(0);
54fa7415
SK
3493; return 0; }
3494EOF
29bd52c8 3495if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3496 rm -rf conftest*
11fc1858 3497 use___builtin_sqrtl=yes
54fa7415
SK
3498else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 rm -rf conftest*
11fc1858 3502 use___builtin_sqrtl=no
54fa7415
SK
3503fi
3504rm -f conftest*
11fc1858
BK
3505 echo "$ac_t""$use___builtin_sqrtl" 1>&6
3506 ac_ext=c
3507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3508ac_cpp='$CPP $CPPFLAGS'
3509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3511cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3512
11fc1858
BK
3513 if test x$use___builtin_sqrtl = x"yes"; then
3514 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
29bd52c8 3515echo "configure:3516: checking for __builtin_sqrtl linkage" >&5
11fc1858 3516 cat > conftest.$ac_ext <<EOF
29bd52c8 3517#line 3518 "configure"
54fa7415
SK
3518#include "confdefs.h"
3519#include <math.h>
3520int main() {
11fc1858 3521 __builtin_sqrtl(0);
54fa7415
SK
3522; return 0; }
3523EOF
29bd52c8 3524if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3525 rm -rf conftest*
11fc1858 3526 link___builtin_sqrtl=yes
54fa7415
SK
3527else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
11fc1858 3531 link___builtin_sqrtl=no
54fa7415
SK
3532fi
3533rm -f conftest*
11fc1858
BK
3534 echo "$ac_t""$link___builtin_sqrtl" 1>&6
3535 if test x$link___builtin_sqrtl = x"yes"; then
3536 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3537 cat >> confdefs.h <<EOF
3538#define ${ac_tr_func} 1
54fa7415
SK
3539EOF
3540
11fc1858 3541 fi
54fa7415 3542 fi
11fc1858
BK
3543
3544
3545
3546
3547 ac_ext=C
3548# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3549ac_cpp='$CXXCPP $CPPFLAGS'
3550ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3551ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3552cross_compiling=$ac_cv_prog_cxx_cross
3553
3554 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
29bd52c8 3555echo "configure:3556: checking for __builtin_sinf declaration" >&5
54fa7415 3556 cat > conftest.$ac_ext <<EOF
29bd52c8 3557#line 3558 "configure"
54fa7415
SK
3558#include "confdefs.h"
3559#include <math.h>
3560int main() {
11fc1858 3561 __builtin_sinf(0);
54fa7415
SK
3562; return 0; }
3563EOF
29bd52c8 3564if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3565 rm -rf conftest*
11fc1858 3566 use___builtin_sinf=yes
54fa7415
SK
3567else
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 rm -rf conftest*
11fc1858 3571 use___builtin_sinf=no
54fa7415
SK
3572fi
3573rm -f conftest*
11fc1858
BK
3574 echo "$ac_t""$use___builtin_sinf" 1>&6
3575 ac_ext=c
3576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3580cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3581
11fc1858
BK
3582 if test x$use___builtin_sinf = x"yes"; then
3583 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
29bd52c8 3584echo "configure:3585: checking for __builtin_sinf linkage" >&5
11fc1858 3585 cat > conftest.$ac_ext <<EOF
29bd52c8 3586#line 3587 "configure"
54fa7415
SK
3587#include "confdefs.h"
3588#include <math.h>
3589int main() {
11fc1858 3590 __builtin_sinf(0);
54fa7415
SK
3591; return 0; }
3592EOF
29bd52c8 3593if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3594 rm -rf conftest*
11fc1858 3595 link___builtin_sinf=yes
54fa7415
SK
3596else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
11fc1858 3600 link___builtin_sinf=no
54fa7415
SK
3601fi
3602rm -f conftest*
11fc1858
BK
3603 echo "$ac_t""$link___builtin_sinf" 1>&6
3604 if test x$link___builtin_sinf = x"yes"; then
3605 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3606 cat >> confdefs.h <<EOF
3607#define ${ac_tr_func} 1
54fa7415
SK
3608EOF
3609
11fc1858 3610 fi
54fa7415 3611 fi
11fc1858
BK
3612
3613
3614
3615 ac_ext=C
3616# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3617ac_cpp='$CXXCPP $CPPFLAGS'
3618ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3619ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3620cross_compiling=$ac_cv_prog_cxx_cross
3621
3622 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
29bd52c8 3623echo "configure:3624: checking for __builtin_sin declaration" >&5
54fa7415 3624 cat > conftest.$ac_ext <<EOF
29bd52c8 3625#line 3626 "configure"
54fa7415
SK
3626#include "confdefs.h"
3627#include <math.h>
3628int main() {
11fc1858 3629 __builtin_sin(0);
54fa7415
SK
3630; return 0; }
3631EOF
29bd52c8 3632if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3633 rm -rf conftest*
11fc1858 3634 use___builtin_sin=yes
54fa7415
SK
3635else
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3638 rm -rf conftest*
11fc1858 3639 use___builtin_sin=no
54fa7415
SK
3640fi
3641rm -f conftest*
11fc1858
BK
3642 echo "$ac_t""$use___builtin_sin" 1>&6
3643 ac_ext=c
3644# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3647ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3648cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3649
11fc1858
BK
3650 if test x$use___builtin_sin = x"yes"; then
3651 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
29bd52c8 3652echo "configure:3653: checking for __builtin_sin linkage" >&5
11fc1858 3653 cat > conftest.$ac_ext <<EOF
29bd52c8 3654#line 3655 "configure"
54fa7415
SK
3655#include "confdefs.h"
3656#include <math.h>
3657int main() {
11fc1858 3658 __builtin_sin(0);
54fa7415
SK
3659; return 0; }
3660EOF
29bd52c8 3661if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3662 rm -rf conftest*
11fc1858 3663 link___builtin_sin=yes
54fa7415
SK
3664else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
11fc1858 3668 link___builtin_sin=no
54fa7415
SK
3669fi
3670rm -f conftest*
11fc1858
BK
3671 echo "$ac_t""$link___builtin_sin" 1>&6
3672 if test x$link___builtin_sin = x"yes"; then
3673 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3674 cat >> confdefs.h <<EOF
3675#define ${ac_tr_func} 1
54fa7415
SK
3676EOF
3677
11fc1858 3678 fi
54fa7415 3679 fi
11fc1858
BK
3680
3681
3682
3683 ac_ext=C
3684# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3685ac_cpp='$CXXCPP $CPPFLAGS'
3686ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3687ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3688cross_compiling=$ac_cv_prog_cxx_cross
3689
3690 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
29bd52c8 3691echo "configure:3692: checking for __builtin_sinl declaration" >&5
54fa7415 3692 cat > conftest.$ac_ext <<EOF
29bd52c8 3693#line 3694 "configure"
54fa7415
SK
3694#include "confdefs.h"
3695#include <math.h>
3696int main() {
11fc1858 3697 __builtin_sinl(0);
54fa7415
SK
3698; return 0; }
3699EOF
29bd52c8 3700if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3701 rm -rf conftest*
11fc1858 3702 use___builtin_sinl=yes
54fa7415
SK
3703else
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3706 rm -rf conftest*
11fc1858 3707 use___builtin_sinl=no
54fa7415
SK
3708fi
3709rm -f conftest*
11fc1858
BK
3710 echo "$ac_t""$use___builtin_sinl" 1>&6
3711 ac_ext=c
3712# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3713ac_cpp='$CPP $CPPFLAGS'
3714ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3715ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3716cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3717
11fc1858
BK
3718 if test x$use___builtin_sinl = x"yes"; then
3719 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
29bd52c8 3720echo "configure:3721: checking for __builtin_sinl linkage" >&5
11fc1858 3721 cat > conftest.$ac_ext <<EOF
29bd52c8 3722#line 3723 "configure"
54fa7415
SK
3723#include "confdefs.h"
3724#include <math.h>
3725int main() {
11fc1858 3726 __builtin_sinl(0);
54fa7415
SK
3727; return 0; }
3728EOF
29bd52c8 3729if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3730 rm -rf conftest*
11fc1858 3731 link___builtin_sinl=yes
54fa7415
SK
3732else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
11fc1858 3736 link___builtin_sinl=no
54fa7415
SK
3737fi
3738rm -f conftest*
11fc1858
BK
3739 echo "$ac_t""$link___builtin_sinl" 1>&6
3740 if test x$link___builtin_sinl = x"yes"; then
3741 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3742 cat >> confdefs.h <<EOF
3743#define ${ac_tr_func} 1
54fa7415
SK
3744EOF
3745
11fc1858 3746 fi
54fa7415 3747 fi
11fc1858
BK
3748
3749
3750
3751
3752 ac_ext=C
3753# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3754ac_cpp='$CXXCPP $CPPFLAGS'
3755ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3756ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3757cross_compiling=$ac_cv_prog_cxx_cross
3758
3759 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
29bd52c8 3760echo "configure:3761: checking for __builtin_cosf declaration" >&5
54fa7415 3761 cat > conftest.$ac_ext <<EOF
29bd52c8 3762#line 3763 "configure"
54fa7415
SK
3763#include "confdefs.h"
3764#include <math.h>
3765int main() {
11fc1858 3766 __builtin_cosf(0);
54fa7415
SK
3767; return 0; }
3768EOF
29bd52c8 3769if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3770 rm -rf conftest*
11fc1858 3771 use___builtin_cosf=yes
54fa7415
SK
3772else
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
11fc1858 3776 use___builtin_cosf=no
54fa7415
SK
3777fi
3778rm -f conftest*
11fc1858
BK
3779 echo "$ac_t""$use___builtin_cosf" 1>&6
3780 ac_ext=c
3781# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3784ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3785cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3786
11fc1858
BK
3787 if test x$use___builtin_cosf = x"yes"; then
3788 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
29bd52c8 3789echo "configure:3790: checking for __builtin_cosf linkage" >&5
11fc1858 3790 cat > conftest.$ac_ext <<EOF
29bd52c8 3791#line 3792 "configure"
54fa7415
SK
3792#include "confdefs.h"
3793#include <math.h>
3794int main() {
11fc1858 3795 __builtin_cosf(0);
54fa7415
SK
3796; return 0; }
3797EOF
29bd52c8 3798if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3799 rm -rf conftest*
11fc1858 3800 link___builtin_cosf=yes
54fa7415
SK
3801else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
11fc1858 3805 link___builtin_cosf=no
54fa7415
SK
3806fi
3807rm -f conftest*
11fc1858
BK
3808 echo "$ac_t""$link___builtin_cosf" 1>&6
3809 if test x$link___builtin_cosf = x"yes"; then
3810 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3811 cat >> confdefs.h <<EOF
3812#define ${ac_tr_func} 1
54fa7415
SK
3813EOF
3814
11fc1858 3815 fi
54fa7415 3816 fi
11fc1858
BK
3817
3818
3819
3820 ac_ext=C
3821# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3822ac_cpp='$CXXCPP $CPPFLAGS'
3823ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3824ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3825cross_compiling=$ac_cv_prog_cxx_cross
3826
3827 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
29bd52c8 3828echo "configure:3829: checking for __builtin_cos declaration" >&5
54fa7415 3829 cat > conftest.$ac_ext <<EOF
29bd52c8 3830#line 3831 "configure"
54fa7415
SK
3831#include "confdefs.h"
3832#include <math.h>
3833int main() {
11fc1858 3834 __builtin_cos(0);
54fa7415
SK
3835; return 0; }
3836EOF
29bd52c8 3837if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3838 rm -rf conftest*
11fc1858 3839 use___builtin_cos=yes
54fa7415
SK
3840else
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
11fc1858 3844 use___builtin_cos=no
54fa7415
SK
3845fi
3846rm -f conftest*
11fc1858
BK
3847 echo "$ac_t""$use___builtin_cos" 1>&6
3848 ac_ext=c
3849# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3850ac_cpp='$CPP $CPPFLAGS'
3851ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3852ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3853cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3854
11fc1858
BK
3855 if test x$use___builtin_cos = x"yes"; then
3856 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
29bd52c8 3857echo "configure:3858: checking for __builtin_cos linkage" >&5
11fc1858 3858 cat > conftest.$ac_ext <<EOF
29bd52c8 3859#line 3860 "configure"
54fa7415
SK
3860#include "confdefs.h"
3861#include <math.h>
3862int main() {
11fc1858 3863 __builtin_cos(0);
54fa7415
SK
3864; return 0; }
3865EOF
29bd52c8 3866if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3867 rm -rf conftest*
11fc1858 3868 link___builtin_cos=yes
54fa7415
SK
3869else
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 rm -rf conftest*
11fc1858 3873 link___builtin_cos=no
54fa7415
SK
3874fi
3875rm -f conftest*
11fc1858
BK
3876 echo "$ac_t""$link___builtin_cos" 1>&6
3877 if test x$link___builtin_cos = x"yes"; then
3878 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3879 cat >> confdefs.h <<EOF
3880#define ${ac_tr_func} 1
54fa7415
SK
3881EOF
3882
11fc1858 3883 fi
54fa7415 3884 fi
11fc1858
BK
3885
3886
3887
3888 ac_ext=C
3889# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3890ac_cpp='$CXXCPP $CPPFLAGS'
3891ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3892ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3893cross_compiling=$ac_cv_prog_cxx_cross
3894
3895 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
29bd52c8 3896echo "configure:3897: checking for __builtin_cosl declaration" >&5
54fa7415 3897 cat > conftest.$ac_ext <<EOF
29bd52c8 3898#line 3899 "configure"
54fa7415
SK
3899#include "confdefs.h"
3900#include <math.h>
3901int main() {
11fc1858 3902 __builtin_cosl(0);
54fa7415
SK
3903; return 0; }
3904EOF
29bd52c8 3905if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3906 rm -rf conftest*
11fc1858 3907 use___builtin_cosl=yes
54fa7415
SK
3908else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
11fc1858 3912 use___builtin_cosl=no
54fa7415
SK
3913fi
3914rm -f conftest*
11fc1858
BK
3915 echo "$ac_t""$use___builtin_cosl" 1>&6
3916 ac_ext=c
3917# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3920ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3921cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3922
11fc1858
BK
3923 if test x$use___builtin_cosl = x"yes"; then
3924 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
29bd52c8 3925echo "configure:3926: checking for __builtin_cosl linkage" >&5
11fc1858 3926 cat > conftest.$ac_ext <<EOF
29bd52c8 3927#line 3928 "configure"
54fa7415
SK
3928#include "confdefs.h"
3929#include <math.h>
3930int main() {
11fc1858 3931 __builtin_cosl(0);
54fa7415
SK
3932; return 0; }
3933EOF
29bd52c8 3934if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3935 rm -rf conftest*
11fc1858 3936 link___builtin_cosl=yes
54fa7415
SK
3937else
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 rm -rf conftest*
11fc1858 3941 link___builtin_cosl=no
54fa7415
SK
3942fi
3943rm -f conftest*
11fc1858
BK
3944 echo "$ac_t""$link___builtin_cosl" 1>&6
3945 if test x$link___builtin_cosl = x"yes"; then
3946 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3947 cat >> confdefs.h <<EOF
3948#define ${ac_tr_func} 1
54fa7415
SK
3949EOF
3950
11fc1858 3951 fi
54fa7415 3952 fi
54fa7415
SK
3953
3954
11fc1858
BK
3955 dummyvar=no
3956 if test x$dummyvar = x"yes"; then
3957 cat >> confdefs.h <<\EOF
3958#define HAVE___BUILTIN_ABS 1
3959EOF
3960
3961 cat >> confdefs.h <<\EOF
3962#define HAVE___BUILTIN_LABS 1
3963EOF
3964
3965 cat >> confdefs.h <<\EOF
3966#define HAVE___BUILTIN_COS 1
3967EOF
3968
3969 cat >> confdefs.h <<\EOF
3970#define HAVE___BUILTIN_COSF 1
3971EOF
3972
3973 cat >> confdefs.h <<\EOF
3974#define HAVE___BUILTIN_COSL 1
3975EOF
3976
3977 cat >> confdefs.h <<\EOF
3978#define HAVE___BUILTIN_FABS 1
3979EOF
3980
3981 cat >> confdefs.h <<\EOF
3982#define HAVE___BUILTIN_FABSF 1
3983EOF
3984
3985 cat >> confdefs.h <<\EOF
3986#define HAVE___BUILTIN_FABSL 1
3987EOF
3988
3989 cat >> confdefs.h <<\EOF
3990#define HAVE___BUILTIN_SIN 1
3991EOF
3992
3993 cat >> confdefs.h <<\EOF
3994#define HAVE___BUILTIN_SINF 1
3995EOF
3996
3997 cat >> confdefs.h <<\EOF
3998#define HAVE___BUILTIN_SINL 1
3999EOF
4000
4001 cat >> confdefs.h <<\EOF
4002#define HAVE___BUILTIN_FSQRT 1
4003EOF
4004
4005 cat >> confdefs.h <<\EOF
4006#define HAVE___BUILTIN_SQRTF 1
4007EOF
4008
4009 cat >> confdefs.h <<\EOF
4010#define HAVE___BUILTIN_SQRTL 1
4011EOF
4012
4013 fi
4014
54fa7415 4015
38bd7296
BK
4016 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4017 ac_save_CXXFLAGS="$CXXFLAGS"
4f76382d 4018 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
2f103494 4019
aac350aa 4020 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
29bd52c8 4021echo "configure:4022: checking for sin in -lm" >&5
54fa7415
SK
4022ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4023if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4025else
4026 ac_save_LIBS="$LIBS"
4027LIBS="-lm $LIBS"
4028cat > conftest.$ac_ext <<EOF
29bd52c8 4029#line 4030 "configure"
54fa7415
SK
4030#include "confdefs.h"
4031/* Override any gcc2 internal prototype to avoid an error. */
4032/* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4034char sin();
4035
4036int main() {
4037sin()
4038; return 0; }
4039EOF
29bd52c8 4040if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4041 rm -rf conftest*
4042 eval "ac_cv_lib_$ac_lib_var=yes"
4043else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 rm -rf conftest*
4047 eval "ac_cv_lib_$ac_lib_var=no"
4048fi
4049rm -f conftest*
4050LIBS="$ac_save_LIBS"
4051
4052fi
4053if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 libm="-lm"
4056else
4057 echo "$ac_t""no" 1>&6
4058fi
4059
38bd7296 4060 ac_save_LIBS="$LIBS"
54fa7415
SK
4061 LIBS="$LIBS $libm"
4062
38bd7296 4063 for ac_func in strtof strtold
54fa7415
SK
4064do
4065echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4066echo "configure:4067: checking for $ac_func" >&5
54fa7415
SK
4067if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4069else
4070 cat > conftest.$ac_ext <<EOF
29bd52c8 4071#line 4072 "configure"
54fa7415
SK
4072#include "confdefs.h"
4073/* System header to define __stub macros and hopefully few prototypes,
4074 which can conflict with char $ac_func(); below. */
4075#include <assert.h>
4076/* Override any gcc2 internal prototype to avoid an error. */
4077/* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079char $ac_func();
4080
4081int main() {
4082
4083/* The GNU C library defines this for functions which it implements
4084 to always fail with ENOSYS. Some functions are actually named
4085 something starting with __ and the normal name is an alias. */
4086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4087choke me
4088#else
4089$ac_func();
4090#endif
4091
4092; return 0; }
4093EOF
29bd52c8 4094if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4095 rm -rf conftest*
4096 eval "ac_cv_func_$ac_func=yes"
4097else
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4100 rm -rf conftest*
4101 eval "ac_cv_func_$ac_func=no"
4102fi
4103rm -f conftest*
4104fi
4105
4106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4109 cat >> confdefs.h <<EOF
4110#define $ac_tr_func 1
4111EOF
4112
4113else
4114 echo "$ac_t""no" 1>&6
54fa7415
SK
4115fi
4116done
4117
4118
38bd7296
BK
4119
4120
4121 ac_ext=C
4122# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4123ac_cpp='$CXXCPP $CPPFLAGS'
4124ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4125ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4126cross_compiling=$ac_cv_prog_cxx_cross
4127
4128 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
29bd52c8 4129echo "configure:4130: checking for isinf declaration" >&5
38bd7296 4130 cat > conftest.$ac_ext <<EOF
29bd52c8 4131#line 4132 "configure"
38bd7296
BK
4132#include "confdefs.h"
4133#include <math.h>
4134int main() {
4135 isinf(0);
4136; return 0; }
4137EOF
29bd52c8 4138if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4139 rm -rf conftest*
4140 use_isinf=yes
4141else
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 rm -rf conftest*
4145 use_isinf=no
4146fi
4147rm -f conftest*
4148 echo "$ac_t""$use_isinf" 1>&6
4149 ac_ext=c
4150# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4153ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4154cross_compiling=$ac_cv_prog_cc_cross
4155
4156 if test x$use_isinf = x"yes"; then
4157 for ac_func in isinf
2f103494
BK
4158do
4159echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4160echo "configure:4161: checking for $ac_func" >&5
2f103494 4161if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
54fa7415
SK
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163else
4164 cat > conftest.$ac_ext <<EOF
29bd52c8 4165#line 4166 "configure"
54fa7415
SK
4166#include "confdefs.h"
4167/* System header to define __stub macros and hopefully few prototypes,
2f103494 4168 which can conflict with char $ac_func(); below. */
54fa7415
SK
4169#include <assert.h>
4170/* Override any gcc2 internal prototype to avoid an error. */
4171/* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
2f103494 4173char $ac_func();
54fa7415
SK
4174
4175int main() {
4176
4177/* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
2f103494 4180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54fa7415
SK
4181choke me
4182#else
2f103494 4183$ac_func();
54fa7415
SK
4184#endif
4185
4186; return 0; }
4187EOF
29bd52c8 4188if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4189 rm -rf conftest*
2f103494 4190 eval "ac_cv_func_$ac_func=yes"
54fa7415
SK
4191else
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4194 rm -rf conftest*
2f103494 4195 eval "ac_cv_func_$ac_func=no"
54fa7415
SK
4196fi
4197rm -f conftest*
4198fi
4199
2f103494 4200if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
54fa7415 4201 echo "$ac_t""yes" 1>&6
2f103494
BK
4202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4203 cat >> confdefs.h <<EOF
4204#define $ac_tr_func 1
4205EOF
4206
4207else
4208 echo "$ac_t""no" 1>&6
4209fi
4210done
38bd7296
BK
4211
4212 fi
2f103494 4213
38bd7296
BK
4214
4215
4216 ac_ext=C
4217# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4218ac_cpp='$CXXCPP $CPPFLAGS'
4219ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4220ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4221cross_compiling=$ac_cv_prog_cxx_cross
2f103494 4222
38bd7296 4223 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
29bd52c8 4224echo "configure:4225: checking for isnan declaration" >&5
38bd7296 4225 cat > conftest.$ac_ext <<EOF
29bd52c8 4226#line 4227 "configure"
38bd7296
BK
4227#include "confdefs.h"
4228#include <math.h>
4229int main() {
4230 isnan(0);
4231; return 0; }
4232EOF
29bd52c8 4233if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4234 rm -rf conftest*
4235 use_isnan=yes
4236else
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 rm -rf conftest*
4240 use_isnan=no
4241fi
4242rm -f conftest*
4243 echo "$ac_t""$use_isnan" 1>&6
4244 ac_ext=c
4245# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4248ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4249cross_compiling=$ac_cv_prog_cc_cross
2f103494 4250
38bd7296
BK
4251 if test x$use_isnan = x"yes"; then
4252 for ac_func in isnan
54fa7415
SK
4253do
4254echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4255echo "configure:4256: checking for $ac_func" >&5
54fa7415
SK
4256if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4258else
4259 cat > conftest.$ac_ext <<EOF
29bd52c8 4260#line 4261 "configure"
54fa7415
SK
4261#include "confdefs.h"
4262/* System header to define __stub macros and hopefully few prototypes,
4263 which can conflict with char $ac_func(); below. */
4264#include <assert.h>
4265/* Override any gcc2 internal prototype to avoid an error. */
4266/* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4268char $ac_func();
4269
4270int main() {
4271
4272/* The GNU C library defines this for functions which it implements
4273 to always fail with ENOSYS. Some functions are actually named
4274 something starting with __ and the normal name is an alias. */
4275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4276choke me
4277#else
4278$ac_func();
4279#endif
4280
4281; return 0; }
4282EOF
29bd52c8 4283if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4284 rm -rf conftest*
4285 eval "ac_cv_func_$ac_func=yes"
4286else
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 rm -rf conftest*
4290 eval "ac_cv_func_$ac_func=no"
4291fi
4292rm -f conftest*
4293fi
4294
4295if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4298 cat >> confdefs.h <<EOF
4299#define $ac_tr_func 1
4300EOF
4301
4302else
4303 echo "$ac_t""no" 1>&6
54fa7415
SK
4304fi
4305done
38bd7296
BK
4306
4307 fi
2f103494
BK
4308
4309
38bd7296
BK
4310
4311 ac_ext=C
4312# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4313ac_cpp='$CXXCPP $CPPFLAGS'
4314ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4315ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4316cross_compiling=$ac_cv_prog_cxx_cross
4317
4318 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
29bd52c8 4319echo "configure:4320: checking for finite declaration" >&5
2f103494 4320 cat > conftest.$ac_ext <<EOF
29bd52c8 4321#line 4322 "configure"
2f103494 4322#include "confdefs.h"
38bd7296
BK
4323#include <math.h>
4324int main() {
4325 finite(0);
4326; return 0; }
2f103494 4327EOF
29bd52c8 4328if { (eval echo configure:4329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494 4329 rm -rf conftest*
38bd7296 4330 use_finite=yes
2f103494 4331else
2f103494
BK
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 rm -rf conftest*
38bd7296 4335 use_finite=no
2f103494
BK
4336fi
4337rm -f conftest*
38bd7296
BK
4338 echo "$ac_t""$use_finite" 1>&6
4339 ac_ext=c
4340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4341ac_cpp='$CPP $CPPFLAGS'
4342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4344cross_compiling=$ac_cv_prog_cc_cross
54fa7415 4345
38bd7296
BK
4346 if test x$use_finite = x"yes"; then
4347 for ac_func in finite
6c820cf2
BC
4348do
4349echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4350echo "configure:4351: checking for $ac_func" >&5
6c820cf2
BC
4351if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353else
4354 cat > conftest.$ac_ext <<EOF
29bd52c8 4355#line 4356 "configure"
6c820cf2
BC
4356#include "confdefs.h"
4357/* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4359#include <assert.h>
4360/* Override any gcc2 internal prototype to avoid an error. */
4361/* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363char $ac_func();
4364
4365int main() {
4366
4367/* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4371choke me
4372#else
4373$ac_func();
4374#endif
4375
4376; return 0; }
4377EOF
29bd52c8 4378if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6c820cf2
BC
4379 rm -rf conftest*
4380 eval "ac_cv_func_$ac_func=yes"
4381else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_func_$ac_func=no"
4386fi
4387rm -f conftest*
4388fi
4389
4390if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394#define $ac_tr_func 1
4395EOF
4396
4397else
4398 echo "$ac_t""no" 1>&6
6c820cf2
BC
4399fi
4400done
38bd7296
BK
4401
4402 fi
6c820cf2 4403
38bd7296
BK
4404
4405
4406 ac_ext=C
4407# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4408ac_cpp='$CXXCPP $CPPFLAGS'
4409ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4410ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4411cross_compiling=$ac_cv_prog_cxx_cross
6c820cf2 4412
38bd7296 4413 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
29bd52c8 4414echo "configure:4415: checking for copysign declaration" >&5
38bd7296 4415 cat > conftest.$ac_ext <<EOF
29bd52c8 4416#line 4417 "configure"
38bd7296
BK
4417#include "confdefs.h"
4418#include <math.h>
4419int main() {
4420 copysign(0, 0);
4421; return 0; }
4422EOF
29bd52c8 4423if { (eval echo configure:4424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4424 rm -rf conftest*
4425 use_copysign=yes
4426else
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 rm -rf conftest*
4430 use_copysign=no
4431fi
4432rm -f conftest*
4433 echo "$ac_t""$use_copysign" 1>&6
4434 ac_ext=c
4435# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4438ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4439cross_compiling=$ac_cv_prog_cc_cross
2f103494 4440
38bd7296
BK
4441 if test x$use_copysign = x"yes"; then
4442 for ac_func in copysign
4443do
4444echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4445echo "configure:4446: checking for $ac_func" >&5
38bd7296 4446if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
54fa7415
SK
4447 echo $ac_n "(cached) $ac_c" 1>&6
4448else
4449 cat > conftest.$ac_ext <<EOF
29bd52c8 4450#line 4451 "configure"
54fa7415
SK
4451#include "confdefs.h"
4452/* System header to define __stub macros and hopefully few prototypes,
38bd7296 4453 which can conflict with char $ac_func(); below. */
54fa7415
SK
4454#include <assert.h>
4455/* Override any gcc2 internal prototype to avoid an error. */
4456/* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
38bd7296 4458char $ac_func();
54fa7415
SK
4459
4460int main() {
4461
4462/* The GNU C library defines this for functions which it implements
4463 to always fail with ENOSYS. Some functions are actually named
4464 something starting with __ and the normal name is an alias. */
38bd7296 4465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54fa7415
SK
4466choke me
4467#else
38bd7296 4468$ac_func();
54fa7415
SK
4469#endif
4470
4471; return 0; }
4472EOF
29bd52c8 4473if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4474 rm -rf conftest*
38bd7296 4475 eval "ac_cv_func_$ac_func=yes"
54fa7415
SK
4476else
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 rm -rf conftest*
38bd7296 4480 eval "ac_cv_func_$ac_func=no"
b2dad0e3
BK
4481fi
4482rm -f conftest*
4483fi
4484
38bd7296 4485if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
b2dad0e3 4486 echo "$ac_t""yes" 1>&6
38bd7296
BK
4487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4488 cat >> confdefs.h <<EOF
4489#define $ac_tr_func 1
4490EOF
4491
4492else
4493 echo "$ac_t""no" 1>&6
4494fi
4495done
4496
4497 fi
4498
4499
4500
4501 ac_ext=C
4502# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4503ac_cpp='$CXXCPP $CPPFLAGS'
4504ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4505ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4506cross_compiling=$ac_cv_prog_cxx_cross
4507
4508 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
29bd52c8 4509echo "configure:4510: checking for sincos declaration" >&5
38bd7296 4510 cat > conftest.$ac_ext <<EOF
29bd52c8 4511#line 4512 "configure"
38bd7296
BK
4512#include "confdefs.h"
4513#include <math.h>
4514int main() {
4515 sincos(0, 0, 0);
4516; return 0; }
4517EOF
29bd52c8 4518if { (eval echo configure:4519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4519 rm -rf conftest*
4520 use_sincos=yes
4521else
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 use_sincos=no
4526fi
4527rm -f conftest*
4528 echo "$ac_t""$use_sincos" 1>&6
4529 ac_ext=c
4530# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4531ac_cpp='$CPP $CPPFLAGS'
4532ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4533ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4534cross_compiling=$ac_cv_prog_cc_cross
4535
4536 if test x$use_sincos = x"yes"; then
4537 for ac_func in sincos
b2dad0e3
BK
4538do
4539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4540echo "configure:4541: checking for $ac_func" >&5
b2dad0e3
BK
4541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4543else
4544 cat > conftest.$ac_ext <<EOF
29bd52c8 4545#line 4546 "configure"
b2dad0e3
BK
4546#include "confdefs.h"
4547/* System header to define __stub macros and hopefully few prototypes,
4548 which can conflict with char $ac_func(); below. */
4549#include <assert.h>
4550/* Override any gcc2 internal prototype to avoid an error. */
4551/* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4553char $ac_func();
4554
4555int main() {
4556
4557/* The GNU C library defines this for functions which it implements
4558 to always fail with ENOSYS. Some functions are actually named
4559 something starting with __ and the normal name is an alias. */
4560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4561choke me
4562#else
4563$ac_func();
4564#endif
4565
4566; return 0; }
4567EOF
29bd52c8 4568if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
4569 rm -rf conftest*
4570 eval "ac_cv_func_$ac_func=yes"
4571else
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 rm -rf conftest*
4575 eval "ac_cv_func_$ac_func=no"
4576fi
4577rm -f conftest*
4578fi
4579
4580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4583 cat >> confdefs.h <<EOF
4584#define $ac_tr_func 1
4585EOF
4586
4587else
4588 echo "$ac_t""no" 1>&6
4589fi
4590done
38bd7296
BK
4591
4592 fi
b2dad0e3 4593
2f103494 4594
2f103494 4595
38bd7296 4596 ac_ext=C
2f103494
BK
4597# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4598ac_cpp='$CXXCPP $CPPFLAGS'
4599ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4600ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4601cross_compiling=$ac_cv_prog_cxx_cross
4602
38bd7296 4603 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
29bd52c8 4604echo "configure:4605: checking for fpclass declaration" >&5
38bd7296 4605 cat > conftest.$ac_ext <<EOF
29bd52c8 4606#line 4607 "configure"
2f103494 4607#include "confdefs.h"
38bd7296 4608#include <math.h>
2f103494 4609int main() {
38bd7296 4610 fpclass(0);
2f103494
BK
4611; return 0; }
4612EOF
29bd52c8 4613if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494 4614 rm -rf conftest*
38bd7296
BK
4615 use_fpclass=yes
4616else
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 rm -rf conftest*
4620 use_fpclass=no
4621fi
4622rm -f conftest*
4623 echo "$ac_t""$use_fpclass" 1>&6
4624 ac_ext=c
4625# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4626ac_cpp='$CPP $CPPFLAGS'
4627ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4628ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4629cross_compiling=$ac_cv_prog_cc_cross
4630
4631 if test x$use_fpclass = x"yes"; then
4632 for ac_func in fpclass
4633do
4634echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4635echo "configure:4636: checking for $ac_func" >&5
38bd7296
BK
4636if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638else
4639 cat > conftest.$ac_ext <<EOF
29bd52c8 4640#line 4641 "configure"
38bd7296
BK
4641#include "confdefs.h"
4642/* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char $ac_func(); below. */
4644#include <assert.h>
4645/* Override any gcc2 internal prototype to avoid an error. */
4646/* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4648char $ac_func();
4649
4650int main() {
4651
4652/* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4656choke me
4657#else
4658$ac_func();
4659#endif
4660
4661; return 0; }
4662EOF
29bd52c8 4663if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4664 rm -rf conftest*
4665 eval "ac_cv_func_$ac_func=yes"
4666else
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669 rm -rf conftest*
4670 eval "ac_cv_func_$ac_func=no"
4671fi
4672rm -f conftest*
4673fi
4674
4675if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4678 cat >> confdefs.h <<EOF
4679#define $ac_tr_func 1
4680EOF
4681
4682else
4683 echo "$ac_t""no" 1>&6
4684fi
4685done
4686
4687 fi
4688
4689
4690
4691 ac_ext=C
4692# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4693ac_cpp='$CXXCPP $CPPFLAGS'
4694ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4695ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4696cross_compiling=$ac_cv_prog_cxx_cross
4697
4698 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
29bd52c8 4699echo "configure:4700: checking for qfpclass declaration" >&5
38bd7296 4700 cat > conftest.$ac_ext <<EOF
29bd52c8 4701#line 4702 "configure"
38bd7296
BK
4702#include "confdefs.h"
4703#include <math.h>
4704int main() {
4705 qfpclass(0);
4706; return 0; }
4707EOF
29bd52c8 4708if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4709 rm -rf conftest*
4710 use_qfpclass=yes
4711else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 rm -rf conftest*
4715 use_qfpclass=no
4716fi
4717rm -f conftest*
4718 echo "$ac_t""$use_qfpclass" 1>&6
4719 ac_ext=c
4720# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4721ac_cpp='$CPP $CPPFLAGS'
4722ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4723ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4724cross_compiling=$ac_cv_prog_cc_cross
4725
4726 if test x$use_qfpclass = x"yes"; then
4727 for ac_func in qfpclass
4728do
4729echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4730echo "configure:4731: checking for $ac_func" >&5
38bd7296
BK
4731if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4733else
4734 cat > conftest.$ac_ext <<EOF
29bd52c8 4735#line 4736 "configure"
38bd7296
BK
4736#include "confdefs.h"
4737/* System header to define __stub macros and hopefully few prototypes,
4738 which can conflict with char $ac_func(); below. */
4739#include <assert.h>
4740/* Override any gcc2 internal prototype to avoid an error. */
4741/* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4743char $ac_func();
4744
4745int main() {
4746
4747/* The GNU C library defines this for functions which it implements
4748 to always fail with ENOSYS. Some functions are actually named
4749 something starting with __ and the normal name is an alias. */
4750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4751choke me
4752#else
4753$ac_func();
4754#endif
4755
4756; return 0; }
4757EOF
29bd52c8 4758if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4759 rm -rf conftest*
4760 eval "ac_cv_func_$ac_func=yes"
4761else
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 rm -rf conftest*
4765 eval "ac_cv_func_$ac_func=no"
4766fi
4767rm -f conftest*
4768fi
4769
4770if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4773 cat >> confdefs.h <<EOF
4774#define $ac_tr_func 1
4775EOF
4776
4777else
4778 echo "$ac_t""no" 1>&6
4779fi
4780done
4781
4782 fi
4783
4784
4785
4786
4787 ac_ext=C
4788# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4789ac_cpp='$CXXCPP $CPPFLAGS'
4790ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4791ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792cross_compiling=$ac_cv_prog_cxx_cross
4793
4794 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
29bd52c8 4795echo "configure:4796: checking for isnanf declaration" >&5
38bd7296 4796 cat > conftest.$ac_ext <<EOF
29bd52c8 4797#line 4798 "configure"
38bd7296
BK
4798#include "confdefs.h"
4799#include <math.h>
4800int main() {
4801 isnanf(0);
4802; return 0; }
4803EOF
29bd52c8 4804if { (eval echo configure:4805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4805 rm -rf conftest*
4806 use_isnanf=yes
4807else
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 use_isnanf=no
4812fi
4813rm -f conftest*
4814 echo "$ac_t""$use_isnanf" 1>&6
4815 ac_ext=c
4816# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4817ac_cpp='$CPP $CPPFLAGS'
4818ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4819ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4820cross_compiling=$ac_cv_prog_cc_cross
4821
4822 if test x$use_isnanf = x"yes"; then
4823 for ac_func in isnanf
4824do
4825echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4826echo "configure:4827: checking for $ac_func" >&5
38bd7296
BK
4827if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829else
4830 cat > conftest.$ac_ext <<EOF
29bd52c8 4831#line 4832 "configure"
38bd7296
BK
4832#include "confdefs.h"
4833/* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func(); below. */
4835#include <assert.h>
4836/* Override any gcc2 internal prototype to avoid an error. */
4837/* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839char $ac_func();
4840
4841int main() {
4842
4843/* The GNU C library defines this for functions which it implements
4844 to always fail with ENOSYS. Some functions are actually named
4845 something starting with __ and the normal name is an alias. */
4846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4847choke me
4848#else
4849$ac_func();
4850#endif
4851
4852; return 0; }
4853EOF
29bd52c8 4854if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4855 rm -rf conftest*
4856 eval "ac_cv_func_$ac_func=yes"
4857else
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4860 rm -rf conftest*
4861 eval "ac_cv_func_$ac_func=no"
4862fi
4863rm -f conftest*
4864fi
4865
4866if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4869 cat >> confdefs.h <<EOF
4870#define $ac_tr_func 1
4871EOF
4872
4873else
4874 echo "$ac_t""no" 1>&6
4875fi
4876done
4877
4878 fi
4879
4880
4881
4882 ac_ext=C
4883# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4884ac_cpp='$CXXCPP $CPPFLAGS'
4885ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4886ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4887cross_compiling=$ac_cv_prog_cxx_cross
4888
4889 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
29bd52c8 4890echo "configure:4891: checking for isinff declaration" >&5
38bd7296 4891 cat > conftest.$ac_ext <<EOF
29bd52c8 4892#line 4893 "configure"
38bd7296
BK
4893#include "confdefs.h"
4894#include <math.h>
4895int main() {
4896 isinff(0);
4897; return 0; }
4898EOF
29bd52c8 4899if { (eval echo configure:4900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4900 rm -rf conftest*
4901 use_isinff=yes
4902else
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4905 rm -rf conftest*
4906 use_isinff=no
4907fi
4908rm -f conftest*
4909 echo "$ac_t""$use_isinff" 1>&6
4910 ac_ext=c
4911# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4912ac_cpp='$CPP $CPPFLAGS'
4913ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4914ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4915cross_compiling=$ac_cv_prog_cc_cross
4916
4917 if test x$use_isinff = x"yes"; then
4918 for ac_func in isinff
4919do
4920echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 4921echo "configure:4922: checking for $ac_func" >&5
38bd7296
BK
4922if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4924else
4925 cat > conftest.$ac_ext <<EOF
29bd52c8 4926#line 4927 "configure"
38bd7296
BK
4927#include "confdefs.h"
4928/* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4930#include <assert.h>
4931/* Override any gcc2 internal prototype to avoid an error. */
4932/* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934char $ac_func();
4935
4936int main() {
4937
4938/* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4942choke me
4943#else
4944$ac_func();
4945#endif
4946
4947; return 0; }
4948EOF
29bd52c8 4949if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4950 rm -rf conftest*
4951 eval "ac_cv_func_$ac_func=yes"
4952else
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 rm -rf conftest*
4956 eval "ac_cv_func_$ac_func=no"
4957fi
4958rm -f conftest*
4959fi
4960
4961if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h <<EOF
4965#define $ac_tr_func 1
4966EOF
4967
4968else
4969 echo "$ac_t""no" 1>&6
4970fi
4971done
4972
4973 fi
4974
4975
4976
4977 ac_ext=C
4978# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4979ac_cpp='$CXXCPP $CPPFLAGS'
4980ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4981ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4982cross_compiling=$ac_cv_prog_cxx_cross
4983
4984 echo $ac_n "checking for acosf declaration""... $ac_c" 1>&6
29bd52c8 4985echo "configure:4986: checking for acosf declaration" >&5
38bd7296 4986 cat > conftest.$ac_ext <<EOF
29bd52c8 4987#line 4988 "configure"
38bd7296
BK
4988#include "confdefs.h"
4989#include <math.h>
4990int main() {
4991 acosf(0);
4992; return 0; }
4993EOF
29bd52c8 4994if { (eval echo configure:4995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
4995 rm -rf conftest*
4996 use_acosf=yes
4997else
4998 echo "configure: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 rm -rf conftest*
5001 use_acosf=no
5002fi
5003rm -f conftest*
5004 echo "$ac_t""$use_acosf" 1>&6
5005 ac_ext=c
5006# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5009ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5010cross_compiling=$ac_cv_prog_cc_cross
5011
5012 if test x$use_acosf = x"yes"; then
5013 for ac_func in acosf
5014do
5015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5016echo "configure:5017: checking for $ac_func" >&5
38bd7296
BK
5017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5019else
5020 cat > conftest.$ac_ext <<EOF
29bd52c8 5021#line 5022 "configure"
38bd7296
BK
5022#include "confdefs.h"
5023/* System header to define __stub macros and hopefully few prototypes,
5024 which can conflict with char $ac_func(); below. */
5025#include <assert.h>
5026/* Override any gcc2 internal prototype to avoid an error. */
5027/* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5029char $ac_func();
5030
5031int main() {
5032
5033/* The GNU C library defines this for functions which it implements
5034 to always fail with ENOSYS. Some functions are actually named
5035 something starting with __ and the normal name is an alias. */
5036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5037choke me
5038#else
5039$ac_func();
5040#endif
5041
5042; return 0; }
5043EOF
29bd52c8 5044if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5045 rm -rf conftest*
5046 eval "ac_cv_func_$ac_func=yes"
5047else
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 rm -rf conftest*
5051 eval "ac_cv_func_$ac_func=no"
5052fi
5053rm -f conftest*
5054fi
5055
5056if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5059 cat >> confdefs.h <<EOF
5060#define $ac_tr_func 1
5061EOF
5062
5063else
5064 echo "$ac_t""no" 1>&6
5065fi
5066done
5067
5068 fi
5069
5070
5071
5072 ac_ext=C
5073# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5074ac_cpp='$CXXCPP $CPPFLAGS'
5075ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5076ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5077cross_compiling=$ac_cv_prog_cxx_cross
5078
5079 echo $ac_n "checking for asinf declaration""... $ac_c" 1>&6
29bd52c8 5080echo "configure:5081: checking for asinf declaration" >&5
38bd7296 5081 cat > conftest.$ac_ext <<EOF
29bd52c8 5082#line 5083 "configure"
38bd7296
BK
5083#include "confdefs.h"
5084#include <math.h>
5085int main() {
5086 asinf(0);
5087; return 0; }
5088EOF
29bd52c8 5089if { (eval echo configure:5090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5090 rm -rf conftest*
5091 use_asinf=yes
5092else
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 rm -rf conftest*
5096 use_asinf=no
5097fi
5098rm -f conftest*
5099 echo "$ac_t""$use_asinf" 1>&6
5100 ac_ext=c
5101# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5102ac_cpp='$CPP $CPPFLAGS'
5103ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5104ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5105cross_compiling=$ac_cv_prog_cc_cross
5106
5107 if test x$use_asinf = x"yes"; then
5108 for ac_func in asinf
5109do
5110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5111echo "configure:5112: checking for $ac_func" >&5
38bd7296
BK
5112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5114else
5115 cat > conftest.$ac_ext <<EOF
29bd52c8 5116#line 5117 "configure"
38bd7296
BK
5117#include "confdefs.h"
5118/* System header to define __stub macros and hopefully few prototypes,
5119 which can conflict with char $ac_func(); below. */
5120#include <assert.h>
5121/* Override any gcc2 internal prototype to avoid an error. */
5122/* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5124char $ac_func();
5125
5126int main() {
5127
5128/* The GNU C library defines this for functions which it implements
5129 to always fail with ENOSYS. Some functions are actually named
5130 something starting with __ and the normal name is an alias. */
5131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132choke me
5133#else
5134$ac_func();
5135#endif
5136
5137; return 0; }
5138EOF
29bd52c8 5139if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5140 rm -rf conftest*
5141 eval "ac_cv_func_$ac_func=yes"
5142else
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5145 rm -rf conftest*
5146 eval "ac_cv_func_$ac_func=no"
5147fi
5148rm -f conftest*
5149fi
5150
5151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5154 cat >> confdefs.h <<EOF
5155#define $ac_tr_func 1
5156EOF
5157
5158else
5159 echo "$ac_t""no" 1>&6
5160fi
5161done
5162
5163 fi
5164
5165
5166
5167 ac_ext=C
5168# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5169ac_cpp='$CXXCPP $CPPFLAGS'
5170ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5171ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5172cross_compiling=$ac_cv_prog_cxx_cross
5173
5174 echo $ac_n "checking for atanf declaration""... $ac_c" 1>&6
29bd52c8 5175echo "configure:5176: checking for atanf declaration" >&5
38bd7296 5176 cat > conftest.$ac_ext <<EOF
29bd52c8 5177#line 5178 "configure"
38bd7296
BK
5178#include "confdefs.h"
5179#include <math.h>
5180int main() {
5181 atanf(0);
5182; return 0; }
5183EOF
29bd52c8 5184if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5185 rm -rf conftest*
5186 use_atanf=yes
5187else
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5190 rm -rf conftest*
5191 use_atanf=no
5192fi
5193rm -f conftest*
5194 echo "$ac_t""$use_atanf" 1>&6
5195 ac_ext=c
5196# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5197ac_cpp='$CPP $CPPFLAGS'
5198ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5199ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5200cross_compiling=$ac_cv_prog_cc_cross
5201
5202 if test x$use_atanf = x"yes"; then
5203 for ac_func in atanf
5204do
5205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5206echo "configure:5207: checking for $ac_func" >&5
38bd7296
BK
5207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5209else
5210 cat > conftest.$ac_ext <<EOF
29bd52c8 5211#line 5212 "configure"
38bd7296
BK
5212#include "confdefs.h"
5213/* System header to define __stub macros and hopefully few prototypes,
5214 which can conflict with char $ac_func(); below. */
5215#include <assert.h>
5216/* Override any gcc2 internal prototype to avoid an error. */
5217/* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5219char $ac_func();
5220
5221int main() {
5222
5223/* The GNU C library defines this for functions which it implements
5224 to always fail with ENOSYS. Some functions are actually named
5225 something starting with __ and the normal name is an alias. */
5226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5227choke me
5228#else
5229$ac_func();
5230#endif
5231
5232; return 0; }
5233EOF
29bd52c8 5234if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5235 rm -rf conftest*
5236 eval "ac_cv_func_$ac_func=yes"
5237else
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 rm -rf conftest*
5241 eval "ac_cv_func_$ac_func=no"
5242fi
5243rm -f conftest*
5244fi
5245
5246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5247 echo "$ac_t""yes" 1>&6
5248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5249 cat >> confdefs.h <<EOF
5250#define $ac_tr_func 1
5251EOF
5252
5253else
5254 echo "$ac_t""no" 1>&6
5255fi
5256done
5257
5258 fi
5259
5260
5261
5262 ac_ext=C
5263# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5264ac_cpp='$CXXCPP $CPPFLAGS'
5265ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5266ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5267cross_compiling=$ac_cv_prog_cxx_cross
5268
5269 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
29bd52c8 5270echo "configure:5271: checking for atan2f declaration" >&5
38bd7296 5271 cat > conftest.$ac_ext <<EOF
29bd52c8 5272#line 5273 "configure"
38bd7296
BK
5273#include "confdefs.h"
5274#include <math.h>
5275int main() {
5276 atan2f(0, 0);
5277; return 0; }
5278EOF
29bd52c8 5279if { (eval echo configure:5280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5280 rm -rf conftest*
5281 use_atan2f=yes
5282else
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 rm -rf conftest*
5286 use_atan2f=no
5287fi
5288rm -f conftest*
5289 echo "$ac_t""$use_atan2f" 1>&6
5290 ac_ext=c
5291# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5292ac_cpp='$CPP $CPPFLAGS'
5293ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5294ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5295cross_compiling=$ac_cv_prog_cc_cross
5296
5297 if test x$use_atan2f = x"yes"; then
5298 for ac_func in atan2f
5299do
5300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5301echo "configure:5302: checking for $ac_func" >&5
38bd7296
BK
5302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5304else
5305 cat > conftest.$ac_ext <<EOF
29bd52c8 5306#line 5307 "configure"
38bd7296
BK
5307#include "confdefs.h"
5308/* System header to define __stub macros and hopefully few prototypes,
5309 which can conflict with char $ac_func(); below. */
5310#include <assert.h>
5311/* Override any gcc2 internal prototype to avoid an error. */
5312/* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5314char $ac_func();
5315
5316int main() {
5317
5318/* The GNU C library defines this for functions which it implements
5319 to always fail with ENOSYS. Some functions are actually named
5320 something starting with __ and the normal name is an alias. */
5321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5322choke me
5323#else
5324$ac_func();
5325#endif
5326
5327; return 0; }
5328EOF
29bd52c8 5329if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5330 rm -rf conftest*
5331 eval "ac_cv_func_$ac_func=yes"
5332else
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5335 rm -rf conftest*
5336 eval "ac_cv_func_$ac_func=no"
5337fi
5338rm -f conftest*
5339fi
5340
5341if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5342 echo "$ac_t""yes" 1>&6
5343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5344 cat >> confdefs.h <<EOF
5345#define $ac_tr_func 1
5346EOF
5347
5348else
5349 echo "$ac_t""no" 1>&6
5350fi
5351done
5352
5353 fi
5354
5355
5356
5357 ac_ext=C
5358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5359ac_cpp='$CXXCPP $CPPFLAGS'
5360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5362cross_compiling=$ac_cv_prog_cxx_cross
5363
5364 echo $ac_n "checking for ceilf declaration""... $ac_c" 1>&6
29bd52c8 5365echo "configure:5366: checking for ceilf declaration" >&5
38bd7296 5366 cat > conftest.$ac_ext <<EOF
29bd52c8 5367#line 5368 "configure"
38bd7296
BK
5368#include "confdefs.h"
5369#include <math.h>
5370int main() {
5371 ceilf(0);
5372; return 0; }
5373EOF
29bd52c8 5374if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5375 rm -rf conftest*
5376 use_ceilf=yes
5377else
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 rm -rf conftest*
5381 use_ceilf=no
5382fi
5383rm -f conftest*
5384 echo "$ac_t""$use_ceilf" 1>&6
5385 ac_ext=c
5386# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5389ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5390cross_compiling=$ac_cv_prog_cc_cross
5391
5392 if test x$use_ceilf = x"yes"; then
5393 for ac_func in ceilf
5394do
5395echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5396echo "configure:5397: checking for $ac_func" >&5
38bd7296
BK
5397if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5399else
5400 cat > conftest.$ac_ext <<EOF
29bd52c8 5401#line 5402 "configure"
38bd7296
BK
5402#include "confdefs.h"
5403/* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char $ac_func(); below. */
5405#include <assert.h>
5406/* Override any gcc2 internal prototype to avoid an error. */
5407/* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5409char $ac_func();
5410
5411int main() {
5412
5413/* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417choke me
5418#else
5419$ac_func();
5420#endif
5421
5422; return 0; }
5423EOF
29bd52c8 5424if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5425 rm -rf conftest*
5426 eval "ac_cv_func_$ac_func=yes"
5427else
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 rm -rf conftest*
5431 eval "ac_cv_func_$ac_func=no"
5432fi
5433rm -f conftest*
5434fi
5435
5436if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439 cat >> confdefs.h <<EOF
5440#define $ac_tr_func 1
5441EOF
5442
5443else
5444 echo "$ac_t""no" 1>&6
5445fi
5446done
5447
5448 fi
5449
5450
5451
5452 ac_ext=C
5453# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5454ac_cpp='$CXXCPP $CPPFLAGS'
5455ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5456ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5457cross_compiling=$ac_cv_prog_cxx_cross
5458
5459 echo $ac_n "checking for cosf declaration""... $ac_c" 1>&6
29bd52c8 5460echo "configure:5461: checking for cosf declaration" >&5
38bd7296 5461 cat > conftest.$ac_ext <<EOF
29bd52c8 5462#line 5463 "configure"
38bd7296
BK
5463#include "confdefs.h"
5464#include <math.h>
5465int main() {
5466 cosf(0);
5467; return 0; }
5468EOF
29bd52c8 5469if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5470 rm -rf conftest*
5471 use_cosf=yes
5472else
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5475 rm -rf conftest*
5476 use_cosf=no
5477fi
5478rm -f conftest*
5479 echo "$ac_t""$use_cosf" 1>&6
5480 ac_ext=c
5481# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5482ac_cpp='$CPP $CPPFLAGS'
5483ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5484ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5485cross_compiling=$ac_cv_prog_cc_cross
5486
5487 if test x$use_cosf = x"yes"; then
5488 for ac_func in cosf
5489do
5490echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5491echo "configure:5492: checking for $ac_func" >&5
38bd7296
BK
5492if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5494else
5495 cat > conftest.$ac_ext <<EOF
29bd52c8 5496#line 5497 "configure"
38bd7296
BK
5497#include "confdefs.h"
5498/* System header to define __stub macros and hopefully few prototypes,
5499 which can conflict with char $ac_func(); below. */
5500#include <assert.h>
5501/* Override any gcc2 internal prototype to avoid an error. */
5502/* We use char because int might match the return type of a gcc2
5503 builtin and then its argument prototype would still apply. */
5504char $ac_func();
5505
5506int main() {
5507
5508/* The GNU C library defines this for functions which it implements
5509 to always fail with ENOSYS. Some functions are actually named
5510 something starting with __ and the normal name is an alias. */
5511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5512choke me
5513#else
5514$ac_func();
5515#endif
5516
5517; return 0; }
5518EOF
29bd52c8 5519if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5520 rm -rf conftest*
5521 eval "ac_cv_func_$ac_func=yes"
5522else
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5525 rm -rf conftest*
5526 eval "ac_cv_func_$ac_func=no"
5527fi
5528rm -f conftest*
5529fi
5530
5531if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5532 echo "$ac_t""yes" 1>&6
5533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5534 cat >> confdefs.h <<EOF
5535#define $ac_tr_func 1
5536EOF
5537
5538else
5539 echo "$ac_t""no" 1>&6
5540fi
5541done
5542
5543 fi
5544
5545
5546
5547 ac_ext=C
5548# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5549ac_cpp='$CXXCPP $CPPFLAGS'
5550ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5551ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5552cross_compiling=$ac_cv_prog_cxx_cross
5553
5554 echo $ac_n "checking for coshf declaration""... $ac_c" 1>&6
29bd52c8 5555echo "configure:5556: checking for coshf declaration" >&5
38bd7296 5556 cat > conftest.$ac_ext <<EOF
29bd52c8 5557#line 5558 "configure"
38bd7296
BK
5558#include "confdefs.h"
5559#include <math.h>
5560int main() {
5561 coshf(0);
5562; return 0; }
5563EOF
29bd52c8 5564if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5565 rm -rf conftest*
5566 use_coshf=yes
5567else
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 rm -rf conftest*
5571 use_coshf=no
5572fi
5573rm -f conftest*
5574 echo "$ac_t""$use_coshf" 1>&6
5575 ac_ext=c
5576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5577ac_cpp='$CPP $CPPFLAGS'
5578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5580cross_compiling=$ac_cv_prog_cc_cross
5581
5582 if test x$use_coshf = x"yes"; then
5583 for ac_func in coshf
5584do
5585echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5586echo "configure:5587: checking for $ac_func" >&5
38bd7296
BK
5587if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589else
5590 cat > conftest.$ac_ext <<EOF
29bd52c8 5591#line 5592 "configure"
38bd7296
BK
5592#include "confdefs.h"
5593/* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func(); below. */
5595#include <assert.h>
5596/* Override any gcc2 internal prototype to avoid an error. */
5597/* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599char $ac_func();
5600
5601int main() {
5602
5603/* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607choke me
5608#else
5609$ac_func();
5610#endif
5611
5612; return 0; }
5613EOF
29bd52c8 5614if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5615 rm -rf conftest*
5616 eval "ac_cv_func_$ac_func=yes"
5617else
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 rm -rf conftest*
5621 eval "ac_cv_func_$ac_func=no"
5622fi
5623rm -f conftest*
5624fi
5625
5626if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5629 cat >> confdefs.h <<EOF
5630#define $ac_tr_func 1
5631EOF
5632
5633else
5634 echo "$ac_t""no" 1>&6
5635fi
5636done
5637
5638 fi
5639
5640
5641
5642 ac_ext=C
5643# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5644ac_cpp='$CXXCPP $CPPFLAGS'
5645ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5646ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5647cross_compiling=$ac_cv_prog_cxx_cross
5648
5649 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
29bd52c8 5650echo "configure:5651: checking for expf declaration" >&5
38bd7296 5651 cat > conftest.$ac_ext <<EOF
29bd52c8 5652#line 5653 "configure"
38bd7296
BK
5653#include "confdefs.h"
5654#include <math.h>
5655int main() {
5656 expf(0);
5657; return 0; }
5658EOF
29bd52c8 5659if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5660 rm -rf conftest*
5661 use_expf=yes
5662else
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 use_expf=no
5667fi
5668rm -f conftest*
5669 echo "$ac_t""$use_expf" 1>&6
5670 ac_ext=c
5671# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5672ac_cpp='$CPP $CPPFLAGS'
5673ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5674ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5675cross_compiling=$ac_cv_prog_cc_cross
5676
5677 if test x$use_expf = x"yes"; then
5678 for ac_func in expf
5679do
5680echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5681echo "configure:5682: checking for $ac_func" >&5
38bd7296
BK
5682if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5684else
5685 cat > conftest.$ac_ext <<EOF
29bd52c8 5686#line 5687 "configure"
38bd7296
BK
5687#include "confdefs.h"
5688/* System header to define __stub macros and hopefully few prototypes,
5689 which can conflict with char $ac_func(); below. */
5690#include <assert.h>
5691/* Override any gcc2 internal prototype to avoid an error. */
5692/* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */
5694char $ac_func();
5695
5696int main() {
5697
5698/* The GNU C library defines this for functions which it implements
5699 to always fail with ENOSYS. Some functions are actually named
5700 something starting with __ and the normal name is an alias. */
5701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5702choke me
5703#else
5704$ac_func();
5705#endif
5706
5707; return 0; }
5708EOF
29bd52c8 5709if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5710 rm -rf conftest*
5711 eval "ac_cv_func_$ac_func=yes"
5712else
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 rm -rf conftest*
5716 eval "ac_cv_func_$ac_func=no"
5717fi
5718rm -f conftest*
5719fi
5720
5721if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5722 echo "$ac_t""yes" 1>&6
5723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5724 cat >> confdefs.h <<EOF
5725#define $ac_tr_func 1
5726EOF
5727
5728else
5729 echo "$ac_t""no" 1>&6
5730fi
5731done
5732
5733 fi
5734
5735
5736
5737 ac_ext=C
5738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5739ac_cpp='$CXXCPP $CPPFLAGS'
5740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5742cross_compiling=$ac_cv_prog_cxx_cross
5743
5744 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
29bd52c8 5745echo "configure:5746: checking for fabsf declaration" >&5
38bd7296 5746 cat > conftest.$ac_ext <<EOF
29bd52c8 5747#line 5748 "configure"
38bd7296
BK
5748#include "confdefs.h"
5749#include <math.h>
5750int main() {
5751 fabsf(0);
5752; return 0; }
5753EOF
29bd52c8 5754if { (eval echo configure:5755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5755 rm -rf conftest*
5756 use_fabsf=yes
5757else
5758 echo "configure: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 rm -rf conftest*
5761 use_fabsf=no
5762fi
5763rm -f conftest*
5764 echo "$ac_t""$use_fabsf" 1>&6
5765 ac_ext=c
5766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5767ac_cpp='$CPP $CPPFLAGS'
5768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5770cross_compiling=$ac_cv_prog_cc_cross
5771
5772 if test x$use_fabsf = x"yes"; then
5773 for ac_func in fabsf
5774do
5775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5776echo "configure:5777: checking for $ac_func" >&5
38bd7296
BK
5777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5779else
5780 cat > conftest.$ac_ext <<EOF
29bd52c8 5781#line 5782 "configure"
38bd7296
BK
5782#include "confdefs.h"
5783/* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5785#include <assert.h>
5786/* Override any gcc2 internal prototype to avoid an error. */
5787/* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789char $ac_func();
5790
5791int main() {
5792
5793/* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5797choke me
5798#else
5799$ac_func();
5800#endif
5801
5802; return 0; }
5803EOF
29bd52c8 5804if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5805 rm -rf conftest*
5806 eval "ac_cv_func_$ac_func=yes"
5807else
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5810 rm -rf conftest*
5811 eval "ac_cv_func_$ac_func=no"
5812fi
5813rm -f conftest*
5814fi
5815
5816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820#define $ac_tr_func 1
5821EOF
5822
5823else
5824 echo "$ac_t""no" 1>&6
5825fi
5826done
5827
5828 fi
5829
5830
5831
5832 ac_ext=C
5833# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5834ac_cpp='$CXXCPP $CPPFLAGS'
5835ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5836ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5837cross_compiling=$ac_cv_prog_cxx_cross
5838
5839 echo $ac_n "checking for floorf declaration""... $ac_c" 1>&6
29bd52c8 5840echo "configure:5841: checking for floorf declaration" >&5
38bd7296 5841 cat > conftest.$ac_ext <<EOF
29bd52c8 5842#line 5843 "configure"
38bd7296
BK
5843#include "confdefs.h"
5844#include <math.h>
5845int main() {
5846 floorf(0);
5847; return 0; }
5848EOF
29bd52c8 5849if { (eval echo configure:5850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5850 rm -rf conftest*
5851 use_floorf=yes
5852else
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 rm -rf conftest*
5856 use_floorf=no
5857fi
5858rm -f conftest*
5859 echo "$ac_t""$use_floorf" 1>&6
5860 ac_ext=c
5861# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5862ac_cpp='$CPP $CPPFLAGS'
5863ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5864ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5865cross_compiling=$ac_cv_prog_cc_cross
5866
5867 if test x$use_floorf = x"yes"; then
5868 for ac_func in floorf
5869do
5870echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5871echo "configure:5872: checking for $ac_func" >&5
38bd7296
BK
5872if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5874else
5875 cat > conftest.$ac_ext <<EOF
29bd52c8 5876#line 5877 "configure"
38bd7296
BK
5877#include "confdefs.h"
5878/* System header to define __stub macros and hopefully few prototypes,
5879 which can conflict with char $ac_func(); below. */
5880#include <assert.h>
5881/* Override any gcc2 internal prototype to avoid an error. */
5882/* We use char because int might match the return type of a gcc2
5883 builtin and then its argument prototype would still apply. */
5884char $ac_func();
5885
5886int main() {
5887
5888/* The GNU C library defines this for functions which it implements
5889 to always fail with ENOSYS. Some functions are actually named
5890 something starting with __ and the normal name is an alias. */
5891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5892choke me
5893#else
5894$ac_func();
5895#endif
5896
5897; return 0; }
5898EOF
29bd52c8 5899if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5900 rm -rf conftest*
5901 eval "ac_cv_func_$ac_func=yes"
5902else
5903 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 rm -rf conftest*
5906 eval "ac_cv_func_$ac_func=no"
5907fi
5908rm -f conftest*
5909fi
5910
5911if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5912 echo "$ac_t""yes" 1>&6
5913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5914 cat >> confdefs.h <<EOF
5915#define $ac_tr_func 1
5916EOF
5917
5918else
5919 echo "$ac_t""no" 1>&6
5920fi
5921done
5922
5923 fi
5924
5925
5926
5927 ac_ext=C
5928# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5929ac_cpp='$CXXCPP $CPPFLAGS'
5930ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5931ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5932cross_compiling=$ac_cv_prog_cxx_cross
5933
5934 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
29bd52c8 5935echo "configure:5936: checking for fmodf declaration" >&5
38bd7296 5936 cat > conftest.$ac_ext <<EOF
29bd52c8 5937#line 5938 "configure"
38bd7296
BK
5938#include "confdefs.h"
5939#include <math.h>
5940int main() {
5941 fmodf(0, 0);
5942; return 0; }
5943EOF
29bd52c8 5944if { (eval echo configure:5945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
5945 rm -rf conftest*
5946 use_fmodf=yes
5947else
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 rm -rf conftest*
5951 use_fmodf=no
5952fi
5953rm -f conftest*
5954 echo "$ac_t""$use_fmodf" 1>&6
5955 ac_ext=c
5956# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5957ac_cpp='$CPP $CPPFLAGS'
5958ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5959ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5960cross_compiling=$ac_cv_prog_cc_cross
5961
5962 if test x$use_fmodf = x"yes"; then
5963 for ac_func in fmodf
5964do
5965echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 5966echo "configure:5967: checking for $ac_func" >&5
38bd7296
BK
5967if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5969else
5970 cat > conftest.$ac_ext <<EOF
29bd52c8 5971#line 5972 "configure"
38bd7296
BK
5972#include "confdefs.h"
5973/* System header to define __stub macros and hopefully few prototypes,
5974 which can conflict with char $ac_func(); below. */
5975#include <assert.h>
5976/* Override any gcc2 internal prototype to avoid an error. */
5977/* We use char because int might match the return type of a gcc2
5978 builtin and then its argument prototype would still apply. */
5979char $ac_func();
5980
5981int main() {
5982
5983/* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987choke me
5988#else
5989$ac_func();
5990#endif
5991
5992; return 0; }
5993EOF
29bd52c8 5994if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5995 rm -rf conftest*
5996 eval "ac_cv_func_$ac_func=yes"
5997else
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 rm -rf conftest*
6001 eval "ac_cv_func_$ac_func=no"
6002fi
6003rm -f conftest*
6004fi
6005
6006if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6009 cat >> confdefs.h <<EOF
6010#define $ac_tr_func 1
6011EOF
6012
6013else
6014 echo "$ac_t""no" 1>&6
6015fi
6016done
6017
6018 fi
6019
6020
6021
6022 ac_ext=C
6023# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6024ac_cpp='$CXXCPP $CPPFLAGS'
6025ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6026ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6027cross_compiling=$ac_cv_prog_cxx_cross
6028
6029 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
29bd52c8 6030echo "configure:6031: checking for frexpf declaration" >&5
38bd7296 6031 cat > conftest.$ac_ext <<EOF
29bd52c8 6032#line 6033 "configure"
38bd7296
BK
6033#include "confdefs.h"
6034#include <math.h>
6035int main() {
6036 frexpf(0, 0);
6037; return 0; }
6038EOF
29bd52c8 6039if { (eval echo configure:6040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6040 rm -rf conftest*
6041 use_frexpf=yes
6042else
6043 echo "configure: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 rm -rf conftest*
6046 use_frexpf=no
6047fi
6048rm -f conftest*
6049 echo "$ac_t""$use_frexpf" 1>&6
6050 ac_ext=c
6051# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6052ac_cpp='$CPP $CPPFLAGS'
6053ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6054ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6055cross_compiling=$ac_cv_prog_cc_cross
6056
6057 if test x$use_frexpf = x"yes"; then
6058 for ac_func in frexpf
6059do
6060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6061echo "configure:6062: checking for $ac_func" >&5
38bd7296
BK
6062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064else
6065 cat > conftest.$ac_ext <<EOF
29bd52c8 6066#line 6067 "configure"
38bd7296
BK
6067#include "confdefs.h"
6068/* System header to define __stub macros and hopefully few prototypes,
6069 which can conflict with char $ac_func(); below. */
6070#include <assert.h>
6071/* Override any gcc2 internal prototype to avoid an error. */
6072/* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6074char $ac_func();
6075
6076int main() {
6077
6078/* The GNU C library defines this for functions which it implements
6079 to always fail with ENOSYS. Some functions are actually named
6080 something starting with __ and the normal name is an alias. */
6081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6082choke me
6083#else
6084$ac_func();
6085#endif
6086
6087; return 0; }
6088EOF
29bd52c8 6089if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6090 rm -rf conftest*
6091 eval "ac_cv_func_$ac_func=yes"
6092else
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6095 rm -rf conftest*
6096 eval "ac_cv_func_$ac_func=no"
6097fi
6098rm -f conftest*
6099fi
6100
6101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6102 echo "$ac_t""yes" 1>&6
6103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6104 cat >> confdefs.h <<EOF
6105#define $ac_tr_func 1
6106EOF
6107
6108else
6109 echo "$ac_t""no" 1>&6
6110fi
6111done
6112
6113 fi
6114
6115
6116
6117 ac_ext=C
6118# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6119ac_cpp='$CXXCPP $CPPFLAGS'
6120ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6121ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6122cross_compiling=$ac_cv_prog_cxx_cross
6123
6124 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
29bd52c8 6125echo "configure:6126: checking for ldexpf declaration" >&5
38bd7296 6126 cat > conftest.$ac_ext <<EOF
29bd52c8 6127#line 6128 "configure"
38bd7296
BK
6128#include "confdefs.h"
6129#include <math.h>
6130int main() {
6131 ldexpf(0, 0);
6132; return 0; }
6133EOF
29bd52c8 6134if { (eval echo configure:6135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6135 rm -rf conftest*
6136 use_ldexpf=yes
6137else
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 rm -rf conftest*
6141 use_ldexpf=no
6142fi
6143rm -f conftest*
6144 echo "$ac_t""$use_ldexpf" 1>&6
6145 ac_ext=c
6146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6147ac_cpp='$CPP $CPPFLAGS'
6148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6150cross_compiling=$ac_cv_prog_cc_cross
6151
6152 if test x$use_ldexpf = x"yes"; then
6153 for ac_func in ldexpf
6154do
6155echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6156echo "configure:6157: checking for $ac_func" >&5
38bd7296
BK
6157if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6159else
6160 cat > conftest.$ac_ext <<EOF
29bd52c8 6161#line 6162 "configure"
38bd7296
BK
6162#include "confdefs.h"
6163/* System header to define __stub macros and hopefully few prototypes,
6164 which can conflict with char $ac_func(); below. */
6165#include <assert.h>
6166/* Override any gcc2 internal prototype to avoid an error. */
6167/* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6169char $ac_func();
6170
6171int main() {
6172
6173/* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177choke me
6178#else
6179$ac_func();
6180#endif
6181
6182; return 0; }
6183EOF
29bd52c8 6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6185 rm -rf conftest*
6186 eval "ac_cv_func_$ac_func=yes"
6187else
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 rm -rf conftest*
6191 eval "ac_cv_func_$ac_func=no"
6192fi
6193rm -f conftest*
6194fi
6195
6196if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6199 cat >> confdefs.h <<EOF
6200#define $ac_tr_func 1
6201EOF
6202
6203else
6204 echo "$ac_t""no" 1>&6
6205fi
6206done
6207
6208 fi
6209
6210
6211
6212 ac_ext=C
6213# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6214ac_cpp='$CXXCPP $CPPFLAGS'
6215ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6216ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6217cross_compiling=$ac_cv_prog_cxx_cross
6218
6219 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
29bd52c8 6220echo "configure:6221: checking for logf declaration" >&5
38bd7296 6221 cat > conftest.$ac_ext <<EOF
29bd52c8 6222#line 6223 "configure"
38bd7296
BK
6223#include "confdefs.h"
6224#include <math.h>
6225int main() {
6226 logf(0);
6227; return 0; }
6228EOF
29bd52c8 6229if { (eval echo configure:6230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6230 rm -rf conftest*
6231 use_logf=yes
6232else
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6235 rm -rf conftest*
6236 use_logf=no
6237fi
6238rm -f conftest*
6239 echo "$ac_t""$use_logf" 1>&6
6240 ac_ext=c
6241# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6242ac_cpp='$CPP $CPPFLAGS'
6243ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6244ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245cross_compiling=$ac_cv_prog_cc_cross
6246
6247 if test x$use_logf = x"yes"; then
6248 for ac_func in logf
6249do
6250echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6251echo "configure:6252: checking for $ac_func" >&5
38bd7296
BK
6252if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6254else
6255 cat > conftest.$ac_ext <<EOF
29bd52c8 6256#line 6257 "configure"
38bd7296
BK
6257#include "confdefs.h"
6258/* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6260#include <assert.h>
6261/* Override any gcc2 internal prototype to avoid an error. */
6262/* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264char $ac_func();
6265
6266int main() {
6267
6268/* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272choke me
6273#else
6274$ac_func();
6275#endif
6276
6277; return 0; }
6278EOF
29bd52c8 6279if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6280 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=yes"
6282else
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 rm -rf conftest*
6286 eval "ac_cv_func_$ac_func=no"
6287fi
6288rm -f conftest*
6289fi
6290
6291if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h <<EOF
6295#define $ac_tr_func 1
6296EOF
6297
6298else
6299 echo "$ac_t""no" 1>&6
6300fi
6301done
6302
6303 fi
6304
6305
6306
6307 ac_ext=C
6308# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6309ac_cpp='$CXXCPP $CPPFLAGS'
6310ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6311ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6312cross_compiling=$ac_cv_prog_cxx_cross
6313
6314 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
29bd52c8 6315echo "configure:6316: checking for log10f declaration" >&5
38bd7296 6316 cat > conftest.$ac_ext <<EOF
29bd52c8 6317#line 6318 "configure"
38bd7296
BK
6318#include "confdefs.h"
6319#include <math.h>
6320int main() {
6321 log10f(0);
6322; return 0; }
6323EOF
29bd52c8 6324if { (eval echo configure:6325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6325 rm -rf conftest*
6326 use_log10f=yes
6327else
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 rm -rf conftest*
6331 use_log10f=no
6332fi
6333rm -f conftest*
6334 echo "$ac_t""$use_log10f" 1>&6
6335 ac_ext=c
6336# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6337ac_cpp='$CPP $CPPFLAGS'
6338ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6339ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6340cross_compiling=$ac_cv_prog_cc_cross
6341
6342 if test x$use_log10f = x"yes"; then
6343 for ac_func in log10f
6344do
6345echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6346echo "configure:6347: checking for $ac_func" >&5
38bd7296
BK
6347if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6349else
6350 cat > conftest.$ac_ext <<EOF
29bd52c8 6351#line 6352 "configure"
38bd7296
BK
6352#include "confdefs.h"
6353/* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func(); below. */
6355#include <assert.h>
6356/* Override any gcc2 internal prototype to avoid an error. */
6357/* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359char $ac_func();
6360
6361int main() {
6362
6363/* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6367choke me
6368#else
6369$ac_func();
6370#endif
6371
6372; return 0; }
6373EOF
29bd52c8 6374if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6375 rm -rf conftest*
6376 eval "ac_cv_func_$ac_func=yes"
6377else
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 rm -rf conftest*
6381 eval "ac_cv_func_$ac_func=no"
6382fi
6383rm -f conftest*
6384fi
6385
6386if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6389 cat >> confdefs.h <<EOF
6390#define $ac_tr_func 1
6391EOF
6392
6393else
6394 echo "$ac_t""no" 1>&6
6395fi
6396done
6397
6398 fi
6399
6400
6401
6402 ac_ext=C
6403# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6404ac_cpp='$CXXCPP $CPPFLAGS'
6405ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6406ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6407cross_compiling=$ac_cv_prog_cxx_cross
6408
6409 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
29bd52c8 6410echo "configure:6411: checking for modff declaration" >&5
38bd7296 6411 cat > conftest.$ac_ext <<EOF
29bd52c8 6412#line 6413 "configure"
38bd7296
BK
6413#include "confdefs.h"
6414#include <math.h>
6415int main() {
6416 modff(0, 0);
6417; return 0; }
6418EOF
29bd52c8 6419if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6420 rm -rf conftest*
6421 use_modff=yes
6422else
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 rm -rf conftest*
6426 use_modff=no
6427fi
6428rm -f conftest*
6429 echo "$ac_t""$use_modff" 1>&6
6430 ac_ext=c
6431# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6432ac_cpp='$CPP $CPPFLAGS'
6433ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6434ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6435cross_compiling=$ac_cv_prog_cc_cross
6436
6437 if test x$use_modff = x"yes"; then
6438 for ac_func in modff
6439do
6440echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6441echo "configure:6442: checking for $ac_func" >&5
38bd7296
BK
6442if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444else
6445 cat > conftest.$ac_ext <<EOF
29bd52c8 6446#line 6447 "configure"
38bd7296
BK
6447#include "confdefs.h"
6448/* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6450#include <assert.h>
6451/* Override any gcc2 internal prototype to avoid an error. */
6452/* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6454char $ac_func();
6455
6456int main() {
6457
6458/* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6462choke me
6463#else
6464$ac_func();
6465#endif
6466
6467; return 0; }
6468EOF
29bd52c8 6469if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6470 rm -rf conftest*
6471 eval "ac_cv_func_$ac_func=yes"
6472else
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6475 rm -rf conftest*
6476 eval "ac_cv_func_$ac_func=no"
6477fi
6478rm -f conftest*
6479fi
6480
6481if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6484 cat >> confdefs.h <<EOF
6485#define $ac_tr_func 1
6486EOF
6487
6488else
6489 echo "$ac_t""no" 1>&6
6490fi
6491done
6492
6493 fi
6494
6495
6496
6497 ac_ext=C
6498# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6499ac_cpp='$CXXCPP $CPPFLAGS'
6500ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6501ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6502cross_compiling=$ac_cv_prog_cxx_cross
6503
6504 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
29bd52c8 6505echo "configure:6506: checking for powf declaration" >&5
38bd7296 6506 cat > conftest.$ac_ext <<EOF
29bd52c8 6507#line 6508 "configure"
38bd7296
BK
6508#include "confdefs.h"
6509#include <math.h>
6510int main() {
6511 powf(0, 0);
6512; return 0; }
6513EOF
29bd52c8 6514if { (eval echo configure:6515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6515 rm -rf conftest*
6516 use_powf=yes
6517else
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6520 rm -rf conftest*
6521 use_powf=no
6522fi
6523rm -f conftest*
6524 echo "$ac_t""$use_powf" 1>&6
6525 ac_ext=c
6526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6530cross_compiling=$ac_cv_prog_cc_cross
6531
6532 if test x$use_powf = x"yes"; then
6533 for ac_func in powf
6534do
6535echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6536echo "configure:6537: checking for $ac_func" >&5
38bd7296
BK
6537if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6539else
6540 cat > conftest.$ac_ext <<EOF
29bd52c8 6541#line 6542 "configure"
38bd7296
BK
6542#include "confdefs.h"
6543/* System header to define __stub macros and hopefully few prototypes,
6544 which can conflict with char $ac_func(); below. */
6545#include <assert.h>
6546/* Override any gcc2 internal prototype to avoid an error. */
6547/* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6549char $ac_func();
6550
6551int main() {
6552
6553/* The GNU C library defines this for functions which it implements
6554 to always fail with ENOSYS. Some functions are actually named
6555 something starting with __ and the normal name is an alias. */
6556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557choke me
6558#else
6559$ac_func();
6560#endif
6561
6562; return 0; }
6563EOF
29bd52c8 6564if { (eval echo configure:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6565 rm -rf conftest*
6566 eval "ac_cv_func_$ac_func=yes"
6567else
6568 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 rm -rf conftest*
6571 eval "ac_cv_func_$ac_func=no"
6572fi
6573rm -f conftest*
6574fi
6575
6576if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6577 echo "$ac_t""yes" 1>&6
6578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6579 cat >> confdefs.h <<EOF
6580#define $ac_tr_func 1
6581EOF
6582
6583else
6584 echo "$ac_t""no" 1>&6
6585fi
6586done
6587
6588 fi
6589
6590
6591
6592 ac_ext=C
6593# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6594ac_cpp='$CXXCPP $CPPFLAGS'
6595ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6596ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6597cross_compiling=$ac_cv_prog_cxx_cross
6598
6599 echo $ac_n "checking for sinf declaration""... $ac_c" 1>&6
29bd52c8 6600echo "configure:6601: checking for sinf declaration" >&5
38bd7296 6601 cat > conftest.$ac_ext <<EOF
29bd52c8 6602#line 6603 "configure"
38bd7296
BK
6603#include "confdefs.h"
6604#include <math.h>
6605int main() {
6606 sinf(0);
6607; return 0; }
6608EOF
29bd52c8 6609if { (eval echo configure:6610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6610 rm -rf conftest*
6611 use_sinf=yes
6612else
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 rm -rf conftest*
6616 use_sinf=no
6617fi
6618rm -f conftest*
6619 echo "$ac_t""$use_sinf" 1>&6
6620 ac_ext=c
6621# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6624ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6625cross_compiling=$ac_cv_prog_cc_cross
6626
6627 if test x$use_sinf = x"yes"; then
6628 for ac_func in sinf
6629do
6630echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6631echo "configure:6632: checking for $ac_func" >&5
38bd7296
BK
6632if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6634else
6635 cat > conftest.$ac_ext <<EOF
29bd52c8 6636#line 6637 "configure"
38bd7296
BK
6637#include "confdefs.h"
6638/* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func(); below. */
6640#include <assert.h>
6641/* Override any gcc2 internal prototype to avoid an error. */
6642/* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644char $ac_func();
6645
6646int main() {
6647
6648/* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6652choke me
6653#else
6654$ac_func();
6655#endif
6656
6657; return 0; }
6658EOF
29bd52c8 6659if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6660 rm -rf conftest*
6661 eval "ac_cv_func_$ac_func=yes"
6662else
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 rm -rf conftest*
6666 eval "ac_cv_func_$ac_func=no"
6667fi
6668rm -f conftest*
6669fi
6670
6671if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6674 cat >> confdefs.h <<EOF
6675#define $ac_tr_func 1
6676EOF
6677
6678else
6679 echo "$ac_t""no" 1>&6
6680fi
6681done
6682
6683 fi
6684
6685
6686
6687 ac_ext=C
6688# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6689ac_cpp='$CXXCPP $CPPFLAGS'
6690ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6691ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6692cross_compiling=$ac_cv_prog_cxx_cross
6693
6694 echo $ac_n "checking for sinhf declaration""... $ac_c" 1>&6
29bd52c8 6695echo "configure:6696: checking for sinhf declaration" >&5
38bd7296 6696 cat > conftest.$ac_ext <<EOF
29bd52c8 6697#line 6698 "configure"
38bd7296
BK
6698#include "confdefs.h"
6699#include <math.h>
6700int main() {
6701 sinhf(0);
6702; return 0; }
6703EOF
29bd52c8 6704if { (eval echo configure:6705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6705 rm -rf conftest*
6706 use_sinhf=yes
6707else
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 rm -rf conftest*
6711 use_sinhf=no
6712fi
6713rm -f conftest*
6714 echo "$ac_t""$use_sinhf" 1>&6
6715 ac_ext=c
6716# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6719ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6720cross_compiling=$ac_cv_prog_cc_cross
6721
6722 if test x$use_sinhf = x"yes"; then
6723 for ac_func in sinhf
6724do
6725echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6726echo "configure:6727: checking for $ac_func" >&5
38bd7296
BK
6727if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6729else
6730 cat > conftest.$ac_ext <<EOF
29bd52c8 6731#line 6732 "configure"
38bd7296
BK
6732#include "confdefs.h"
6733/* System header to define __stub macros and hopefully few prototypes,
6734 which can conflict with char $ac_func(); below. */
6735#include <assert.h>
6736/* Override any gcc2 internal prototype to avoid an error. */
6737/* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739char $ac_func();
6740
6741int main() {
6742
6743/* The GNU C library defines this for functions which it implements
6744 to always fail with ENOSYS. Some functions are actually named
6745 something starting with __ and the normal name is an alias. */
6746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6747choke me
6748#else
6749$ac_func();
6750#endif
6751
6752; return 0; }
6753EOF
29bd52c8 6754if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6755 rm -rf conftest*
6756 eval "ac_cv_func_$ac_func=yes"
6757else
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 rm -rf conftest*
6761 eval "ac_cv_func_$ac_func=no"
6762fi
6763rm -f conftest*
6764fi
6765
6766if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6769 cat >> confdefs.h <<EOF
6770#define $ac_tr_func 1
6771EOF
6772
6773else
6774 echo "$ac_t""no" 1>&6
6775fi
6776done
6777
6778 fi
6779
6780
6781
6782 ac_ext=C
6783# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6784ac_cpp='$CXXCPP $CPPFLAGS'
6785ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6786ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6787cross_compiling=$ac_cv_prog_cxx_cross
6788
6789 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
29bd52c8 6790echo "configure:6791: checking for sqrtf declaration" >&5
38bd7296 6791 cat > conftest.$ac_ext <<EOF
29bd52c8 6792#line 6793 "configure"
38bd7296
BK
6793#include "confdefs.h"
6794#include <math.h>
6795int main() {
6796 sqrtf(0);
6797; return 0; }
6798EOF
29bd52c8 6799if { (eval echo configure:6800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6800 rm -rf conftest*
6801 use_sqrtf=yes
6802else
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 rm -rf conftest*
6806 use_sqrtf=no
6807fi
6808rm -f conftest*
6809 echo "$ac_t""$use_sqrtf" 1>&6
6810 ac_ext=c
6811# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6812ac_cpp='$CPP $CPPFLAGS'
6813ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6814ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6815cross_compiling=$ac_cv_prog_cc_cross
6816
6817 if test x$use_sqrtf = x"yes"; then
6818 for ac_func in sqrtf
6819do
6820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6821echo "configure:6822: checking for $ac_func" >&5
38bd7296
BK
6822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6824else
6825 cat > conftest.$ac_ext <<EOF
29bd52c8 6826#line 6827 "configure"
38bd7296
BK
6827#include "confdefs.h"
6828/* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func(); below. */
6830#include <assert.h>
6831/* Override any gcc2 internal prototype to avoid an error. */
6832/* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6834char $ac_func();
6835
6836int main() {
6837
6838/* The GNU C library defines this for functions which it implements
6839 to always fail with ENOSYS. Some functions are actually named
6840 something starting with __ and the normal name is an alias. */
6841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6842choke me
6843#else
6844$ac_func();
6845#endif
6846
6847; return 0; }
6848EOF
29bd52c8 6849if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6850 rm -rf conftest*
6851 eval "ac_cv_func_$ac_func=yes"
6852else
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 rm -rf conftest*
6856 eval "ac_cv_func_$ac_func=no"
6857fi
6858rm -f conftest*
6859fi
6860
6861if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6864 cat >> confdefs.h <<EOF
6865#define $ac_tr_func 1
6866EOF
6867
6868else
6869 echo "$ac_t""no" 1>&6
6870fi
6871done
6872
6873 fi
6874
6875
6876
6877 ac_ext=C
6878# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6879ac_cpp='$CXXCPP $CPPFLAGS'
6880ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6881ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6882cross_compiling=$ac_cv_prog_cxx_cross
6883
6884 echo $ac_n "checking for tanf declaration""... $ac_c" 1>&6
29bd52c8 6885echo "configure:6886: checking for tanf declaration" >&5
38bd7296 6886 cat > conftest.$ac_ext <<EOF
29bd52c8 6887#line 6888 "configure"
38bd7296
BK
6888#include "confdefs.h"
6889#include <math.h>
6890int main() {
6891 tanf(0);
6892; return 0; }
6893EOF
29bd52c8 6894if { (eval echo configure:6895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6895 rm -rf conftest*
6896 use_tanf=yes
6897else
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6900 rm -rf conftest*
6901 use_tanf=no
6902fi
6903rm -f conftest*
6904 echo "$ac_t""$use_tanf" 1>&6
6905 ac_ext=c
6906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6907ac_cpp='$CPP $CPPFLAGS'
6908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6910cross_compiling=$ac_cv_prog_cc_cross
6911
6912 if test x$use_tanf = x"yes"; then
6913 for ac_func in tanf
6914do
6915echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 6916echo "configure:6917: checking for $ac_func" >&5
38bd7296
BK
6917if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6919else
6920 cat > conftest.$ac_ext <<EOF
29bd52c8 6921#line 6922 "configure"
38bd7296
BK
6922#include "confdefs.h"
6923/* System header to define __stub macros and hopefully few prototypes,
6924 which can conflict with char $ac_func(); below. */
6925#include <assert.h>
6926/* Override any gcc2 internal prototype to avoid an error. */
6927/* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929char $ac_func();
6930
6931int main() {
6932
6933/* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6937choke me
6938#else
6939$ac_func();
6940#endif
6941
6942; return 0; }
6943EOF
29bd52c8 6944if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6945 rm -rf conftest*
6946 eval "ac_cv_func_$ac_func=yes"
6947else
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6950 rm -rf conftest*
6951 eval "ac_cv_func_$ac_func=no"
6952fi
6953rm -f conftest*
6954fi
6955
6956if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6957 echo "$ac_t""yes" 1>&6
6958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6959 cat >> confdefs.h <<EOF
6960#define $ac_tr_func 1
6961EOF
6962
6963else
6964 echo "$ac_t""no" 1>&6
6965fi
6966done
6967
6968 fi
6969
6970
6971
6972 ac_ext=C
6973# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6974ac_cpp='$CXXCPP $CPPFLAGS'
6975ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6976ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6977cross_compiling=$ac_cv_prog_cxx_cross
6978
6979 echo $ac_n "checking for tanhf declaration""... $ac_c" 1>&6
29bd52c8 6980echo "configure:6981: checking for tanhf declaration" >&5
38bd7296 6981 cat > conftest.$ac_ext <<EOF
29bd52c8 6982#line 6983 "configure"
38bd7296
BK
6983#include "confdefs.h"
6984#include <math.h>
6985int main() {
6986 tanhf(0);
6987; return 0; }
6988EOF
29bd52c8 6989if { (eval echo configure:6990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
6990 rm -rf conftest*
6991 use_tanhf=yes
6992else
6993 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 rm -rf conftest*
6996 use_tanhf=no
6997fi
6998rm -f conftest*
6999 echo "$ac_t""$use_tanhf" 1>&6
7000 ac_ext=c
7001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7002ac_cpp='$CPP $CPPFLAGS'
7003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7005cross_compiling=$ac_cv_prog_cc_cross
7006
7007 if test x$use_tanhf = x"yes"; then
7008 for ac_func in tanhf
7009do
7010echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7011echo "configure:7012: checking for $ac_func" >&5
38bd7296
BK
7012if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7014else
7015 cat > conftest.$ac_ext <<EOF
29bd52c8 7016#line 7017 "configure"
38bd7296
BK
7017#include "confdefs.h"
7018/* System header to define __stub macros and hopefully few prototypes,
7019 which can conflict with char $ac_func(); below. */
7020#include <assert.h>
7021/* Override any gcc2 internal prototype to avoid an error. */
7022/* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024char $ac_func();
7025
7026int main() {
7027
7028/* The GNU C library defines this for functions which it implements
7029 to always fail with ENOSYS. Some functions are actually named
7030 something starting with __ and the normal name is an alias. */
7031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7032choke me
7033#else
7034$ac_func();
7035#endif
7036
7037; return 0; }
7038EOF
29bd52c8 7039if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7040 rm -rf conftest*
7041 eval "ac_cv_func_$ac_func=yes"
7042else
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 eval "ac_cv_func_$ac_func=no"
7047fi
7048rm -f conftest*
7049fi
7050
7051if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7054 cat >> confdefs.h <<EOF
7055#define $ac_tr_func 1
7056EOF
7057
7058else
7059 echo "$ac_t""no" 1>&6
7060fi
7061done
7062
7063 fi
7064
7065
7066
7067 ac_ext=C
7068# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7069ac_cpp='$CXXCPP $CPPFLAGS'
7070ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7071ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7072cross_compiling=$ac_cv_prog_cxx_cross
7073
7074 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
29bd52c8 7075echo "configure:7076: checking for sincosf declaration" >&5
38bd7296 7076 cat > conftest.$ac_ext <<EOF
29bd52c8 7077#line 7078 "configure"
38bd7296
BK
7078#include "confdefs.h"
7079#include <math.h>
7080int main() {
7081 sincosf(0, 0, 0);
7082; return 0; }
7083EOF
29bd52c8 7084if { (eval echo configure:7085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7085 rm -rf conftest*
7086 use_sincosf=yes
7087else
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 rm -rf conftest*
7091 use_sincosf=no
7092fi
7093rm -f conftest*
7094 echo "$ac_t""$use_sincosf" 1>&6
7095 ac_ext=c
7096# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7097ac_cpp='$CPP $CPPFLAGS'
7098ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7099ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7100cross_compiling=$ac_cv_prog_cc_cross
7101
7102 if test x$use_sincosf = x"yes"; then
7103 for ac_func in sincosf
7104do
7105echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7106echo "configure:7107: checking for $ac_func" >&5
38bd7296
BK
7107if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7109else
7110 cat > conftest.$ac_ext <<EOF
29bd52c8 7111#line 7112 "configure"
38bd7296
BK
7112#include "confdefs.h"
7113/* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7115#include <assert.h>
7116/* Override any gcc2 internal prototype to avoid an error. */
7117/* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119char $ac_func();
7120
7121int main() {
7122
7123/* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127choke me
7128#else
7129$ac_func();
7130#endif
7131
7132; return 0; }
7133EOF
29bd52c8 7134if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7135 rm -rf conftest*
7136 eval "ac_cv_func_$ac_func=yes"
7137else
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 rm -rf conftest*
7141 eval "ac_cv_func_$ac_func=no"
7142fi
7143rm -f conftest*
7144fi
7145
7146if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h <<EOF
7150#define $ac_tr_func 1
7151EOF
7152
7153else
7154 echo "$ac_t""no" 1>&6
7155fi
7156done
7157
7158 fi
7159
7160
7161
7162 ac_ext=C
7163# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7164ac_cpp='$CXXCPP $CPPFLAGS'
7165ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7166ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7167cross_compiling=$ac_cv_prog_cxx_cross
7168
7169 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
29bd52c8 7170echo "configure:7171: checking for finitef declaration" >&5
38bd7296 7171 cat > conftest.$ac_ext <<EOF
29bd52c8 7172#line 7173 "configure"
38bd7296
BK
7173#include "confdefs.h"
7174#include <math.h>
7175int main() {
7176 finitef(0);
7177; return 0; }
7178EOF
29bd52c8 7179if { (eval echo configure:7180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7180 rm -rf conftest*
7181 use_finitef=yes
7182else
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 use_finitef=no
7187fi
7188rm -f conftest*
7189 echo "$ac_t""$use_finitef" 1>&6
7190 ac_ext=c
7191# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7192ac_cpp='$CPP $CPPFLAGS'
7193ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7194ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7195cross_compiling=$ac_cv_prog_cc_cross
7196
7197 if test x$use_finitef = x"yes"; then
7198 for ac_func in finitef
7199do
7200echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7201echo "configure:7202: checking for $ac_func" >&5
38bd7296
BK
7202if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7204else
7205 cat > conftest.$ac_ext <<EOF
29bd52c8 7206#line 7207 "configure"
38bd7296
BK
7207#include "confdefs.h"
7208/* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char $ac_func(); below. */
7210#include <assert.h>
7211/* Override any gcc2 internal prototype to avoid an error. */
7212/* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7214char $ac_func();
7215
7216int main() {
7217
7218/* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7222choke me
7223#else
7224$ac_func();
7225#endif
7226
7227; return 0; }
7228EOF
29bd52c8 7229if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7230 rm -rf conftest*
7231 eval "ac_cv_func_$ac_func=yes"
7232else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 eval "ac_cv_func_$ac_func=no"
7237fi
7238rm -f conftest*
7239fi
7240
7241if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244 cat >> confdefs.h <<EOF
7245#define $ac_tr_func 1
7246EOF
7247
7248else
7249 echo "$ac_t""no" 1>&6
7250fi
7251done
7252
7253 fi
7254
7255
7256
7257
7258 ac_ext=C
7259# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7260ac_cpp='$CXXCPP $CPPFLAGS'
7261ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7262ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7263cross_compiling=$ac_cv_prog_cxx_cross
7264
7265 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
29bd52c8 7266echo "configure:7267: checking for isnanl declaration" >&5
38bd7296 7267 cat > conftest.$ac_ext <<EOF
29bd52c8 7268#line 7269 "configure"
38bd7296
BK
7269#include "confdefs.h"
7270#include <math.h>
7271int main() {
7272 isnanl(0);
7273; return 0; }
7274EOF
29bd52c8 7275if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7276 rm -rf conftest*
7277 use_isnanl=yes
7278else
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 rm -rf conftest*
7282 use_isnanl=no
7283fi
7284rm -f conftest*
7285 echo "$ac_t""$use_isnanl" 1>&6
7286 ac_ext=c
7287# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7288ac_cpp='$CPP $CPPFLAGS'
7289ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7290ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7291cross_compiling=$ac_cv_prog_cc_cross
7292
7293 if test x$use_isnanl = x"yes"; then
7294 for ac_func in isnanl
7295do
7296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7297echo "configure:7298: checking for $ac_func" >&5
38bd7296
BK
7298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7300else
7301 cat > conftest.$ac_ext <<EOF
29bd52c8 7302#line 7303 "configure"
38bd7296
BK
7303#include "confdefs.h"
7304/* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char $ac_func(); below. */
7306#include <assert.h>
7307/* Override any gcc2 internal prototype to avoid an error. */
7308/* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310char $ac_func();
7311
7312int main() {
7313
7314/* The GNU C library defines this for functions which it implements
7315 to always fail with ENOSYS. Some functions are actually named
7316 something starting with __ and the normal name is an alias. */
7317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7318choke me
7319#else
7320$ac_func();
7321#endif
7322
7323; return 0; }
7324EOF
29bd52c8 7325if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7326 rm -rf conftest*
7327 eval "ac_cv_func_$ac_func=yes"
7328else
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 rm -rf conftest*
7332 eval "ac_cv_func_$ac_func=no"
7333fi
7334rm -f conftest*
7335fi
7336
7337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7338 echo "$ac_t""yes" 1>&6
7339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7340 cat >> confdefs.h <<EOF
7341#define $ac_tr_func 1
7342EOF
7343
7344else
7345 echo "$ac_t""no" 1>&6
7346fi
7347done
7348
7349 fi
7350
7351
7352
7353 ac_ext=C
7354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7355ac_cpp='$CXXCPP $CPPFLAGS'
7356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7358cross_compiling=$ac_cv_prog_cxx_cross
7359
7360 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
29bd52c8 7361echo "configure:7362: checking for isinfl declaration" >&5
38bd7296 7362 cat > conftest.$ac_ext <<EOF
29bd52c8 7363#line 7364 "configure"
38bd7296
BK
7364#include "confdefs.h"
7365#include <math.h>
7366int main() {
7367 isinfl(0);
7368; return 0; }
7369EOF
29bd52c8 7370if { (eval echo configure:7371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7371 rm -rf conftest*
7372 use_isinfl=yes
7373else
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7376 rm -rf conftest*
7377 use_isinfl=no
7378fi
7379rm -f conftest*
7380 echo "$ac_t""$use_isinfl" 1>&6
7381 ac_ext=c
7382# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7385ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7386cross_compiling=$ac_cv_prog_cc_cross
7387
7388 if test x$use_isinfl = x"yes"; then
7389 for ac_func in isinfl
7390do
7391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7392echo "configure:7393: checking for $ac_func" >&5
38bd7296
BK
7393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7395else
7396 cat > conftest.$ac_ext <<EOF
29bd52c8 7397#line 7398 "configure"
38bd7296
BK
7398#include "confdefs.h"
7399/* System header to define __stub macros and hopefully few prototypes,
7400 which can conflict with char $ac_func(); below. */
7401#include <assert.h>
7402/* Override any gcc2 internal prototype to avoid an error. */
7403/* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7405char $ac_func();
7406
7407int main() {
7408
7409/* The GNU C library defines this for functions which it implements
7410 to always fail with ENOSYS. Some functions are actually named
7411 something starting with __ and the normal name is an alias. */
7412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7413choke me
7414#else
7415$ac_func();
7416#endif
7417
7418; return 0; }
7419EOF
29bd52c8 7420if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7421 rm -rf conftest*
7422 eval "ac_cv_func_$ac_func=yes"
7423else
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7426 rm -rf conftest*
7427 eval "ac_cv_func_$ac_func=no"
7428fi
7429rm -f conftest*
7430fi
7431
7432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7435 cat >> confdefs.h <<EOF
7436#define $ac_tr_func 1
7437EOF
7438
7439else
7440 echo "$ac_t""no" 1>&6
7441fi
7442done
7443
7444 fi
7445
7446
7447
7448 ac_ext=C
7449# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7450ac_cpp='$CXXCPP $CPPFLAGS'
7451ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7452ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7453cross_compiling=$ac_cv_prog_cxx_cross
7454
7455 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
29bd52c8 7456echo "configure:7457: checking for copysignl declaration" >&5
38bd7296 7457 cat > conftest.$ac_ext <<EOF
29bd52c8 7458#line 7459 "configure"
38bd7296
BK
7459#include "confdefs.h"
7460#include <math.h>
7461int main() {
11fc1858 7462 copysignl(0, 0);
38bd7296
BK
7463; return 0; }
7464EOF
29bd52c8 7465if { (eval echo configure:7466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7466 rm -rf conftest*
7467 use_copysignl=yes
7468else
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 rm -rf conftest*
7472 use_copysignl=no
7473fi
7474rm -f conftest*
7475 echo "$ac_t""$use_copysignl" 1>&6
7476 ac_ext=c
7477# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7478ac_cpp='$CPP $CPPFLAGS'
7479ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7480ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7481cross_compiling=$ac_cv_prog_cc_cross
7482
7483 if test x$use_copysignl = x"yes"; then
7484 for ac_func in copysignl
7485do
7486echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7487echo "configure:7488: checking for $ac_func" >&5
38bd7296
BK
7488if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6
7490else
7491 cat > conftest.$ac_ext <<EOF
29bd52c8 7492#line 7493 "configure"
38bd7296
BK
7493#include "confdefs.h"
7494/* System header to define __stub macros and hopefully few prototypes,
7495 which can conflict with char $ac_func(); below. */
7496#include <assert.h>
7497/* Override any gcc2 internal prototype to avoid an error. */
7498/* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500char $ac_func();
7501
7502int main() {
7503
7504/* The GNU C library defines this for functions which it implements
7505 to always fail with ENOSYS. Some functions are actually named
7506 something starting with __ and the normal name is an alias. */
7507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7508choke me
7509#else
7510$ac_func();
7511#endif
7512
7513; return 0; }
7514EOF
29bd52c8 7515if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7516 rm -rf conftest*
7517 eval "ac_cv_func_$ac_func=yes"
7518else
7519 echo "configure: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7521 rm -rf conftest*
7522 eval "ac_cv_func_$ac_func=no"
7523fi
7524rm -f conftest*
7525fi
7526
7527if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7530 cat >> confdefs.h <<EOF
7531#define $ac_tr_func 1
7532EOF
7533
7534else
7535 echo "$ac_t""no" 1>&6
7536fi
7537done
7538
7539 fi
7540
7541
7542
7543 ac_ext=C
7544# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7545ac_cpp='$CXXCPP $CPPFLAGS'
7546ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7547ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7548cross_compiling=$ac_cv_prog_cxx_cross
7549
7550 echo $ac_n "checking for acosl declaration""... $ac_c" 1>&6
29bd52c8 7551echo "configure:7552: checking for acosl declaration" >&5
38bd7296 7552 cat > conftest.$ac_ext <<EOF
29bd52c8 7553#line 7554 "configure"
38bd7296
BK
7554#include "confdefs.h"
7555#include <math.h>
7556int main() {
7557 acosl(0);
7558; return 0; }
7559EOF
29bd52c8 7560if { (eval echo configure:7561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7561 rm -rf conftest*
7562 use_acosl=yes
7563else
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7566 rm -rf conftest*
7567 use_acosl=no
7568fi
7569rm -f conftest*
7570 echo "$ac_t""$use_acosl" 1>&6
7571 ac_ext=c
7572# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7573ac_cpp='$CPP $CPPFLAGS'
7574ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7575ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7576cross_compiling=$ac_cv_prog_cc_cross
7577
7578 if test x$use_acosl = x"yes"; then
7579 for ac_func in acosl
7580do
7581echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7582echo "configure:7583: checking for $ac_func" >&5
38bd7296
BK
7583if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585else
7586 cat > conftest.$ac_ext <<EOF
29bd52c8 7587#line 7588 "configure"
38bd7296
BK
7588#include "confdefs.h"
7589/* System header to define __stub macros and hopefully few prototypes,
7590 which can conflict with char $ac_func(); below. */
7591#include <assert.h>
7592/* Override any gcc2 internal prototype to avoid an error. */
7593/* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7595char $ac_func();
7596
7597int main() {
7598
7599/* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603choke me
7604#else
7605$ac_func();
7606#endif
7607
7608; return 0; }
7609EOF
29bd52c8 7610if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7611 rm -rf conftest*
7612 eval "ac_cv_func_$ac_func=yes"
7613else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 eval "ac_cv_func_$ac_func=no"
7618fi
7619rm -f conftest*
7620fi
7621
7622if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7625 cat >> confdefs.h <<EOF
7626#define $ac_tr_func 1
7627EOF
7628
7629else
7630 echo "$ac_t""no" 1>&6
7631fi
7632done
7633
7634 fi
7635
7636
7637
7638 ac_ext=C
7639# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7640ac_cpp='$CXXCPP $CPPFLAGS'
7641ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7642ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7643cross_compiling=$ac_cv_prog_cxx_cross
7644
7645 echo $ac_n "checking for asinl declaration""... $ac_c" 1>&6
29bd52c8 7646echo "configure:7647: checking for asinl declaration" >&5
38bd7296 7647 cat > conftest.$ac_ext <<EOF
29bd52c8 7648#line 7649 "configure"
38bd7296
BK
7649#include "confdefs.h"
7650#include <math.h>
7651int main() {
7652 asinl(0);
7653; return 0; }
7654EOF
29bd52c8 7655if { (eval echo configure:7656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7656 rm -rf conftest*
7657 use_asinl=yes
7658else
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7661 rm -rf conftest*
7662 use_asinl=no
7663fi
7664rm -f conftest*
7665 echo "$ac_t""$use_asinl" 1>&6
7666 ac_ext=c
7667# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7668ac_cpp='$CPP $CPPFLAGS'
7669ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7670ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7671cross_compiling=$ac_cv_prog_cc_cross
7672
7673 if test x$use_asinl = x"yes"; then
7674 for ac_func in asinl
7675do
7676echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7677echo "configure:7678: checking for $ac_func" >&5
38bd7296
BK
7678if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7680else
7681 cat > conftest.$ac_ext <<EOF
29bd52c8 7682#line 7683 "configure"
38bd7296
BK
7683#include "confdefs.h"
7684/* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char $ac_func(); below. */
7686#include <assert.h>
7687/* Override any gcc2 internal prototype to avoid an error. */
7688/* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690char $ac_func();
7691
7692int main() {
7693
7694/* The GNU C library defines this for functions which it implements
7695 to always fail with ENOSYS. Some functions are actually named
7696 something starting with __ and the normal name is an alias. */
7697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7698choke me
7699#else
7700$ac_func();
7701#endif
7702
7703; return 0; }
7704EOF
29bd52c8 7705if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7706 rm -rf conftest*
7707 eval "ac_cv_func_$ac_func=yes"
7708else
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7711 rm -rf conftest*
7712 eval "ac_cv_func_$ac_func=no"
7713fi
7714rm -f conftest*
7715fi
7716
7717if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7720 cat >> confdefs.h <<EOF
7721#define $ac_tr_func 1
7722EOF
7723
7724else
7725 echo "$ac_t""no" 1>&6
7726fi
7727done
7728
7729 fi
7730
7731
7732
7733 ac_ext=C
7734# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7735ac_cpp='$CXXCPP $CPPFLAGS'
7736ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7737ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7738cross_compiling=$ac_cv_prog_cxx_cross
7739
7740 echo $ac_n "checking for atanl declaration""... $ac_c" 1>&6
29bd52c8 7741echo "configure:7742: checking for atanl declaration" >&5
38bd7296 7742 cat > conftest.$ac_ext <<EOF
29bd52c8 7743#line 7744 "configure"
38bd7296
BK
7744#include "confdefs.h"
7745#include <math.h>
7746int main() {
7747 atanl(0);
7748; return 0; }
7749EOF
29bd52c8 7750if { (eval echo configure:7751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7751 rm -rf conftest*
7752 use_atanl=yes
7753else
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 rm -rf conftest*
7757 use_atanl=no
7758fi
7759rm -f conftest*
7760 echo "$ac_t""$use_atanl" 1>&6
7761 ac_ext=c
7762# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7763ac_cpp='$CPP $CPPFLAGS'
7764ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7765ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7766cross_compiling=$ac_cv_prog_cc_cross
7767
7768 if test x$use_atanl = x"yes"; then
7769 for ac_func in atanl
7770do
7771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7772echo "configure:7773: checking for $ac_func" >&5
38bd7296
BK
7773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7775else
7776 cat > conftest.$ac_ext <<EOF
29bd52c8 7777#line 7778 "configure"
38bd7296
BK
7778#include "confdefs.h"
7779/* System header to define __stub macros and hopefully few prototypes,
7780 which can conflict with char $ac_func(); below. */
7781#include <assert.h>
7782/* Override any gcc2 internal prototype to avoid an error. */
7783/* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7785char $ac_func();
7786
7787int main() {
7788
7789/* The GNU C library defines this for functions which it implements
7790 to always fail with ENOSYS. Some functions are actually named
7791 something starting with __ and the normal name is an alias. */
7792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7793choke me
7794#else
7795$ac_func();
7796#endif
7797
7798; return 0; }
7799EOF
29bd52c8 7800if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7801 rm -rf conftest*
7802 eval "ac_cv_func_$ac_func=yes"
7803else
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 rm -rf conftest*
7807 eval "ac_cv_func_$ac_func=no"
7808fi
7809rm -f conftest*
7810fi
7811
7812if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7815 cat >> confdefs.h <<EOF
7816#define $ac_tr_func 1
7817EOF
7818
7819else
7820 echo "$ac_t""no" 1>&6
7821fi
7822done
7823
7824 fi
7825
7826
7827
7828 ac_ext=C
7829# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7830ac_cpp='$CXXCPP $CPPFLAGS'
7831ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7832ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7833cross_compiling=$ac_cv_prog_cxx_cross
7834
7835 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
29bd52c8 7836echo "configure:7837: checking for atan2l declaration" >&5
38bd7296 7837 cat > conftest.$ac_ext <<EOF
29bd52c8 7838#line 7839 "configure"
38bd7296
BK
7839#include "confdefs.h"
7840#include <math.h>
7841int main() {
7842 atan2l(0, 0);
7843; return 0; }
7844EOF
29bd52c8 7845if { (eval echo configure:7846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7846 rm -rf conftest*
7847 use_atan2l=yes
7848else
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 rm -rf conftest*
7852 use_atan2l=no
7853fi
7854rm -f conftest*
7855 echo "$ac_t""$use_atan2l" 1>&6
7856 ac_ext=c
7857# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7858ac_cpp='$CPP $CPPFLAGS'
7859ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7860ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7861cross_compiling=$ac_cv_prog_cc_cross
7862
7863 if test x$use_atan2l = x"yes"; then
7864 for ac_func in atan2l
7865do
7866echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7867echo "configure:7868: checking for $ac_func" >&5
38bd7296
BK
7868if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7870else
7871 cat > conftest.$ac_ext <<EOF
29bd52c8 7872#line 7873 "configure"
38bd7296
BK
7873#include "confdefs.h"
7874/* System header to define __stub macros and hopefully few prototypes,
7875 which can conflict with char $ac_func(); below. */
7876#include <assert.h>
7877/* Override any gcc2 internal prototype to avoid an error. */
7878/* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7880char $ac_func();
7881
7882int main() {
7883
7884/* The GNU C library defines this for functions which it implements
7885 to always fail with ENOSYS. Some functions are actually named
7886 something starting with __ and the normal name is an alias. */
7887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7888choke me
7889#else
7890$ac_func();
7891#endif
7892
7893; return 0; }
7894EOF
29bd52c8 7895if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7896 rm -rf conftest*
7897 eval "ac_cv_func_$ac_func=yes"
7898else
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 rm -rf conftest*
7902 eval "ac_cv_func_$ac_func=no"
7903fi
7904rm -f conftest*
7905fi
7906
7907if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7908 echo "$ac_t""yes" 1>&6
7909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7910 cat >> confdefs.h <<EOF
7911#define $ac_tr_func 1
7912EOF
7913
7914else
7915 echo "$ac_t""no" 1>&6
7916fi
7917done
7918
7919 fi
7920
7921
7922
7923 ac_ext=C
7924# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7925ac_cpp='$CXXCPP $CPPFLAGS'
7926ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7927ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7928cross_compiling=$ac_cv_prog_cxx_cross
7929
7930 echo $ac_n "checking for ceill declaration""... $ac_c" 1>&6
29bd52c8 7931echo "configure:7932: checking for ceill declaration" >&5
38bd7296 7932 cat > conftest.$ac_ext <<EOF
29bd52c8 7933#line 7934 "configure"
38bd7296
BK
7934#include "confdefs.h"
7935#include <math.h>
7936int main() {
7937 ceill(0);
7938; return 0; }
7939EOF
29bd52c8 7940if { (eval echo configure:7941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
7941 rm -rf conftest*
7942 use_ceill=yes
7943else
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7946 rm -rf conftest*
7947 use_ceill=no
7948fi
7949rm -f conftest*
7950 echo "$ac_t""$use_ceill" 1>&6
7951 ac_ext=c
7952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7956cross_compiling=$ac_cv_prog_cc_cross
7957
7958 if test x$use_ceill = x"yes"; then
7959 for ac_func in ceill
7960do
7961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 7962echo "configure:7963: checking for $ac_func" >&5
38bd7296
BK
7963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7965else
7966 cat > conftest.$ac_ext <<EOF
29bd52c8 7967#line 7968 "configure"
38bd7296
BK
7968#include "confdefs.h"
7969/* System header to define __stub macros and hopefully few prototypes,
7970 which can conflict with char $ac_func(); below. */
7971#include <assert.h>
7972/* Override any gcc2 internal prototype to avoid an error. */
7973/* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7975char $ac_func();
7976
7977int main() {
7978
7979/* The GNU C library defines this for functions which it implements
7980 to always fail with ENOSYS. Some functions are actually named
7981 something starting with __ and the normal name is an alias. */
7982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7983choke me
7984#else
7985$ac_func();
7986#endif
7987
7988; return 0; }
7989EOF
29bd52c8 7990if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7991 rm -rf conftest*
7992 eval "ac_cv_func_$ac_func=yes"
7993else
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 rm -rf conftest*
7997 eval "ac_cv_func_$ac_func=no"
7998fi
7999rm -f conftest*
8000fi
8001
8002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8005 cat >> confdefs.h <<EOF
8006#define $ac_tr_func 1
8007EOF
8008
8009else
8010 echo "$ac_t""no" 1>&6
8011fi
8012done
8013
8014 fi
8015
8016
8017
8018 ac_ext=C
8019# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8020ac_cpp='$CXXCPP $CPPFLAGS'
8021ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8022ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8023cross_compiling=$ac_cv_prog_cxx_cross
8024
8025 echo $ac_n "checking for cosl declaration""... $ac_c" 1>&6
29bd52c8 8026echo "configure:8027: checking for cosl declaration" >&5
38bd7296 8027 cat > conftest.$ac_ext <<EOF
29bd52c8 8028#line 8029 "configure"
38bd7296
BK
8029#include "confdefs.h"
8030#include <math.h>
8031int main() {
8032 cosl(0);
8033; return 0; }
8034EOF
29bd52c8 8035if { (eval echo configure:8036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8036 rm -rf conftest*
8037 use_cosl=yes
8038else
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 rm -rf conftest*
8042 use_cosl=no
8043fi
8044rm -f conftest*
8045 echo "$ac_t""$use_cosl" 1>&6
8046 ac_ext=c
8047# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8048ac_cpp='$CPP $CPPFLAGS'
8049ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8050ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8051cross_compiling=$ac_cv_prog_cc_cross
8052
8053 if test x$use_cosl = x"yes"; then
8054 for ac_func in cosl
8055do
8056echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8057echo "configure:8058: checking for $ac_func" >&5
38bd7296
BK
8058if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8060else
8061 cat > conftest.$ac_ext <<EOF
29bd52c8 8062#line 8063 "configure"
38bd7296
BK
8063#include "confdefs.h"
8064/* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func(); below. */
8066#include <assert.h>
8067/* Override any gcc2 internal prototype to avoid an error. */
8068/* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070char $ac_func();
8071
8072int main() {
8073
8074/* The GNU C library defines this for functions which it implements
8075 to always fail with ENOSYS. Some functions are actually named
8076 something starting with __ and the normal name is an alias. */
8077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8078choke me
8079#else
8080$ac_func();
8081#endif
8082
8083; return 0; }
8084EOF
29bd52c8 8085if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8086 rm -rf conftest*
8087 eval "ac_cv_func_$ac_func=yes"
8088else
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 rm -rf conftest*
8092 eval "ac_cv_func_$ac_func=no"
8093fi
8094rm -f conftest*
8095fi
8096
8097if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8100 cat >> confdefs.h <<EOF
8101#define $ac_tr_func 1
8102EOF
8103
8104else
8105 echo "$ac_t""no" 1>&6
8106fi
8107done
8108
8109 fi
8110
8111
8112
8113 ac_ext=C
8114# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8115ac_cpp='$CXXCPP $CPPFLAGS'
8116ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8117ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8118cross_compiling=$ac_cv_prog_cxx_cross
8119
8120 echo $ac_n "checking for coshl declaration""... $ac_c" 1>&6
29bd52c8 8121echo "configure:8122: checking for coshl declaration" >&5
38bd7296 8122 cat > conftest.$ac_ext <<EOF
29bd52c8 8123#line 8124 "configure"
38bd7296
BK
8124#include "confdefs.h"
8125#include <math.h>
8126int main() {
8127 coshl(0);
8128; return 0; }
8129EOF
29bd52c8 8130if { (eval echo configure:8131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8131 rm -rf conftest*
8132 use_coshl=yes
8133else
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 use_coshl=no
8138fi
8139rm -f conftest*
8140 echo "$ac_t""$use_coshl" 1>&6
8141 ac_ext=c
8142# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8143ac_cpp='$CPP $CPPFLAGS'
8144ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8145ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8146cross_compiling=$ac_cv_prog_cc_cross
8147
8148 if test x$use_coshl = x"yes"; then
8149 for ac_func in coshl
8150do
8151echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8152echo "configure:8153: checking for $ac_func" >&5
38bd7296
BK
8153if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8155else
8156 cat > conftest.$ac_ext <<EOF
29bd52c8 8157#line 8158 "configure"
38bd7296
BK
8158#include "confdefs.h"
8159/* System header to define __stub macros and hopefully few prototypes,
8160 which can conflict with char $ac_func(); below. */
8161#include <assert.h>
8162/* Override any gcc2 internal prototype to avoid an error. */
8163/* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165char $ac_func();
8166
8167int main() {
8168
8169/* The GNU C library defines this for functions which it implements
8170 to always fail with ENOSYS. Some functions are actually named
8171 something starting with __ and the normal name is an alias. */
8172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8173choke me
8174#else
8175$ac_func();
8176#endif
8177
8178; return 0; }
8179EOF
29bd52c8 8180if { (eval echo configure:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8181 rm -rf conftest*
8182 eval "ac_cv_func_$ac_func=yes"
8183else
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 rm -rf conftest*
8187 eval "ac_cv_func_$ac_func=no"
8188fi
8189rm -f conftest*
8190fi
8191
8192if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8195 cat >> confdefs.h <<EOF
8196#define $ac_tr_func 1
8197EOF
8198
8199else
8200 echo "$ac_t""no" 1>&6
8201fi
8202done
8203
8204 fi
8205
8206
8207
8208 ac_ext=C
8209# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8210ac_cpp='$CXXCPP $CPPFLAGS'
8211ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8212ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8213cross_compiling=$ac_cv_prog_cxx_cross
8214
8215 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
29bd52c8 8216echo "configure:8217: checking for expl declaration" >&5
38bd7296 8217 cat > conftest.$ac_ext <<EOF
29bd52c8 8218#line 8219 "configure"
38bd7296
BK
8219#include "confdefs.h"
8220#include <math.h>
8221int main() {
8222 expl(0);
8223; return 0; }
8224EOF
29bd52c8 8225if { (eval echo configure:8226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8226 rm -rf conftest*
8227 use_expl=yes
8228else
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 use_expl=no
8233fi
8234rm -f conftest*
8235 echo "$ac_t""$use_expl" 1>&6
8236 ac_ext=c
8237# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8238ac_cpp='$CPP $CPPFLAGS'
8239ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8240ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8241cross_compiling=$ac_cv_prog_cc_cross
8242
8243 if test x$use_expl = x"yes"; then
8244 for ac_func in expl
8245do
8246echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8247echo "configure:8248: checking for $ac_func" >&5
38bd7296
BK
8248if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250else
8251 cat > conftest.$ac_ext <<EOF
29bd52c8 8252#line 8253 "configure"
38bd7296
BK
8253#include "confdefs.h"
8254/* System header to define __stub macros and hopefully few prototypes,
8255 which can conflict with char $ac_func(); below. */
8256#include <assert.h>
8257/* Override any gcc2 internal prototype to avoid an error. */
8258/* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8260char $ac_func();
8261
8262int main() {
8263
8264/* The GNU C library defines this for functions which it implements
8265 to always fail with ENOSYS. Some functions are actually named
8266 something starting with __ and the normal name is an alias. */
8267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8268choke me
8269#else
8270$ac_func();
8271#endif
8272
8273; return 0; }
8274EOF
29bd52c8 8275if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8276 rm -rf conftest*
8277 eval "ac_cv_func_$ac_func=yes"
8278else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282 eval "ac_cv_func_$ac_func=no"
8283fi
8284rm -f conftest*
8285fi
8286
8287if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8288 echo "$ac_t""yes" 1>&6
8289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8290 cat >> confdefs.h <<EOF
8291#define $ac_tr_func 1
8292EOF
8293
8294else
8295 echo "$ac_t""no" 1>&6
8296fi
8297done
8298
8299 fi
8300
8301
8302
8303 ac_ext=C
8304# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8305ac_cpp='$CXXCPP $CPPFLAGS'
8306ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8307ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8308cross_compiling=$ac_cv_prog_cxx_cross
8309
8310 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
29bd52c8 8311echo "configure:8312: checking for fabsl declaration" >&5
38bd7296 8312 cat > conftest.$ac_ext <<EOF
29bd52c8 8313#line 8314 "configure"
38bd7296
BK
8314#include "confdefs.h"
8315#include <math.h>
8316int main() {
8317 fabsl(0);
8318; return 0; }
8319EOF
29bd52c8 8320if { (eval echo configure:8321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8321 rm -rf conftest*
8322 use_fabsl=yes
8323else
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 rm -rf conftest*
8327 use_fabsl=no
8328fi
8329rm -f conftest*
8330 echo "$ac_t""$use_fabsl" 1>&6
8331 ac_ext=c
8332# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8333ac_cpp='$CPP $CPPFLAGS'
8334ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8335ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8336cross_compiling=$ac_cv_prog_cc_cross
8337
8338 if test x$use_fabsl = x"yes"; then
8339 for ac_func in fabsl
8340do
8341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8342echo "configure:8343: checking for $ac_func" >&5
38bd7296
BK
8343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8345else
8346 cat > conftest.$ac_ext <<EOF
29bd52c8 8347#line 8348 "configure"
38bd7296
BK
8348#include "confdefs.h"
8349/* System header to define __stub macros and hopefully few prototypes,
8350 which can conflict with char $ac_func(); below. */
8351#include <assert.h>
8352/* Override any gcc2 internal prototype to avoid an error. */
8353/* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8355char $ac_func();
8356
8357int main() {
8358
8359/* The GNU C library defines this for functions which it implements
8360 to always fail with ENOSYS. Some functions are actually named
8361 something starting with __ and the normal name is an alias. */
8362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363choke me
8364#else
8365$ac_func();
8366#endif
8367
8368; return 0; }
8369EOF
29bd52c8 8370if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8371 rm -rf conftest*
8372 eval "ac_cv_func_$ac_func=yes"
8373else
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 rm -rf conftest*
8377 eval "ac_cv_func_$ac_func=no"
8378fi
8379rm -f conftest*
8380fi
8381
8382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8385 cat >> confdefs.h <<EOF
8386#define $ac_tr_func 1
8387EOF
8388
8389else
8390 echo "$ac_t""no" 1>&6
8391fi
8392done
8393
8394 fi
8395
8396
8397
8398 ac_ext=C
8399# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8400ac_cpp='$CXXCPP $CPPFLAGS'
8401ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8402ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8403cross_compiling=$ac_cv_prog_cxx_cross
8404
8405 echo $ac_n "checking for floorl declaration""... $ac_c" 1>&6
29bd52c8 8406echo "configure:8407: checking for floorl declaration" >&5
38bd7296 8407 cat > conftest.$ac_ext <<EOF
29bd52c8 8408#line 8409 "configure"
38bd7296
BK
8409#include "confdefs.h"
8410#include <math.h>
8411int main() {
8412 floorl(0);
8413; return 0; }
8414EOF
29bd52c8 8415if { (eval echo configure:8416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8416 rm -rf conftest*
8417 use_floorl=yes
8418else
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 rm -rf conftest*
8422 use_floorl=no
8423fi
8424rm -f conftest*
8425 echo "$ac_t""$use_floorl" 1>&6
8426 ac_ext=c
8427# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8428ac_cpp='$CPP $CPPFLAGS'
8429ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8430ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8431cross_compiling=$ac_cv_prog_cc_cross
8432
8433 if test x$use_floorl = x"yes"; then
8434 for ac_func in floorl
8435do
8436echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8437echo "configure:8438: checking for $ac_func" >&5
38bd7296
BK
8438if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8440else
8441 cat > conftest.$ac_ext <<EOF
29bd52c8 8442#line 8443 "configure"
38bd7296
BK
8443#include "confdefs.h"
8444/* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func(); below. */
8446#include <assert.h>
8447/* Override any gcc2 internal prototype to avoid an error. */
8448/* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450char $ac_func();
8451
8452int main() {
8453
8454/* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8458choke me
8459#else
8460$ac_func();
8461#endif
8462
8463; return 0; }
8464EOF
29bd52c8 8465if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8466 rm -rf conftest*
8467 eval "ac_cv_func_$ac_func=yes"
8468else
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 rm -rf conftest*
8472 eval "ac_cv_func_$ac_func=no"
8473fi
8474rm -f conftest*
8475fi
8476
8477if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8480 cat >> confdefs.h <<EOF
8481#define $ac_tr_func 1
8482EOF
8483
8484else
8485 echo "$ac_t""no" 1>&6
8486fi
8487done
8488
8489 fi
8490
8491
8492
8493 ac_ext=C
8494# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8495ac_cpp='$CXXCPP $CPPFLAGS'
8496ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8497ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8498cross_compiling=$ac_cv_prog_cxx_cross
8499
8500 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
29bd52c8 8501echo "configure:8502: checking for fmodl declaration" >&5
38bd7296 8502 cat > conftest.$ac_ext <<EOF
29bd52c8 8503#line 8504 "configure"
38bd7296
BK
8504#include "confdefs.h"
8505#include <math.h>
8506int main() {
8507 fmodl(0, 0);
8508; return 0; }
8509EOF
29bd52c8 8510if { (eval echo configure:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8511 rm -rf conftest*
8512 use_fmodl=yes
8513else
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 rm -rf conftest*
8517 use_fmodl=no
8518fi
8519rm -f conftest*
8520 echo "$ac_t""$use_fmodl" 1>&6
8521 ac_ext=c
8522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8523ac_cpp='$CPP $CPPFLAGS'
8524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8525ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8526cross_compiling=$ac_cv_prog_cc_cross
8527
8528 if test x$use_fmodl = x"yes"; then
8529 for ac_func in fmodl
8530do
8531echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8532echo "configure:8533: checking for $ac_func" >&5
38bd7296
BK
8533if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8535else
8536 cat > conftest.$ac_ext <<EOF
29bd52c8 8537#line 8538 "configure"
38bd7296
BK
8538#include "confdefs.h"
8539/* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char $ac_func(); below. */
8541#include <assert.h>
8542/* Override any gcc2 internal prototype to avoid an error. */
8543/* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8545char $ac_func();
8546
8547int main() {
8548
8549/* The GNU C library defines this for functions which it implements
8550 to always fail with ENOSYS. Some functions are actually named
8551 something starting with __ and the normal name is an alias. */
8552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8553choke me
8554#else
8555$ac_func();
8556#endif
8557
8558; return 0; }
8559EOF
29bd52c8 8560if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8561 rm -rf conftest*
8562 eval "ac_cv_func_$ac_func=yes"
8563else
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8566 rm -rf conftest*
8567 eval "ac_cv_func_$ac_func=no"
8568fi
8569rm -f conftest*
8570fi
8571
8572if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8573 echo "$ac_t""yes" 1>&6
8574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8575 cat >> confdefs.h <<EOF
8576#define $ac_tr_func 1
8577EOF
8578
8579else
8580 echo "$ac_t""no" 1>&6
8581fi
8582done
8583
8584 fi
8585
8586
8587
8588 ac_ext=C
8589# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8590ac_cpp='$CXXCPP $CPPFLAGS'
8591ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8592ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8593cross_compiling=$ac_cv_prog_cxx_cross
8594
8595 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
29bd52c8 8596echo "configure:8597: checking for frexpl declaration" >&5
38bd7296 8597 cat > conftest.$ac_ext <<EOF
29bd52c8 8598#line 8599 "configure"
38bd7296
BK
8599#include "confdefs.h"
8600#include <math.h>
8601int main() {
8602 frexpl(0, 0);
8603; return 0; }
8604EOF
29bd52c8 8605if { (eval echo configure:8606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8606 rm -rf conftest*
8607 use_frexpl=yes
8608else
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8611 rm -rf conftest*
8612 use_frexpl=no
8613fi
8614rm -f conftest*
8615 echo "$ac_t""$use_frexpl" 1>&6
8616 ac_ext=c
8617# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8618ac_cpp='$CPP $CPPFLAGS'
8619ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8620ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8621cross_compiling=$ac_cv_prog_cc_cross
8622
8623 if test x$use_frexpl = x"yes"; then
8624 for ac_func in frexpl
8625do
8626echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8627echo "configure:8628: checking for $ac_func" >&5
38bd7296
BK
8628if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630else
8631 cat > conftest.$ac_ext <<EOF
29bd52c8 8632#line 8633 "configure"
38bd7296
BK
8633#include "confdefs.h"
8634/* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func(); below. */
8636#include <assert.h>
8637/* Override any gcc2 internal prototype to avoid an error. */
8638/* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640char $ac_func();
8641
8642int main() {
8643
8644/* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648choke me
8649#else
8650$ac_func();
8651#endif
8652
8653; return 0; }
8654EOF
29bd52c8 8655if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8656 rm -rf conftest*
8657 eval "ac_cv_func_$ac_func=yes"
8658else
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=no"
8663fi
8664rm -f conftest*
8665fi
8666
8667if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8670 cat >> confdefs.h <<EOF
8671#define $ac_tr_func 1
8672EOF
8673
8674else
8675 echo "$ac_t""no" 1>&6
8676fi
8677done
8678
8679 fi
8680
8681
8682
8683 ac_ext=C
8684# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8685ac_cpp='$CXXCPP $CPPFLAGS'
8686ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8687ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8688cross_compiling=$ac_cv_prog_cxx_cross
8689
8690 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
29bd52c8 8691echo "configure:8692: checking for ldexpl declaration" >&5
38bd7296 8692 cat > conftest.$ac_ext <<EOF
29bd52c8 8693#line 8694 "configure"
38bd7296
BK
8694#include "confdefs.h"
8695#include <math.h>
8696int main() {
8697 ldexpl(0, 0);
8698; return 0; }
8699EOF
29bd52c8 8700if { (eval echo configure:8701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8701 rm -rf conftest*
8702 use_ldexpl=yes
8703else
8704 echo "configure: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8706 rm -rf conftest*
8707 use_ldexpl=no
8708fi
8709rm -f conftest*
8710 echo "$ac_t""$use_ldexpl" 1>&6
8711 ac_ext=c
8712# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8713ac_cpp='$CPP $CPPFLAGS'
8714ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8715ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8716cross_compiling=$ac_cv_prog_cc_cross
8717
8718 if test x$use_ldexpl = x"yes"; then
8719 for ac_func in ldexpl
8720do
8721echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8722echo "configure:8723: checking for $ac_func" >&5
38bd7296
BK
8723if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8725else
8726 cat > conftest.$ac_ext <<EOF
29bd52c8 8727#line 8728 "configure"
38bd7296
BK
8728#include "confdefs.h"
8729/* System header to define __stub macros and hopefully few prototypes,
8730 which can conflict with char $ac_func(); below. */
8731#include <assert.h>
8732/* Override any gcc2 internal prototype to avoid an error. */
8733/* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735char $ac_func();
8736
8737int main() {
8738
8739/* The GNU C library defines this for functions which it implements
8740 to always fail with ENOSYS. Some functions are actually named
8741 something starting with __ and the normal name is an alias. */
8742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743choke me
8744#else
8745$ac_func();
8746#endif
8747
8748; return 0; }
8749EOF
29bd52c8 8750if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8751 rm -rf conftest*
8752 eval "ac_cv_func_$ac_func=yes"
8753else
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 rm -rf conftest*
8757 eval "ac_cv_func_$ac_func=no"
8758fi
8759rm -f conftest*
8760fi
8761
8762if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8763 echo "$ac_t""yes" 1>&6
8764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8765 cat >> confdefs.h <<EOF
8766#define $ac_tr_func 1
8767EOF
8768
8769else
8770 echo "$ac_t""no" 1>&6
8771fi
8772done
8773
8774 fi
8775
8776
8777
8778 ac_ext=C
8779# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8780ac_cpp='$CXXCPP $CPPFLAGS'
8781ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8782ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8783cross_compiling=$ac_cv_prog_cxx_cross
8784
8785 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
29bd52c8 8786echo "configure:8787: checking for logl declaration" >&5
38bd7296 8787 cat > conftest.$ac_ext <<EOF
29bd52c8 8788#line 8789 "configure"
38bd7296
BK
8789#include "confdefs.h"
8790#include <math.h>
8791int main() {
8792 logl(0);
8793; return 0; }
8794EOF
29bd52c8 8795if { (eval echo configure:8796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8796 rm -rf conftest*
8797 use_logl=yes
8798else
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -rf conftest*
8802 use_logl=no
8803fi
8804rm -f conftest*
8805 echo "$ac_t""$use_logl" 1>&6
8806 ac_ext=c
8807# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8808ac_cpp='$CPP $CPPFLAGS'
8809ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8810ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8811cross_compiling=$ac_cv_prog_cc_cross
8812
8813 if test x$use_logl = x"yes"; then
8814 for ac_func in logl
8815do
8816echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8817echo "configure:8818: checking for $ac_func" >&5
38bd7296
BK
8818if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8820else
8821 cat > conftest.$ac_ext <<EOF
29bd52c8 8822#line 8823 "configure"
38bd7296
BK
8823#include "confdefs.h"
8824/* System header to define __stub macros and hopefully few prototypes,
8825 which can conflict with char $ac_func(); below. */
8826#include <assert.h>
8827/* Override any gcc2 internal prototype to avoid an error. */
8828/* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830char $ac_func();
8831
8832int main() {
8833
8834/* The GNU C library defines this for functions which it implements
8835 to always fail with ENOSYS. Some functions are actually named
8836 something starting with __ and the normal name is an alias. */
8837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8838choke me
8839#else
8840$ac_func();
8841#endif
8842
8843; return 0; }
8844EOF
29bd52c8 8845if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8846 rm -rf conftest*
8847 eval "ac_cv_func_$ac_func=yes"
8848else
8849 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 rm -rf conftest*
8852 eval "ac_cv_func_$ac_func=no"
8853fi
8854rm -f conftest*
8855fi
8856
8857if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8858 echo "$ac_t""yes" 1>&6
8859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8860 cat >> confdefs.h <<EOF
8861#define $ac_tr_func 1
8862EOF
8863
8864else
8865 echo "$ac_t""no" 1>&6
8866fi
8867done
8868
8869 fi
8870
8871
8872
8873 ac_ext=C
8874# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8875ac_cpp='$CXXCPP $CPPFLAGS'
8876ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8877ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8878cross_compiling=$ac_cv_prog_cxx_cross
8879
8880 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
29bd52c8 8881echo "configure:8882: checking for log10l declaration" >&5
38bd7296 8882 cat > conftest.$ac_ext <<EOF
29bd52c8 8883#line 8884 "configure"
38bd7296
BK
8884#include "confdefs.h"
8885#include <math.h>
8886int main() {
8887 log10l(0);
8888; return 0; }
8889EOF
29bd52c8 8890if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8891 rm -rf conftest*
8892 use_log10l=yes
8893else
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8896 rm -rf conftest*
8897 use_log10l=no
8898fi
8899rm -f conftest*
8900 echo "$ac_t""$use_log10l" 1>&6
8901 ac_ext=c
8902# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8903ac_cpp='$CPP $CPPFLAGS'
8904ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8905ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8906cross_compiling=$ac_cv_prog_cc_cross
8907
8908 if test x$use_log10l = x"yes"; then
8909 for ac_func in log10l
8910do
8911echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 8912echo "configure:8913: checking for $ac_func" >&5
38bd7296
BK
8913if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8914 echo $ac_n "(cached) $ac_c" 1>&6
8915else
8916 cat > conftest.$ac_ext <<EOF
29bd52c8 8917#line 8918 "configure"
38bd7296
BK
8918#include "confdefs.h"
8919/* System header to define __stub macros and hopefully few prototypes,
8920 which can conflict with char $ac_func(); below. */
8921#include <assert.h>
8922/* Override any gcc2 internal prototype to avoid an error. */
8923/* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8925char $ac_func();
8926
8927int main() {
8928
8929/* The GNU C library defines this for functions which it implements
8930 to always fail with ENOSYS. Some functions are actually named
8931 something starting with __ and the normal name is an alias. */
8932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8933choke me
8934#else
8935$ac_func();
8936#endif
8937
8938; return 0; }
8939EOF
29bd52c8 8940if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8941 rm -rf conftest*
8942 eval "ac_cv_func_$ac_func=yes"
8943else
8944 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 rm -rf conftest*
8947 eval "ac_cv_func_$ac_func=no"
8948fi
8949rm -f conftest*
8950fi
8951
8952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8953 echo "$ac_t""yes" 1>&6
8954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8955 cat >> confdefs.h <<EOF
8956#define $ac_tr_func 1
8957EOF
8958
8959else
8960 echo "$ac_t""no" 1>&6
8961fi
8962done
8963
8964 fi
8965
8966
8967
8968 ac_ext=C
8969# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8970ac_cpp='$CXXCPP $CPPFLAGS'
8971ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8972ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8973cross_compiling=$ac_cv_prog_cxx_cross
8974
8975 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
29bd52c8 8976echo "configure:8977: checking for modfl declaration" >&5
38bd7296 8977 cat > conftest.$ac_ext <<EOF
29bd52c8 8978#line 8979 "configure"
38bd7296
BK
8979#include "confdefs.h"
8980#include <math.h>
8981int main() {
8982 modfl(0, 0);
8983; return 0; }
8984EOF
29bd52c8 8985if { (eval echo configure:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
8986 rm -rf conftest*
8987 use_modfl=yes
8988else
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8991 rm -rf conftest*
8992 use_modfl=no
8993fi
8994rm -f conftest*
8995 echo "$ac_t""$use_modfl" 1>&6
8996 ac_ext=c
8997# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8998ac_cpp='$CPP $CPPFLAGS'
8999ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9000ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9001cross_compiling=$ac_cv_prog_cc_cross
9002
9003 if test x$use_modfl = x"yes"; then
9004 for ac_func in modfl
9005do
9006echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9007echo "configure:9008: checking for $ac_func" >&5
38bd7296
BK
9008if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010else
9011 cat > conftest.$ac_ext <<EOF
29bd52c8 9012#line 9013 "configure"
38bd7296
BK
9013#include "confdefs.h"
9014/* System header to define __stub macros and hopefully few prototypes,
9015 which can conflict with char $ac_func(); below. */
9016#include <assert.h>
9017/* Override any gcc2 internal prototype to avoid an error. */
9018/* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020char $ac_func();
9021
9022int main() {
9023
9024/* The GNU C library defines this for functions which it implements
9025 to always fail with ENOSYS. Some functions are actually named
9026 something starting with __ and the normal name is an alias. */
9027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9028choke me
9029#else
9030$ac_func();
9031#endif
9032
9033; return 0; }
9034EOF
29bd52c8 9035if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9036 rm -rf conftest*
9037 eval "ac_cv_func_$ac_func=yes"
9038else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 rm -rf conftest*
9042 eval "ac_cv_func_$ac_func=no"
9043fi
9044rm -f conftest*
9045fi
9046
9047if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
9049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9050 cat >> confdefs.h <<EOF
9051#define $ac_tr_func 1
9052EOF
9053
9054else
9055 echo "$ac_t""no" 1>&6
9056fi
9057done
9058
9059 fi
9060
9061
9062
9063 ac_ext=C
9064# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9065ac_cpp='$CXXCPP $CPPFLAGS'
9066ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9067ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9068cross_compiling=$ac_cv_prog_cxx_cross
9069
9070 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
29bd52c8 9071echo "configure:9072: checking for powl declaration" >&5
38bd7296 9072 cat > conftest.$ac_ext <<EOF
29bd52c8 9073#line 9074 "configure"
38bd7296
BK
9074#include "confdefs.h"
9075#include <math.h>
9076int main() {
9077 powl(0, 0);
9078; return 0; }
9079EOF
29bd52c8 9080if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9081 rm -rf conftest*
9082 use_powl=yes
9083else
9084 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 rm -rf conftest*
9087 use_powl=no
9088fi
9089rm -f conftest*
9090 echo "$ac_t""$use_powl" 1>&6
9091 ac_ext=c
9092# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9093ac_cpp='$CPP $CPPFLAGS'
9094ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9095ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9096cross_compiling=$ac_cv_prog_cc_cross
9097
9098 if test x$use_powl = x"yes"; then
9099 for ac_func in powl
9100do
9101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9102echo "configure:9103: checking for $ac_func" >&5
38bd7296
BK
9103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9105else
9106 cat > conftest.$ac_ext <<EOF
29bd52c8 9107#line 9108 "configure"
38bd7296
BK
9108#include "confdefs.h"
9109/* System header to define __stub macros and hopefully few prototypes,
9110 which can conflict with char $ac_func(); below. */
9111#include <assert.h>
9112/* Override any gcc2 internal prototype to avoid an error. */
9113/* We use char because int might match the return type of a gcc2
9114 builtin and then its argument prototype would still apply. */
9115char $ac_func();
9116
9117int main() {
9118
9119/* The GNU C library defines this for functions which it implements
9120 to always fail with ENOSYS. Some functions are actually named
9121 something starting with __ and the normal name is an alias. */
9122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9123choke me
9124#else
9125$ac_func();
9126#endif
9127
9128; return 0; }
9129EOF
29bd52c8 9130if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9131 rm -rf conftest*
9132 eval "ac_cv_func_$ac_func=yes"
9133else
9134 echo "configure: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9136 rm -rf conftest*
9137 eval "ac_cv_func_$ac_func=no"
9138fi
9139rm -f conftest*
9140fi
9141
9142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9143 echo "$ac_t""yes" 1>&6
9144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9145 cat >> confdefs.h <<EOF
9146#define $ac_tr_func 1
9147EOF
9148
9149else
9150 echo "$ac_t""no" 1>&6
9151fi
9152done
9153
9154 fi
9155
9156
9157
9158 ac_ext=C
9159# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9160ac_cpp='$CXXCPP $CPPFLAGS'
9161ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9162ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9163cross_compiling=$ac_cv_prog_cxx_cross
9164
9165 echo $ac_n "checking for sinl declaration""... $ac_c" 1>&6
29bd52c8 9166echo "configure:9167: checking for sinl declaration" >&5
38bd7296 9167 cat > conftest.$ac_ext <<EOF
29bd52c8 9168#line 9169 "configure"
38bd7296
BK
9169#include "confdefs.h"
9170#include <math.h>
9171int main() {
11fc1858 9172 sinl(0);
38bd7296
BK
9173; return 0; }
9174EOF
29bd52c8 9175if { (eval echo configure:9176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9176 rm -rf conftest*
9177 use_sinl=yes
9178else
9179 echo "configure: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 rm -rf conftest*
9182 use_sinl=no
9183fi
9184rm -f conftest*
9185 echo "$ac_t""$use_sinl" 1>&6
9186 ac_ext=c
9187# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9188ac_cpp='$CPP $CPPFLAGS'
9189ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9190ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9191cross_compiling=$ac_cv_prog_cc_cross
9192
9193 if test x$use_sinl = x"yes"; then
9194 for ac_func in sinl
9195do
9196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9197echo "configure:9198: checking for $ac_func" >&5
38bd7296
BK
9198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9200else
9201 cat > conftest.$ac_ext <<EOF
29bd52c8 9202#line 9203 "configure"
38bd7296
BK
9203#include "confdefs.h"
9204/* System header to define __stub macros and hopefully few prototypes,
9205 which can conflict with char $ac_func(); below. */
9206#include <assert.h>
9207/* Override any gcc2 internal prototype to avoid an error. */
9208/* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9210char $ac_func();
9211
9212int main() {
9213
9214/* The GNU C library defines this for functions which it implements
9215 to always fail with ENOSYS. Some functions are actually named
9216 something starting with __ and the normal name is an alias. */
9217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218choke me
9219#else
9220$ac_func();
9221#endif
9222
9223; return 0; }
9224EOF
29bd52c8 9225if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9226 rm -rf conftest*
9227 eval "ac_cv_func_$ac_func=yes"
9228else
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9231 rm -rf conftest*
9232 eval "ac_cv_func_$ac_func=no"
9233fi
9234rm -f conftest*
9235fi
9236
9237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9238 echo "$ac_t""yes" 1>&6
9239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9240 cat >> confdefs.h <<EOF
9241#define $ac_tr_func 1
9242EOF
9243
9244else
9245 echo "$ac_t""no" 1>&6
9246fi
9247done
9248
9249 fi
9250
9251
9252
9253 ac_ext=C
9254# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9255ac_cpp='$CXXCPP $CPPFLAGS'
9256ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9257ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9258cross_compiling=$ac_cv_prog_cxx_cross
9259
9260 echo $ac_n "checking for sinhl declaration""... $ac_c" 1>&6
29bd52c8 9261echo "configure:9262: checking for sinhl declaration" >&5
38bd7296 9262 cat > conftest.$ac_ext <<EOF
29bd52c8 9263#line 9264 "configure"
38bd7296
BK
9264#include "confdefs.h"
9265#include <math.h>
9266int main() {
9267 sinhl(0);
9268; return 0; }
9269EOF
29bd52c8 9270if { (eval echo configure:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9271 rm -rf conftest*
9272 use_sinhl=yes
9273else
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9276 rm -rf conftest*
9277 use_sinhl=no
9278fi
9279rm -f conftest*
9280 echo "$ac_t""$use_sinhl" 1>&6
9281 ac_ext=c
9282# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9283ac_cpp='$CPP $CPPFLAGS'
9284ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9285ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9286cross_compiling=$ac_cv_prog_cc_cross
9287
9288 if test x$use_sinhl = x"yes"; then
9289 for ac_func in sinhl
9290do
9291echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9292echo "configure:9293: checking for $ac_func" >&5
38bd7296
BK
9293if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9295else
9296 cat > conftest.$ac_ext <<EOF
29bd52c8 9297#line 9298 "configure"
38bd7296
BK
9298#include "confdefs.h"
9299/* System header to define __stub macros and hopefully few prototypes,
9300 which can conflict with char $ac_func(); below. */
9301#include <assert.h>
9302/* Override any gcc2 internal prototype to avoid an error. */
9303/* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305char $ac_func();
9306
9307int main() {
9308
9309/* The GNU C library defines this for functions which it implements
9310 to always fail with ENOSYS. Some functions are actually named
9311 something starting with __ and the normal name is an alias. */
9312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9313choke me
9314#else
9315$ac_func();
9316#endif
9317
9318; return 0; }
9319EOF
29bd52c8 9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9321 rm -rf conftest*
9322 eval "ac_cv_func_$ac_func=yes"
9323else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -rf conftest*
9327 eval "ac_cv_func_$ac_func=no"
9328fi
9329rm -f conftest*
9330fi
9331
9332if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9333 echo "$ac_t""yes" 1>&6
9334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9335 cat >> confdefs.h <<EOF
9336#define $ac_tr_func 1
9337EOF
9338
9339else
9340 echo "$ac_t""no" 1>&6
9341fi
9342done
9343
9344 fi
9345
9346
9347
9348 ac_ext=C
9349# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9350ac_cpp='$CXXCPP $CPPFLAGS'
9351ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9352ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9353cross_compiling=$ac_cv_prog_cxx_cross
9354
9355 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
29bd52c8 9356echo "configure:9357: checking for sqrtl declaration" >&5
38bd7296 9357 cat > conftest.$ac_ext <<EOF
29bd52c8 9358#line 9359 "configure"
38bd7296
BK
9359#include "confdefs.h"
9360#include <math.h>
9361int main() {
9362 sqrtl(0);
9363; return 0; }
9364EOF
29bd52c8 9365if { (eval echo configure:9366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9366 rm -rf conftest*
9367 use_sqrtl=yes
9368else
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 rm -rf conftest*
9372 use_sqrtl=no
9373fi
9374rm -f conftest*
9375 echo "$ac_t""$use_sqrtl" 1>&6
9376 ac_ext=c
9377# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9378ac_cpp='$CPP $CPPFLAGS'
9379ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9380ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9381cross_compiling=$ac_cv_prog_cc_cross
9382
9383 if test x$use_sqrtl = x"yes"; then
9384 for ac_func in sqrtl
9385do
9386echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9387echo "configure:9388: checking for $ac_func" >&5
38bd7296
BK
9388if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390else
9391 cat > conftest.$ac_ext <<EOF
29bd52c8 9392#line 9393 "configure"
38bd7296
BK
9393#include "confdefs.h"
9394/* System header to define __stub macros and hopefully few prototypes,
9395 which can conflict with char $ac_func(); below. */
9396#include <assert.h>
9397/* Override any gcc2 internal prototype to avoid an error. */
9398/* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400char $ac_func();
9401
9402int main() {
9403
9404/* The GNU C library defines this for functions which it implements
9405 to always fail with ENOSYS. Some functions are actually named
9406 something starting with __ and the normal name is an alias. */
9407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9408choke me
9409#else
9410$ac_func();
9411#endif
9412
9413; return 0; }
9414EOF
29bd52c8 9415if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9416 rm -rf conftest*
9417 eval "ac_cv_func_$ac_func=yes"
9418else
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 eval "ac_cv_func_$ac_func=no"
9423fi
9424rm -f conftest*
9425fi
9426
9427if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9428 echo "$ac_t""yes" 1>&6
9429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9430 cat >> confdefs.h <<EOF
9431#define $ac_tr_func 1
9432EOF
9433
9434else
9435 echo "$ac_t""no" 1>&6
9436fi
9437done
9438
9439 fi
9440
9441
9442
9443 ac_ext=C
9444# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9445ac_cpp='$CXXCPP $CPPFLAGS'
9446ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9447ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9448cross_compiling=$ac_cv_prog_cxx_cross
9449
9450 echo $ac_n "checking for tanl declaration""... $ac_c" 1>&6
29bd52c8 9451echo "configure:9452: checking for tanl declaration" >&5
38bd7296 9452 cat > conftest.$ac_ext <<EOF
29bd52c8 9453#line 9454 "configure"
38bd7296
BK
9454#include "confdefs.h"
9455#include <math.h>
9456int main() {
9457 tanl(0);
9458; return 0; }
9459EOF
29bd52c8 9460if { (eval echo configure:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9461 rm -rf conftest*
9462 use_tanl=yes
9463else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 use_tanl=no
9468fi
9469rm -f conftest*
9470 echo "$ac_t""$use_tanl" 1>&6
9471 ac_ext=c
9472# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9473ac_cpp='$CPP $CPPFLAGS'
9474ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9475ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9476cross_compiling=$ac_cv_prog_cc_cross
9477
9478 if test x$use_tanl = x"yes"; then
9479 for ac_func in tanl
9480do
9481echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9482echo "configure:9483: checking for $ac_func" >&5
38bd7296
BK
9483if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9485else
9486 cat > conftest.$ac_ext <<EOF
29bd52c8 9487#line 9488 "configure"
38bd7296
BK
9488#include "confdefs.h"
9489/* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char $ac_func(); below. */
9491#include <assert.h>
9492/* Override any gcc2 internal prototype to avoid an error. */
9493/* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495char $ac_func();
9496
9497int main() {
9498
9499/* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503choke me
9504#else
9505$ac_func();
9506#endif
9507
9508; return 0; }
9509EOF
29bd52c8 9510if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9511 rm -rf conftest*
9512 eval "ac_cv_func_$ac_func=yes"
9513else
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -rf conftest*
9517 eval "ac_cv_func_$ac_func=no"
9518fi
9519rm -f conftest*
9520fi
9521
9522if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9525 cat >> confdefs.h <<EOF
9526#define $ac_tr_func 1
9527EOF
9528
9529else
9530 echo "$ac_t""no" 1>&6
9531fi
9532done
9533
9534 fi
9535
9536
9537
9538 ac_ext=C
9539# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9540ac_cpp='$CXXCPP $CPPFLAGS'
9541ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9542ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9543cross_compiling=$ac_cv_prog_cxx_cross
9544
9545 echo $ac_n "checking for tanhl declaration""... $ac_c" 1>&6
29bd52c8 9546echo "configure:9547: checking for tanhl declaration" >&5
38bd7296 9547 cat > conftest.$ac_ext <<EOF
29bd52c8 9548#line 9549 "configure"
38bd7296
BK
9549#include "confdefs.h"
9550#include <math.h>
9551int main() {
9552 tanhl(0);
9553; return 0; }
9554EOF
29bd52c8 9555if { (eval echo configure:9556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9556 rm -rf conftest*
9557 use_tanhl=yes
9558else
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 rm -rf conftest*
9562 use_tanhl=no
9563fi
9564rm -f conftest*
9565 echo "$ac_t""$use_tanhl" 1>&6
9566 ac_ext=c
9567# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9568ac_cpp='$CPP $CPPFLAGS'
9569ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9570ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9571cross_compiling=$ac_cv_prog_cc_cross
9572
9573 if test x$use_tanhl = x"yes"; then
9574 for ac_func in tanhl
9575do
9576echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9577echo "configure:9578: checking for $ac_func" >&5
38bd7296
BK
9578if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580else
9581 cat > conftest.$ac_ext <<EOF
29bd52c8 9582#line 9583 "configure"
38bd7296
BK
9583#include "confdefs.h"
9584/* System header to define __stub macros and hopefully few prototypes,
9585 which can conflict with char $ac_func(); below. */
9586#include <assert.h>
9587/* Override any gcc2 internal prototype to avoid an error. */
9588/* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590char $ac_func();
9591
9592int main() {
9593
9594/* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9598choke me
9599#else
9600$ac_func();
9601#endif
9602
9603; return 0; }
9604EOF
29bd52c8 9605if { (eval echo configure:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9606 rm -rf conftest*
9607 eval "ac_cv_func_$ac_func=yes"
9608else
9609 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 rm -rf conftest*
9612 eval "ac_cv_func_$ac_func=no"
9613fi
9614rm -f conftest*
9615fi
9616
9617if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9618 echo "$ac_t""yes" 1>&6
9619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9620 cat >> confdefs.h <<EOF
9621#define $ac_tr_func 1
9622EOF
9623
9624else
9625 echo "$ac_t""no" 1>&6
9626fi
9627done
9628
9629 fi
9630
9631
9632
9633 ac_ext=C
9634# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9635ac_cpp='$CXXCPP $CPPFLAGS'
9636ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9637ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9638cross_compiling=$ac_cv_prog_cxx_cross
9639
9640 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
29bd52c8 9641echo "configure:9642: checking for sincosl declaration" >&5
38bd7296 9642 cat > conftest.$ac_ext <<EOF
29bd52c8 9643#line 9644 "configure"
38bd7296
BK
9644#include "confdefs.h"
9645#include <math.h>
9646int main() {
9647 sincosl(0, 0, 0);
9648; return 0; }
9649EOF
29bd52c8 9650if { (eval echo configure:9651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9651 rm -rf conftest*
9652 use_sincosl=yes
9653else
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 use_sincosl=no
9658fi
9659rm -f conftest*
9660 echo "$ac_t""$use_sincosl" 1>&6
9661 ac_ext=c
9662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9663ac_cpp='$CPP $CPPFLAGS'
9664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9666cross_compiling=$ac_cv_prog_cc_cross
9667
9668 if test x$use_sincosl = x"yes"; then
9669 for ac_func in sincosl
9670do
9671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9672echo "configure:9673: checking for $ac_func" >&5
38bd7296
BK
9673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9674 echo $ac_n "(cached) $ac_c" 1>&6
9675else
9676 cat > conftest.$ac_ext <<EOF
29bd52c8 9677#line 9678 "configure"
38bd7296
BK
9678#include "confdefs.h"
9679/* System header to define __stub macros and hopefully few prototypes,
9680 which can conflict with char $ac_func(); below. */
9681#include <assert.h>
9682/* Override any gcc2 internal prototype to avoid an error. */
9683/* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9685char $ac_func();
9686
9687int main() {
9688
9689/* The GNU C library defines this for functions which it implements
9690 to always fail with ENOSYS. Some functions are actually named
9691 something starting with __ and the normal name is an alias. */
9692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9693choke me
9694#else
9695$ac_func();
9696#endif
9697
9698; return 0; }
9699EOF
29bd52c8 9700if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9701 rm -rf conftest*
9702 eval "ac_cv_func_$ac_func=yes"
9703else
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -rf conftest*
9707 eval "ac_cv_func_$ac_func=no"
9708fi
9709rm -f conftest*
9710fi
9711
9712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9713 echo "$ac_t""yes" 1>&6
9714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9715 cat >> confdefs.h <<EOF
9716#define $ac_tr_func 1
9717EOF
9718
9719else
9720 echo "$ac_t""no" 1>&6
9721fi
9722done
9723
9724 fi
9725
9726
9727
9728 ac_ext=C
9729# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9730ac_cpp='$CXXCPP $CPPFLAGS'
9731ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9732ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9733cross_compiling=$ac_cv_prog_cxx_cross
9734
9735 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
29bd52c8 9736echo "configure:9737: checking for finitel declaration" >&5
38bd7296 9737 cat > conftest.$ac_ext <<EOF
29bd52c8 9738#line 9739 "configure"
38bd7296
BK
9739#include "confdefs.h"
9740#include <math.h>
9741int main() {
9742 finitel(0);
9743; return 0; }
9744EOF
29bd52c8 9745if { (eval echo configure:9746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9746 rm -rf conftest*
9747 use_finitel=yes
9748else
9749 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 rm -rf conftest*
9752 use_finitel=no
9753fi
9754rm -f conftest*
9755 echo "$ac_t""$use_finitel" 1>&6
9756 ac_ext=c
9757# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9758ac_cpp='$CPP $CPPFLAGS'
9759ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9760ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9761cross_compiling=$ac_cv_prog_cc_cross
9762
9763 if test x$use_finitel = x"yes"; then
9764 for ac_func in finitel
9765do
9766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9767echo "configure:9768: checking for $ac_func" >&5
38bd7296
BK
9768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770else
9771 cat > conftest.$ac_ext <<EOF
29bd52c8 9772#line 9773 "configure"
38bd7296
BK
9773#include "confdefs.h"
9774/* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9776#include <assert.h>
9777/* Override any gcc2 internal prototype to avoid an error. */
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char $ac_func();
9781
9782int main() {
9783
9784/* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788choke me
9789#else
9790$ac_func();
9791#endif
9792
9793; return 0; }
9794EOF
29bd52c8 9795if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9796 rm -rf conftest*
9797 eval "ac_cv_func_$ac_func=yes"
9798else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 eval "ac_cv_func_$ac_func=no"
9803fi
9804rm -f conftest*
9805fi
9806
9807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h <<EOF
9811#define $ac_tr_func 1
9812EOF
9813
9814else
9815 echo "$ac_t""no" 1>&6
9816fi
9817done
9818
9819 fi
9820
9821
9822
9823
9824 ac_ext=C
9825# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9826ac_cpp='$CXXCPP $CPPFLAGS'
9827ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9828ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9829cross_compiling=$ac_cv_prog_cxx_cross
9830
9831 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
29bd52c8 9832echo "configure:9833: checking for _isinf declaration" >&5
38bd7296 9833 cat > conftest.$ac_ext <<EOF
29bd52c8 9834#line 9835 "configure"
38bd7296
BK
9835#include "confdefs.h"
9836#include <math.h>
9837int main() {
9838 _isinf(0);
9839; return 0; }
9840EOF
29bd52c8 9841if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9842 rm -rf conftest*
9843 use__isinf=yes
9844else
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9847 rm -rf conftest*
9848 use__isinf=no
9849fi
9850rm -f conftest*
9851 echo "$ac_t""$use__isinf" 1>&6
9852 ac_ext=c
9853# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9854ac_cpp='$CPP $CPPFLAGS'
9855ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9856ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9857cross_compiling=$ac_cv_prog_cc_cross
9858
9859 if test x$use__isinf = x"yes"; then
9860 for ac_func in _isinf
9861do
9862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9863echo "configure:9864: checking for $ac_func" >&5
38bd7296
BK
9864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9866else
9867 cat > conftest.$ac_ext <<EOF
29bd52c8 9868#line 9869 "configure"
38bd7296
BK
9869#include "confdefs.h"
9870/* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char $ac_func(); below. */
9872#include <assert.h>
9873/* Override any gcc2 internal prototype to avoid an error. */
9874/* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876char $ac_func();
9877
9878int main() {
9879
9880/* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9884choke me
9885#else
9886$ac_func();
9887#endif
9888
9889; return 0; }
9890EOF
29bd52c8 9891if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9892 rm -rf conftest*
9893 eval "ac_cv_func_$ac_func=yes"
9894else
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 rm -rf conftest*
9898 eval "ac_cv_func_$ac_func=no"
9899fi
9900rm -f conftest*
9901fi
9902
9903if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9906 cat >> confdefs.h <<EOF
9907#define $ac_tr_func 1
9908EOF
9909
9910else
9911 echo "$ac_t""no" 1>&6
9912fi
9913done
9914
9915 fi
9916
9917
9918
9919 ac_ext=C
9920# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921ac_cpp='$CXXCPP $CPPFLAGS'
9922ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924cross_compiling=$ac_cv_prog_cxx_cross
9925
9926 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
29bd52c8 9927echo "configure:9928: checking for _isnan declaration" >&5
38bd7296 9928 cat > conftest.$ac_ext <<EOF
29bd52c8 9929#line 9930 "configure"
38bd7296
BK
9930#include "confdefs.h"
9931#include <math.h>
9932int main() {
9933 _isnan(0);
9934; return 0; }
9935EOF
29bd52c8 9936if { (eval echo configure:9937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
9937 rm -rf conftest*
9938 use__isnan=yes
9939else
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 rm -rf conftest*
9943 use__isnan=no
9944fi
9945rm -f conftest*
9946 echo "$ac_t""$use__isnan" 1>&6
9947 ac_ext=c
9948# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9949ac_cpp='$CPP $CPPFLAGS'
9950ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9951ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9952cross_compiling=$ac_cv_prog_cc_cross
9953
9954 if test x$use__isnan = x"yes"; then
9955 for ac_func in _isnan
9956do
9957echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 9958echo "configure:9959: checking for $ac_func" >&5
38bd7296
BK
9959if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9961else
9962 cat > conftest.$ac_ext <<EOF
29bd52c8 9963#line 9964 "configure"
38bd7296
BK
9964#include "confdefs.h"
9965/* System header to define __stub macros and hopefully few prototypes,
9966 which can conflict with char $ac_func(); below. */
9967#include <assert.h>
9968/* Override any gcc2 internal prototype to avoid an error. */
9969/* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9971char $ac_func();
9972
9973int main() {
9974
9975/* The GNU C library defines this for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9979choke me
9980#else
9981$ac_func();
9982#endif
9983
9984; return 0; }
9985EOF
29bd52c8 9986if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9987 rm -rf conftest*
9988 eval "ac_cv_func_$ac_func=yes"
9989else
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_func_$ac_func=no"
9994fi
9995rm -f conftest*
9996fi
9997
9998if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9999 echo "$ac_t""yes" 1>&6
10000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10001 cat >> confdefs.h <<EOF
10002#define $ac_tr_func 1
10003EOF
10004
10005else
10006 echo "$ac_t""no" 1>&6
10007fi
10008done
10009
10010 fi
10011
10012
10013
10014 ac_ext=C
10015# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016ac_cpp='$CXXCPP $CPPFLAGS'
10017ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019cross_compiling=$ac_cv_prog_cxx_cross
10020
10021 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
29bd52c8 10022echo "configure:10023: checking for _finite declaration" >&5
38bd7296 10023 cat > conftest.$ac_ext <<EOF
29bd52c8 10024#line 10025 "configure"
38bd7296
BK
10025#include "confdefs.h"
10026#include <math.h>
10027int main() {
10028 _finite(0);
10029; return 0; }
10030EOF
29bd52c8 10031if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10032 rm -rf conftest*
10033 use__finite=yes
10034else
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 rm -rf conftest*
10038 use__finite=no
10039fi
10040rm -f conftest*
10041 echo "$ac_t""$use__finite" 1>&6
10042 ac_ext=c
10043# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10044ac_cpp='$CPP $CPPFLAGS'
10045ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10046ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10047cross_compiling=$ac_cv_prog_cc_cross
10048
10049 if test x$use__finite = x"yes"; then
10050 for ac_func in _finite
10051do
10052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10053echo "configure:10054: checking for $ac_func" >&5
38bd7296
BK
10054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10056else
10057 cat > conftest.$ac_ext <<EOF
29bd52c8 10058#line 10059 "configure"
38bd7296
BK
10059#include "confdefs.h"
10060/* System header to define __stub macros and hopefully few prototypes,
10061 which can conflict with char $ac_func(); below. */
10062#include <assert.h>
10063/* Override any gcc2 internal prototype to avoid an error. */
10064/* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066char $ac_func();
10067
10068int main() {
10069
10070/* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074choke me
10075#else
10076$ac_func();
10077#endif
10078
10079; return 0; }
10080EOF
29bd52c8 10081if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10082 rm -rf conftest*
10083 eval "ac_cv_func_$ac_func=yes"
10084else
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10087 rm -rf conftest*
10088 eval "ac_cv_func_$ac_func=no"
10089fi
10090rm -f conftest*
10091fi
10092
10093if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10094 echo "$ac_t""yes" 1>&6
10095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10096 cat >> confdefs.h <<EOF
10097#define $ac_tr_func 1
10098EOF
10099
10100else
10101 echo "$ac_t""no" 1>&6
10102fi
10103done
10104
10105 fi
10106
10107
10108
10109 ac_ext=C
10110# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10111ac_cpp='$CXXCPP $CPPFLAGS'
10112ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10113ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10114cross_compiling=$ac_cv_prog_cxx_cross
10115
10116 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
29bd52c8 10117echo "configure:10118: checking for _copysign declaration" >&5
38bd7296 10118 cat > conftest.$ac_ext <<EOF
29bd52c8 10119#line 10120 "configure"
38bd7296
BK
10120#include "confdefs.h"
10121#include <math.h>
10122int main() {
10123 _copysign(0, 0);
10124; return 0; }
10125EOF
29bd52c8 10126if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10127 rm -rf conftest*
10128 use__copysign=yes
10129else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 use__copysign=no
10134fi
10135rm -f conftest*
10136 echo "$ac_t""$use__copysign" 1>&6
10137 ac_ext=c
10138# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10139ac_cpp='$CPP $CPPFLAGS'
10140ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10141ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10142cross_compiling=$ac_cv_prog_cc_cross
10143
10144 if test x$use__copysign = x"yes"; then
10145 for ac_func in _copysign
10146do
10147echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10148echo "configure:10149: checking for $ac_func" >&5
38bd7296
BK
10149if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10151else
10152 cat > conftest.$ac_ext <<EOF
29bd52c8 10153#line 10154 "configure"
38bd7296
BK
10154#include "confdefs.h"
10155/* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char $ac_func(); below. */
10157#include <assert.h>
10158/* Override any gcc2 internal prototype to avoid an error. */
10159/* We use char because int might match the return type of a gcc2
10160 builtin and then its argument prototype would still apply. */
10161char $ac_func();
10162
10163int main() {
10164
10165/* The GNU C library defines this for functions which it implements
10166 to always fail with ENOSYS. Some functions are actually named
10167 something starting with __ and the normal name is an alias. */
10168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10169choke me
10170#else
10171$ac_func();
10172#endif
10173
10174; return 0; }
10175EOF
29bd52c8 10176if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10177 rm -rf conftest*
10178 eval "ac_cv_func_$ac_func=yes"
10179else
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_func_$ac_func=no"
10184fi
10185rm -f conftest*
10186fi
10187
10188if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10191 cat >> confdefs.h <<EOF
10192#define $ac_tr_func 1
10193EOF
10194
10195else
10196 echo "$ac_t""no" 1>&6
10197fi
10198done
10199
10200 fi
10201
10202
10203
10204 ac_ext=C
10205# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10206ac_cpp='$CXXCPP $CPPFLAGS'
10207ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10208ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10209cross_compiling=$ac_cv_prog_cxx_cross
10210
10211 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
29bd52c8 10212echo "configure:10213: checking for _sincos declaration" >&5
38bd7296 10213 cat > conftest.$ac_ext <<EOF
29bd52c8 10214#line 10215 "configure"
38bd7296
BK
10215#include "confdefs.h"
10216#include <math.h>
10217int main() {
10218 _sincos(0, 0, 0);
10219; return 0; }
10220EOF
29bd52c8 10221if { (eval echo configure:10222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10222 rm -rf conftest*
10223 use__sincos=yes
10224else
10225 echo "configure: failed program was:" >&5
10226 cat conftest.$ac_ext >&5
10227 rm -rf conftest*
10228 use__sincos=no
10229fi
10230rm -f conftest*
10231 echo "$ac_t""$use__sincos" 1>&6
10232 ac_ext=c
10233# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10234ac_cpp='$CPP $CPPFLAGS'
10235ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10236ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10237cross_compiling=$ac_cv_prog_cc_cross
10238
10239 if test x$use__sincos = x"yes"; then
10240 for ac_func in _sincos
10241do
10242echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10243echo "configure:10244: checking for $ac_func" >&5
38bd7296
BK
10244if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10246else
10247 cat > conftest.$ac_ext <<EOF
29bd52c8 10248#line 10249 "configure"
38bd7296
BK
10249#include "confdefs.h"
10250/* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char $ac_func(); below. */
10252#include <assert.h>
10253/* Override any gcc2 internal prototype to avoid an error. */
10254/* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10256char $ac_func();
10257
10258int main() {
10259
10260/* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10264choke me
10265#else
10266$ac_func();
10267#endif
10268
10269; return 0; }
10270EOF
29bd52c8 10271if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10272 rm -rf conftest*
10273 eval "ac_cv_func_$ac_func=yes"
10274else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_func_$ac_func=no"
10279fi
10280rm -f conftest*
10281fi
10282
10283if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10286 cat >> confdefs.h <<EOF
10287#define $ac_tr_func 1
10288EOF
10289
10290else
10291 echo "$ac_t""no" 1>&6
10292fi
10293done
10294
10295 fi
10296
10297
10298
10299 ac_ext=C
10300# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10301ac_cpp='$CXXCPP $CPPFLAGS'
10302ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10303ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10304cross_compiling=$ac_cv_prog_cxx_cross
10305
10306 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
29bd52c8 10307echo "configure:10308: checking for _fpclass declaration" >&5
38bd7296 10308 cat > conftest.$ac_ext <<EOF
29bd52c8 10309#line 10310 "configure"
38bd7296
BK
10310#include "confdefs.h"
10311#include <math.h>
10312int main() {
10313 _fpclass(0);
10314; return 0; }
10315EOF
29bd52c8 10316if { (eval echo configure:10317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10317 rm -rf conftest*
10318 use__fpclass=yes
10319else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -rf conftest*
10323 use__fpclass=no
10324fi
10325rm -f conftest*
10326 echo "$ac_t""$use__fpclass" 1>&6
10327 ac_ext=c
10328# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10329ac_cpp='$CPP $CPPFLAGS'
10330ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10331ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10332cross_compiling=$ac_cv_prog_cc_cross
10333
10334 if test x$use__fpclass = x"yes"; then
10335 for ac_func in _fpclass
10336do
10337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10338echo "configure:10339: checking for $ac_func" >&5
38bd7296
BK
10339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10341else
10342 cat > conftest.$ac_ext <<EOF
29bd52c8 10343#line 10344 "configure"
38bd7296
BK
10344#include "confdefs.h"
10345/* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char $ac_func(); below. */
10347#include <assert.h>
10348/* Override any gcc2 internal prototype to avoid an error. */
10349/* We use char because int might match the return type of a gcc2
10350 builtin and then its argument prototype would still apply. */
10351char $ac_func();
10352
10353int main() {
10354
10355/* The GNU C library defines this for functions which it implements
10356 to always fail with ENOSYS. Some functions are actually named
10357 something starting with __ and the normal name is an alias. */
10358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10359choke me
10360#else
10361$ac_func();
10362#endif
10363
10364; return 0; }
10365EOF
29bd52c8 10366if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10367 rm -rf conftest*
10368 eval "ac_cv_func_$ac_func=yes"
10369else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -rf conftest*
10373 eval "ac_cv_func_$ac_func=no"
10374fi
10375rm -f conftest*
10376fi
10377
10378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10379 echo "$ac_t""yes" 1>&6
10380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10381 cat >> confdefs.h <<EOF
10382#define $ac_tr_func 1
10383EOF
10384
10385else
10386 echo "$ac_t""no" 1>&6
10387fi
10388done
10389
10390 fi
10391
10392
10393
10394 ac_ext=C
10395# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10396ac_cpp='$CXXCPP $CPPFLAGS'
10397ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10398ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10399cross_compiling=$ac_cv_prog_cxx_cross
10400
10401 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
29bd52c8 10402echo "configure:10403: checking for _qfpclass declaration" >&5
38bd7296 10403 cat > conftest.$ac_ext <<EOF
29bd52c8 10404#line 10405 "configure"
38bd7296
BK
10405#include "confdefs.h"
10406#include <math.h>
10407int main() {
10408 _qfpclass(0);
10409; return 0; }
10410EOF
29bd52c8 10411if { (eval echo configure:10412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10412 rm -rf conftest*
10413 use__qfpclass=yes
10414else
10415 echo "configure: failed program was:" >&5
10416 cat conftest.$ac_ext >&5
10417 rm -rf conftest*
10418 use__qfpclass=no
10419fi
10420rm -f conftest*
10421 echo "$ac_t""$use__qfpclass" 1>&6
10422 ac_ext=c
10423# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10424ac_cpp='$CPP $CPPFLAGS'
10425ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10426ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10427cross_compiling=$ac_cv_prog_cc_cross
10428
10429 if test x$use__qfpclass = x"yes"; then
10430 for ac_func in _qfpclass
10431do
10432echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10433echo "configure:10434: checking for $ac_func" >&5
38bd7296
BK
10434if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10436else
10437 cat > conftest.$ac_ext <<EOF
29bd52c8 10438#line 10439 "configure"
38bd7296
BK
10439#include "confdefs.h"
10440/* System header to define __stub macros and hopefully few prototypes,
10441 which can conflict with char $ac_func(); below. */
10442#include <assert.h>
10443/* Override any gcc2 internal prototype to avoid an error. */
10444/* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446char $ac_func();
10447
10448int main() {
10449
10450/* The GNU C library defines this for functions which it implements
10451 to always fail with ENOSYS. Some functions are actually named
10452 something starting with __ and the normal name is an alias. */
10453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10454choke me
10455#else
10456$ac_func();
10457#endif
10458
10459; return 0; }
10460EOF
29bd52c8 10461if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10462 rm -rf conftest*
10463 eval "ac_cv_func_$ac_func=yes"
10464else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 eval "ac_cv_func_$ac_func=no"
10469fi
10470rm -f conftest*
10471fi
10472
10473if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10474 echo "$ac_t""yes" 1>&6
10475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10476 cat >> confdefs.h <<EOF
10477#define $ac_tr_func 1
10478EOF
10479
10480else
10481 echo "$ac_t""no" 1>&6
10482fi
10483done
10484
10485 fi
10486
10487
10488
10489
10490 ac_ext=C
10491# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10492ac_cpp='$CXXCPP $CPPFLAGS'
10493ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10494ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10495cross_compiling=$ac_cv_prog_cxx_cross
10496
10497 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
29bd52c8 10498echo "configure:10499: checking for _isnanf declaration" >&5
38bd7296 10499 cat > conftest.$ac_ext <<EOF
29bd52c8 10500#line 10501 "configure"
38bd7296
BK
10501#include "confdefs.h"
10502#include <math.h>
10503int main() {
10504 _isnanf(0);
10505; return 0; }
10506EOF
29bd52c8 10507if { (eval echo configure:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10508 rm -rf conftest*
10509 use__isnanf=yes
10510else
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 rm -rf conftest*
10514 use__isnanf=no
10515fi
10516rm -f conftest*
10517 echo "$ac_t""$use__isnanf" 1>&6
10518 ac_ext=c
10519# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10520ac_cpp='$CPP $CPPFLAGS'
10521ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10522ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10523cross_compiling=$ac_cv_prog_cc_cross
10524
10525 if test x$use__isnanf = x"yes"; then
10526 for ac_func in _isnanf
10527do
10528echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10529echo "configure:10530: checking for $ac_func" >&5
38bd7296
BK
10530if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10532else
10533 cat > conftest.$ac_ext <<EOF
29bd52c8 10534#line 10535 "configure"
38bd7296
BK
10535#include "confdefs.h"
10536/* System header to define __stub macros and hopefully few prototypes,
10537 which can conflict with char $ac_func(); below. */
10538#include <assert.h>
10539/* Override any gcc2 internal prototype to avoid an error. */
10540/* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10542char $ac_func();
10543
10544int main() {
10545
10546/* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10550choke me
10551#else
10552$ac_func();
10553#endif
10554
10555; return 0; }
10556EOF
29bd52c8 10557if { (eval echo configure:10558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10558 rm -rf conftest*
10559 eval "ac_cv_func_$ac_func=yes"
10560else
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 rm -rf conftest*
10564 eval "ac_cv_func_$ac_func=no"
10565fi
10566rm -f conftest*
10567fi
10568
10569if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10570 echo "$ac_t""yes" 1>&6
10571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10572 cat >> confdefs.h <<EOF
10573#define $ac_tr_func 1
10574EOF
10575
10576else
10577 echo "$ac_t""no" 1>&6
10578fi
10579done
10580
10581 fi
10582
10583
10584
10585 ac_ext=C
10586# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587ac_cpp='$CXXCPP $CPPFLAGS'
10588ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590cross_compiling=$ac_cv_prog_cxx_cross
10591
10592 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
29bd52c8 10593echo "configure:10594: checking for _isinff declaration" >&5
38bd7296 10594 cat > conftest.$ac_ext <<EOF
29bd52c8 10595#line 10596 "configure"
38bd7296
BK
10596#include "confdefs.h"
10597#include <math.h>
10598int main() {
10599 _isinff(0);
10600; return 0; }
10601EOF
29bd52c8 10602if { (eval echo configure:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10603 rm -rf conftest*
10604 use__isinff=yes
10605else
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 rm -rf conftest*
10609 use__isinff=no
10610fi
10611rm -f conftest*
10612 echo "$ac_t""$use__isinff" 1>&6
10613 ac_ext=c
10614# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10615ac_cpp='$CPP $CPPFLAGS'
10616ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10617ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10618cross_compiling=$ac_cv_prog_cc_cross
10619
10620 if test x$use__isinff = x"yes"; then
10621 for ac_func in _isinff
10622do
10623echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10624echo "configure:10625: checking for $ac_func" >&5
38bd7296
BK
10625if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10627else
10628 cat > conftest.$ac_ext <<EOF
29bd52c8 10629#line 10630 "configure"
38bd7296
BK
10630#include "confdefs.h"
10631/* System header to define __stub macros and hopefully few prototypes,
10632 which can conflict with char $ac_func(); below. */
10633#include <assert.h>
10634/* Override any gcc2 internal prototype to avoid an error. */
10635/* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10637char $ac_func();
10638
10639int main() {
10640
10641/* The GNU C library defines this for functions which it implements
10642 to always fail with ENOSYS. Some functions are actually named
10643 something starting with __ and the normal name is an alias. */
10644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10645choke me
10646#else
10647$ac_func();
10648#endif
10649
10650; return 0; }
10651EOF
29bd52c8 10652if { (eval echo configure:10653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10653 rm -rf conftest*
10654 eval "ac_cv_func_$ac_func=yes"
10655else
10656 echo "configure: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 rm -rf conftest*
10659 eval "ac_cv_func_$ac_func=no"
10660fi
10661rm -f conftest*
10662fi
10663
10664if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10665 echo "$ac_t""yes" 1>&6
10666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10667 cat >> confdefs.h <<EOF
10668#define $ac_tr_func 1
10669EOF
10670
10671else
10672 echo "$ac_t""no" 1>&6
10673fi
10674done
10675
10676 fi
10677
10678
10679
10680 ac_ext=C
10681# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10682ac_cpp='$CXXCPP $CPPFLAGS'
10683ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10684ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10685cross_compiling=$ac_cv_prog_cxx_cross
10686
10687 echo $ac_n "checking for _acosf declaration""... $ac_c" 1>&6
29bd52c8 10688echo "configure:10689: checking for _acosf declaration" >&5
38bd7296 10689 cat > conftest.$ac_ext <<EOF
29bd52c8 10690#line 10691 "configure"
38bd7296
BK
10691#include "confdefs.h"
10692#include <math.h>
10693int main() {
10694 _acosf(0);
10695; return 0; }
10696EOF
29bd52c8 10697if { (eval echo configure:10698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10698 rm -rf conftest*
10699 use__acosf=yes
10700else
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 rm -rf conftest*
10704 use__acosf=no
10705fi
10706rm -f conftest*
10707 echo "$ac_t""$use__acosf" 1>&6
10708 ac_ext=c
10709# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10710ac_cpp='$CPP $CPPFLAGS'
10711ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10712ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10713cross_compiling=$ac_cv_prog_cc_cross
10714
10715 if test x$use__acosf = x"yes"; then
10716 for ac_func in _acosf
10717do
10718echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10719echo "configure:10720: checking for $ac_func" >&5
38bd7296
BK
10720if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722else
10723 cat > conftest.$ac_ext <<EOF
29bd52c8 10724#line 10725 "configure"
38bd7296
BK
10725#include "confdefs.h"
10726/* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char $ac_func(); below. */
10728#include <assert.h>
10729/* Override any gcc2 internal prototype to avoid an error. */
10730/* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732char $ac_func();
10733
10734int main() {
10735
10736/* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10740choke me
10741#else
10742$ac_func();
10743#endif
10744
10745; return 0; }
10746EOF
29bd52c8 10747if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10748 rm -rf conftest*
10749 eval "ac_cv_func_$ac_func=yes"
10750else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 eval "ac_cv_func_$ac_func=no"
10755fi
10756rm -f conftest*
10757fi
10758
10759if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10760 echo "$ac_t""yes" 1>&6
10761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10762 cat >> confdefs.h <<EOF
10763#define $ac_tr_func 1
10764EOF
10765
10766else
10767 echo "$ac_t""no" 1>&6
10768fi
10769done
10770
10771 fi
10772
10773
10774
10775 ac_ext=C
10776# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10777ac_cpp='$CXXCPP $CPPFLAGS'
10778ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10779ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10780cross_compiling=$ac_cv_prog_cxx_cross
10781
10782 echo $ac_n "checking for _asinf declaration""... $ac_c" 1>&6
29bd52c8 10783echo "configure:10784: checking for _asinf declaration" >&5
38bd7296 10784 cat > conftest.$ac_ext <<EOF
29bd52c8 10785#line 10786 "configure"
38bd7296
BK
10786#include "confdefs.h"
10787#include <math.h>
10788int main() {
10789 _asinf(0);
10790; return 0; }
10791EOF
29bd52c8 10792if { (eval echo configure:10793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10793 rm -rf conftest*
10794 use__asinf=yes
10795else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 use__asinf=no
10800fi
10801rm -f conftest*
10802 echo "$ac_t""$use__asinf" 1>&6
10803 ac_ext=c
10804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10805ac_cpp='$CPP $CPPFLAGS'
10806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10808cross_compiling=$ac_cv_prog_cc_cross
10809
10810 if test x$use__asinf = x"yes"; then
10811 for ac_func in _asinf
10812do
10813echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10814echo "configure:10815: checking for $ac_func" >&5
38bd7296
BK
10815if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10817else
10818 cat > conftest.$ac_ext <<EOF
29bd52c8 10819#line 10820 "configure"
38bd7296
BK
10820#include "confdefs.h"
10821/* System header to define __stub macros and hopefully few prototypes,
10822 which can conflict with char $ac_func(); below. */
10823#include <assert.h>
10824/* Override any gcc2 internal prototype to avoid an error. */
10825/* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827char $ac_func();
10828
10829int main() {
10830
10831/* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
10834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835choke me
10836#else
10837$ac_func();
10838#endif
10839
10840; return 0; }
10841EOF
29bd52c8 10842if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10843 rm -rf conftest*
10844 eval "ac_cv_func_$ac_func=yes"
10845else
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 rm -rf conftest*
10849 eval "ac_cv_func_$ac_func=no"
10850fi
10851rm -f conftest*
10852fi
10853
10854if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10855 echo "$ac_t""yes" 1>&6
10856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10857 cat >> confdefs.h <<EOF
10858#define $ac_tr_func 1
10859EOF
10860
10861else
10862 echo "$ac_t""no" 1>&6
10863fi
10864done
10865
10866 fi
10867
10868
10869
10870 ac_ext=C
10871# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10872ac_cpp='$CXXCPP $CPPFLAGS'
10873ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10874ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10875cross_compiling=$ac_cv_prog_cxx_cross
10876
10877 echo $ac_n "checking for _atanf declaration""... $ac_c" 1>&6
29bd52c8 10878echo "configure:10879: checking for _atanf declaration" >&5
38bd7296 10879 cat > conftest.$ac_ext <<EOF
29bd52c8 10880#line 10881 "configure"
38bd7296
BK
10881#include "confdefs.h"
10882#include <math.h>
10883int main() {
10884 _atanf(0);
10885; return 0; }
10886EOF
29bd52c8 10887if { (eval echo configure:10888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10888 rm -rf conftest*
10889 use__atanf=yes
10890else
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 rm -rf conftest*
10894 use__atanf=no
10895fi
10896rm -f conftest*
10897 echo "$ac_t""$use__atanf" 1>&6
10898 ac_ext=c
10899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10900ac_cpp='$CPP $CPPFLAGS'
10901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10903cross_compiling=$ac_cv_prog_cc_cross
10904
10905 if test x$use__atanf = x"yes"; then
10906 for ac_func in _atanf
10907do
10908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 10909echo "configure:10910: checking for $ac_func" >&5
38bd7296
BK
10910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
10912else
10913 cat > conftest.$ac_ext <<EOF
29bd52c8 10914#line 10915 "configure"
38bd7296
BK
10915#include "confdefs.h"
10916/* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func(); below. */
10918#include <assert.h>
10919/* Override any gcc2 internal prototype to avoid an error. */
10920/* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10922char $ac_func();
10923
10924int main() {
10925
10926/* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930choke me
10931#else
10932$ac_func();
10933#endif
10934
10935; return 0; }
10936EOF
29bd52c8 10937if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10938 rm -rf conftest*
10939 eval "ac_cv_func_$ac_func=yes"
10940else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 rm -rf conftest*
10944 eval "ac_cv_func_$ac_func=no"
10945fi
10946rm -f conftest*
10947fi
10948
10949if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10950 echo "$ac_t""yes" 1>&6
10951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10952 cat >> confdefs.h <<EOF
10953#define $ac_tr_func 1
10954EOF
10955
10956else
10957 echo "$ac_t""no" 1>&6
10958fi
10959done
10960
10961 fi
10962
10963
10964
10965 ac_ext=C
10966# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10967ac_cpp='$CXXCPP $CPPFLAGS'
10968ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10969ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10970cross_compiling=$ac_cv_prog_cxx_cross
10971
10972 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
29bd52c8 10973echo "configure:10974: checking for _atan2f declaration" >&5
38bd7296 10974 cat > conftest.$ac_ext <<EOF
29bd52c8 10975#line 10976 "configure"
38bd7296
BK
10976#include "confdefs.h"
10977#include <math.h>
10978int main() {
10979 _atan2f(0, 0);
10980; return 0; }
10981EOF
29bd52c8 10982if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
10983 rm -rf conftest*
10984 use__atan2f=yes
10985else
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 rm -rf conftest*
10989 use__atan2f=no
10990fi
10991rm -f conftest*
10992 echo "$ac_t""$use__atan2f" 1>&6
10993 ac_ext=c
10994# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995ac_cpp='$CPP $CPPFLAGS'
10996ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998cross_compiling=$ac_cv_prog_cc_cross
10999
11000 if test x$use__atan2f = x"yes"; then
11001 for ac_func in _atan2f
11002do
11003echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11004echo "configure:11005: checking for $ac_func" >&5
38bd7296
BK
11005if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11006 echo $ac_n "(cached) $ac_c" 1>&6
11007else
11008 cat > conftest.$ac_ext <<EOF
29bd52c8 11009#line 11010 "configure"
38bd7296
BK
11010#include "confdefs.h"
11011/* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char $ac_func(); below. */
11013#include <assert.h>
11014/* Override any gcc2 internal prototype to avoid an error. */
11015/* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017char $ac_func();
11018
11019int main() {
11020
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11025choke me
11026#else
11027$ac_func();
11028#endif
11029
11030; return 0; }
11031EOF
29bd52c8 11032if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11033 rm -rf conftest*
11034 eval "ac_cv_func_$ac_func=yes"
11035else
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11038 rm -rf conftest*
11039 eval "ac_cv_func_$ac_func=no"
11040fi
11041rm -f conftest*
11042fi
11043
11044if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11047 cat >> confdefs.h <<EOF
11048#define $ac_tr_func 1
11049EOF
11050
11051else
11052 echo "$ac_t""no" 1>&6
11053fi
11054done
11055
11056 fi
11057
11058
11059
11060 ac_ext=C
11061# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11062ac_cpp='$CXXCPP $CPPFLAGS'
11063ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11064ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11065cross_compiling=$ac_cv_prog_cxx_cross
11066
11067 echo $ac_n "checking for _ceilf declaration""... $ac_c" 1>&6
29bd52c8 11068echo "configure:11069: checking for _ceilf declaration" >&5
38bd7296 11069 cat > conftest.$ac_ext <<EOF
29bd52c8 11070#line 11071 "configure"
38bd7296
BK
11071#include "confdefs.h"
11072#include <math.h>
11073int main() {
11074 _ceilf(0);
11075; return 0; }
11076EOF
29bd52c8 11077if { (eval echo configure:11078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11078 rm -rf conftest*
11079 use__ceilf=yes
11080else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -rf conftest*
11084 use__ceilf=no
11085fi
11086rm -f conftest*
11087 echo "$ac_t""$use__ceilf" 1>&6
11088 ac_ext=c
11089# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11090ac_cpp='$CPP $CPPFLAGS'
11091ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11092ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11093cross_compiling=$ac_cv_prog_cc_cross
11094
11095 if test x$use__ceilf = x"yes"; then
11096 for ac_func in _ceilf
11097do
11098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11099echo "configure:11100: checking for $ac_func" >&5
38bd7296
BK
11100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11101 echo $ac_n "(cached) $ac_c" 1>&6
11102else
11103 cat > conftest.$ac_ext <<EOF
29bd52c8 11104#line 11105 "configure"
38bd7296
BK
11105#include "confdefs.h"
11106/* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func(); below. */
11108#include <assert.h>
11109/* Override any gcc2 internal prototype to avoid an error. */
11110/* We use char because int might match the return type of a gcc2
11111 builtin and then its argument prototype would still apply. */
11112char $ac_func();
11113
11114int main() {
11115
11116/* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11120choke me
11121#else
11122$ac_func();
11123#endif
11124
11125; return 0; }
11126EOF
29bd52c8 11127if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11128 rm -rf conftest*
11129 eval "ac_cv_func_$ac_func=yes"
11130else
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 rm -rf conftest*
11134 eval "ac_cv_func_$ac_func=no"
11135fi
11136rm -f conftest*
11137fi
11138
11139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11142 cat >> confdefs.h <<EOF
11143#define $ac_tr_func 1
11144EOF
11145
11146else
11147 echo "$ac_t""no" 1>&6
11148fi
11149done
11150
11151 fi
11152
11153
11154
11155 ac_ext=C
11156# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11157ac_cpp='$CXXCPP $CPPFLAGS'
11158ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11159ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11160cross_compiling=$ac_cv_prog_cxx_cross
11161
11162 echo $ac_n "checking for _cosf declaration""... $ac_c" 1>&6
29bd52c8 11163echo "configure:11164: checking for _cosf declaration" >&5
38bd7296 11164 cat > conftest.$ac_ext <<EOF
29bd52c8 11165#line 11166 "configure"
38bd7296
BK
11166#include "confdefs.h"
11167#include <math.h>
11168int main() {
11169 _cosf(0);
11170; return 0; }
11171EOF
29bd52c8 11172if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11173 rm -rf conftest*
11174 use__cosf=yes
11175else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 use__cosf=no
11180fi
11181rm -f conftest*
11182 echo "$ac_t""$use__cosf" 1>&6
11183 ac_ext=c
11184# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11185ac_cpp='$CPP $CPPFLAGS'
11186ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11187ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11188cross_compiling=$ac_cv_prog_cc_cross
11189
11190 if test x$use__cosf = x"yes"; then
11191 for ac_func in _cosf
11192do
11193echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11194echo "configure:11195: checking for $ac_func" >&5
38bd7296
BK
11195if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11197else
11198 cat > conftest.$ac_ext <<EOF
29bd52c8 11199#line 11200 "configure"
38bd7296
BK
11200#include "confdefs.h"
11201/* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char $ac_func(); below. */
11203#include <assert.h>
11204/* Override any gcc2 internal prototype to avoid an error. */
11205/* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207char $ac_func();
11208
11209int main() {
11210
11211/* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11215choke me
11216#else
11217$ac_func();
11218#endif
11219
11220; return 0; }
11221EOF
29bd52c8 11222if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11223 rm -rf conftest*
11224 eval "ac_cv_func_$ac_func=yes"
11225else
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 rm -rf conftest*
11229 eval "ac_cv_func_$ac_func=no"
11230fi
11231rm -f conftest*
11232fi
11233
11234if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11237 cat >> confdefs.h <<EOF
11238#define $ac_tr_func 1
11239EOF
11240
11241else
11242 echo "$ac_t""no" 1>&6
11243fi
11244done
11245
11246 fi
11247
11248
11249
11250 ac_ext=C
11251# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11252ac_cpp='$CXXCPP $CPPFLAGS'
11253ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11254ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11255cross_compiling=$ac_cv_prog_cxx_cross
11256
11257 echo $ac_n "checking for _coshf declaration""... $ac_c" 1>&6
29bd52c8 11258echo "configure:11259: checking for _coshf declaration" >&5
38bd7296 11259 cat > conftest.$ac_ext <<EOF
29bd52c8 11260#line 11261 "configure"
38bd7296
BK
11261#include "confdefs.h"
11262#include <math.h>
11263int main() {
11264 _coshf(0);
11265; return 0; }
11266EOF
29bd52c8 11267if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11268 rm -rf conftest*
11269 use__coshf=yes
11270else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 use__coshf=no
11275fi
11276rm -f conftest*
11277 echo "$ac_t""$use__coshf" 1>&6
11278 ac_ext=c
11279# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11280ac_cpp='$CPP $CPPFLAGS'
11281ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11282ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11283cross_compiling=$ac_cv_prog_cc_cross
11284
11285 if test x$use__coshf = x"yes"; then
11286 for ac_func in _coshf
11287do
11288echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11289echo "configure:11290: checking for $ac_func" >&5
38bd7296
BK
11290if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292else
11293 cat > conftest.$ac_ext <<EOF
29bd52c8 11294#line 11295 "configure"
38bd7296
BK
11295#include "confdefs.h"
11296/* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func(); below. */
11298#include <assert.h>
11299/* Override any gcc2 internal prototype to avoid an error. */
11300/* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11302char $ac_func();
11303
11304int main() {
11305
11306/* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310choke me
11311#else
11312$ac_func();
11313#endif
11314
11315; return 0; }
11316EOF
29bd52c8 11317if { (eval echo configure:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11318 rm -rf conftest*
11319 eval "ac_cv_func_$ac_func=yes"
11320else
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 rm -rf conftest*
11324 eval "ac_cv_func_$ac_func=no"
11325fi
11326rm -f conftest*
11327fi
11328
11329if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11330 echo "$ac_t""yes" 1>&6
11331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11332 cat >> confdefs.h <<EOF
11333#define $ac_tr_func 1
11334EOF
11335
11336else
11337 echo "$ac_t""no" 1>&6
11338fi
11339done
11340
11341 fi
11342
11343
11344
11345 ac_ext=C
11346# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11347ac_cpp='$CXXCPP $CPPFLAGS'
11348ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11349ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11350cross_compiling=$ac_cv_prog_cxx_cross
11351
11352 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
29bd52c8 11353echo "configure:11354: checking for _expf declaration" >&5
38bd7296 11354 cat > conftest.$ac_ext <<EOF
29bd52c8 11355#line 11356 "configure"
38bd7296
BK
11356#include "confdefs.h"
11357#include <math.h>
11358int main() {
11359 _expf(0);
11360; return 0; }
11361EOF
29bd52c8 11362if { (eval echo configure:11363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11363 rm -rf conftest*
11364 use__expf=yes
11365else
11366 echo "configure: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11368 rm -rf conftest*
11369 use__expf=no
11370fi
11371rm -f conftest*
11372 echo "$ac_t""$use__expf" 1>&6
11373 ac_ext=c
11374# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11375ac_cpp='$CPP $CPPFLAGS'
11376ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11377ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11378cross_compiling=$ac_cv_prog_cc_cross
11379
11380 if test x$use__expf = x"yes"; then
11381 for ac_func in _expf
11382do
11383echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11384echo "configure:11385: checking for $ac_func" >&5
38bd7296
BK
11385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11386 echo $ac_n "(cached) $ac_c" 1>&6
11387else
11388 cat > conftest.$ac_ext <<EOF
29bd52c8 11389#line 11390 "configure"
38bd7296
BK
11390#include "confdefs.h"
11391/* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func(); below. */
11393#include <assert.h>
11394/* Override any gcc2 internal prototype to avoid an error. */
11395/* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11397char $ac_func();
11398
11399int main() {
11400
11401/* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11405choke me
11406#else
11407$ac_func();
11408#endif
11409
11410; return 0; }
11411EOF
29bd52c8 11412if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11413 rm -rf conftest*
11414 eval "ac_cv_func_$ac_func=yes"
11415else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 eval "ac_cv_func_$ac_func=no"
11420fi
11421rm -f conftest*
11422fi
11423
11424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11427 cat >> confdefs.h <<EOF
11428#define $ac_tr_func 1
11429EOF
11430
11431else
11432 echo "$ac_t""no" 1>&6
11433fi
11434done
11435
11436 fi
11437
11438
11439
11440 ac_ext=C
11441# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11442ac_cpp='$CXXCPP $CPPFLAGS'
11443ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11444ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11445cross_compiling=$ac_cv_prog_cxx_cross
11446
11447 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
29bd52c8 11448echo "configure:11449: checking for _fabsf declaration" >&5
38bd7296 11449 cat > conftest.$ac_ext <<EOF
29bd52c8 11450#line 11451 "configure"
38bd7296
BK
11451#include "confdefs.h"
11452#include <math.h>
11453int main() {
11454 _fabsf(0);
11455; return 0; }
11456EOF
29bd52c8 11457if { (eval echo configure:11458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11458 rm -rf conftest*
11459 use__fabsf=yes
11460else
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 rm -rf conftest*
11464 use__fabsf=no
11465fi
11466rm -f conftest*
11467 echo "$ac_t""$use__fabsf" 1>&6
11468 ac_ext=c
11469# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11470ac_cpp='$CPP $CPPFLAGS'
11471ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11472ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11473cross_compiling=$ac_cv_prog_cc_cross
11474
11475 if test x$use__fabsf = x"yes"; then
11476 for ac_func in _fabsf
11477do
11478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11479echo "configure:11480: checking for $ac_func" >&5
38bd7296
BK
11480if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11481 echo $ac_n "(cached) $ac_c" 1>&6
11482else
11483 cat > conftest.$ac_ext <<EOF
29bd52c8 11484#line 11485 "configure"
38bd7296
BK
11485#include "confdefs.h"
11486/* System header to define __stub macros and hopefully few prototypes,
11487 which can conflict with char $ac_func(); below. */
11488#include <assert.h>
11489/* Override any gcc2 internal prototype to avoid an error. */
11490/* We use char because int might match the return type of a gcc2
11491 builtin and then its argument prototype would still apply. */
11492char $ac_func();
11493
11494int main() {
11495
11496/* The GNU C library defines this for functions which it implements
11497 to always fail with ENOSYS. Some functions are actually named
11498 something starting with __ and the normal name is an alias. */
11499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11500choke me
11501#else
11502$ac_func();
11503#endif
11504
11505; return 0; }
11506EOF
29bd52c8 11507if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11508 rm -rf conftest*
11509 eval "ac_cv_func_$ac_func=yes"
11510else
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 rm -rf conftest*
11514 eval "ac_cv_func_$ac_func=no"
11515fi
11516rm -f conftest*
11517fi
11518
11519if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11520 echo "$ac_t""yes" 1>&6
11521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11522 cat >> confdefs.h <<EOF
11523#define $ac_tr_func 1
11524EOF
11525
11526else
11527 echo "$ac_t""no" 1>&6
11528fi
11529done
11530
11531 fi
11532
11533
11534
11535 ac_ext=C
11536# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11537ac_cpp='$CXXCPP $CPPFLAGS'
11538ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11539ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11540cross_compiling=$ac_cv_prog_cxx_cross
11541
11542 echo $ac_n "checking for _floorf declaration""... $ac_c" 1>&6
29bd52c8 11543echo "configure:11544: checking for _floorf declaration" >&5
38bd7296 11544 cat > conftest.$ac_ext <<EOF
29bd52c8 11545#line 11546 "configure"
38bd7296
BK
11546#include "confdefs.h"
11547#include <math.h>
11548int main() {
11549 _floorf(0);
11550; return 0; }
11551EOF
29bd52c8 11552if { (eval echo configure:11553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11553 rm -rf conftest*
11554 use__floorf=yes
11555else
11556 echo "configure: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 rm -rf conftest*
11559 use__floorf=no
11560fi
11561rm -f conftest*
11562 echo "$ac_t""$use__floorf" 1>&6
11563 ac_ext=c
11564# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11565ac_cpp='$CPP $CPPFLAGS'
11566ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11567ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11568cross_compiling=$ac_cv_prog_cc_cross
11569
11570 if test x$use__floorf = x"yes"; then
11571 for ac_func in _floorf
11572do
11573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11574echo "configure:11575: checking for $ac_func" >&5
38bd7296
BK
11575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11577else
11578 cat > conftest.$ac_ext <<EOF
29bd52c8 11579#line 11580 "configure"
38bd7296
BK
11580#include "confdefs.h"
11581/* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func(); below. */
11583#include <assert.h>
11584/* Override any gcc2 internal prototype to avoid an error. */
11585/* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11587char $ac_func();
11588
11589int main() {
11590
11591/* The GNU C library defines this for functions which it implements
11592 to always fail with ENOSYS. Some functions are actually named
11593 something starting with __ and the normal name is an alias. */
11594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595choke me
11596#else
11597$ac_func();
11598#endif
11599
11600; return 0; }
11601EOF
29bd52c8 11602if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11603 rm -rf conftest*
11604 eval "ac_cv_func_$ac_func=yes"
11605else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 eval "ac_cv_func_$ac_func=no"
11610fi
11611rm -f conftest*
11612fi
11613
11614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11617 cat >> confdefs.h <<EOF
11618#define $ac_tr_func 1
11619EOF
11620
11621else
11622 echo "$ac_t""no" 1>&6
11623fi
11624done
11625
11626 fi
11627
11628
11629
11630 ac_ext=C
11631# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11632ac_cpp='$CXXCPP $CPPFLAGS'
11633ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11634ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11635cross_compiling=$ac_cv_prog_cxx_cross
11636
11637 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
29bd52c8 11638echo "configure:11639: checking for _fmodf declaration" >&5
38bd7296 11639 cat > conftest.$ac_ext <<EOF
29bd52c8 11640#line 11641 "configure"
38bd7296
BK
11641#include "confdefs.h"
11642#include <math.h>
11643int main() {
11644 _fmodf(0, 0);
11645; return 0; }
11646EOF
29bd52c8 11647if { (eval echo configure:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11648 rm -rf conftest*
11649 use__fmodf=yes
11650else
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 rm -rf conftest*
11654 use__fmodf=no
11655fi
11656rm -f conftest*
11657 echo "$ac_t""$use__fmodf" 1>&6
11658 ac_ext=c
11659# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11660ac_cpp='$CPP $CPPFLAGS'
11661ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11662ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11663cross_compiling=$ac_cv_prog_cc_cross
11664
11665 if test x$use__fmodf = x"yes"; then
11666 for ac_func in _fmodf
11667do
11668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11669echo "configure:11670: checking for $ac_func" >&5
38bd7296
BK
11670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11671 echo $ac_n "(cached) $ac_c" 1>&6
11672else
11673 cat > conftest.$ac_ext <<EOF
29bd52c8 11674#line 11675 "configure"
38bd7296
BK
11675#include "confdefs.h"
11676/* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char $ac_func(); below. */
11678#include <assert.h>
11679/* Override any gcc2 internal prototype to avoid an error. */
11680/* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11682char $ac_func();
11683
11684int main() {
11685
11686/* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11690choke me
11691#else
11692$ac_func();
11693#endif
11694
11695; return 0; }
11696EOF
29bd52c8 11697if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11698 rm -rf conftest*
11699 eval "ac_cv_func_$ac_func=yes"
11700else
11701 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11703 rm -rf conftest*
11704 eval "ac_cv_func_$ac_func=no"
11705fi
11706rm -f conftest*
11707fi
11708
11709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11710 echo "$ac_t""yes" 1>&6
11711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11712 cat >> confdefs.h <<EOF
11713#define $ac_tr_func 1
11714EOF
11715
11716else
11717 echo "$ac_t""no" 1>&6
11718fi
11719done
11720
11721 fi
11722
11723
11724
11725 ac_ext=C
11726# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11727ac_cpp='$CXXCPP $CPPFLAGS'
11728ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11729ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11730cross_compiling=$ac_cv_prog_cxx_cross
11731
11732 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
29bd52c8 11733echo "configure:11734: checking for _frexpf declaration" >&5
38bd7296 11734 cat > conftest.$ac_ext <<EOF
29bd52c8 11735#line 11736 "configure"
38bd7296
BK
11736#include "confdefs.h"
11737#include <math.h>
11738int main() {
11739 _frexpf(0, 0);
11740; return 0; }
11741EOF
29bd52c8 11742if { (eval echo configure:11743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11743 rm -rf conftest*
11744 use__frexpf=yes
11745else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 use__frexpf=no
11750fi
11751rm -f conftest*
11752 echo "$ac_t""$use__frexpf" 1>&6
11753 ac_ext=c
11754# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11755ac_cpp='$CPP $CPPFLAGS'
11756ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11757ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11758cross_compiling=$ac_cv_prog_cc_cross
11759
11760 if test x$use__frexpf = x"yes"; then
11761 for ac_func in _frexpf
11762do
11763echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11764echo "configure:11765: checking for $ac_func" >&5
38bd7296
BK
11765if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11767else
11768 cat > conftest.$ac_ext <<EOF
29bd52c8 11769#line 11770 "configure"
38bd7296
BK
11770#include "confdefs.h"
11771/* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func(); below. */
11773#include <assert.h>
11774/* Override any gcc2 internal prototype to avoid an error. */
11775/* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777char $ac_func();
11778
11779int main() {
11780
11781/* The GNU C library defines this for functions which it implements
11782 to always fail with ENOSYS. Some functions are actually named
11783 something starting with __ and the normal name is an alias. */
11784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11785choke me
11786#else
11787$ac_func();
11788#endif
11789
11790; return 0; }
11791EOF
29bd52c8 11792if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11793 rm -rf conftest*
11794 eval "ac_cv_func_$ac_func=yes"
11795else
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 rm -rf conftest*
11799 eval "ac_cv_func_$ac_func=no"
11800fi
11801rm -f conftest*
11802fi
11803
11804if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11807 cat >> confdefs.h <<EOF
11808#define $ac_tr_func 1
11809EOF
11810
11811else
11812 echo "$ac_t""no" 1>&6
11813fi
11814done
11815
11816 fi
11817
11818
11819
11820 ac_ext=C
11821# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11822ac_cpp='$CXXCPP $CPPFLAGS'
11823ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11824ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11825cross_compiling=$ac_cv_prog_cxx_cross
11826
11827 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
29bd52c8 11828echo "configure:11829: checking for _ldexpf declaration" >&5
38bd7296 11829 cat > conftest.$ac_ext <<EOF
29bd52c8 11830#line 11831 "configure"
38bd7296
BK
11831#include "confdefs.h"
11832#include <math.h>
11833int main() {
11834 _ldexpf(0, 0);
11835; return 0; }
11836EOF
29bd52c8 11837if { (eval echo configure:11838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11838 rm -rf conftest*
11839 use__ldexpf=yes
11840else
11841 echo "configure: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11843 rm -rf conftest*
11844 use__ldexpf=no
11845fi
11846rm -f conftest*
11847 echo "$ac_t""$use__ldexpf" 1>&6
11848 ac_ext=c
11849# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11850ac_cpp='$CPP $CPPFLAGS'
11851ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11852ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11853cross_compiling=$ac_cv_prog_cc_cross
11854
11855 if test x$use__ldexpf = x"yes"; then
11856 for ac_func in _ldexpf
11857do
11858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11859echo "configure:11860: checking for $ac_func" >&5
38bd7296
BK
11860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11862else
11863 cat > conftest.$ac_ext <<EOF
29bd52c8 11864#line 11865 "configure"
38bd7296
BK
11865#include "confdefs.h"
11866/* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func(); below. */
11868#include <assert.h>
11869/* Override any gcc2 internal prototype to avoid an error. */
11870/* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11872char $ac_func();
11873
11874int main() {
11875
11876/* The GNU C library defines this for functions which it implements
11877 to always fail with ENOSYS. Some functions are actually named
11878 something starting with __ and the normal name is an alias. */
11879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11880choke me
11881#else
11882$ac_func();
11883#endif
11884
11885; return 0; }
11886EOF
29bd52c8 11887if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11888 rm -rf conftest*
11889 eval "ac_cv_func_$ac_func=yes"
11890else
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 rm -rf conftest*
11894 eval "ac_cv_func_$ac_func=no"
11895fi
11896rm -f conftest*
11897fi
11898
11899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11902 cat >> confdefs.h <<EOF
11903#define $ac_tr_func 1
11904EOF
11905
11906else
11907 echo "$ac_t""no" 1>&6
11908fi
11909done
11910
11911 fi
11912
11913
11914
11915 ac_ext=C
11916# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11917ac_cpp='$CXXCPP $CPPFLAGS'
11918ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11919ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11920cross_compiling=$ac_cv_prog_cxx_cross
11921
11922 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
29bd52c8 11923echo "configure:11924: checking for _logf declaration" >&5
38bd7296 11924 cat > conftest.$ac_ext <<EOF
29bd52c8 11925#line 11926 "configure"
38bd7296
BK
11926#include "confdefs.h"
11927#include <math.h>
11928int main() {
11929 _logf(0);
11930; return 0; }
11931EOF
29bd52c8 11932if { (eval echo configure:11933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
11933 rm -rf conftest*
11934 use__logf=yes
11935else
11936 echo "configure: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 rm -rf conftest*
11939 use__logf=no
11940fi
11941rm -f conftest*
11942 echo "$ac_t""$use__logf" 1>&6
11943 ac_ext=c
11944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948cross_compiling=$ac_cv_prog_cc_cross
11949
11950 if test x$use__logf = x"yes"; then
11951 for ac_func in _logf
11952do
11953echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 11954echo "configure:11955: checking for $ac_func" >&5
38bd7296
BK
11955if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11957else
11958 cat > conftest.$ac_ext <<EOF
29bd52c8 11959#line 11960 "configure"
38bd7296
BK
11960#include "confdefs.h"
11961/* System header to define __stub macros and hopefully few prototypes,
11962 which can conflict with char $ac_func(); below. */
11963#include <assert.h>
11964/* Override any gcc2 internal prototype to avoid an error. */
11965/* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11967char $ac_func();
11968
11969int main() {
11970
11971/* The GNU C library defines this for functions which it implements
11972 to always fail with ENOSYS. Some functions are actually named
11973 something starting with __ and the normal name is an alias. */
11974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11975choke me
11976#else
11977$ac_func();
11978#endif
11979
11980; return 0; }
11981EOF
29bd52c8 11982if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11983 rm -rf conftest*
11984 eval "ac_cv_func_$ac_func=yes"
11985else
11986 echo "configure: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11988 rm -rf conftest*
11989 eval "ac_cv_func_$ac_func=no"
11990fi
11991rm -f conftest*
11992fi
11993
11994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11995 echo "$ac_t""yes" 1>&6
11996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11997 cat >> confdefs.h <<EOF
11998#define $ac_tr_func 1
11999EOF
12000
12001else
12002 echo "$ac_t""no" 1>&6
12003fi
12004done
12005
12006 fi
12007
12008
12009
12010 ac_ext=C
12011# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12012ac_cpp='$CXXCPP $CPPFLAGS'
12013ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12014ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12015cross_compiling=$ac_cv_prog_cxx_cross
12016
12017 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
29bd52c8 12018echo "configure:12019: checking for _log10f declaration" >&5
38bd7296 12019 cat > conftest.$ac_ext <<EOF
29bd52c8 12020#line 12021 "configure"
38bd7296
BK
12021#include "confdefs.h"
12022#include <math.h>
12023int main() {
12024 _log10f(0);
12025; return 0; }
12026EOF
29bd52c8 12027if { (eval echo configure:12028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12028 rm -rf conftest*
12029 use__log10f=yes
12030else
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 rm -rf conftest*
12034 use__log10f=no
12035fi
12036rm -f conftest*
12037 echo "$ac_t""$use__log10f" 1>&6
12038 ac_ext=c
12039# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12040ac_cpp='$CPP $CPPFLAGS'
12041ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12042ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12043cross_compiling=$ac_cv_prog_cc_cross
12044
12045 if test x$use__log10f = x"yes"; then
12046 for ac_func in _log10f
12047do
12048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12049echo "configure:12050: checking for $ac_func" >&5
38bd7296
BK
12050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052else
12053 cat > conftest.$ac_ext <<EOF
29bd52c8 12054#line 12055 "configure"
38bd7296
BK
12055#include "confdefs.h"
12056/* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func(); below. */
12058#include <assert.h>
12059/* Override any gcc2 internal prototype to avoid an error. */
12060/* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062char $ac_func();
12063
12064int main() {
12065
12066/* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070choke me
12071#else
12072$ac_func();
12073#endif
12074
12075; return 0; }
12076EOF
29bd52c8 12077if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12078 rm -rf conftest*
12079 eval "ac_cv_func_$ac_func=yes"
12080else
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 rm -rf conftest*
12084 eval "ac_cv_func_$ac_func=no"
12085fi
12086rm -f conftest*
12087fi
12088
12089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12090 echo "$ac_t""yes" 1>&6
12091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12092 cat >> confdefs.h <<EOF
12093#define $ac_tr_func 1
12094EOF
12095
12096else
12097 echo "$ac_t""no" 1>&6
12098fi
12099done
12100
12101 fi
12102
12103
12104
12105 ac_ext=C
12106# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12107ac_cpp='$CXXCPP $CPPFLAGS'
12108ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12109ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12110cross_compiling=$ac_cv_prog_cxx_cross
12111
12112 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
29bd52c8 12113echo "configure:12114: checking for _modff declaration" >&5
38bd7296 12114 cat > conftest.$ac_ext <<EOF
29bd52c8 12115#line 12116 "configure"
38bd7296
BK
12116#include "confdefs.h"
12117#include <math.h>
12118int main() {
12119 _modff(0, 0);
12120; return 0; }
12121EOF
29bd52c8 12122if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12123 rm -rf conftest*
12124 use__modff=yes
12125else
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 use__modff=no
12130fi
12131rm -f conftest*
12132 echo "$ac_t""$use__modff" 1>&6
12133 ac_ext=c
12134# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12135ac_cpp='$CPP $CPPFLAGS'
12136ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12137ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12138cross_compiling=$ac_cv_prog_cc_cross
12139
12140 if test x$use__modff = x"yes"; then
12141 for ac_func in _modff
12142do
12143echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12144echo "configure:12145: checking for $ac_func" >&5
38bd7296
BK
12145if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
12147else
12148 cat > conftest.$ac_ext <<EOF
29bd52c8 12149#line 12150 "configure"
38bd7296
BK
12150#include "confdefs.h"
12151/* System header to define __stub macros and hopefully few prototypes,
12152 which can conflict with char $ac_func(); below. */
12153#include <assert.h>
12154/* Override any gcc2 internal prototype to avoid an error. */
12155/* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157char $ac_func();
12158
12159int main() {
12160
12161/* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165choke me
12166#else
12167$ac_func();
12168#endif
12169
12170; return 0; }
12171EOF
29bd52c8 12172if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12173 rm -rf conftest*
12174 eval "ac_cv_func_$ac_func=yes"
12175else
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12178 rm -rf conftest*
12179 eval "ac_cv_func_$ac_func=no"
12180fi
12181rm -f conftest*
12182fi
12183
12184if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12187 cat >> confdefs.h <<EOF
12188#define $ac_tr_func 1
12189EOF
12190
12191else
12192 echo "$ac_t""no" 1>&6
12193fi
12194done
12195
12196 fi
12197
12198
12199
12200 ac_ext=C
12201# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12202ac_cpp='$CXXCPP $CPPFLAGS'
12203ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12204ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12205cross_compiling=$ac_cv_prog_cxx_cross
12206
12207 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
29bd52c8 12208echo "configure:12209: checking for _powf declaration" >&5
38bd7296 12209 cat > conftest.$ac_ext <<EOF
29bd52c8 12210#line 12211 "configure"
38bd7296
BK
12211#include "confdefs.h"
12212#include <math.h>
12213int main() {
12214 _powf(0, 0);
12215; return 0; }
12216EOF
29bd52c8 12217if { (eval echo configure:12218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12218 rm -rf conftest*
12219 use__powf=yes
12220else
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12223 rm -rf conftest*
12224 use__powf=no
12225fi
12226rm -f conftest*
12227 echo "$ac_t""$use__powf" 1>&6
12228 ac_ext=c
12229# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12232ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12233cross_compiling=$ac_cv_prog_cc_cross
12234
12235 if test x$use__powf = x"yes"; then
12236 for ac_func in _powf
12237do
12238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12239echo "configure:12240: checking for $ac_func" >&5
38bd7296
BK
12240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242else
12243 cat > conftest.$ac_ext <<EOF
29bd52c8 12244#line 12245 "configure"
38bd7296
BK
12245#include "confdefs.h"
12246/* System header to define __stub macros and hopefully few prototypes,
12247 which can conflict with char $ac_func(); below. */
12248#include <assert.h>
12249/* Override any gcc2 internal prototype to avoid an error. */
12250/* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252char $ac_func();
12253
12254int main() {
12255
12256/* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12260choke me
12261#else
12262$ac_func();
12263#endif
12264
12265; return 0; }
12266EOF
29bd52c8 12267if { (eval echo configure:12268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12268 rm -rf conftest*
12269 eval "ac_cv_func_$ac_func=yes"
12270else
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274 eval "ac_cv_func_$ac_func=no"
12275fi
12276rm -f conftest*
12277fi
12278
12279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12280 echo "$ac_t""yes" 1>&6
12281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12282 cat >> confdefs.h <<EOF
12283#define $ac_tr_func 1
12284EOF
12285
12286else
12287 echo "$ac_t""no" 1>&6
12288fi
12289done
12290
12291 fi
12292
12293
12294
12295 ac_ext=C
12296# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12297ac_cpp='$CXXCPP $CPPFLAGS'
12298ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12299ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12300cross_compiling=$ac_cv_prog_cxx_cross
12301
12302 echo $ac_n "checking for _sinf declaration""... $ac_c" 1>&6
29bd52c8 12303echo "configure:12304: checking for _sinf declaration" >&5
38bd7296 12304 cat > conftest.$ac_ext <<EOF
29bd52c8 12305#line 12306 "configure"
38bd7296
BK
12306#include "confdefs.h"
12307#include <math.h>
12308int main() {
12309 _sinf(0);
12310; return 0; }
12311EOF
29bd52c8 12312if { (eval echo configure:12313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12313 rm -rf conftest*
12314 use__sinf=yes
12315else
12316 echo "configure: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12318 rm -rf conftest*
12319 use__sinf=no
12320fi
12321rm -f conftest*
12322 echo "$ac_t""$use__sinf" 1>&6
12323 ac_ext=c
12324# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12325ac_cpp='$CPP $CPPFLAGS'
12326ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12327ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12328cross_compiling=$ac_cv_prog_cc_cross
12329
12330 if test x$use__sinf = x"yes"; then
12331 for ac_func in _sinf
12332do
12333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12334echo "configure:12335: checking for $ac_func" >&5
38bd7296
BK
12335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
12337else
12338 cat > conftest.$ac_ext <<EOF
29bd52c8 12339#line 12340 "configure"
38bd7296
BK
12340#include "confdefs.h"
12341/* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func(); below. */
12343#include <assert.h>
12344/* Override any gcc2 internal prototype to avoid an error. */
12345/* We use char because int might match the return type of a gcc2
12346 builtin and then its argument prototype would still apply. */
12347char $ac_func();
12348
12349int main() {
12350
12351/* The GNU C library defines this for functions which it implements
12352 to always fail with ENOSYS. Some functions are actually named
12353 something starting with __ and the normal name is an alias. */
12354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12355choke me
12356#else
12357$ac_func();
12358#endif
12359
12360; return 0; }
12361EOF
29bd52c8 12362if { (eval echo configure:12363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12363 rm -rf conftest*
12364 eval "ac_cv_func_$ac_func=yes"
12365else
12366 echo "configure: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 rm -rf conftest*
12369 eval "ac_cv_func_$ac_func=no"
12370fi
12371rm -f conftest*
12372fi
12373
12374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12375 echo "$ac_t""yes" 1>&6
12376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12377 cat >> confdefs.h <<EOF
12378#define $ac_tr_func 1
12379EOF
12380
12381else
12382 echo "$ac_t""no" 1>&6
12383fi
12384done
12385
12386 fi
12387
12388
12389
12390 ac_ext=C
12391# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12392ac_cpp='$CXXCPP $CPPFLAGS'
12393ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12394ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12395cross_compiling=$ac_cv_prog_cxx_cross
12396
12397 echo $ac_n "checking for _sinhf declaration""... $ac_c" 1>&6
29bd52c8 12398echo "configure:12399: checking for _sinhf declaration" >&5
38bd7296 12399 cat > conftest.$ac_ext <<EOF
29bd52c8 12400#line 12401 "configure"
38bd7296
BK
12401#include "confdefs.h"
12402#include <math.h>
12403int main() {
12404 _sinhf(0);
12405; return 0; }
12406EOF
29bd52c8 12407if { (eval echo configure:12408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12408 rm -rf conftest*
12409 use__sinhf=yes
12410else
12411 echo "configure: failed program was:" >&5
12412 cat conftest.$ac_ext >&5
12413 rm -rf conftest*
12414 use__sinhf=no
12415fi
12416rm -f conftest*
12417 echo "$ac_t""$use__sinhf" 1>&6
12418 ac_ext=c
12419# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12420ac_cpp='$CPP $CPPFLAGS'
12421ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12422ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12423cross_compiling=$ac_cv_prog_cc_cross
12424
12425 if test x$use__sinhf = x"yes"; then
12426 for ac_func in _sinhf
12427do
12428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12429echo "configure:12430: checking for $ac_func" >&5
38bd7296
BK
12430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12431 echo $ac_n "(cached) $ac_c" 1>&6
12432else
12433 cat > conftest.$ac_ext <<EOF
29bd52c8 12434#line 12435 "configure"
38bd7296
BK
12435#include "confdefs.h"
12436/* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char $ac_func(); below. */
12438#include <assert.h>
12439/* Override any gcc2 internal prototype to avoid an error. */
12440/* We use char because int might match the return type of a gcc2
12441 builtin and then its argument prototype would still apply. */
12442char $ac_func();
12443
12444int main() {
12445
12446/* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12450choke me
12451#else
12452$ac_func();
12453#endif
12454
12455; return 0; }
12456EOF
29bd52c8 12457if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12458 rm -rf conftest*
12459 eval "ac_cv_func_$ac_func=yes"
12460else
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -rf conftest*
12464 eval "ac_cv_func_$ac_func=no"
12465fi
12466rm -f conftest*
12467fi
12468
12469if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12470 echo "$ac_t""yes" 1>&6
12471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12472 cat >> confdefs.h <<EOF
12473#define $ac_tr_func 1
12474EOF
12475
12476else
12477 echo "$ac_t""no" 1>&6
12478fi
12479done
12480
12481 fi
12482
12483
12484
12485 ac_ext=C
12486# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12487ac_cpp='$CXXCPP $CPPFLAGS'
12488ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12489ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12490cross_compiling=$ac_cv_prog_cxx_cross
12491
12492 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
29bd52c8 12493echo "configure:12494: checking for _sqrtf declaration" >&5
38bd7296 12494 cat > conftest.$ac_ext <<EOF
29bd52c8 12495#line 12496 "configure"
38bd7296
BK
12496#include "confdefs.h"
12497#include <math.h>
12498int main() {
12499 _sqrtf(0);
12500; return 0; }
12501EOF
29bd52c8 12502if { (eval echo configure:12503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12503 rm -rf conftest*
12504 use__sqrtf=yes
12505else
12506 echo "configure: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 rm -rf conftest*
12509 use__sqrtf=no
12510fi
12511rm -f conftest*
12512 echo "$ac_t""$use__sqrtf" 1>&6
12513 ac_ext=c
12514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12515ac_cpp='$CPP $CPPFLAGS'
12516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12518cross_compiling=$ac_cv_prog_cc_cross
12519
12520 if test x$use__sqrtf = x"yes"; then
12521 for ac_func in _sqrtf
12522do
12523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12524echo "configure:12525: checking for $ac_func" >&5
38bd7296
BK
12525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12527else
12528 cat > conftest.$ac_ext <<EOF
29bd52c8 12529#line 12530 "configure"
38bd7296
BK
12530#include "confdefs.h"
12531/* System header to define __stub macros and hopefully few prototypes,
12532 which can conflict with char $ac_func(); below. */
12533#include <assert.h>
12534/* Override any gcc2 internal prototype to avoid an error. */
12535/* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537char $ac_func();
12538
12539int main() {
12540
12541/* The GNU C library defines this for functions which it implements
12542 to always fail with ENOSYS. Some functions are actually named
12543 something starting with __ and the normal name is an alias. */
12544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12545choke me
12546#else
12547$ac_func();
12548#endif
12549
12550; return 0; }
12551EOF
29bd52c8 12552if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12553 rm -rf conftest*
12554 eval "ac_cv_func_$ac_func=yes"
12555else
12556 echo "configure: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 rm -rf conftest*
12559 eval "ac_cv_func_$ac_func=no"
12560fi
12561rm -f conftest*
12562fi
12563
12564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12565 echo "$ac_t""yes" 1>&6
12566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12567 cat >> confdefs.h <<EOF
12568#define $ac_tr_func 1
12569EOF
12570
12571else
12572 echo "$ac_t""no" 1>&6
12573fi
12574done
12575
12576 fi
12577
12578
12579
12580 ac_ext=C
12581# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12582ac_cpp='$CXXCPP $CPPFLAGS'
12583ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12584ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12585cross_compiling=$ac_cv_prog_cxx_cross
12586
12587 echo $ac_n "checking for _tanf declaration""... $ac_c" 1>&6
29bd52c8 12588echo "configure:12589: checking for _tanf declaration" >&5
38bd7296 12589 cat > conftest.$ac_ext <<EOF
29bd52c8 12590#line 12591 "configure"
38bd7296
BK
12591#include "confdefs.h"
12592#include <math.h>
12593int main() {
12594 _tanf(0);
12595; return 0; }
12596EOF
29bd52c8 12597if { (eval echo configure:12598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12598 rm -rf conftest*
12599 use__tanf=yes
12600else
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -rf conftest*
12604 use__tanf=no
12605fi
12606rm -f conftest*
12607 echo "$ac_t""$use__tanf" 1>&6
12608 ac_ext=c
12609# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12610ac_cpp='$CPP $CPPFLAGS'
12611ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12612ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12613cross_compiling=$ac_cv_prog_cc_cross
12614
12615 if test x$use__tanf = x"yes"; then
12616 for ac_func in _tanf
12617do
12618echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12619echo "configure:12620: checking for $ac_func" >&5
38bd7296
BK
12620if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12622else
12623 cat > conftest.$ac_ext <<EOF
29bd52c8 12624#line 12625 "configure"
38bd7296
BK
12625#include "confdefs.h"
12626/* System header to define __stub macros and hopefully few prototypes,
12627 which can conflict with char $ac_func(); below. */
12628#include <assert.h>
12629/* Override any gcc2 internal prototype to avoid an error. */
12630/* We use char because int might match the return type of a gcc2
12631 builtin and then its argument prototype would still apply. */
12632char $ac_func();
12633
12634int main() {
12635
12636/* The GNU C library defines this for functions which it implements
12637 to always fail with ENOSYS. Some functions are actually named
12638 something starting with __ and the normal name is an alias. */
12639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640choke me
12641#else
12642$ac_func();
12643#endif
12644
12645; return 0; }
12646EOF
29bd52c8 12647if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12648 rm -rf conftest*
12649 eval "ac_cv_func_$ac_func=yes"
12650else
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 rm -rf conftest*
12654 eval "ac_cv_func_$ac_func=no"
12655fi
12656rm -f conftest*
12657fi
12658
12659if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12660 echo "$ac_t""yes" 1>&6
12661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12662 cat >> confdefs.h <<EOF
12663#define $ac_tr_func 1
12664EOF
12665
12666else
12667 echo "$ac_t""no" 1>&6
12668fi
12669done
12670
12671 fi
12672
12673
12674
12675 ac_ext=C
12676# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12677ac_cpp='$CXXCPP $CPPFLAGS'
12678ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12679ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12680cross_compiling=$ac_cv_prog_cxx_cross
12681
12682 echo $ac_n "checking for _tanhf declaration""... $ac_c" 1>&6
29bd52c8 12683echo "configure:12684: checking for _tanhf declaration" >&5
38bd7296 12684 cat > conftest.$ac_ext <<EOF
29bd52c8 12685#line 12686 "configure"
38bd7296
BK
12686#include "confdefs.h"
12687#include <math.h>
12688int main() {
12689 _tanhf(0);
12690; return 0; }
12691EOF
29bd52c8 12692if { (eval echo configure:12693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12693 rm -rf conftest*
12694 use__tanhf=yes
12695else
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 rm -rf conftest*
12699 use__tanhf=no
12700fi
12701rm -f conftest*
12702 echo "$ac_t""$use__tanhf" 1>&6
12703 ac_ext=c
12704# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12707ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12708cross_compiling=$ac_cv_prog_cc_cross
12709
12710 if test x$use__tanhf = x"yes"; then
12711 for ac_func in _tanhf
12712do
12713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12714echo "configure:12715: checking for $ac_func" >&5
38bd7296
BK
12715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12717else
12718 cat > conftest.$ac_ext <<EOF
29bd52c8 12719#line 12720 "configure"
38bd7296
BK
12720#include "confdefs.h"
12721/* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func(); below. */
12723#include <assert.h>
12724/* Override any gcc2 internal prototype to avoid an error. */
12725/* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727char $ac_func();
12728
12729int main() {
12730
12731/* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12735choke me
12736#else
12737$ac_func();
12738#endif
12739
12740; return 0; }
12741EOF
29bd52c8 12742if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12743 rm -rf conftest*
12744 eval "ac_cv_func_$ac_func=yes"
12745else
12746 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 rm -rf conftest*
12749 eval "ac_cv_func_$ac_func=no"
12750fi
12751rm -f conftest*
12752fi
12753
12754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12757 cat >> confdefs.h <<EOF
12758#define $ac_tr_func 1
12759EOF
12760
12761else
12762 echo "$ac_t""no" 1>&6
12763fi
12764done
12765
12766 fi
12767
12768
12769
12770 ac_ext=C
12771# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12772ac_cpp='$CXXCPP $CPPFLAGS'
12773ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12774ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12775cross_compiling=$ac_cv_prog_cxx_cross
12776
12777 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
29bd52c8 12778echo "configure:12779: checking for _sincosf declaration" >&5
38bd7296 12779 cat > conftest.$ac_ext <<EOF
29bd52c8 12780#line 12781 "configure"
38bd7296
BK
12781#include "confdefs.h"
12782#include <math.h>
12783int main() {
12784 _sincosf(0, 0, 0);
12785; return 0; }
12786EOF
29bd52c8 12787if { (eval echo configure:12788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12788 rm -rf conftest*
12789 use__sincosf=yes
12790else
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12793 rm -rf conftest*
12794 use__sincosf=no
12795fi
12796rm -f conftest*
12797 echo "$ac_t""$use__sincosf" 1>&6
12798 ac_ext=c
12799# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12800ac_cpp='$CPP $CPPFLAGS'
12801ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12802ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12803cross_compiling=$ac_cv_prog_cc_cross
12804
12805 if test x$use__sincosf = x"yes"; then
12806 for ac_func in _sincosf
12807do
12808echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12809echo "configure:12810: checking for $ac_func" >&5
38bd7296
BK
12810if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812else
12813 cat > conftest.$ac_ext <<EOF
29bd52c8 12814#line 12815 "configure"
38bd7296
BK
12815#include "confdefs.h"
12816/* System header to define __stub macros and hopefully few prototypes,
12817 which can conflict with char $ac_func(); below. */
12818#include <assert.h>
12819/* Override any gcc2 internal prototype to avoid an error. */
12820/* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822char $ac_func();
12823
12824int main() {
12825
12826/* The GNU C library defines this for functions which it implements
12827 to always fail with ENOSYS. Some functions are actually named
12828 something starting with __ and the normal name is an alias. */
12829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12830choke me
12831#else
12832$ac_func();
12833#endif
12834
12835; return 0; }
12836EOF
29bd52c8 12837if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12838 rm -rf conftest*
12839 eval "ac_cv_func_$ac_func=yes"
12840else
12841 echo "configure: failed program was:" >&5
12842 cat conftest.$ac_ext >&5
12843 rm -rf conftest*
12844 eval "ac_cv_func_$ac_func=no"
12845fi
12846rm -f conftest*
12847fi
12848
12849if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12850 echo "$ac_t""yes" 1>&6
12851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12852 cat >> confdefs.h <<EOF
12853#define $ac_tr_func 1
12854EOF
12855
12856else
12857 echo "$ac_t""no" 1>&6
12858fi
12859done
12860
12861 fi
12862
12863
12864
12865 ac_ext=C
12866# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12867ac_cpp='$CXXCPP $CPPFLAGS'
12868ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12869ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12870cross_compiling=$ac_cv_prog_cxx_cross
12871
12872 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
29bd52c8 12873echo "configure:12874: checking for _finitef declaration" >&5
38bd7296 12874 cat > conftest.$ac_ext <<EOF
29bd52c8 12875#line 12876 "configure"
38bd7296
BK
12876#include "confdefs.h"
12877#include <math.h>
12878int main() {
12879 _finitef(0);
12880; return 0; }
12881EOF
29bd52c8 12882if { (eval echo configure:12883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12883 rm -rf conftest*
12884 use__finitef=yes
12885else
12886 echo "configure: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12888 rm -rf conftest*
12889 use__finitef=no
12890fi
12891rm -f conftest*
12892 echo "$ac_t""$use__finitef" 1>&6
12893 ac_ext=c
12894# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12895ac_cpp='$CPP $CPPFLAGS'
12896ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12897ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12898cross_compiling=$ac_cv_prog_cc_cross
12899
12900 if test x$use__finitef = x"yes"; then
12901 for ac_func in _finitef
12902do
12903echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 12904echo "configure:12905: checking for $ac_func" >&5
38bd7296
BK
12905if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907else
12908 cat > conftest.$ac_ext <<EOF
29bd52c8 12909#line 12910 "configure"
38bd7296
BK
12910#include "confdefs.h"
12911/* System header to define __stub macros and hopefully few prototypes,
12912 which can conflict with char $ac_func(); below. */
12913#include <assert.h>
12914/* Override any gcc2 internal prototype to avoid an error. */
12915/* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917char $ac_func();
12918
12919int main() {
12920
12921/* The GNU C library defines this for functions which it implements
12922 to always fail with ENOSYS. Some functions are actually named
12923 something starting with __ and the normal name is an alias. */
12924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12925choke me
12926#else
12927$ac_func();
12928#endif
12929
12930; return 0; }
12931EOF
29bd52c8 12932if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12933 rm -rf conftest*
12934 eval "ac_cv_func_$ac_func=yes"
12935else
12936 echo "configure: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 rm -rf conftest*
12939 eval "ac_cv_func_$ac_func=no"
12940fi
12941rm -f conftest*
12942fi
12943
12944if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12945 echo "$ac_t""yes" 1>&6
12946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12947 cat >> confdefs.h <<EOF
12948#define $ac_tr_func 1
12949EOF
12950
12951else
12952 echo "$ac_t""no" 1>&6
12953fi
12954done
12955
12956 fi
12957
12958
12959
12960
12961 ac_ext=C
12962# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12963ac_cpp='$CXXCPP $CPPFLAGS'
12964ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12965ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12966cross_compiling=$ac_cv_prog_cxx_cross
12967
12968 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
29bd52c8 12969echo "configure:12970: checking for _isnanl declaration" >&5
38bd7296 12970 cat > conftest.$ac_ext <<EOF
29bd52c8 12971#line 12972 "configure"
38bd7296
BK
12972#include "confdefs.h"
12973#include <math.h>
12974int main() {
12975 _isnanl(0);
12976; return 0; }
12977EOF
29bd52c8 12978if { (eval echo configure:12979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
12979 rm -rf conftest*
12980 use__isnanl=yes
12981else
12982 echo "configure: failed program was:" >&5
12983 cat conftest.$ac_ext >&5
12984 rm -rf conftest*
12985 use__isnanl=no
12986fi
12987rm -f conftest*
12988 echo "$ac_t""$use__isnanl" 1>&6
12989 ac_ext=c
12990# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12991ac_cpp='$CPP $CPPFLAGS'
12992ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12993ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12994cross_compiling=$ac_cv_prog_cc_cross
12995
12996 if test x$use__isnanl = x"yes"; then
12997 for ac_func in _isnanl
12998do
12999echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13000echo "configure:13001: checking for $ac_func" >&5
38bd7296
BK
13001if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13002 echo $ac_n "(cached) $ac_c" 1>&6
13003else
13004 cat > conftest.$ac_ext <<EOF
29bd52c8 13005#line 13006 "configure"
38bd7296
BK
13006#include "confdefs.h"
13007/* System header to define __stub macros and hopefully few prototypes,
13008 which can conflict with char $ac_func(); below. */
13009#include <assert.h>
13010/* Override any gcc2 internal prototype to avoid an error. */
13011/* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013char $ac_func();
13014
13015int main() {
13016
13017/* The GNU C library defines this for functions which it implements
13018 to always fail with ENOSYS. Some functions are actually named
13019 something starting with __ and the normal name is an alias. */
13020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13021choke me
13022#else
13023$ac_func();
13024#endif
13025
13026; return 0; }
13027EOF
29bd52c8 13028if { (eval echo configure:13029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13029 rm -rf conftest*
13030 eval "ac_cv_func_$ac_func=yes"
13031else
13032 echo "configure: failed program was:" >&5
13033 cat conftest.$ac_ext >&5
13034 rm -rf conftest*
13035 eval "ac_cv_func_$ac_func=no"
13036fi
13037rm -f conftest*
13038fi
13039
13040if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13041 echo "$ac_t""yes" 1>&6
13042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13043 cat >> confdefs.h <<EOF
13044#define $ac_tr_func 1
13045EOF
13046
13047else
13048 echo "$ac_t""no" 1>&6
13049fi
13050done
13051
13052 fi
13053
13054
13055
13056 ac_ext=C
13057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13058ac_cpp='$CXXCPP $CPPFLAGS'
13059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13061cross_compiling=$ac_cv_prog_cxx_cross
13062
13063 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
29bd52c8 13064echo "configure:13065: checking for _isinfl declaration" >&5
38bd7296 13065 cat > conftest.$ac_ext <<EOF
29bd52c8 13066#line 13067 "configure"
38bd7296
BK
13067#include "confdefs.h"
13068#include <math.h>
13069int main() {
13070 _isinfl(0);
13071; return 0; }
13072EOF
29bd52c8 13073if { (eval echo configure:13074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13074 rm -rf conftest*
13075 use__isinfl=yes
13076else
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13079 rm -rf conftest*
13080 use__isinfl=no
13081fi
13082rm -f conftest*
13083 echo "$ac_t""$use__isinfl" 1>&6
13084 ac_ext=c
13085# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13086ac_cpp='$CPP $CPPFLAGS'
13087ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13088ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13089cross_compiling=$ac_cv_prog_cc_cross
13090
13091 if test x$use__isinfl = x"yes"; then
13092 for ac_func in _isinfl
13093do
13094echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13095echo "configure:13096: checking for $ac_func" >&5
38bd7296
BK
13096if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13098else
13099 cat > conftest.$ac_ext <<EOF
29bd52c8 13100#line 13101 "configure"
38bd7296
BK
13101#include "confdefs.h"
13102/* System header to define __stub macros and hopefully few prototypes,
13103 which can conflict with char $ac_func(); below. */
13104#include <assert.h>
13105/* Override any gcc2 internal prototype to avoid an error. */
13106/* We use char because int might match the return type of a gcc2
13107 builtin and then its argument prototype would still apply. */
13108char $ac_func();
13109
13110int main() {
13111
13112/* The GNU C library defines this for functions which it implements
13113 to always fail with ENOSYS. Some functions are actually named
13114 something starting with __ and the normal name is an alias. */
13115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13116choke me
13117#else
13118$ac_func();
13119#endif
13120
13121; return 0; }
13122EOF
29bd52c8 13123if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13124 rm -rf conftest*
13125 eval "ac_cv_func_$ac_func=yes"
13126else
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 eval "ac_cv_func_$ac_func=no"
13131fi
13132rm -f conftest*
13133fi
13134
13135if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13136 echo "$ac_t""yes" 1>&6
13137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13138 cat >> confdefs.h <<EOF
13139#define $ac_tr_func 1
13140EOF
13141
13142else
13143 echo "$ac_t""no" 1>&6
13144fi
13145done
13146
13147 fi
13148
13149
13150
13151 ac_ext=C
13152# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13153ac_cpp='$CXXCPP $CPPFLAGS'
13154ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13155ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13156cross_compiling=$ac_cv_prog_cxx_cross
13157
13158 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
29bd52c8 13159echo "configure:13160: checking for _copysignl declaration" >&5
38bd7296 13160 cat > conftest.$ac_ext <<EOF
29bd52c8 13161#line 13162 "configure"
38bd7296
BK
13162#include "confdefs.h"
13163#include <math.h>
13164int main() {
11fc1858 13165 _copysignl(0, 0);
38bd7296
BK
13166; return 0; }
13167EOF
29bd52c8 13168if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13169 rm -rf conftest*
13170 use__copysignl=yes
13171else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -rf conftest*
13175 use__copysignl=no
13176fi
13177rm -f conftest*
13178 echo "$ac_t""$use__copysignl" 1>&6
13179 ac_ext=c
13180# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13181ac_cpp='$CPP $CPPFLAGS'
13182ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13183ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13184cross_compiling=$ac_cv_prog_cc_cross
13185
13186 if test x$use__copysignl = x"yes"; then
13187 for ac_func in _copysignl
13188do
13189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13190echo "configure:13191: checking for $ac_func" >&5
38bd7296
BK
13191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13192 echo $ac_n "(cached) $ac_c" 1>&6
13193else
13194 cat > conftest.$ac_ext <<EOF
29bd52c8 13195#line 13196 "configure"
38bd7296
BK
13196#include "confdefs.h"
13197/* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char $ac_func(); below. */
13199#include <assert.h>
13200/* Override any gcc2 internal prototype to avoid an error. */
13201/* We use char because int might match the return type of a gcc2
13202 builtin and then its argument prototype would still apply. */
13203char $ac_func();
13204
13205int main() {
13206
13207/* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13211choke me
13212#else
13213$ac_func();
13214#endif
13215
13216; return 0; }
13217EOF
29bd52c8 13218if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13219 rm -rf conftest*
13220 eval "ac_cv_func_$ac_func=yes"
13221else
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 rm -rf conftest*
13225 eval "ac_cv_func_$ac_func=no"
13226fi
13227rm -f conftest*
13228fi
13229
13230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13231 echo "$ac_t""yes" 1>&6
13232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13233 cat >> confdefs.h <<EOF
13234#define $ac_tr_func 1
13235EOF
13236
13237else
13238 echo "$ac_t""no" 1>&6
13239fi
13240done
13241
13242 fi
13243
13244
13245
13246 ac_ext=C
13247# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13248ac_cpp='$CXXCPP $CPPFLAGS'
13249ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13250ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13251cross_compiling=$ac_cv_prog_cxx_cross
13252
13253 echo $ac_n "checking for _acosl declaration""... $ac_c" 1>&6
29bd52c8 13254echo "configure:13255: checking for _acosl declaration" >&5
38bd7296 13255 cat > conftest.$ac_ext <<EOF
29bd52c8 13256#line 13257 "configure"
38bd7296
BK
13257#include "confdefs.h"
13258#include <math.h>
13259int main() {
13260 _acosl(0);
13261; return 0; }
13262EOF
29bd52c8 13263if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13264 rm -rf conftest*
13265 use__acosl=yes
13266else
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 rm -rf conftest*
13270 use__acosl=no
13271fi
13272rm -f conftest*
13273 echo "$ac_t""$use__acosl" 1>&6
13274 ac_ext=c
13275# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13276ac_cpp='$CPP $CPPFLAGS'
13277ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13278ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13279cross_compiling=$ac_cv_prog_cc_cross
13280
13281 if test x$use__acosl = x"yes"; then
13282 for ac_func in _acosl
13283do
13284echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13285echo "configure:13286: checking for $ac_func" >&5
38bd7296
BK
13286if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13288else
13289 cat > conftest.$ac_ext <<EOF
29bd52c8 13290#line 13291 "configure"
38bd7296
BK
13291#include "confdefs.h"
13292/* System header to define __stub macros and hopefully few prototypes,
13293 which can conflict with char $ac_func(); below. */
13294#include <assert.h>
13295/* Override any gcc2 internal prototype to avoid an error. */
13296/* We use char because int might match the return type of a gcc2
13297 builtin and then its argument prototype would still apply. */
13298char $ac_func();
13299
13300int main() {
13301
13302/* The GNU C library defines this for functions which it implements
13303 to always fail with ENOSYS. Some functions are actually named
13304 something starting with __ and the normal name is an alias. */
13305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13306choke me
13307#else
13308$ac_func();
13309#endif
13310
13311; return 0; }
13312EOF
29bd52c8 13313if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13314 rm -rf conftest*
13315 eval "ac_cv_func_$ac_func=yes"
13316else
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=no"
13321fi
13322rm -f conftest*
13323fi
13324
13325if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13326 echo "$ac_t""yes" 1>&6
13327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13328 cat >> confdefs.h <<EOF
13329#define $ac_tr_func 1
13330EOF
13331
13332else
13333 echo "$ac_t""no" 1>&6
13334fi
13335done
13336
13337 fi
13338
13339
13340
13341 ac_ext=C
13342# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13343ac_cpp='$CXXCPP $CPPFLAGS'
13344ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13345ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13346cross_compiling=$ac_cv_prog_cxx_cross
13347
13348 echo $ac_n "checking for _asinl declaration""... $ac_c" 1>&6
29bd52c8 13349echo "configure:13350: checking for _asinl declaration" >&5
38bd7296 13350 cat > conftest.$ac_ext <<EOF
29bd52c8 13351#line 13352 "configure"
38bd7296
BK
13352#include "confdefs.h"
13353#include <math.h>
13354int main() {
13355 _asinl(0);
13356; return 0; }
13357EOF
29bd52c8 13358if { (eval echo configure:13359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13359 rm -rf conftest*
13360 use__asinl=yes
13361else
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13364 rm -rf conftest*
13365 use__asinl=no
13366fi
13367rm -f conftest*
13368 echo "$ac_t""$use__asinl" 1>&6
13369 ac_ext=c
13370# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13371ac_cpp='$CPP $CPPFLAGS'
13372ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13373ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13374cross_compiling=$ac_cv_prog_cc_cross
13375
13376 if test x$use__asinl = x"yes"; then
13377 for ac_func in _asinl
13378do
13379echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13380echo "configure:13381: checking for $ac_func" >&5
38bd7296
BK
13381if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13382 echo $ac_n "(cached) $ac_c" 1>&6
13383else
13384 cat > conftest.$ac_ext <<EOF
29bd52c8 13385#line 13386 "configure"
38bd7296
BK
13386#include "confdefs.h"
13387/* System header to define __stub macros and hopefully few prototypes,
13388 which can conflict with char $ac_func(); below. */
13389#include <assert.h>
13390/* Override any gcc2 internal prototype to avoid an error. */
13391/* We use char because int might match the return type of a gcc2
13392 builtin and then its argument prototype would still apply. */
13393char $ac_func();
13394
13395int main() {
13396
13397/* The GNU C library defines this for functions which it implements
13398 to always fail with ENOSYS. Some functions are actually named
13399 something starting with __ and the normal name is an alias. */
13400#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13401choke me
13402#else
13403$ac_func();
13404#endif
13405
13406; return 0; }
13407EOF
29bd52c8 13408if { (eval echo configure:13409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13409 rm -rf conftest*
13410 eval "ac_cv_func_$ac_func=yes"
13411else
13412 echo "configure: failed program was:" >&5
13413 cat conftest.$ac_ext >&5
13414 rm -rf conftest*
13415 eval "ac_cv_func_$ac_func=no"
13416fi
13417rm -f conftest*
13418fi
13419
13420if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13421 echo "$ac_t""yes" 1>&6
13422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13423 cat >> confdefs.h <<EOF
13424#define $ac_tr_func 1
13425EOF
13426
13427else
13428 echo "$ac_t""no" 1>&6
13429fi
13430done
13431
13432 fi
13433
13434
13435
13436 ac_ext=C
13437# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13438ac_cpp='$CXXCPP $CPPFLAGS'
13439ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13440ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13441cross_compiling=$ac_cv_prog_cxx_cross
13442
13443 echo $ac_n "checking for _atanl declaration""... $ac_c" 1>&6
29bd52c8 13444echo "configure:13445: checking for _atanl declaration" >&5
38bd7296 13445 cat > conftest.$ac_ext <<EOF
29bd52c8 13446#line 13447 "configure"
38bd7296
BK
13447#include "confdefs.h"
13448#include <math.h>
13449int main() {
13450 _atanl(0);
13451; return 0; }
13452EOF
29bd52c8 13453if { (eval echo configure:13454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13454 rm -rf conftest*
13455 use__atanl=yes
13456else
13457 echo "configure: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13459 rm -rf conftest*
13460 use__atanl=no
13461fi
13462rm -f conftest*
13463 echo "$ac_t""$use__atanl" 1>&6
13464 ac_ext=c
13465# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13466ac_cpp='$CPP $CPPFLAGS'
13467ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13468ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13469cross_compiling=$ac_cv_prog_cc_cross
13470
13471 if test x$use__atanl = x"yes"; then
13472 for ac_func in _atanl
13473do
13474echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13475echo "configure:13476: checking for $ac_func" >&5
38bd7296
BK
13476if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478else
13479 cat > conftest.$ac_ext <<EOF
29bd52c8 13480#line 13481 "configure"
38bd7296
BK
13481#include "confdefs.h"
13482/* System header to define __stub macros and hopefully few prototypes,
13483 which can conflict with char $ac_func(); below. */
13484#include <assert.h>
13485/* Override any gcc2 internal prototype to avoid an error. */
13486/* We use char because int might match the return type of a gcc2
13487 builtin and then its argument prototype would still apply. */
13488char $ac_func();
13489
13490int main() {
13491
13492/* The GNU C library defines this for functions which it implements
13493 to always fail with ENOSYS. Some functions are actually named
13494 something starting with __ and the normal name is an alias. */
13495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13496choke me
13497#else
13498$ac_func();
13499#endif
13500
13501; return 0; }
13502EOF
29bd52c8 13503if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13504 rm -rf conftest*
13505 eval "ac_cv_func_$ac_func=yes"
13506else
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 rm -rf conftest*
13510 eval "ac_cv_func_$ac_func=no"
13511fi
13512rm -f conftest*
13513fi
13514
13515if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13516 echo "$ac_t""yes" 1>&6
13517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13518 cat >> confdefs.h <<EOF
13519#define $ac_tr_func 1
13520EOF
13521
13522else
13523 echo "$ac_t""no" 1>&6
13524fi
13525done
13526
13527 fi
13528
13529
13530
13531 ac_ext=C
13532# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13533ac_cpp='$CXXCPP $CPPFLAGS'
13534ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13535ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13536cross_compiling=$ac_cv_prog_cxx_cross
13537
13538 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
29bd52c8 13539echo "configure:13540: checking for _atan2l declaration" >&5
38bd7296 13540 cat > conftest.$ac_ext <<EOF
29bd52c8 13541#line 13542 "configure"
38bd7296
BK
13542#include "confdefs.h"
13543#include <math.h>
13544int main() {
13545 _atan2l(0, 0);
13546; return 0; }
13547EOF
29bd52c8 13548if { (eval echo configure:13549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13549 rm -rf conftest*
13550 use__atan2l=yes
13551else
13552 echo "configure: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 rm -rf conftest*
13555 use__atan2l=no
13556fi
13557rm -f conftest*
13558 echo "$ac_t""$use__atan2l" 1>&6
13559 ac_ext=c
13560# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13561ac_cpp='$CPP $CPPFLAGS'
13562ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13563ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13564cross_compiling=$ac_cv_prog_cc_cross
13565
13566 if test x$use__atan2l = x"yes"; then
13567 for ac_func in _atan2l
13568do
13569echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13570echo "configure:13571: checking for $ac_func" >&5
38bd7296
BK
13571if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13573else
13574 cat > conftest.$ac_ext <<EOF
29bd52c8 13575#line 13576 "configure"
38bd7296
BK
13576#include "confdefs.h"
13577/* System header to define __stub macros and hopefully few prototypes,
13578 which can conflict with char $ac_func(); below. */
13579#include <assert.h>
13580/* Override any gcc2 internal prototype to avoid an error. */
13581/* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13583char $ac_func();
13584
13585int main() {
13586
13587/* The GNU C library defines this for functions which it implements
13588 to always fail with ENOSYS. Some functions are actually named
13589 something starting with __ and the normal name is an alias. */
13590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13591choke me
13592#else
13593$ac_func();
13594#endif
13595
13596; return 0; }
13597EOF
29bd52c8 13598if { (eval echo configure:13599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13599 rm -rf conftest*
13600 eval "ac_cv_func_$ac_func=yes"
13601else
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13604 rm -rf conftest*
13605 eval "ac_cv_func_$ac_func=no"
13606fi
13607rm -f conftest*
13608fi
13609
13610if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13611 echo "$ac_t""yes" 1>&6
13612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13613 cat >> confdefs.h <<EOF
13614#define $ac_tr_func 1
13615EOF
13616
13617else
13618 echo "$ac_t""no" 1>&6
13619fi
13620done
13621
13622 fi
13623
13624
13625
13626 ac_ext=C
13627# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13628ac_cpp='$CXXCPP $CPPFLAGS'
13629ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13630ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13631cross_compiling=$ac_cv_prog_cxx_cross
13632
13633 echo $ac_n "checking for _ceill declaration""... $ac_c" 1>&6
29bd52c8 13634echo "configure:13635: checking for _ceill declaration" >&5
38bd7296 13635 cat > conftest.$ac_ext <<EOF
29bd52c8 13636#line 13637 "configure"
38bd7296
BK
13637#include "confdefs.h"
13638#include <math.h>
13639int main() {
13640 _ceill(0);
13641; return 0; }
13642EOF
29bd52c8 13643if { (eval echo configure:13644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13644 rm -rf conftest*
13645 use__ceill=yes
13646else
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 use__ceill=no
13651fi
13652rm -f conftest*
13653 echo "$ac_t""$use__ceill" 1>&6
13654 ac_ext=c
13655# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13656ac_cpp='$CPP $CPPFLAGS'
13657ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13658ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13659cross_compiling=$ac_cv_prog_cc_cross
13660
13661 if test x$use__ceill = x"yes"; then
13662 for ac_func in _ceill
13663do
13664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13665echo "configure:13666: checking for $ac_func" >&5
38bd7296
BK
13666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13667 echo $ac_n "(cached) $ac_c" 1>&6
13668else
13669 cat > conftest.$ac_ext <<EOF
29bd52c8 13670#line 13671 "configure"
38bd7296
BK
13671#include "confdefs.h"
13672/* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char $ac_func(); below. */
13674#include <assert.h>
13675/* Override any gcc2 internal prototype to avoid an error. */
13676/* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13678char $ac_func();
13679
13680int main() {
13681
13682/* The GNU C library defines this for functions which it implements
13683 to always fail with ENOSYS. Some functions are actually named
13684 something starting with __ and the normal name is an alias. */
13685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13686choke me
13687#else
13688$ac_func();
13689#endif
13690
13691; return 0; }
13692EOF
29bd52c8 13693if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13694 rm -rf conftest*
13695 eval "ac_cv_func_$ac_func=yes"
13696else
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 rm -rf conftest*
13700 eval "ac_cv_func_$ac_func=no"
13701fi
13702rm -f conftest*
13703fi
13704
13705if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13706 echo "$ac_t""yes" 1>&6
13707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13708 cat >> confdefs.h <<EOF
13709#define $ac_tr_func 1
13710EOF
13711
13712else
13713 echo "$ac_t""no" 1>&6
13714fi
13715done
13716
13717 fi
13718
13719
13720
13721 ac_ext=C
13722# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13723ac_cpp='$CXXCPP $CPPFLAGS'
13724ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13725ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13726cross_compiling=$ac_cv_prog_cxx_cross
13727
13728 echo $ac_n "checking for _cosl declaration""... $ac_c" 1>&6
29bd52c8 13729echo "configure:13730: checking for _cosl declaration" >&5
38bd7296 13730 cat > conftest.$ac_ext <<EOF
29bd52c8 13731#line 13732 "configure"
38bd7296
BK
13732#include "confdefs.h"
13733#include <math.h>
13734int main() {
13735 _cosl(0);
13736; return 0; }
13737EOF
29bd52c8 13738if { (eval echo configure:13739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13739 rm -rf conftest*
13740 use__cosl=yes
13741else
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 rm -rf conftest*
13745 use__cosl=no
13746fi
13747rm -f conftest*
13748 echo "$ac_t""$use__cosl" 1>&6
13749 ac_ext=c
13750# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13751ac_cpp='$CPP $CPPFLAGS'
13752ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13753ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13754cross_compiling=$ac_cv_prog_cc_cross
13755
13756 if test x$use__cosl = x"yes"; then
13757 for ac_func in _cosl
13758do
13759echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13760echo "configure:13761: checking for $ac_func" >&5
38bd7296
BK
13761if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13762 echo $ac_n "(cached) $ac_c" 1>&6
13763else
13764 cat > conftest.$ac_ext <<EOF
29bd52c8 13765#line 13766 "configure"
38bd7296
BK
13766#include "confdefs.h"
13767/* System header to define __stub macros and hopefully few prototypes,
13768 which can conflict with char $ac_func(); below. */
13769#include <assert.h>
13770/* Override any gcc2 internal prototype to avoid an error. */
13771/* We use char because int might match the return type of a gcc2
13772 builtin and then its argument prototype would still apply. */
13773char $ac_func();
13774
13775int main() {
13776
13777/* The GNU C library defines this for functions which it implements
13778 to always fail with ENOSYS. Some functions are actually named
13779 something starting with __ and the normal name is an alias. */
13780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13781choke me
13782#else
13783$ac_func();
13784#endif
13785
13786; return 0; }
13787EOF
29bd52c8 13788if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13789 rm -rf conftest*
13790 eval "ac_cv_func_$ac_func=yes"
13791else
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 rm -rf conftest*
13795 eval "ac_cv_func_$ac_func=no"
13796fi
13797rm -f conftest*
13798fi
13799
13800if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13801 echo "$ac_t""yes" 1>&6
13802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13803 cat >> confdefs.h <<EOF
13804#define $ac_tr_func 1
13805EOF
13806
13807else
13808 echo "$ac_t""no" 1>&6
13809fi
13810done
13811
13812 fi
13813
13814
13815
13816 ac_ext=C
13817# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13818ac_cpp='$CXXCPP $CPPFLAGS'
13819ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13820ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13821cross_compiling=$ac_cv_prog_cxx_cross
13822
13823 echo $ac_n "checking for _coshl declaration""... $ac_c" 1>&6
29bd52c8 13824echo "configure:13825: checking for _coshl declaration" >&5
38bd7296 13825 cat > conftest.$ac_ext <<EOF
29bd52c8 13826#line 13827 "configure"
38bd7296
BK
13827#include "confdefs.h"
13828#include <math.h>
13829int main() {
13830 _coshl(0);
13831; return 0; }
13832EOF
29bd52c8 13833if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13834 rm -rf conftest*
13835 use__coshl=yes
13836else
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 rm -rf conftest*
13840 use__coshl=no
13841fi
13842rm -f conftest*
13843 echo "$ac_t""$use__coshl" 1>&6
13844 ac_ext=c
13845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13846ac_cpp='$CPP $CPPFLAGS'
13847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13849cross_compiling=$ac_cv_prog_cc_cross
13850
13851 if test x$use__coshl = x"yes"; then
13852 for ac_func in _coshl
13853do
13854echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13855echo "configure:13856: checking for $ac_func" >&5
38bd7296
BK
13856if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13857 echo $ac_n "(cached) $ac_c" 1>&6
13858else
13859 cat > conftest.$ac_ext <<EOF
29bd52c8 13860#line 13861 "configure"
38bd7296
BK
13861#include "confdefs.h"
13862/* System header to define __stub macros and hopefully few prototypes,
13863 which can conflict with char $ac_func(); below. */
13864#include <assert.h>
13865/* Override any gcc2 internal prototype to avoid an error. */
13866/* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13868char $ac_func();
13869
13870int main() {
13871
13872/* The GNU C library defines this for functions which it implements
13873 to always fail with ENOSYS. Some functions are actually named
13874 something starting with __ and the normal name is an alias. */
13875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13876choke me
13877#else
13878$ac_func();
13879#endif
13880
13881; return 0; }
13882EOF
29bd52c8 13883if { (eval echo configure:13884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13884 rm -rf conftest*
13885 eval "ac_cv_func_$ac_func=yes"
13886else
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 rm -rf conftest*
13890 eval "ac_cv_func_$ac_func=no"
13891fi
13892rm -f conftest*
13893fi
13894
13895if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13896 echo "$ac_t""yes" 1>&6
13897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13898 cat >> confdefs.h <<EOF
13899#define $ac_tr_func 1
13900EOF
13901
13902else
13903 echo "$ac_t""no" 1>&6
13904fi
13905done
13906
13907 fi
13908
13909
13910
13911 ac_ext=C
13912# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13913ac_cpp='$CXXCPP $CPPFLAGS'
13914ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13915ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13916cross_compiling=$ac_cv_prog_cxx_cross
13917
13918 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
29bd52c8 13919echo "configure:13920: checking for _expl declaration" >&5
38bd7296 13920 cat > conftest.$ac_ext <<EOF
29bd52c8 13921#line 13922 "configure"
38bd7296
BK
13922#include "confdefs.h"
13923#include <math.h>
13924int main() {
13925 _expl(0);
13926; return 0; }
13927EOF
29bd52c8 13928if { (eval echo configure:13929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
13929 rm -rf conftest*
13930 use__expl=yes
13931else
13932 echo "configure: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 rm -rf conftest*
13935 use__expl=no
13936fi
13937rm -f conftest*
13938 echo "$ac_t""$use__expl" 1>&6
13939 ac_ext=c
13940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13941ac_cpp='$CPP $CPPFLAGS'
13942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13944cross_compiling=$ac_cv_prog_cc_cross
13945
13946 if test x$use__expl = x"yes"; then
13947 for ac_func in _expl
13948do
13949echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 13950echo "configure:13951: checking for $ac_func" >&5
38bd7296
BK
13951if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13952 echo $ac_n "(cached) $ac_c" 1>&6
13953else
13954 cat > conftest.$ac_ext <<EOF
29bd52c8 13955#line 13956 "configure"
38bd7296
BK
13956#include "confdefs.h"
13957/* System header to define __stub macros and hopefully few prototypes,
13958 which can conflict with char $ac_func(); below. */
13959#include <assert.h>
13960/* Override any gcc2 internal prototype to avoid an error. */
13961/* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13963char $ac_func();
13964
13965int main() {
13966
13967/* The GNU C library defines this for functions which it implements
13968 to always fail with ENOSYS. Some functions are actually named
13969 something starting with __ and the normal name is an alias. */
13970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13971choke me
13972#else
13973$ac_func();
13974#endif
13975
13976; return 0; }
13977EOF
29bd52c8 13978if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13979 rm -rf conftest*
13980 eval "ac_cv_func_$ac_func=yes"
13981else
13982 echo "configure: failed program was:" >&5
13983 cat conftest.$ac_ext >&5
13984 rm -rf conftest*
13985 eval "ac_cv_func_$ac_func=no"
13986fi
13987rm -f conftest*
13988fi
13989
13990if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13991 echo "$ac_t""yes" 1>&6
13992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13993 cat >> confdefs.h <<EOF
13994#define $ac_tr_func 1
13995EOF
13996
13997else
13998 echo "$ac_t""no" 1>&6
13999fi
14000done
14001
14002 fi
14003
14004
14005
14006 ac_ext=C
14007# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14008ac_cpp='$CXXCPP $CPPFLAGS'
14009ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14010ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14011cross_compiling=$ac_cv_prog_cxx_cross
14012
14013 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
29bd52c8 14014echo "configure:14015: checking for _fabsl declaration" >&5
38bd7296 14015 cat > conftest.$ac_ext <<EOF
29bd52c8 14016#line 14017 "configure"
38bd7296
BK
14017#include "confdefs.h"
14018#include <math.h>
14019int main() {
14020 _fabsl(0);
14021; return 0; }
14022EOF
29bd52c8 14023if { (eval echo configure:14024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14024 rm -rf conftest*
14025 use__fabsl=yes
14026else
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 use__fabsl=no
14031fi
14032rm -f conftest*
14033 echo "$ac_t""$use__fabsl" 1>&6
14034 ac_ext=c
14035# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14036ac_cpp='$CPP $CPPFLAGS'
14037ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14038ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14039cross_compiling=$ac_cv_prog_cc_cross
14040
14041 if test x$use__fabsl = x"yes"; then
14042 for ac_func in _fabsl
14043do
14044echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14045echo "configure:14046: checking for $ac_func" >&5
38bd7296
BK
14046if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14047 echo $ac_n "(cached) $ac_c" 1>&6
14048else
14049 cat > conftest.$ac_ext <<EOF
29bd52c8 14050#line 14051 "configure"
38bd7296
BK
14051#include "confdefs.h"
14052/* System header to define __stub macros and hopefully few prototypes,
14053 which can conflict with char $ac_func(); below. */
14054#include <assert.h>
14055/* Override any gcc2 internal prototype to avoid an error. */
14056/* We use char because int might match the return type of a gcc2
14057 builtin and then its argument prototype would still apply. */
14058char $ac_func();
14059
14060int main() {
14061
14062/* The GNU C library defines this for functions which it implements
14063 to always fail with ENOSYS. Some functions are actually named
14064 something starting with __ and the normal name is an alias. */
14065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14066choke me
14067#else
14068$ac_func();
14069#endif
14070
14071; return 0; }
14072EOF
29bd52c8 14073if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14074 rm -rf conftest*
14075 eval "ac_cv_func_$ac_func=yes"
14076else
14077 echo "configure: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 rm -rf conftest*
14080 eval "ac_cv_func_$ac_func=no"
14081fi
14082rm -f conftest*
14083fi
14084
14085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14086 echo "$ac_t""yes" 1>&6
14087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14088 cat >> confdefs.h <<EOF
14089#define $ac_tr_func 1
14090EOF
14091
14092else
14093 echo "$ac_t""no" 1>&6
14094fi
14095done
14096
14097 fi
14098
14099
14100
14101 ac_ext=C
14102# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14103ac_cpp='$CXXCPP $CPPFLAGS'
14104ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14105ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14106cross_compiling=$ac_cv_prog_cxx_cross
14107
14108 echo $ac_n "checking for _floorl declaration""... $ac_c" 1>&6
29bd52c8 14109echo "configure:14110: checking for _floorl declaration" >&5
38bd7296 14110 cat > conftest.$ac_ext <<EOF
29bd52c8 14111#line 14112 "configure"
38bd7296
BK
14112#include "confdefs.h"
14113#include <math.h>
14114int main() {
14115 _floorl(0);
14116; return 0; }
14117EOF
29bd52c8 14118if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14119 rm -rf conftest*
14120 use__floorl=yes
14121else
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 rm -rf conftest*
14125 use__floorl=no
14126fi
14127rm -f conftest*
14128 echo "$ac_t""$use__floorl" 1>&6
14129 ac_ext=c
14130# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14131ac_cpp='$CPP $CPPFLAGS'
14132ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14133ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14134cross_compiling=$ac_cv_prog_cc_cross
14135
14136 if test x$use__floorl = x"yes"; then
14137 for ac_func in _floorl
14138do
14139echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14140echo "configure:14141: checking for $ac_func" >&5
38bd7296
BK
14141if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14142 echo $ac_n "(cached) $ac_c" 1>&6
14143else
14144 cat > conftest.$ac_ext <<EOF
29bd52c8 14145#line 14146 "configure"
38bd7296
BK
14146#include "confdefs.h"
14147/* System header to define __stub macros and hopefully few prototypes,
14148 which can conflict with char $ac_func(); below. */
14149#include <assert.h>
14150/* Override any gcc2 internal prototype to avoid an error. */
14151/* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14153char $ac_func();
14154
14155int main() {
14156
14157/* The GNU C library defines this for functions which it implements
14158 to always fail with ENOSYS. Some functions are actually named
14159 something starting with __ and the normal name is an alias. */
14160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14161choke me
14162#else
14163$ac_func();
14164#endif
14165
14166; return 0; }
14167EOF
29bd52c8 14168if { (eval echo configure:14169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14169 rm -rf conftest*
14170 eval "ac_cv_func_$ac_func=yes"
14171else
14172 echo "configure: failed program was:" >&5
14173 cat conftest.$ac_ext >&5
14174 rm -rf conftest*
14175 eval "ac_cv_func_$ac_func=no"
14176fi
14177rm -f conftest*
14178fi
14179
14180if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14181 echo "$ac_t""yes" 1>&6
14182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14183 cat >> confdefs.h <<EOF
14184#define $ac_tr_func 1
14185EOF
14186
14187else
14188 echo "$ac_t""no" 1>&6
14189fi
14190done
14191
14192 fi
14193
14194
14195
14196 ac_ext=C
14197# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14198ac_cpp='$CXXCPP $CPPFLAGS'
14199ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14200ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14201cross_compiling=$ac_cv_prog_cxx_cross
14202
14203 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
29bd52c8 14204echo "configure:14205: checking for _fmodl declaration" >&5
38bd7296 14205 cat > conftest.$ac_ext <<EOF
29bd52c8 14206#line 14207 "configure"
38bd7296
BK
14207#include "confdefs.h"
14208#include <math.h>
14209int main() {
14210 _fmodl(0, 0);
14211; return 0; }
14212EOF
29bd52c8 14213if { (eval echo configure:14214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14214 rm -rf conftest*
14215 use__fmodl=yes
14216else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 use__fmodl=no
14221fi
14222rm -f conftest*
14223 echo "$ac_t""$use__fmodl" 1>&6
14224 ac_ext=c
14225# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14226ac_cpp='$CPP $CPPFLAGS'
14227ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14228ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14229cross_compiling=$ac_cv_prog_cc_cross
14230
14231 if test x$use__fmodl = x"yes"; then
14232 for ac_func in _fmodl
14233do
14234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14235echo "configure:14236: checking for $ac_func" >&5
38bd7296
BK
14236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14237 echo $ac_n "(cached) $ac_c" 1>&6
14238else
14239 cat > conftest.$ac_ext <<EOF
29bd52c8 14240#line 14241 "configure"
38bd7296
BK
14241#include "confdefs.h"
14242/* System header to define __stub macros and hopefully few prototypes,
14243 which can conflict with char $ac_func(); below. */
14244#include <assert.h>
14245/* Override any gcc2 internal prototype to avoid an error. */
14246/* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14248char $ac_func();
14249
14250int main() {
14251
14252/* The GNU C library defines this for functions which it implements
14253 to always fail with ENOSYS. Some functions are actually named
14254 something starting with __ and the normal name is an alias. */
14255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14256choke me
14257#else
14258$ac_func();
14259#endif
14260
14261; return 0; }
14262EOF
29bd52c8 14263if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14264 rm -rf conftest*
14265 eval "ac_cv_func_$ac_func=yes"
14266else
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14269 rm -rf conftest*
14270 eval "ac_cv_func_$ac_func=no"
14271fi
14272rm -f conftest*
14273fi
14274
14275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14276 echo "$ac_t""yes" 1>&6
14277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14278 cat >> confdefs.h <<EOF
14279#define $ac_tr_func 1
14280EOF
14281
14282else
14283 echo "$ac_t""no" 1>&6
14284fi
14285done
14286
14287 fi
14288
14289
14290
14291 ac_ext=C
14292# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14293ac_cpp='$CXXCPP $CPPFLAGS'
14294ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14295ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14296cross_compiling=$ac_cv_prog_cxx_cross
14297
14298 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
29bd52c8 14299echo "configure:14300: checking for _frexpl declaration" >&5
38bd7296 14300 cat > conftest.$ac_ext <<EOF
29bd52c8 14301#line 14302 "configure"
38bd7296
BK
14302#include "confdefs.h"
14303#include <math.h>
14304int main() {
14305 _frexpl(0, 0);
14306; return 0; }
14307EOF
29bd52c8 14308if { (eval echo configure:14309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14309 rm -rf conftest*
14310 use__frexpl=yes
14311else
14312 echo "configure: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 rm -rf conftest*
14315 use__frexpl=no
14316fi
14317rm -f conftest*
14318 echo "$ac_t""$use__frexpl" 1>&6
14319 ac_ext=c
14320# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14321ac_cpp='$CPP $CPPFLAGS'
14322ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14323ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14324cross_compiling=$ac_cv_prog_cc_cross
14325
14326 if test x$use__frexpl = x"yes"; then
14327 for ac_func in _frexpl
14328do
14329echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14330echo "configure:14331: checking for $ac_func" >&5
38bd7296
BK
14331if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14332 echo $ac_n "(cached) $ac_c" 1>&6
14333else
14334 cat > conftest.$ac_ext <<EOF
29bd52c8 14335#line 14336 "configure"
38bd7296
BK
14336#include "confdefs.h"
14337/* System header to define __stub macros and hopefully few prototypes,
14338 which can conflict with char $ac_func(); below. */
14339#include <assert.h>
14340/* Override any gcc2 internal prototype to avoid an error. */
14341/* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14343char $ac_func();
14344
14345int main() {
14346
14347/* The GNU C library defines this for functions which it implements
14348 to always fail with ENOSYS. Some functions are actually named
14349 something starting with __ and the normal name is an alias. */
14350#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14351choke me
14352#else
14353$ac_func();
14354#endif
14355
14356; return 0; }
14357EOF
29bd52c8 14358if { (eval echo configure:14359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14359 rm -rf conftest*
14360 eval "ac_cv_func_$ac_func=yes"
14361else
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 rm -rf conftest*
14365 eval "ac_cv_func_$ac_func=no"
14366fi
14367rm -f conftest*
14368fi
14369
14370if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
14372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14373 cat >> confdefs.h <<EOF
14374#define $ac_tr_func 1
14375EOF
14376
14377else
14378 echo "$ac_t""no" 1>&6
14379fi
14380done
14381
14382 fi
14383
14384
14385
14386 ac_ext=C
14387# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14388ac_cpp='$CXXCPP $CPPFLAGS'
14389ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14390ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14391cross_compiling=$ac_cv_prog_cxx_cross
14392
14393 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
29bd52c8 14394echo "configure:14395: checking for _ldexpl declaration" >&5
38bd7296 14395 cat > conftest.$ac_ext <<EOF
29bd52c8 14396#line 14397 "configure"
38bd7296
BK
14397#include "confdefs.h"
14398#include <math.h>
14399int main() {
14400 _ldexpl(0, 0);
14401; return 0; }
14402EOF
29bd52c8 14403if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14404 rm -rf conftest*
14405 use__ldexpl=yes
14406else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 use__ldexpl=no
14411fi
14412rm -f conftest*
14413 echo "$ac_t""$use__ldexpl" 1>&6
14414 ac_ext=c
14415# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14416ac_cpp='$CPP $CPPFLAGS'
14417ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14418ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14419cross_compiling=$ac_cv_prog_cc_cross
14420
14421 if test x$use__ldexpl = x"yes"; then
14422 for ac_func in _ldexpl
14423do
14424echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14425echo "configure:14426: checking for $ac_func" >&5
38bd7296
BK
14426if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14427 echo $ac_n "(cached) $ac_c" 1>&6
14428else
14429 cat > conftest.$ac_ext <<EOF
29bd52c8 14430#line 14431 "configure"
38bd7296
BK
14431#include "confdefs.h"
14432/* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char $ac_func(); below. */
14434#include <assert.h>
14435/* Override any gcc2 internal prototype to avoid an error. */
14436/* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14438char $ac_func();
14439
14440int main() {
14441
14442/* The GNU C library defines this for functions which it implements
14443 to always fail with ENOSYS. Some functions are actually named
14444 something starting with __ and the normal name is an alias. */
14445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14446choke me
14447#else
14448$ac_func();
14449#endif
14450
14451; return 0; }
14452EOF
29bd52c8 14453if { (eval echo configure:14454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14454 rm -rf conftest*
14455 eval "ac_cv_func_$ac_func=yes"
14456else
14457 echo "configure: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 rm -rf conftest*
14460 eval "ac_cv_func_$ac_func=no"
14461fi
14462rm -f conftest*
14463fi
14464
14465if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14466 echo "$ac_t""yes" 1>&6
14467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14468 cat >> confdefs.h <<EOF
14469#define $ac_tr_func 1
14470EOF
14471
14472else
14473 echo "$ac_t""no" 1>&6
14474fi
14475done
14476
14477 fi
14478
14479
14480
14481 ac_ext=C
14482# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14483ac_cpp='$CXXCPP $CPPFLAGS'
14484ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14485ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14486cross_compiling=$ac_cv_prog_cxx_cross
14487
14488 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
29bd52c8 14489echo "configure:14490: checking for _logl declaration" >&5
38bd7296 14490 cat > conftest.$ac_ext <<EOF
29bd52c8 14491#line 14492 "configure"
38bd7296
BK
14492#include "confdefs.h"
14493#include <math.h>
14494int main() {
14495 _logl(0);
14496; return 0; }
14497EOF
29bd52c8 14498if { (eval echo configure:14499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14499 rm -rf conftest*
14500 use__logl=yes
14501else
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 rm -rf conftest*
14505 use__logl=no
14506fi
14507rm -f conftest*
14508 echo "$ac_t""$use__logl" 1>&6
14509 ac_ext=c
14510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14511ac_cpp='$CPP $CPPFLAGS'
14512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14513ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14514cross_compiling=$ac_cv_prog_cc_cross
14515
14516 if test x$use__logl = x"yes"; then
14517 for ac_func in _logl
14518do
14519echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14520echo "configure:14521: checking for $ac_func" >&5
38bd7296
BK
14521if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14522 echo $ac_n "(cached) $ac_c" 1>&6
14523else
14524 cat > conftest.$ac_ext <<EOF
29bd52c8 14525#line 14526 "configure"
38bd7296
BK
14526#include "confdefs.h"
14527/* System header to define __stub macros and hopefully few prototypes,
14528 which can conflict with char $ac_func(); below. */
14529#include <assert.h>
14530/* Override any gcc2 internal prototype to avoid an error. */
14531/* We use char because int might match the return type of a gcc2
14532 builtin and then its argument prototype would still apply. */
14533char $ac_func();
14534
14535int main() {
14536
14537/* The GNU C library defines this for functions which it implements
14538 to always fail with ENOSYS. Some functions are actually named
14539 something starting with __ and the normal name is an alias. */
14540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541choke me
14542#else
14543$ac_func();
14544#endif
14545
14546; return 0; }
14547EOF
29bd52c8 14548if { (eval echo configure:14549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14549 rm -rf conftest*
14550 eval "ac_cv_func_$ac_func=yes"
14551else
14552 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5
14554 rm -rf conftest*
14555 eval "ac_cv_func_$ac_func=no"
14556fi
14557rm -f conftest*
14558fi
14559
14560if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14561 echo "$ac_t""yes" 1>&6
14562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14563 cat >> confdefs.h <<EOF
14564#define $ac_tr_func 1
14565EOF
14566
14567else
14568 echo "$ac_t""no" 1>&6
14569fi
14570done
14571
14572 fi
14573
14574
14575
14576 ac_ext=C
14577# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14578ac_cpp='$CXXCPP $CPPFLAGS'
14579ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14580ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14581cross_compiling=$ac_cv_prog_cxx_cross
14582
14583 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
29bd52c8 14584echo "configure:14585: checking for _log10l declaration" >&5
38bd7296 14585 cat > conftest.$ac_ext <<EOF
29bd52c8 14586#line 14587 "configure"
38bd7296
BK
14587#include "confdefs.h"
14588#include <math.h>
14589int main() {
14590 _log10l(0);
14591; return 0; }
14592EOF
29bd52c8 14593if { (eval echo configure:14594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14594 rm -rf conftest*
14595 use__log10l=yes
14596else
14597 echo "configure: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14599 rm -rf conftest*
14600 use__log10l=no
14601fi
14602rm -f conftest*
14603 echo "$ac_t""$use__log10l" 1>&6
14604 ac_ext=c
14605# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14606ac_cpp='$CPP $CPPFLAGS'
14607ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14608ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14609cross_compiling=$ac_cv_prog_cc_cross
14610
14611 if test x$use__log10l = x"yes"; then
14612 for ac_func in _log10l
14613do
14614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14615echo "configure:14616: checking for $ac_func" >&5
38bd7296
BK
14616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14617 echo $ac_n "(cached) $ac_c" 1>&6
14618else
14619 cat > conftest.$ac_ext <<EOF
29bd52c8 14620#line 14621 "configure"
38bd7296
BK
14621#include "confdefs.h"
14622/* System header to define __stub macros and hopefully few prototypes,
14623 which can conflict with char $ac_func(); below. */
14624#include <assert.h>
14625/* Override any gcc2 internal prototype to avoid an error. */
14626/* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628char $ac_func();
14629
14630int main() {
14631
14632/* The GNU C library defines this for functions which it implements
14633 to always fail with ENOSYS. Some functions are actually named
14634 something starting with __ and the normal name is an alias. */
14635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14636choke me
14637#else
14638$ac_func();
14639#endif
14640
14641; return 0; }
14642EOF
29bd52c8 14643if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14644 rm -rf conftest*
14645 eval "ac_cv_func_$ac_func=yes"
14646else
14647 echo "configure: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14649 rm -rf conftest*
14650 eval "ac_cv_func_$ac_func=no"
14651fi
14652rm -f conftest*
14653fi
14654
14655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14656 echo "$ac_t""yes" 1>&6
14657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14658 cat >> confdefs.h <<EOF
14659#define $ac_tr_func 1
14660EOF
14661
14662else
14663 echo "$ac_t""no" 1>&6
14664fi
14665done
14666
14667 fi
14668
14669
14670
14671 ac_ext=C
14672# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14673ac_cpp='$CXXCPP $CPPFLAGS'
14674ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14675ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14676cross_compiling=$ac_cv_prog_cxx_cross
14677
14678 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
29bd52c8 14679echo "configure:14680: checking for _modfl declaration" >&5
38bd7296 14680 cat > conftest.$ac_ext <<EOF
29bd52c8 14681#line 14682 "configure"
38bd7296
BK
14682#include "confdefs.h"
14683#include <math.h>
14684int main() {
14685 _modfl(0, 0);
14686; return 0; }
14687EOF
29bd52c8 14688if { (eval echo configure:14689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14689 rm -rf conftest*
14690 use__modfl=yes
14691else
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 rm -rf conftest*
14695 use__modfl=no
14696fi
14697rm -f conftest*
14698 echo "$ac_t""$use__modfl" 1>&6
14699 ac_ext=c
14700# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14701ac_cpp='$CPP $CPPFLAGS'
14702ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14703ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14704cross_compiling=$ac_cv_prog_cc_cross
14705
14706 if test x$use__modfl = x"yes"; then
14707 for ac_func in _modfl
14708do
14709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14710echo "configure:14711: checking for $ac_func" >&5
38bd7296
BK
14711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14712 echo $ac_n "(cached) $ac_c" 1>&6
14713else
14714 cat > conftest.$ac_ext <<EOF
29bd52c8 14715#line 14716 "configure"
38bd7296
BK
14716#include "confdefs.h"
14717/* System header to define __stub macros and hopefully few prototypes,
14718 which can conflict with char $ac_func(); below. */
14719#include <assert.h>
14720/* Override any gcc2 internal prototype to avoid an error. */
14721/* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14723char $ac_func();
14724
14725int main() {
14726
14727/* The GNU C library defines this for functions which it implements
14728 to always fail with ENOSYS. Some functions are actually named
14729 something starting with __ and the normal name is an alias. */
14730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14731choke me
14732#else
14733$ac_func();
14734#endif
14735
14736; return 0; }
14737EOF
29bd52c8 14738if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14739 rm -rf conftest*
14740 eval "ac_cv_func_$ac_func=yes"
14741else
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 rm -rf conftest*
14745 eval "ac_cv_func_$ac_func=no"
14746fi
14747rm -f conftest*
14748fi
14749
14750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14751 echo "$ac_t""yes" 1>&6
14752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14753 cat >> confdefs.h <<EOF
14754#define $ac_tr_func 1
14755EOF
14756
14757else
14758 echo "$ac_t""no" 1>&6
14759fi
14760done
14761
14762 fi
14763
14764
14765
14766 ac_ext=C
14767# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14768ac_cpp='$CXXCPP $CPPFLAGS'
14769ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14770ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14771cross_compiling=$ac_cv_prog_cxx_cross
14772
14773 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
29bd52c8 14774echo "configure:14775: checking for _powl declaration" >&5
38bd7296 14775 cat > conftest.$ac_ext <<EOF
29bd52c8 14776#line 14777 "configure"
38bd7296
BK
14777#include "confdefs.h"
14778#include <math.h>
14779int main() {
14780 _powl(0, 0);
14781; return 0; }
14782EOF
29bd52c8 14783if { (eval echo configure:14784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14784 rm -rf conftest*
14785 use__powl=yes
14786else
14787 echo "configure: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 rm -rf conftest*
14790 use__powl=no
14791fi
14792rm -f conftest*
14793 echo "$ac_t""$use__powl" 1>&6
14794 ac_ext=c
14795# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14796ac_cpp='$CPP $CPPFLAGS'
14797ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14798ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14799cross_compiling=$ac_cv_prog_cc_cross
14800
14801 if test x$use__powl = x"yes"; then
14802 for ac_func in _powl
14803do
14804echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14805echo "configure:14806: checking for $ac_func" >&5
38bd7296
BK
14806if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14807 echo $ac_n "(cached) $ac_c" 1>&6
14808else
14809 cat > conftest.$ac_ext <<EOF
29bd52c8 14810#line 14811 "configure"
38bd7296
BK
14811#include "confdefs.h"
14812/* System header to define __stub macros and hopefully few prototypes,
14813 which can conflict with char $ac_func(); below. */
14814#include <assert.h>
14815/* Override any gcc2 internal prototype to avoid an error. */
14816/* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14818char $ac_func();
14819
14820int main() {
14821
14822/* The GNU C library defines this for functions which it implements
14823 to always fail with ENOSYS. Some functions are actually named
14824 something starting with __ and the normal name is an alias. */
14825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14826choke me
14827#else
14828$ac_func();
14829#endif
14830
14831; return 0; }
14832EOF
29bd52c8 14833if { (eval echo configure:14834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14834 rm -rf conftest*
14835 eval "ac_cv_func_$ac_func=yes"
14836else
14837 echo "configure: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 rm -rf conftest*
14840 eval "ac_cv_func_$ac_func=no"
14841fi
14842rm -f conftest*
14843fi
14844
14845if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14846 echo "$ac_t""yes" 1>&6
14847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14848 cat >> confdefs.h <<EOF
14849#define $ac_tr_func 1
14850EOF
14851
14852else
14853 echo "$ac_t""no" 1>&6
14854fi
14855done
14856
14857 fi
14858
14859
14860
14861 ac_ext=C
14862# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14863ac_cpp='$CXXCPP $CPPFLAGS'
14864ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14865ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14866cross_compiling=$ac_cv_prog_cxx_cross
14867
14868 echo $ac_n "checking for _sinl declaration""... $ac_c" 1>&6
29bd52c8 14869echo "configure:14870: checking for _sinl declaration" >&5
38bd7296 14870 cat > conftest.$ac_ext <<EOF
29bd52c8 14871#line 14872 "configure"
38bd7296
BK
14872#include "confdefs.h"
14873#include <math.h>
14874int main() {
11fc1858 14875 _sinl(0);
38bd7296
BK
14876; return 0; }
14877EOF
29bd52c8 14878if { (eval echo configure:14879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14879 rm -rf conftest*
14880 use__sinl=yes
14881else
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 rm -rf conftest*
14885 use__sinl=no
14886fi
14887rm -f conftest*
14888 echo "$ac_t""$use__sinl" 1>&6
14889 ac_ext=c
14890# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14891ac_cpp='$CPP $CPPFLAGS'
14892ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14893ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14894cross_compiling=$ac_cv_prog_cc_cross
14895
14896 if test x$use__sinl = x"yes"; then
14897 for ac_func in _sinl
14898do
14899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14900echo "configure:14901: checking for $ac_func" >&5
38bd7296
BK
14901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14903else
14904 cat > conftest.$ac_ext <<EOF
29bd52c8 14905#line 14906 "configure"
38bd7296
BK
14906#include "confdefs.h"
14907/* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char $ac_func(); below. */
14909#include <assert.h>
14910/* Override any gcc2 internal prototype to avoid an error. */
14911/* We use char because int might match the return type of a gcc2
14912 builtin and then its argument prototype would still apply. */
14913char $ac_func();
14914
14915int main() {
14916
14917/* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14921choke me
14922#else
14923$ac_func();
14924#endif
14925
14926; return 0; }
14927EOF
29bd52c8 14928if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14929 rm -rf conftest*
14930 eval "ac_cv_func_$ac_func=yes"
14931else
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
14935 eval "ac_cv_func_$ac_func=no"
14936fi
14937rm -f conftest*
14938fi
14939
14940if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943 cat >> confdefs.h <<EOF
14944#define $ac_tr_func 1
14945EOF
14946
14947else
14948 echo "$ac_t""no" 1>&6
14949fi
14950done
14951
14952 fi
14953
14954
14955
14956 ac_ext=C
14957# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14958ac_cpp='$CXXCPP $CPPFLAGS'
14959ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14960ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14961cross_compiling=$ac_cv_prog_cxx_cross
14962
14963 echo $ac_n "checking for _sinhl declaration""... $ac_c" 1>&6
29bd52c8 14964echo "configure:14965: checking for _sinhl declaration" >&5
38bd7296 14965 cat > conftest.$ac_ext <<EOF
29bd52c8 14966#line 14967 "configure"
38bd7296
BK
14967#include "confdefs.h"
14968#include <math.h>
14969int main() {
14970 _sinhl(0);
14971; return 0; }
14972EOF
29bd52c8 14973if { (eval echo configure:14974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
14974 rm -rf conftest*
14975 use__sinhl=yes
14976else
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 rm -rf conftest*
14980 use__sinhl=no
14981fi
14982rm -f conftest*
14983 echo "$ac_t""$use__sinhl" 1>&6
14984 ac_ext=c
14985# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14986ac_cpp='$CPP $CPPFLAGS'
14987ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14988ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14989cross_compiling=$ac_cv_prog_cc_cross
14990
14991 if test x$use__sinhl = x"yes"; then
14992 for ac_func in _sinhl
14993do
14994echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 14995echo "configure:14996: checking for $ac_func" >&5
38bd7296
BK
14996if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14997 echo $ac_n "(cached) $ac_c" 1>&6
14998else
14999 cat > conftest.$ac_ext <<EOF
29bd52c8 15000#line 15001 "configure"
38bd7296
BK
15001#include "confdefs.h"
15002/* System header to define __stub macros and hopefully few prototypes,
15003 which can conflict with char $ac_func(); below. */
15004#include <assert.h>
15005/* Override any gcc2 internal prototype to avoid an error. */
15006/* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15008char $ac_func();
15009
15010int main() {
15011
15012/* The GNU C library defines this for functions which it implements
15013 to always fail with ENOSYS. Some functions are actually named
15014 something starting with __ and the normal name is an alias. */
15015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15016choke me
15017#else
15018$ac_func();
15019#endif
15020
15021; return 0; }
15022EOF
29bd52c8 15023if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15024 rm -rf conftest*
15025 eval "ac_cv_func_$ac_func=yes"
15026else
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15029 rm -rf conftest*
15030 eval "ac_cv_func_$ac_func=no"
15031fi
15032rm -f conftest*
15033fi
15034
15035if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15036 echo "$ac_t""yes" 1>&6
15037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15038 cat >> confdefs.h <<EOF
15039#define $ac_tr_func 1
15040EOF
15041
15042else
15043 echo "$ac_t""no" 1>&6
15044fi
15045done
15046
15047 fi
15048
15049
15050
15051 ac_ext=C
15052# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15053ac_cpp='$CXXCPP $CPPFLAGS'
15054ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15055ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15056cross_compiling=$ac_cv_prog_cxx_cross
15057
15058 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
29bd52c8 15059echo "configure:15060: checking for _sqrtl declaration" >&5
38bd7296 15060 cat > conftest.$ac_ext <<EOF
29bd52c8 15061#line 15062 "configure"
38bd7296
BK
15062#include "confdefs.h"
15063#include <math.h>
15064int main() {
15065 _sqrtl(0);
15066; return 0; }
15067EOF
29bd52c8 15068if { (eval echo configure:15069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15069 rm -rf conftest*
15070 use__sqrtl=yes
15071else
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15074 rm -rf conftest*
15075 use__sqrtl=no
15076fi
15077rm -f conftest*
15078 echo "$ac_t""$use__sqrtl" 1>&6
15079 ac_ext=c
15080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15081ac_cpp='$CPP $CPPFLAGS'
15082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15084cross_compiling=$ac_cv_prog_cc_cross
15085
15086 if test x$use__sqrtl = x"yes"; then
15087 for ac_func in _sqrtl
15088do
15089echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15090echo "configure:15091: checking for $ac_func" >&5
38bd7296
BK
15091if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093else
15094 cat > conftest.$ac_ext <<EOF
29bd52c8 15095#line 15096 "configure"
38bd7296
BK
15096#include "confdefs.h"
15097/* System header to define __stub macros and hopefully few prototypes,
15098 which can conflict with char $ac_func(); below. */
15099#include <assert.h>
15100/* Override any gcc2 internal prototype to avoid an error. */
15101/* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103char $ac_func();
15104
15105int main() {
15106
15107/* The GNU C library defines this for functions which it implements
15108 to always fail with ENOSYS. Some functions are actually named
15109 something starting with __ and the normal name is an alias. */
15110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15111choke me
15112#else
15113$ac_func();
15114#endif
15115
15116; return 0; }
15117EOF
29bd52c8 15118if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15119 rm -rf conftest*
15120 eval "ac_cv_func_$ac_func=yes"
15121else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125 eval "ac_cv_func_$ac_func=no"
15126fi
15127rm -f conftest*
15128fi
15129
15130if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15131 echo "$ac_t""yes" 1>&6
15132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15133 cat >> confdefs.h <<EOF
15134#define $ac_tr_func 1
15135EOF
15136
15137else
15138 echo "$ac_t""no" 1>&6
15139fi
15140done
15141
15142 fi
15143
15144
15145
15146 ac_ext=C
15147# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15148ac_cpp='$CXXCPP $CPPFLAGS'
15149ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15150ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15151cross_compiling=$ac_cv_prog_cxx_cross
15152
15153 echo $ac_n "checking for _tanl declaration""... $ac_c" 1>&6
29bd52c8 15154echo "configure:15155: checking for _tanl declaration" >&5
38bd7296 15155 cat > conftest.$ac_ext <<EOF
29bd52c8 15156#line 15157 "configure"
38bd7296
BK
15157#include "confdefs.h"
15158#include <math.h>
15159int main() {
15160 _tanl(0);
15161; return 0; }
15162EOF
29bd52c8 15163if { (eval echo configure:15164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15164 rm -rf conftest*
15165 use__tanl=yes
15166else
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 rm -rf conftest*
15170 use__tanl=no
15171fi
15172rm -f conftest*
15173 echo "$ac_t""$use__tanl" 1>&6
15174 ac_ext=c
15175# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15176ac_cpp='$CPP $CPPFLAGS'
15177ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15178ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15179cross_compiling=$ac_cv_prog_cc_cross
15180
15181 if test x$use__tanl = x"yes"; then
15182 for ac_func in _tanl
15183do
15184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15185echo "configure:15186: checking for $ac_func" >&5
38bd7296
BK
15186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15188else
15189 cat > conftest.$ac_ext <<EOF
29bd52c8 15190#line 15191 "configure"
38bd7296
BK
15191#include "confdefs.h"
15192/* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char $ac_func(); below. */
15194#include <assert.h>
15195/* Override any gcc2 internal prototype to avoid an error. */
15196/* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15198char $ac_func();
15199
15200int main() {
15201
15202/* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15206choke me
15207#else
15208$ac_func();
15209#endif
15210
15211; return 0; }
15212EOF
29bd52c8 15213if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15214 rm -rf conftest*
15215 eval "ac_cv_func_$ac_func=yes"
15216else
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 rm -rf conftest*
15220 eval "ac_cv_func_$ac_func=no"
15221fi
15222rm -f conftest*
15223fi
15224
15225if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15226 echo "$ac_t""yes" 1>&6
15227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15228 cat >> confdefs.h <<EOF
15229#define $ac_tr_func 1
15230EOF
15231
15232else
15233 echo "$ac_t""no" 1>&6
15234fi
15235done
15236
15237 fi
15238
15239
15240
15241 ac_ext=C
15242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15243ac_cpp='$CXXCPP $CPPFLAGS'
15244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15246cross_compiling=$ac_cv_prog_cxx_cross
15247
15248 echo $ac_n "checking for _tanhl declaration""... $ac_c" 1>&6
29bd52c8 15249echo "configure:15250: checking for _tanhl declaration" >&5
38bd7296 15250 cat > conftest.$ac_ext <<EOF
29bd52c8 15251#line 15252 "configure"
38bd7296
BK
15252#include "confdefs.h"
15253#include <math.h>
15254int main() {
15255 _tanhl(0);
15256; return 0; }
15257EOF
29bd52c8 15258if { (eval echo configure:15259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15259 rm -rf conftest*
15260 use__tanhl=yes
15261else
15262 echo "configure: failed program was:" >&5
15263 cat conftest.$ac_ext >&5
15264 rm -rf conftest*
15265 use__tanhl=no
15266fi
15267rm -f conftest*
15268 echo "$ac_t""$use__tanhl" 1>&6
15269 ac_ext=c
15270# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15271ac_cpp='$CPP $CPPFLAGS'
15272ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15273ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15274cross_compiling=$ac_cv_prog_cc_cross
15275
15276 if test x$use__tanhl = x"yes"; then
15277 for ac_func in _tanhl
15278do
15279echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15280echo "configure:15281: checking for $ac_func" >&5
38bd7296
BK
15281if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15282 echo $ac_n "(cached) $ac_c" 1>&6
15283else
15284 cat > conftest.$ac_ext <<EOF
29bd52c8 15285#line 15286 "configure"
38bd7296
BK
15286#include "confdefs.h"
15287/* System header to define __stub macros and hopefully few prototypes,
15288 which can conflict with char $ac_func(); below. */
15289#include <assert.h>
15290/* Override any gcc2 internal prototype to avoid an error. */
15291/* We use char because int might match the return type of a gcc2
15292 builtin and then its argument prototype would still apply. */
15293char $ac_func();
15294
15295int main() {
15296
15297/* The GNU C library defines this for functions which it implements
15298 to always fail with ENOSYS. Some functions are actually named
15299 something starting with __ and the normal name is an alias. */
15300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15301choke me
15302#else
15303$ac_func();
15304#endif
15305
15306; return 0; }
15307EOF
29bd52c8 15308if { (eval echo configure:15309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15309 rm -rf conftest*
15310 eval "ac_cv_func_$ac_func=yes"
15311else
15312 echo "configure: failed program was:" >&5
15313 cat conftest.$ac_ext >&5
15314 rm -rf conftest*
15315 eval "ac_cv_func_$ac_func=no"
15316fi
15317rm -f conftest*
15318fi
15319
15320if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15321 echo "$ac_t""yes" 1>&6
15322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15323 cat >> confdefs.h <<EOF
15324#define $ac_tr_func 1
15325EOF
15326
15327else
15328 echo "$ac_t""no" 1>&6
15329fi
15330done
15331
15332 fi
15333
15334
15335
15336 ac_ext=C
15337# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15338ac_cpp='$CXXCPP $CPPFLAGS'
15339ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15340ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15341cross_compiling=$ac_cv_prog_cxx_cross
15342
15343 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
29bd52c8 15344echo "configure:15345: checking for _sincosl declaration" >&5
38bd7296 15345 cat > conftest.$ac_ext <<EOF
29bd52c8 15346#line 15347 "configure"
38bd7296
BK
15347#include "confdefs.h"
15348#include <math.h>
15349int main() {
15350 _sincosl(0, 0, 0);
15351; return 0; }
15352EOF
29bd52c8 15353if { (eval echo configure:15354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15354 rm -rf conftest*
15355 use__sincosl=yes
15356else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 use__sincosl=no
15361fi
15362rm -f conftest*
15363 echo "$ac_t""$use__sincosl" 1>&6
15364 ac_ext=c
15365# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15366ac_cpp='$CPP $CPPFLAGS'
15367ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15368ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15369cross_compiling=$ac_cv_prog_cc_cross
15370
15371 if test x$use__sincosl = x"yes"; then
15372 for ac_func in _sincosl
15373do
15374echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15375echo "configure:15376: checking for $ac_func" >&5
38bd7296
BK
15376if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15377 echo $ac_n "(cached) $ac_c" 1>&6
15378else
15379 cat > conftest.$ac_ext <<EOF
29bd52c8 15380#line 15381 "configure"
38bd7296
BK
15381#include "confdefs.h"
15382/* System header to define __stub macros and hopefully few prototypes,
15383 which can conflict with char $ac_func(); below. */
15384#include <assert.h>
15385/* Override any gcc2 internal prototype to avoid an error. */
15386/* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15388char $ac_func();
15389
15390int main() {
15391
15392/* The GNU C library defines this for functions which it implements
15393 to always fail with ENOSYS. Some functions are actually named
15394 something starting with __ and the normal name is an alias. */
15395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15396choke me
15397#else
15398$ac_func();
15399#endif
15400
15401; return 0; }
15402EOF
29bd52c8 15403if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15404 rm -rf conftest*
15405 eval "ac_cv_func_$ac_func=yes"
15406else
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 rm -rf conftest*
15410 eval "ac_cv_func_$ac_func=no"
15411fi
15412rm -f conftest*
15413fi
15414
15415if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15416 echo "$ac_t""yes" 1>&6
15417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15418 cat >> confdefs.h <<EOF
15419#define $ac_tr_func 1
15420EOF
15421
15422else
15423 echo "$ac_t""no" 1>&6
15424fi
15425done
15426
15427 fi
15428
15429
15430
15431 ac_ext=C
15432# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15433ac_cpp='$CXXCPP $CPPFLAGS'
15434ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15435ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15436cross_compiling=$ac_cv_prog_cxx_cross
15437
15438 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
29bd52c8 15439echo "configure:15440: checking for _finitel declaration" >&5
38bd7296 15440 cat > conftest.$ac_ext <<EOF
29bd52c8 15441#line 15442 "configure"
38bd7296
BK
15442#include "confdefs.h"
15443#include <math.h>
15444int main() {
15445 _finitel(0);
15446; return 0; }
15447EOF
29bd52c8 15448if { (eval echo configure:15449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15449 rm -rf conftest*
15450 use__finitel=yes
15451else
15452 echo "configure: failed program was:" >&5
15453 cat conftest.$ac_ext >&5
15454 rm -rf conftest*
15455 use__finitel=no
15456fi
15457rm -f conftest*
15458 echo "$ac_t""$use__finitel" 1>&6
15459 ac_ext=c
15460# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15461ac_cpp='$CPP $CPPFLAGS'
15462ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15463ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15464cross_compiling=$ac_cv_prog_cc_cross
15465
15466 if test x$use__finitel = x"yes"; then
15467 for ac_func in _finitel
15468do
15469echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15470echo "configure:15471: checking for $ac_func" >&5
38bd7296
BK
15471if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15472 echo $ac_n "(cached) $ac_c" 1>&6
15473else
15474 cat > conftest.$ac_ext <<EOF
29bd52c8 15475#line 15476 "configure"
38bd7296
BK
15476#include "confdefs.h"
15477/* System header to define __stub macros and hopefully few prototypes,
15478 which can conflict with char $ac_func(); below. */
15479#include <assert.h>
15480/* Override any gcc2 internal prototype to avoid an error. */
15481/* We use char because int might match the return type of a gcc2
15482 builtin and then its argument prototype would still apply. */
15483char $ac_func();
15484
15485int main() {
15486
15487/* The GNU C library defines this for functions which it implements
15488 to always fail with ENOSYS. Some functions are actually named
15489 something starting with __ and the normal name is an alias. */
15490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15491choke me
15492#else
15493$ac_func();
15494#endif
15495
15496; return 0; }
15497EOF
29bd52c8 15498if { (eval echo configure:15499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15499 rm -rf conftest*
15500 eval "ac_cv_func_$ac_func=yes"
15501else
15502 echo "configure: failed program was:" >&5
15503 cat conftest.$ac_ext >&5
15504 rm -rf conftest*
15505 eval "ac_cv_func_$ac_func=no"
15506fi
15507rm -f conftest*
15508fi
15509
15510if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15511 echo "$ac_t""yes" 1>&6
15512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15513 cat >> confdefs.h <<EOF
15514#define $ac_tr_func 1
15515EOF
15516
15517else
15518 echo "$ac_t""no" 1>&6
15519fi
15520done
15521
15522 fi
15523
15524
15525 LIBS="$ac_save_LIBS"
15526 CXXFLAGS="$ac_save_CXXFLAGS"
15527
15528
15529 for ac_hdr in complex.h
15530do
15531ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15532echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29bd52c8 15533echo "configure:15534: checking for $ac_hdr" >&5
38bd7296
BK
15534if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15535 echo $ac_n "(cached) $ac_c" 1>&6
15536else
15537 cat > conftest.$ac_ext <<EOF
29bd52c8 15538#line 15539 "configure"
38bd7296
BK
15539#include "confdefs.h"
15540#include <$ac_hdr>
15541EOF
15542ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 15543{ (eval echo configure:15544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
38bd7296
BK
15544ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15545if test -z "$ac_err"; then
15546 rm -rf conftest*
15547 eval "ac_cv_header_$ac_safe=yes"
15548else
15549 echo "$ac_err" >&5
15550 echo "configure: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 rm -rf conftest*
15553 eval "ac_cv_header_$ac_safe=no"
15554fi
15555rm -f conftest*
15556fi
15557if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15558 echo "$ac_t""yes" 1>&6
15559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15560 cat >> confdefs.h <<EOF
15561#define $ac_tr_hdr 1
15562EOF
15563
15564else
15565 echo "$ac_t""no" 1>&6
15566fi
15567done
15568
15569 for ac_func in ccos ccosf ccosh ccoshf cexp cexpf c_log c_logf \
15570 clog10 clog10f cpow cpowf csin csinf csinh csinhf csqrt csqrtf \
11fc1858 15571 ctan ctanf ctanh ctanhf carg cargf nan hypot hypotf atan2f expf copysignf
38bd7296
BK
15572do
15573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15574echo "configure:15575: checking for $ac_func" >&5
38bd7296
BK
15575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15576 echo $ac_n "(cached) $ac_c" 1>&6
15577else
15578 cat > conftest.$ac_ext <<EOF
29bd52c8 15579#line 15580 "configure"
38bd7296
BK
15580#include "confdefs.h"
15581/* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func(); below. */
15583#include <assert.h>
15584/* Override any gcc2 internal prototype to avoid an error. */
15585/* We use char because int might match the return type of a gcc2
15586 builtin and then its argument prototype would still apply. */
15587char $ac_func();
15588
15589int main() {
15590
15591/* The GNU C library defines this for functions which it implements
15592 to always fail with ENOSYS. Some functions are actually named
15593 something starting with __ and the normal name is an alias. */
15594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595choke me
15596#else
15597$ac_func();
15598#endif
15599
15600; return 0; }
15601EOF
29bd52c8 15602if { (eval echo configure:15603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15603 rm -rf conftest*
15604 eval "ac_cv_func_$ac_func=yes"
15605else
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15608 rm -rf conftest*
15609 eval "ac_cv_func_$ac_func=no"
15610fi
15611rm -f conftest*
15612fi
15613
15614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15615 echo "$ac_t""yes" 1>&6
15616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15617 cat >> confdefs.h <<EOF
15618#define $ac_tr_func 1
15619EOF
15620
15621else
15622 echo "$ac_t""no" 1>&6
15623LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15624fi
15625done
15626
15627
15628
11fc1858
BK
15629 USE_COMPLEX_LONG_DOUBLE=no
15630 if test x$ac_cv_func_atan2l = x"yes" \
15631 && test x$ac_cv_func_copysignl = x"yes"; then
15632 USE_COMPLEX_LONG_DOUBLE=yes
15633 for ac_func in ccoshl ccosl cexpl cpowl csinhl csinl \
15634 csqrtl ctanhl ctanl cargl hypotl signbitl c_logl clog10l
38bd7296
BK
15635do
15636echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15637echo "configure:15638: checking for $ac_func" >&5
38bd7296
BK
15638if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15640else
15641 cat > conftest.$ac_ext <<EOF
29bd52c8 15642#line 15643 "configure"
38bd7296
BK
15643#include "confdefs.h"
15644/* System header to define __stub macros and hopefully few prototypes,
15645 which can conflict with char $ac_func(); below. */
15646#include <assert.h>
15647/* Override any gcc2 internal prototype to avoid an error. */
15648/* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650char $ac_func();
15651
15652int main() {
15653
15654/* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15658choke me
15659#else
15660$ac_func();
15661#endif
15662
15663; return 0; }
15664EOF
29bd52c8 15665if { (eval echo configure:15666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15666 rm -rf conftest*
15667 eval "ac_cv_func_$ac_func=yes"
15668else
15669 echo "configure: failed program was:" >&5
15670 cat conftest.$ac_ext >&5
15671 rm -rf conftest*
15672 eval "ac_cv_func_$ac_func=no"
15673fi
15674rm -f conftest*
15675fi
15676
15677if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15678 echo "$ac_t""yes" 1>&6
15679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15680 cat >> confdefs.h <<EOF
15681#define $ac_tr_func 1
15682EOF
15683
15684else
15685 echo "$ac_t""no" 1>&6
15686LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15687fi
15688done
15689
15690
11fc1858 15691 fi
38bd7296
BK
15692
15693
15694
15695
15696
15697
15698 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
29bd52c8 15699echo "configure:15700: checking for GNU C++ __complex__ support" >&5
38bd7296
BK
15700 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15701 echo $ac_n "(cached) $ac_c" 1>&6
15702else
15703
15704
15705 ac_ext=C
15706# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15707ac_cpp='$CXXCPP $CPPFLAGS'
15708ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15709ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15710cross_compiling=$ac_cv_prog_cxx_cross
15711
15712 cat > conftest.$ac_ext <<EOF
29bd52c8 15713#line 15714 "configure"
38bd7296
BK
15714#include "confdefs.h"
15715struct dcomplex { __complex__ double x; }; \
15716 dcomplex f(const dcomplex& x) { return dcomplex(x); }
15717int main() {
15718\
15719 dcomplex x; f(x);
15720; return 0; }
15721EOF
29bd52c8 15722if { (eval echo configure:15723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
15723 rm -rf conftest*
15724 glibcpp_cv_complex=ok
2f103494
BK
15725else
15726 echo "configure: failed program was:" >&5
15727 cat conftest.$ac_ext >&5
15728 rm -rf conftest*
15729 glibcpp_cv_complex=buggy
15730
15731fi
15732rm -f conftest*
15733 ac_ext=c
15734# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15735ac_cpp='$CPP $CPPFLAGS'
15736ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15737ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15738cross_compiling=$ac_cv_prog_cc_cross
15739
15740
15741fi
15742
15743 echo "$ac_t""$glibcpp_cv_complex" 1>&6
15744 if test $glibcpp_cv_complex = buggy; then
15745 cat >> confdefs.h <<\EOF
15746#define _GLIBCPP_BUGGY_COMPLEX 1
15747EOF
15748
15749 fi
15750
15751 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
29bd52c8 15752echo "configure:15753: checking for GNU C++ __complex__ float support" >&5
2f103494
BK
15753 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15754 echo $ac_n "(cached) $ac_c" 1>&6
15755else
15756
15757
15758 ac_ext=C
15759# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15760ac_cpp='$CXXCPP $CPPFLAGS'
15761ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15762ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15763cross_compiling=$ac_cv_prog_cxx_cross
15764
15765 rm -f conftest.h
15766 cat > conftest.h <<EOB
15767 //
15768 // Check for buggy __complex__ that causes ICE in most versions of egcs
15769 // and gcc-2.95.x on certain platforms (eg., x86-win32).
15770 //
15771 // See http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00845.html for
15772 // more info on the bug itself.
15773 //
15774 struct
15775 float_complex
15776 {
15777 __complex__ float m_value;
15778 float_complex (float = 0.0f, float = 0.0f);
15779 float_complex (__complex__ float val) : m_value (val) {}
15780 float_complex foo (const float_complex &val)
15781 { return float_complex (~val.m_value); }
15782 };
15783EOB
15784 cat > conftest.$ac_ext <<EOF
29bd52c8 15785#line 15786 "configure"
2f103494
BK
15786#include "confdefs.h"
15787#include "conftest.h"
15788int main() {
15789
15790; return 0; }
15791EOF
29bd52c8 15792if { (eval echo configure:15793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494
BK
15793 rm -rf conftest*
15794 glibcpp_cv_float_complex=ok
15795else
15796 echo "configure: failed program was:" >&5
15797 cat conftest.$ac_ext >&5
15798 rm -rf conftest*
15799 glibcpp_cv_float_complex=buggy
15800
15801fi
15802rm -f conftest*
15803 ac_ext=c
15804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15805ac_cpp='$CPP $CPPFLAGS'
15806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15808cross_compiling=$ac_cv_prog_cc_cross
15809
15810
15811fi
15812
15813 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15814 if test $glibcpp_cv_float_complex = buggy; then
15815 cat >> confdefs.h <<\EOF
15816#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15817EOF
15818
15819 fi
b2dad0e3
BK
15820
15821
3840fa2a
BK
15822
15823 ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
b2dad0e3 15824echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
29bd52c8 15825echo "configure:15826: checking for wchar.h" >&5
b2dad0e3
BK
15826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15827 echo $ac_n "(cached) $ac_c" 1>&6
15828else
15829 cat > conftest.$ac_ext <<EOF
29bd52c8 15830#line 15831 "configure"
b2dad0e3
BK
15831#include "confdefs.h"
15832#include <wchar.h>
15833EOF
15834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 15835{ (eval echo configure:15836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
15836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15837if test -z "$ac_err"; then
15838 rm -rf conftest*
15839 eval "ac_cv_header_$ac_safe=yes"
15840else
15841 echo "$ac_err" >&5
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15844 rm -rf conftest*
15845 eval "ac_cv_header_$ac_safe=no"
15846fi
15847rm -f conftest*
15848fi
15849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15850 echo "$ac_t""yes" 1>&6
3840fa2a
BK
15851 ac_has_wchar_h=yes
15852else
15853 echo "$ac_t""no" 1>&6
15854ac_has_wchar_h=no
15855fi
15856
15857 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15858echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
29bd52c8 15859echo "configure:15860: checking for wctype.h" >&5
3840fa2a
BK
15860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15861 echo $ac_n "(cached) $ac_c" 1>&6
15862else
b2dad0e3 15863 cat > conftest.$ac_ext <<EOF
29bd52c8 15864#line 15865 "configure"
3840fa2a
BK
15865#include "confdefs.h"
15866#include <wctype.h>
15867EOF
15868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 15869{ (eval echo configure:15870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840fa2a
BK
15870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15871if test -z "$ac_err"; then
15872 rm -rf conftest*
15873 eval "ac_cv_header_$ac_safe=yes"
15874else
15875 echo "$ac_err" >&5
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 rm -rf conftest*
15879 eval "ac_cv_header_$ac_safe=no"
15880fi
15881rm -f conftest*
15882fi
15883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15884 echo "$ac_t""yes" 1>&6
15885 ac_has_wctype_h=yes
15886else
15887 echo "$ac_t""no" 1>&6
15888ac_has_wctype_h=no
15889fi
15890
15891
15892 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then
15893
15894 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
29bd52c8 15895echo "configure:15896: checking for mbstate_t" >&5
3840fa2a 15896 cat > conftest.$ac_ext <<EOF
29bd52c8 15897#line 15898 "configure"
b2dad0e3
BK
15898#include "confdefs.h"
15899#include <wchar.h>
15900int main() {
15901mbstate_t teststate;
15902; return 0; }
15903EOF
29bd52c8 15904if { (eval echo configure:15905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
15905 rm -rf conftest*
15906 use_native_mbstatet=yes
15907else
15908 echo "configure: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15910 rm -rf conftest*
15911 use_native_mbstatet=no
15912fi
15913rm -f conftest*
3840fa2a
BK
15914 echo "$ac_t""$use_native_mbstatet" 1>&6
15915 if test x"$use_native_mbstatet" = xno; then
15916 cat >> confdefs.h <<\EOF
b2dad0e3
BK
15917#define _GLIBCPP_NEED_MBSTATE_T 1
15918EOF
15919
3840fa2a 15920 fi
b2dad0e3 15921
3840fa2a 15922 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
29bd52c8 15923echo "configure:15924: checking for WCHAR_MIN and WCHAR_MAX" >&5
3840fa2a 15924 cat > conftest.$ac_ext <<EOF
29bd52c8 15925#line 15926 "configure"
b2dad0e3
BK
15926#include "confdefs.h"
15927#include <wchar.h>
15928int main() {
15929int i = WCHAR_MIN; int j = WCHAR_MAX;
15930; return 0; }
15931EOF
29bd52c8 15932if { (eval echo configure:15933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
15933 rm -rf conftest*
15934 has_wchar_minmax=yes
15935else
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 rm -rf conftest*
15939 has_wchar_minmax=no
15940fi
15941rm -f conftest*
3840fa2a 15942 echo "$ac_t""$has_wchar_minmax" 1>&6
b2dad0e3 15943
3840fa2a 15944 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
29bd52c8 15945echo "configure:15946: checking for WEOF" >&5
3840fa2a 15946 cat > conftest.$ac_ext <<EOF
29bd52c8 15947#line 15948 "configure"
b2dad0e3
BK
15948#include "confdefs.h"
15949
3840fa2a
BK
15950 #include <wchar.h>
15951 #include <stddef.h>
b2dad0e3
BK
15952int main() {
15953wint_t i = WEOF;
15954; return 0; }
15955EOF
29bd52c8 15956if { (eval echo configure:15957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
15957 rm -rf conftest*
15958 has_weof=yes
15959else
15960 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15962 rm -rf conftest*
15963 has_weof=no
15964fi
15965rm -f conftest*
3840fa2a 15966 echo "$ac_t""$has_weof" 1>&6
b2dad0e3 15967
3840fa2a 15968 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
b2dad0e3
BK
15969do
15970echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 15971echo "configure:15972: checking for $ac_func" >&5
b2dad0e3
BK
15972if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15973 echo $ac_n "(cached) $ac_c" 1>&6
15974else
15975 cat > conftest.$ac_ext <<EOF
29bd52c8 15976#line 15977 "configure"
b2dad0e3
BK
15977#include "confdefs.h"
15978/* System header to define __stub macros and hopefully few prototypes,
15979 which can conflict with char $ac_func(); below. */
15980#include <assert.h>
15981/* Override any gcc2 internal prototype to avoid an error. */
15982/* We use char because int might match the return type of a gcc2
15983 builtin and then its argument prototype would still apply. */
15984char $ac_func();
15985
15986int main() {
15987
15988/* The GNU C library defines this for functions which it implements
15989 to always fail with ENOSYS. Some functions are actually named
15990 something starting with __ and the normal name is an alias. */
15991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15992choke me
15993#else
15994$ac_func();
15995#endif
15996
15997; return 0; }
15998EOF
29bd52c8 15999if { (eval echo configure:16000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
16000 rm -rf conftest*
16001 eval "ac_cv_func_$ac_func=yes"
16002else
16003 echo "configure: failed program was:" >&5
16004 cat conftest.$ac_ext >&5
16005 rm -rf conftest*
16006 eval "ac_cv_func_$ac_func=no"
16007fi
16008rm -f conftest*
16009fi
16010
16011if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16012 echo "$ac_t""yes" 1>&6
16013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16014 cat >> confdefs.h <<EOF
16015#define $ac_tr_func 1
16016EOF
3840fa2a 16017 ac_wfuncs=yes
b2dad0e3
BK
16018else
16019 echo "$ac_t""no" 1>&6
3840fa2a 16020ac_wfuncs=no
b2dad0e3
BK
16021fi
16022done
16023
16024
3840fa2a 16025 echo $ac_n "checking for ISO C9X wchar_t support""... $ac_c" 1>&6
29bd52c8 16026echo "configure:16027: checking for ISO C9X wchar_t support" >&5
3840fa2a
BK
16027 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes && test x"$ac_wfuncs" = xyes; then
16028 ac_isoC9X_wchar_t=yes
16029 else
16030 ac_isoC9X_wchar_t=no
16031 fi
16032 echo "$ac_t""$ac_isoC9X_wchar_t" 1>&6
b2dad0e3 16033
3840fa2a
BK
16034 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16035echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
29bd52c8 16036echo "configure:16037: checking for iconv.h" >&5
3840fa2a
BK
16037if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16038 echo $ac_n "(cached) $ac_c" 1>&6
16039else
16040 cat > conftest.$ac_ext <<EOF
29bd52c8 16041#line 16042 "configure"
3840fa2a
BK
16042#include "confdefs.h"
16043#include <iconv.h>
b2dad0e3 16044EOF
3840fa2a 16045ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 16046{ (eval echo configure:16047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840fa2a
BK
16047ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16048if test -z "$ac_err"; then
16049 rm -rf conftest*
16050 eval "ac_cv_header_$ac_safe=yes"
16051else
16052 echo "$ac_err" >&5
16053 echo "configure: failed program was:" >&5
16054 cat conftest.$ac_ext >&5
16055 rm -rf conftest*
16056 eval "ac_cv_header_$ac_safe=no"
16057fi
16058rm -f conftest*
16059fi
16060if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16061 echo "$ac_t""yes" 1>&6
16062 ac_has_iconv_h=yes
b2dad0e3
BK
16063else
16064 echo "$ac_t""no" 1>&6
3840fa2a
BK
16065ac_has_iconv_h=no
16066fi
b2dad0e3 16067
3840fa2a
BK
16068 for ac_func in iconv_open iconv_close iconv
16069do
16070echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 16071echo "configure:16072: checking for $ac_func" >&5
3840fa2a
BK
16072if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16073 echo $ac_n "(cached) $ac_c" 1>&6
16074else
16075 cat > conftest.$ac_ext <<EOF
29bd52c8 16076#line 16077 "configure"
3840fa2a
BK
16077#include "confdefs.h"
16078/* System header to define __stub macros and hopefully few prototypes,
16079 which can conflict with char $ac_func(); below. */
16080#include <assert.h>
16081/* Override any gcc2 internal prototype to avoid an error. */
16082/* We use char because int might match the return type of a gcc2
16083 builtin and then its argument prototype would still apply. */
16084char $ac_func();
16085
16086int main() {
16087
16088/* The GNU C library defines this for functions which it implements
16089 to always fail with ENOSYS. Some functions are actually named
16090 something starting with __ and the normal name is an alias. */
16091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16092choke me
16093#else
16094$ac_func();
16095#endif
16096
16097; return 0; }
b2dad0e3 16098EOF
29bd52c8 16099if { (eval echo configure:16100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840fa2a
BK
16100 rm -rf conftest*
16101 eval "ac_cv_func_$ac_func=yes"
16102else
16103 echo "configure: failed program was:" >&5
16104 cat conftest.$ac_ext >&5
16105 rm -rf conftest*
16106 eval "ac_cv_func_$ac_func=no"
16107fi
16108rm -f conftest*
16109fi
b2dad0e3 16110
3840fa2a
BK
16111if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16112 echo "$ac_t""yes" 1>&6
16113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16114 cat >> confdefs.h <<EOF
16115#define $ac_tr_func 1
16116EOF
16117 ac_XPG2funcs=yes
16118else
16119 echo "$ac_t""no" 1>&6
16120ac_XPG2funcs=no
b2dad0e3 16121fi
3840fa2a
BK
16122done
16123
16124
16125 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
29bd52c8 16126echo "configure:16127: checking for XPG2 wchar_t support" >&5
3840fa2a
BK
16127 if test x"$ac_has_iconv_h" = xyes && test x"$ac_XPG2funcs" = xyes; then
16128 ac_XPG2_wchar_t=yes
16129 else
16130 ac_XPG2_wchar_t=no
16131 fi
16132 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16133
16134 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
29bd52c8 16135echo "configure:16136: checking for enabled wchar_t specializations" >&5
3840fa2a
BK
16136 if test x"$ac_isoC9X_wchar_t" = xyes && test x"$ac_XPG2_wchar_t" = xyes; then
16137 libinst_wstring_la="libinst-wstring.la"
16138 cat >> confdefs.h <<\EOF
16139#define _GLIBCPP_USE_WCHAR_T 1
16140EOF
16141
16142 echo "$ac_t"""yes"" 1>&6
16143 else
16144 libinst_wstring_la=""
16145 echo "$ac_t"""no"" 1>&6
16146 fi
16147
b2dad0e3 16148
3840fa2a
BK
16149 else
16150 echo "configure: warning: <wchar.h> not found" 1>&2
16151 cat >> confdefs.h <<\EOF
16152#define _GLIBCPP_NEED_MBSTATE_T 1
16153EOF
16154
16155 fi
b2dad0e3
BK
16156
16157
16158 ac_safe=`echo "ctype.h" | sed 'y%./+-%__p_%'`
16159echo $ac_n "checking for ctype.h""... $ac_c" 1>&6
29bd52c8 16160echo "configure:16161: checking for ctype.h" >&5
b2dad0e3
BK
16161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163else
16164 cat > conftest.$ac_ext <<EOF
29bd52c8 16165#line 16166 "configure"
b2dad0e3
BK
16166#include "confdefs.h"
16167#include <ctype.h>
16168EOF
16169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 16170{ (eval echo configure:16171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
16171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16172if test -z "$ac_err"; then
16173 rm -rf conftest*
16174 eval "ac_cv_header_$ac_safe=yes"
16175else
16176 echo "$ac_err" >&5
16177 echo "configure: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 rm -rf conftest*
16180 eval "ac_cv_header_$ac_safe=no"
16181fi
16182rm -f conftest*
16183fi
16184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16185 echo "$ac_t""yes" 1>&6
16186
16187
16188 ctype_default=yes
16189
8445e42a 16190 echo $ac_n "checking <ctype> for gnu-linux ""... $ac_c" 1>&6
29bd52c8 16191echo "configure:16192: checking <ctype> for gnu-linux " >&5
b2dad0e3 16192 cat > conftest.$ac_ext <<EOF
29bd52c8 16193#line 16194 "configure"
b2dad0e3
BK
16194#include "confdefs.h"
16195#include <ctype.h>
16196int main() {
16197int
16198 foo (int a)
16199 { return _ISspace + _ISprint + _IScntrl + _ISupper + _ISlower + _ISalpha \
16200 + _ISdigit + _ISpunct + _ISxdigit + _ISalnum + _ISgraph \
16201 + __ctype_tolower[a] + __ctype_toupper[a] + __ctype_b[a];}
16202; return 0; }
16203EOF
29bd52c8 16204if { (eval echo configure:16205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16205 rm -rf conftest*
16206 \
16207 ctype_linux=yes
16208else
16209 echo "configure: failed program was:" >&5
16210 cat conftest.$ac_ext >&5
16211 rm -rf conftest*
16212 ctype_linux=no
16213fi
16214rm -f conftest*
16215 echo "$ac_t""$ctype_linux" 1>&6
16216 if test $ctype_linux = "yes"; then
16217 ctype_include_dir="config/gnu-linux"
16218 ctype_default=no
16219 fi
16220
65dd21b7
LR
16221 if test $ctype_default = "yes"; then
16222 echo $ac_n "checking <ctype> for freebsd 4.0 ""... $ac_c" 1>&6
29bd52c8 16223echo "configure:16224: checking <ctype> for freebsd 4.0 " >&5
7b267e3e 16224 cat > conftest.$ac_ext <<EOF
29bd52c8 16225#line 16226 "configure"
7b267e3e
BK
16226#include "confdefs.h"
16227#include <ctype.h>
16228int main() {
16229int
16230 foo (int a)
16231 { return _CTYPE_S + _CTYPE_R + _CTYPE_C + _CTYPE_U + _CTYPE_L + _CTYPE_A \
16232 + _CTYPE_D + _CTYPE_P + _CTYPE_X + _CTYPE_G ;}
16233; return 0; }
16234EOF
29bd52c8 16235if { (eval echo configure:16236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7b267e3e
BK
16236 rm -rf conftest*
16237 \
16238 ctype_bsd=yes
16239else
16240 echo "configure: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16242 rm -rf conftest*
16243 ctype_bsd=no
16244fi
16245rm -f conftest*
16246 echo "$ac_t""$ctype_bsd" 1>&6
16247 if test $ctype_bsd = "yes"; then
16248 ctype_include_dir="config/bsd"
16249 ctype_default=no
65dd21b7 16250 fi
7b267e3e
BK
16251 fi
16252
65dd21b7
LR
16253 if test $ctype_default = "yes"; then
16254 echo $ac_n "checking <ctype> for freebsd 3.4 ""... $ac_c" 1>&6
29bd52c8 16255echo "configure:16256: checking <ctype> for freebsd 3.4 " >&5
6ad50467 16256 cat > conftest.$ac_ext <<EOF
29bd52c8 16257#line 16258 "configure"
6ad50467
BK
16258#include "confdefs.h"
16259#include <ctype.h>
16260int main() {
16261int
16262 foo (int a)
16263 { return _S + _R + _C + _U + _L + _A \
16264 + _D + _P + _X + _G + __istype (a, 0);}
16265; return 0; }
16266EOF
29bd52c8 16267if { (eval echo configure:16268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6ad50467
BK
16268 rm -rf conftest*
16269 \
16270 ctype_freebsd34=yes
16271else
16272 echo "configure: failed program was:" >&5
16273 cat conftest.$ac_ext >&5
16274 rm -rf conftest*
16275 ctype_freebsd34=no
16276fi
16277rm -f conftest*
16278 echo "$ac_t""$ctype_freebsd34" 1>&6
16279 if test $ctype_freebsd34 = "yes"; then
16280 ctype_include_dir="config/bsd"
16281 ctype_default=no
65dd21b7 16282 fi
6ad50467
BK
16283 fi
16284
b2dad0e3 16285 if test $ctype_default = "yes"; then
8445e42a 16286 echo $ac_n "checking <ctype> for solaris 2.6,7,8 ""... $ac_c" 1>&6
29bd52c8 16287echo "configure:16288: checking <ctype> for solaris 2.6,7,8 " >&5
b2dad0e3 16288 cat > conftest.$ac_ext <<EOF
29bd52c8 16289#line 16290 "configure"
b2dad0e3
BK
16290#include "confdefs.h"
16291#include <ctype.h>
16292int main() {
16293int
16294 foo (int a)
16295 { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \
16296 + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \
16297 + __trans_lower[a] + __trans_upper[a] + __ctype_mask[a];}
16298; return 0; }
16299EOF
29bd52c8 16300if { (eval echo configure:16301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16301 rm -rf conftest*
16302 \
16303 ctype_solaris=yes
16304else
16305 echo "configure: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 rm -rf conftest*
16308 ctype_solaris=no
16309fi
16310rm -f conftest*
16311 echo "$ac_t""$ctype_solaris" 1>&6
16312
16313 if test $ctype_solaris = "yes"; then
16314 echo $ac_n "checking for version""... $ac_c" 1>&6
29bd52c8 16315echo "configure:16316: checking for version" >&5
b2dad0e3
BK
16316 ac_ext=C
16317# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16318ac_cpp='$CXXCPP $CPPFLAGS'
16319ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16320ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16321cross_compiling=$ac_cv_prog_cxx_cross
16322
16323 cat > conftest.$ac_ext <<EOF
29bd52c8 16324#line 16325 "configure"
b2dad0e3
BK
16325#include "confdefs.h"
16326#include <ctype.h>
16327int main() {
16328typedef long* __to_type; __to_type const& _M_toupper = __trans_upper;
16329; return 0; }
16330EOF
29bd52c8 16331if { (eval echo configure:16332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16332 rm -rf conftest*
16333 \
16334 ctype_solaris26=yes
16335else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 ctype_solaris26=no
16340fi
16341rm -f conftest*
16342 ac_ext=c
16343# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16344ac_cpp='$CPP $CPPFLAGS'
16345ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16346ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16347cross_compiling=$ac_cv_prog_cc_cross
16348
16349 if test $ctype_solaris26 = "yes"; then
16350 ctype_include_dir="config/solaris/solaris2.6"
16351 echo "$ac_t"""solaris2.6"" 1>&6
16352 ctype_default=no
16353 else
16354 ctype_include_dir="config/solaris/solaris2.7"
32a4595e 16355 echo "$ac_t"""solaris2.7,8"" 1>&6
b2dad0e3
BK
16356 ctype_default=no
16357 fi
16358 fi
16359 fi
16360
16361 if test $ctype_default = "yes"; then
8445e42a 16362 echo $ac_n "checking <ctype> for solaris 2.5.1 ""... $ac_c" 1>&6
29bd52c8 16363echo "configure:16364: checking <ctype> for solaris 2.5.1 " >&5
b2dad0e3 16364 cat > conftest.$ac_ext <<EOF
29bd52c8 16365#line 16366 "configure"
b2dad0e3
BK
16366#include "confdefs.h"
16367#include <ctype.h>
16368int main() {
16369int
16370 foo (int a)
16371 { return _U + _L + _N + _S + _P + _C + _X + _B \
16372 + __ctype[a];}
16373; return 0; }
16374EOF
29bd52c8 16375if { (eval echo configure:16376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16376 rm -rf conftest*
16377 \
16378 ctype_solaris25=yes
16379else
16380 echo "configure: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 rm -rf conftest*
16383 ctype_solaris25=no
16384fi
16385rm -f conftest*
16386 echo "$ac_t""$ctype_solaris25" 1>&6
16387 if test $ctype_solaris25 = "yes"; then
16388 ctype_include_dir="config/solaris/solaris2.5"
16389 ctype_default=no
16390 fi
16391 fi
16392
16393 if test $ctype_default = "yes"; then
8445e42a 16394 echo $ac_n "checking <ctype> for aix ""... $ac_c" 1>&6
29bd52c8 16395echo "configure:16396: checking <ctype> for aix " >&5
b2dad0e3 16396 cat > conftest.$ac_ext <<EOF
29bd52c8 16397#line 16398 "configure"
b2dad0e3
BK
16398#include "confdefs.h"
16399#include <ctype.h>
16400int main() {
16401int
16402 foo (int a)
16403 { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \
16404 + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \
16405 + _VALC('a') + _IS('c', 0);}
16406; return 0; }
16407EOF
29bd52c8 16408if { (eval echo configure:16409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16409 rm -rf conftest*
16410 \
16411 ctype_aix=yes
16412else
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 rm -rf conftest*
16416 ctype_aix=no
16417fi
16418rm -f conftest*
16419 echo "$ac_t""$ctype_aix" 1>&6
16420 if test $ctype_aix = "yes"; then
16421 ctype_include_dir="config/aix"
16422 ctype_default=no
16423 fi
16424 fi
16425
16426 if test $ctype_default = "yes"; then
8445e42a 16427 echo $ac_n "checking <ctype> for newlib ""... $ac_c" 1>&6
29bd52c8 16428echo "configure:16429: checking <ctype> for newlib " >&5
b2dad0e3 16429 cat > conftest.$ac_ext <<EOF
29bd52c8 16430#line 16431 "configure"
b2dad0e3
BK
16431#include "confdefs.h"
16432#include <ctype.h>
16433int main() {
16434int
16435 foo (int a)
16436 { return _U + _L + _N + _S + _P + _C + _X + _B \
16437 + _ctype_[a];}
16438; return 0; }
16439EOF
29bd52c8 16440if { (eval echo configure:16441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16441 rm -rf conftest*
16442 \
16443 ctype_newlib=yes
16444else
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16447 rm -rf conftest*
16448 ctype_newlib=no
16449fi
16450rm -f conftest*
16451 echo "$ac_t""$ctype_newlib" 1>&6
16452 if test $ctype_newlib = "yes"; then
16453 ctype_include_dir="config/newlib"
16454 ctype_default=no
16455 fi
16456 fi
16457
16458 if test $ctype_default = "yes"; then
16459 ctype_include_dir="config/generic"
16460 echo "configure: warning: "Using default ctype headers."" 1>&2
16461 fi
16462
16463
16464else
16465 echo "$ac_t""no" 1>&6
16466fi
16467
16468
16469
16470 for ac_hdr in unistd.h
16471do
16472ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16473echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29bd52c8 16474echo "configure:16475: checking for $ac_hdr" >&5
b2dad0e3
BK
16475if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16476 echo $ac_n "(cached) $ac_c" 1>&6
16477else
16478 cat > conftest.$ac_ext <<EOF
29bd52c8 16479#line 16480 "configure"
b2dad0e3
BK
16480#include "confdefs.h"
16481#include <$ac_hdr>
16482EOF
16483ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29bd52c8 16484{ (eval echo configure:16485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
16485ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16486if test -z "$ac_err"; then
16487 rm -rf conftest*
16488 eval "ac_cv_header_$ac_safe=yes"
16489else
16490 echo "$ac_err" >&5
16491 echo "configure: failed program was:" >&5
16492 cat conftest.$ac_ext >&5
16493 rm -rf conftest*
16494 eval "ac_cv_header_$ac_safe=no"
16495fi
16496rm -f conftest*
16497fi
16498if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16499 echo "$ac_t""yes" 1>&6
16500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16501 cat >> confdefs.h <<EOF
16502#define $ac_tr_hdr 1
16503EOF
16504
16505else
16506 echo "$ac_t""no" 1>&6
16507fi
16508done
16509
16510for ac_func in getpagesize
16511do
16512echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29bd52c8 16513echo "configure:16514: checking for $ac_func" >&5
b2dad0e3
BK
16514if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
16516else
16517 cat > conftest.$ac_ext <<EOF
29bd52c8 16518#line 16519 "configure"
b2dad0e3
BK
16519#include "confdefs.h"
16520/* System header to define __stub macros and hopefully few prototypes,
16521 which can conflict with char $ac_func(); below. */
16522#include <assert.h>
16523/* Override any gcc2 internal prototype to avoid an error. */
16524/* We use char because int might match the return type of a gcc2
16525 builtin and then its argument prototype would still apply. */
16526char $ac_func();
16527
16528int main() {
16529
16530/* The GNU C library defines this for functions which it implements
16531 to always fail with ENOSYS. Some functions are actually named
16532 something starting with __ and the normal name is an alias. */
16533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16534choke me
16535#else
16536$ac_func();
16537#endif
16538
16539; return 0; }
16540EOF
29bd52c8 16541if { (eval echo configure:16542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
16542 rm -rf conftest*
16543 eval "ac_cv_func_$ac_func=yes"
16544else
16545 echo "configure: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 rm -rf conftest*
16548 eval "ac_cv_func_$ac_func=no"
16549fi
16550rm -f conftest*
16551fi
16552
16553if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16554 echo "$ac_t""yes" 1>&6
16555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16556 cat >> confdefs.h <<EOF
16557#define $ac_tr_func 1
16558EOF
16559
16560else
16561 echo "$ac_t""no" 1>&6
16562fi
16563done
16564
16565echo $ac_n "checking for working mmap""... $ac_c" 1>&6
29bd52c8 16566echo "configure:16567: checking for working mmap" >&5
b2dad0e3
BK
16567if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569else
16570 if test "$cross_compiling" = yes; then
16571 ac_cv_func_mmap_fixed_mapped=no
16572else
16573 cat > conftest.$ac_ext <<EOF
29bd52c8 16574#line 16575 "configure"
b2dad0e3
BK
16575#include "confdefs.h"
16576
16577/* Thanks to Mike Haertel and Jim Avera for this test.
16578 Here is a matrix of mmap possibilities:
16579 mmap private not fixed
16580 mmap private fixed at somewhere currently unmapped
16581 mmap private fixed at somewhere already mapped
16582 mmap shared not fixed
16583 mmap shared fixed at somewhere currently unmapped
16584 mmap shared fixed at somewhere already mapped
16585 For private mappings, we should verify that changes cannot be read()
16586 back from the file, nor mmap's back from the file at a different
16587 address. (There have been systems where private was not correctly
16588 implemented like the infamous i386 svr4.0, and systems where the
16589 VM page cache was not coherent with the filesystem buffer cache
16590 like early versions of FreeBSD and possibly contemporary NetBSD.)
16591 For shared mappings, we should conversely verify that changes get
16592 propogated back to all the places they're supposed to be.
16593
16594 Grep wants private fixed already mapped.
16595 The main things grep needs to know about mmap are:
16596 * does it exist and is it safe to write into the mmap'd area
16597 * how to use it (BSD variants) */
16598#include <sys/types.h>
16599#include <fcntl.h>
16600#include <sys/mman.h>
16601
16602/* This mess was copied from the GNU getpagesize.h. */
16603#ifndef HAVE_GETPAGESIZE
16604# ifdef HAVE_UNISTD_H
16605# include <unistd.h>
16606# endif
16607
16608/* Assume that all systems that can run configure have sys/param.h. */
16609# ifndef HAVE_SYS_PARAM_H
16610# define HAVE_SYS_PARAM_H 1
16611# endif
16612
16613# ifdef _SC_PAGESIZE
16614# define getpagesize() sysconf(_SC_PAGESIZE)
16615# else /* no _SC_PAGESIZE */
16616# ifdef HAVE_SYS_PARAM_H
16617# include <sys/param.h>
16618# ifdef EXEC_PAGESIZE
16619# define getpagesize() EXEC_PAGESIZE
16620# else /* no EXEC_PAGESIZE */
16621# ifdef NBPG
16622# define getpagesize() NBPG * CLSIZE
16623# ifndef CLSIZE
16624# define CLSIZE 1
16625# endif /* no CLSIZE */
16626# else /* no NBPG */
16627# ifdef NBPC
16628# define getpagesize() NBPC
16629# else /* no NBPC */
16630# ifdef PAGESIZE
16631# define getpagesize() PAGESIZE
16632# endif /* PAGESIZE */
16633# endif /* no NBPC */
16634# endif /* no NBPG */
16635# endif /* no EXEC_PAGESIZE */
16636# else /* no HAVE_SYS_PARAM_H */
16637# define getpagesize() 8192 /* punt totally */
16638# endif /* no HAVE_SYS_PARAM_H */
16639# endif /* no _SC_PAGESIZE */
16640
16641#endif /* no HAVE_GETPAGESIZE */
16642
16643#ifdef __cplusplus
16644extern "C" { void *malloc(unsigned); }
16645#else
16646char *malloc();
16647#endif
16648
16649int
16650main()
16651{
16652 char *data, *data2, *data3;
16653 int i, pagesize;
16654 int fd;
16655
16656 pagesize = getpagesize();
16657
16658 /*
16659 * First, make a file with some known garbage in it.
16660 */
16661 data = malloc(pagesize);
16662 if (!data)
16663 exit(1);
16664 for (i = 0; i < pagesize; ++i)
16665 *(data + i) = rand();
16666 umask(0);
16667 fd = creat("conftestmmap", 0600);
16668 if (fd < 0)
16669 exit(1);
16670 if (write(fd, data, pagesize) != pagesize)
16671 exit(1);
16672 close(fd);
16673
16674 /*
16675 * Next, try to mmap the file at a fixed address which
16676 * already has something else allocated at it. If we can,
16677 * also make sure that we see the same garbage.
16678 */
16679 fd = open("conftestmmap", O_RDWR);
16680 if (fd < 0)
16681 exit(1);
16682 data2 = malloc(2 * pagesize);
16683 if (!data2)
16684 exit(1);
16685 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16686 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16688 exit(1);
16689 for (i = 0; i < pagesize; ++i)
16690 if (*(data + i) != *(data2 + i))
16691 exit(1);
16692
16693 /*
16694 * Finally, make sure that changes to the mapped area
16695 * do not percolate back to the file as seen by read().
16696 * (This is a bug on some variants of i386 svr4.0.)
16697 */
16698 for (i = 0; i < pagesize; ++i)
16699 *(data2 + i) = *(data2 + i) + 1;
16700 data3 = malloc(pagesize);
16701 if (!data3)
16702 exit(1);
16703 if (read(fd, data3, pagesize) != pagesize)
16704 exit(1);
16705 for (i = 0; i < pagesize; ++i)
16706 if (*(data + i) != *(data3 + i))
16707 exit(1);
16708 close(fd);
16709 unlink("conftestmmap");
16710 exit(0);
16711}
16712
16713EOF
29bd52c8 16714if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
b2dad0e3
BK
16715then
16716 ac_cv_func_mmap_fixed_mapped=yes
16717else
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 rm -fr conftest*
16721 ac_cv_func_mmap_fixed_mapped=no
16722fi
16723rm -fr conftest*
16724fi
16725
16726fi
16727
16728echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16729if test $ac_cv_func_mmap_fixed_mapped = yes; then
16730 cat >> confdefs.h <<\EOF
16731#define HAVE_MMAP 1
16732EOF
16733
16734fi
16735
16736fi
16737
16738
16739
16740if test "$CANADIAN" = yes; then
16741 CANADIAN_TRUE=
16742 CANADIAN_FALSE='#'
16743else
16744 CANADIAN_TRUE='#'
16745 CANADIAN_FALSE=
16746fi
16747
16748
16749if test "$NULL_TARGET" = yes; then
16750 NULL_TARGET_TRUE=
16751 NULL_TARGET_FALSE='#'
16752else
16753 NULL_TARGET_TRUE='#'
16754 NULL_TARGET_FALSE=
16755fi
16756
16757
16758if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16759 NATIVE_TRUE=
16760 NATIVE_FALSE='#'
16761else
16762 NATIVE_TRUE='#'
16763 NATIVE_FALSE=
16764fi
16765
16766
16767if test -z "$with_cross_host"; then
16768 USE_LIBDIR_TRUE=
16769 USE_LIBDIR_FALSE='#'
16770else
16771 USE_LIBDIR_TRUE='#'
16772 USE_LIBDIR_FALSE=
16773fi
16774
16775if test $ac_cv_header_locale_h = yes; then
16776 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
29bd52c8 16777echo "configure:16778: checking for LC_MESSAGES" >&5
b2dad0e3
BK
16778if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16779 echo $ac_n "(cached) $ac_c" 1>&6
16780else
16781 cat > conftest.$ac_ext <<EOF
29bd52c8 16782#line 16783 "configure"
b2dad0e3
BK
16783#include "confdefs.h"
16784#include <locale.h>
16785int main() {
16786return LC_MESSAGES
16787; return 0; }
16788EOF
29bd52c8 16789if { (eval echo configure:16790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
16790 rm -rf conftest*
16791 ac_cv_val_LC_MESSAGES=yes
16792else
16793 echo "configure: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16795 rm -rf conftest*
16796 ac_cv_val_LC_MESSAGES=no
16797fi
16798rm -f conftest*
16799fi
16800
16801echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16802 if test $ac_cv_val_LC_MESSAGES = yes; then
16803 cat >> confdefs.h <<\EOF
16804#define HAVE_LC_MESSAGES 1
16805EOF
16806
16807 fi
16808 fi
16809
16810
b2dad0e3
BK
16811if test "${multilib}" = "yes"; then
16812 multilib_arg="--enable-multilib"
16813else
16814 multilib_arg=
16815fi
16816
16817
16818# Generate the various Makefiles, include files, and scripts.
16819
16820# NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16821# so that multilib installs will end up installed in the correct
16822# place. To work around this not being passed down from config-ml.in
16823# -> top_srcdir/Makefile.am -> top_srcdir/src/Makefile.am, manually
16824# append it here.
16825
16826trap '' 1 2 15
16827cat > confcache <<\EOF
16828# This file is a shell script that caches the results of configure
16829# tests run on this system so they can be shared between configure
16830# scripts and configure runs. It is not useful on other systems.
16831# If it contains results you don't want to keep, you may remove or edit it.
16832#
16833# By default, configure uses ./config.cache as the cache file,
16834# creating it if it does not exist already. You can give configure
16835# the --cache-file=FILE option to use a different cache file; that is
16836# what configure does when it calls configure scripts in
16837# subdirectories, so they share the cache.
16838# Giving --cache-file=/dev/null disables caching, for debugging configure.
16839# config.status only pays attention to the cache file if you give it the
16840# --recheck option to rerun configure.
16841#
16842EOF
16843# The following way of writing the cache mishandles newlines in values,
16844# but we know of no workaround that is simple, portable, and efficient.
16845# So, don't put newlines in cache variables' values.
16846# Ultrix sh set writes to stderr and can't be redirected directly,
16847# and sets the high bit in the cache file unless we assign to the vars.
16848(set) 2>&1 |
16849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16850 *ac_space=\ *)
16851 # `set' does not quote correctly, so add quotes (double-quote substitution
16852 # turns \\\\ into \\, and sed turns \\ into \).
16853 sed -n \
16854 -e "s/'/'\\\\''/g" \
16855 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16856 ;;
16857 *)
16858 # `set' quotes correctly as required by POSIX, so do not add quotes.
16859 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16860 ;;
16861 esac >> confcache
16862if cmp -s $cache_file confcache; then
16863 :
16864else
16865 if test -w $cache_file; then
16866 echo "updating cache $cache_file"
16867 cat confcache > $cache_file
16868 else
16869 echo "not updating unwritable cache $cache_file"
16870 fi
16871fi
16872rm -f confcache
16873
16874trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16875
16876test "x$prefix" = xNONE && prefix=$ac_default_prefix
16877# Let make expand exec_prefix.
16878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16879
16880# Any assignment to VPATH causes Sun make to only execute
16881# the first set of double-colon rules, so remove it if not needed.
16882# If there is a colon in the path, we need to keep it.
16883if test "x$srcdir" = x.; then
16884 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16885fi
16886
16887trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16888
16889DEFS=-DHAVE_CONFIG_H
16890
16891# Without the "./", some shells look in PATH for config.status.
16892: ${CONFIG_STATUS=./config.status}
16893
16894echo creating $CONFIG_STATUS
16895rm -f $CONFIG_STATUS
16896cat > $CONFIG_STATUS <<EOF
16897#! /bin/sh
16898# Generated automatically by configure.
16899# Run this file to recreate the current configuration.
16900# This directory was configured as follows,
16901# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16902#
16903# $0 $ac_configure_args
16904#
16905# Compiler output produced by configure, useful for debugging
16906# configure, is in ./config.log if it exists.
16907
16908ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16909for ac_option
16910do
16911 case "\$ac_option" in
16912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16913 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16914 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16915 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16916 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16917 exit 0 ;;
16918 -help | --help | --hel | --he | --h)
16919 echo "\$ac_cs_usage"; exit 0 ;;
16920 *) echo "\$ac_cs_usage"; exit 1 ;;
16921 esac
16922done
16923
16924ac_given_srcdir=$srcdir
16925ac_given_INSTALL="$INSTALL"
16926
16927trap 'rm -fr `echo "mkcheck Makefile src/Makefile math/Makefile libio/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16928EOF
16929cat >> $CONFIG_STATUS <<EOF
16930
16931# Protect against being on the right side of a sed subst in config.status.
16932sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16933 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16934$ac_vpsub
16935$extrasub
16936s%@SHELL@%$SHELL%g
16937s%@CFLAGS@%$CFLAGS%g
16938s%@CPPFLAGS@%$CPPFLAGS%g
16939s%@CXXFLAGS@%$CXXFLAGS%g
16940s%@FFLAGS@%$FFLAGS%g
16941s%@DEFS@%$DEFS%g
16942s%@LDFLAGS@%$LDFLAGS%g
16943s%@LIBS@%$LIBS%g
16944s%@exec_prefix@%$exec_prefix%g
16945s%@prefix@%$prefix%g
16946s%@program_transform_name@%$program_transform_name%g
16947s%@bindir@%$bindir%g
16948s%@sbindir@%$sbindir%g
16949s%@libexecdir@%$libexecdir%g
16950s%@datadir@%$datadir%g
16951s%@sysconfdir@%$sysconfdir%g
16952s%@sharedstatedir@%$sharedstatedir%g
16953s%@localstatedir@%$localstatedir%g
16954s%@libdir@%$libdir%g
16955s%@includedir@%$includedir%g
16956s%@oldincludedir@%$oldincludedir%g
16957s%@infodir@%$infodir%g
16958s%@mandir@%$mandir%g
16959s%@host@%$host%g
16960s%@host_alias@%$host_alias%g
16961s%@host_cpu@%$host_cpu%g
16962s%@host_vendor@%$host_vendor%g
16963s%@host_os@%$host_os%g
16964s%@target@%$target%g
16965s%@target_alias@%$target_alias%g
16966s%@target_cpu@%$target_cpu%g
16967s%@target_vendor@%$target_vendor%g
16968s%@target_os@%$target_os%g
16969s%@build@%$build%g
16970s%@build_alias@%$build_alias%g
16971s%@build_cpu@%$build_cpu%g
16972s%@build_vendor@%$build_vendor%g
16973s%@build_os@%$build_os%g
16974s%@glibcpp_basedir@%$glibcpp_basedir%g
16975s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16976s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16977s%@INSTALL_DATA@%$INSTALL_DATA%g
16978s%@PACKAGE@%$PACKAGE%g
16979s%@VERSION@%$VERSION%g
16980s%@ACLOCAL@%$ACLOCAL%g
16981s%@AUTOCONF@%$AUTOCONF%g
16982s%@AUTOMAKE@%$AUTOMAKE%g
16983s%@AUTOHEADER@%$AUTOHEADER%g
16984s%@MAKEINFO@%$MAKEINFO%g
16985s%@SET_MAKE@%$SET_MAKE%g
16986s%@CC@%$CC%g
16987s%@CXX@%$CXX%g
16988s%@AS@%$AS%g
16989s%@AR@%$AR%g
16990s%@RANLIB@%$RANLIB%g
16991s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16992s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16993s%@MAINT@%$MAINT%g
16994s%@EXEEXT@%$EXEEXT%g
16995s%@GLIBCPP_CFLAGS@%$GLIBCPP_CFLAGS%g
16996s%@GLIBCPP_CXXFLAGS@%$GLIBCPP_CXXFLAGS%g
29bd52c8 16997s%@ifGNUmake@%$ifGNUmake%g
b2dad0e3
BK
16998s%@LN_S@%$LN_S%g
16999s%@LIBTOOL@%$LIBTOOL%g
a4e99046 17000s%@CPP@%$CPP%g
c470c17d
BK
17001s%@cpu_include_dir@%$cpu_include_dir%g
17002s%@CPU_FLAGS@%$CPU_FLAGS%g
17003s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
b2dad0e3 17004s%@BUILD_LIBIO_INCLUDE@%$BUILD_LIBIO_INCLUDE%g
f3b004d8
BK
17005s%@GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE@%$GLIBCPP_NEED_LIBIO_CONFIG_H_TRUE%g
17006s%@GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE@%$GLIBCPP_NEED_LIBIO_CONFIG_H_FALSE%g
b2dad0e3
BK
17007s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17008s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
20427c6b
BK
17009s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17010s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
5b80666b
BK
17011s%@CSHADOWFLAGS@%$CSHADOWFLAGS%g
17012s%@CSHADOW_INCLUDES@%$CSHADOW_INCLUDES%g
17013s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17014s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
b2dad0e3
BK
17015s%@THREADLIBS@%$THREADLIBS%g
17016s%@THREADINCS@%$THREADINCS%g
17017s%@THREADDEPS@%$THREADDEPS%g
17018s%@THREADOBJS@%$THREADOBJS%g
17019s%@THREADSPEC@%$THREADSPEC%g
dcfa0bc8 17020s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
b2dad0e3 17021s%@ctype_include_dir@%$ctype_include_dir%g
c470c17d
BK
17022s%@WERROR@%$WERROR%g
17023s%@WFMT_FLAGS@%$WFMT_FLAGS%g
17024s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17025s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
b2dad0e3 17026s%@LIBMATHOBJS@%$LIBMATHOBJS%g
2f103494 17027s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
5d89258a 17028s%@libinst_wstring_la@%$libinst_wstring_la%g
b2dad0e3
BK
17029s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17030s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17031s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
17032s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
17033s%@NATIVE_TRUE@%$NATIVE_TRUE%g
17034s%@NATIVE_FALSE@%$NATIVE_FALSE%g
17035s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
17036s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
17037
17038CEOF
17039EOF
17040
17041cat >> $CONFIG_STATUS <<\EOF
17042
17043# Split the substitutions into bite-sized pieces for seds with
17044# small command number limits, like on Digital OSF/1 and HP-UX.
17045ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17046ac_file=1 # Number of current file.
17047ac_beg=1 # First line for current file.
17048ac_end=$ac_max_sed_cmds # Line after last line for current file.
17049ac_more_lines=:
17050ac_sed_cmds=""
17051while $ac_more_lines; do
17052 if test $ac_beg -gt 1; then
17053 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17054 else
17055 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17056 fi
17057 if test ! -s conftest.s$ac_file; then
17058 ac_more_lines=false
17059 rm -f conftest.s$ac_file
17060 else
17061 if test -z "$ac_sed_cmds"; then
17062 ac_sed_cmds="sed -f conftest.s$ac_file"
17063 else
17064 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17065 fi
17066 ac_file=`expr $ac_file + 1`
17067 ac_beg=$ac_end
17068 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17069 fi
17070done
17071if test -z "$ac_sed_cmds"; then
17072 ac_sed_cmds=cat
17073fi
17074EOF
17075
17076cat >> $CONFIG_STATUS <<EOF
17077
17078CONFIG_FILES=\${CONFIG_FILES-"mkcheck Makefile src/Makefile math/Makefile libio/Makefile"}
17079EOF
17080cat >> $CONFIG_STATUS <<\EOF
17081for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17083 case "$ac_file" in
17084 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17085 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17086 *) ac_file_in="${ac_file}.in" ;;
17087 esac
17088
17089 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17090
17091 # Remove last slash and all that follows it. Not all systems have dirname.
17092 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17093 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17094 # The file is in a subdirectory.
17095 test ! -d "$ac_dir" && mkdir "$ac_dir"
17096 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17097 # A "../" for each directory in $ac_dir_suffix.
17098 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17099 else
17100 ac_dir_suffix= ac_dots=
17101 fi
17102
17103 case "$ac_given_srcdir" in
17104 .) srcdir=.
17105 if test -z "$ac_dots"; then top_srcdir=.
17106 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17107 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17108 *) # Relative path.
17109 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17110 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17111 esac
17112
17113 case "$ac_given_INSTALL" in
17114 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17115 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17116 esac
17117
17118 echo creating "$ac_file"
17119 rm -f "$ac_file"
17120 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17121 case "$ac_file" in
17122 *Makefile*) ac_comsub="1i\\
17123# $configure_input" ;;
17124 *) ac_comsub= ;;
17125 esac
17126
17127 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17128 sed -e "$ac_comsub
17129s%@configure_input@%$configure_input%g
17130s%@srcdir@%$srcdir%g
17131s%@top_srcdir@%$top_srcdir%g
17132s%@INSTALL@%$INSTALL%g
17133" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17134fi; done
17135rm -f conftest.s*
17136
17137# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17138# NAME is the cpp macro being defined and VALUE is the value it is being given.
17139#
17140# ac_d sets the value in "#define NAME VALUE" lines.
17141ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17142ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17143ac_dC='\3'
17144ac_dD='%g'
17145# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17146ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17147ac_uB='\([ ]\)%\1#\2define\3'
17148ac_uC=' '
17149ac_uD='\4%g'
17150# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17151ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17152ac_eB='$%\1#\2define\3'
17153ac_eC=' '
17154ac_eD='%g'
17155
17156if test "${CONFIG_HEADERS+set}" != set; then
17157EOF
17158cat >> $CONFIG_STATUS <<EOF
17159 CONFIG_HEADERS="config.h"
17160EOF
17161cat >> $CONFIG_STATUS <<\EOF
17162fi
17163for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17164 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17165 case "$ac_file" in
17166 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17167 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17168 *) ac_file_in="${ac_file}.in" ;;
17169 esac
17170
17171 echo creating $ac_file
17172
17173 rm -f conftest.frag conftest.in conftest.out
17174 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17175 cat $ac_file_inputs > conftest.in
17176
17177EOF
17178
17179# Transform confdefs.h into a sed script conftest.vals that substitutes
17180# the proper values into config.h.in to produce config.h. And first:
17181# Protect against being on the right side of a sed subst in config.status.
17182# Protect against being in an unquoted here document in config.status.
17183rm -f conftest.vals
17184cat > conftest.hdr <<\EOF
17185s/[\\&%]/\\&/g
17186s%[\\$`]%\\&%g
17187s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17188s%ac_d%ac_u%gp
17189s%ac_u%ac_e%gp
17190EOF
17191sed -n -f conftest.hdr confdefs.h > conftest.vals
17192rm -f conftest.hdr
17193
17194# This sed command replaces #undef with comments. This is necessary, for
17195# example, in the case of _POSIX_SOURCE, which is predefined and required
17196# on some systems where configure will not decide to define it.
17197cat >> conftest.vals <<\EOF
17198s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17199EOF
17200
17201# Break up conftest.vals because some shells have a limit on
17202# the size of here documents, and old seds have small limits too.
17203
17204rm -f conftest.tail
17205while :
17206do
17207 ac_lines=`grep -c . conftest.vals`
17208 # grep -c gives empty output for an empty file on some AIX systems.
17209 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17210 # Write a limited-size here document to conftest.frag.
17211 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17212 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17213 echo 'CEOF
17214 sed -f conftest.frag conftest.in > conftest.out
17215 rm -f conftest.in
17216 mv conftest.out conftest.in
17217' >> $CONFIG_STATUS
17218 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17219 rm -f conftest.vals
17220 mv conftest.tail conftest.vals
17221done
17222rm -f conftest.vals
17223
17224cat >> $CONFIG_STATUS <<\EOF
17225 rm -f conftest.frag conftest.h
17226 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17227 cat conftest.in >> conftest.h
17228 rm -f conftest.in
17229 if cmp -s $ac_file conftest.h 2>/dev/null; then
17230 echo "$ac_file is unchanged"
17231 rm -f conftest.h
17232 else
17233 # Remove last slash and all that follows it. Not all systems have dirname.
17234 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17235 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17236 # The file is in a subdirectory.
17237 test ! -d "$ac_dir" && mkdir "$ac_dir"
17238 fi
17239 rm -f $ac_file
17240 mv conftest.h $ac_file
17241 fi
17242fi; done
17243
c4561450
BK
17244EOF
17245
17246cat >> $CONFIG_STATUS <<EOF
17247ac_sources="$CSTDIO_H $CSTDIO_CC config/$THREADH"
17248ac_dests="bits/c++io.h src/c++io.cc bits/c++threads.h"
17249EOF
17250
17251cat >> $CONFIG_STATUS <<\EOF
17252srcdir=$ac_given_srcdir
17253while test -n "$ac_sources"; do
17254 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17255 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17256
17257 echo "linking $srcdir/$ac_source to $ac_dest"
17258
17259 if test ! -r $srcdir/$ac_source; then
17260 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17261 fi
17262 rm -f $ac_dest
17263
17264 # Make relative symlinks.
17265 # Remove last slash and all that follows it. Not all systems have dirname.
17266 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17267 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17268 # The dest file is in a subdirectory.
17269 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17270 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17271 # A "../" for each directory in $ac_dest_dir_suffix.
17272 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17273 else
17274 ac_dest_dir_suffix= ac_dots=
17275 fi
17276
17277 case "$srcdir" in
17278 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17279 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17280 esac
17281
17282 # Make a symlink if possible; otherwise try a hard link.
17283 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17284 ln $srcdir/$ac_source $ac_dest; then :
17285 else
17286 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17287 fi
17288done
b2dad0e3
BK
17289EOF
17290cat >> $CONFIG_STATUS <<EOF
17291
17292srcdir=${srcdir}
17293host=${host}
17294target=${target}
17295with_multisubdir=${with_multisubdir}
17296ac_configure_args="${multilib_arg} ${ac_configure_args}"
17297CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17298glibcpp_basedir=${glibcpp_basedir}
17299CC="${CC}"
17300CXX="${CXX}"
17301
17302EOF
17303cat >> $CONFIG_STATUS <<\EOF
17304test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17305if test -n "$CONFIG_FILES"; then
17306 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17307 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17308fi
17309exit 0
17310EOF
17311chmod +x $CONFIG_STATUS
17312rm -fr confdefs* $ac_clean_files
17313test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17314
17315
17316
17317blddir=`pwd`
b2dad0e3
BK
17318# Generate bits/c++config.h
17319# NB: This must be the first generated file as others include it. . .
17320
17321
17322# Generate bits/std_limits.h and src/limitsMEMBERS.cc
17323
29bd52c8
PE
17324
17325
17326# Sanity checking & User-visible messages.
17327# Checks down here, otherwise they get scrolled off before
17328# the user will notice.
17329if test "$enable_namespaces" = "yes" && test "$enable_libgcc_rebuild" = "no"
17330then
17331 echo "configure: warning: libgcc.a will not match mangled symbols unless it is rebuilt" 1>&2
17332fi
17333if test "$enable_namespaces" = "no" && test "$enable_libgcc_rebuild" != "no"
17334then
17335 # Other things besides namespaces can make this true as well, but none
17336 # of them are done automatically... yet
17337 echo "configure: warning: no point in rebuilding libgcc.a if namespaces aren't used" 1>&2
17338fi
17339
17340# Trying to get more people to read documentation. Possibly remove check
17341# and warn all the time.
17342if test ! -f .sanity_warned; then
17343 touch .sanity_warned
17344 # There is no "informational" AC_MSG_ macro, so these are going to be
17345 # printed even when --quiet/--silent is given.
17346 echo ''
17347 echo 'Please make certain that you read the installation information here:'
17348 echo " faster => ${srcdir}/docs/install.html"
17349 echo ' slower => <URL:http://sources.redhat.com/libstdc++/install.html>'
17350 echo ''
17351 echo 'and the configuration information here:'
17352 echo " faster => ${srcdir}/docs/configopts.html"
17353 echo ' slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>'
17354 echo ''
17355 echo 'before proceeding with "make".'
17356 echo ''
17357fi
17358
17359
b2dad0e3
BK
17360$srcdir/mkc++config $blddir $srcdir
17361$srcdir/mknumeric_limits $blddir $srcdir $xcompiling
b2dad0e3
BK
17362
17363