modula2: Pass --destdir for dir index during install of m2.info.
[official-gcc.git] / libstdc++-v3 / configure
blob5179cc507f1290ef5164425c0a013bd711381ff9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libstdc++'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="src/shared/hashtable-aux.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 WARN_FLAGS
638 OPTIMIZE_CXXFLAGS
639 TOPLEVEL_INCLUDES
640 GLIBCXX_INCLUDES
641 glibcxx_toolexeclibdir
642 glibcxx_toolexecdir
643 gxx_include_dir
644 glibcxx_prefixdir
645 EXTRA_CFLAGS
646 tmake_file
647 CPU_OPT_BITS_RANDOM
648 CPU_OPT_EXT_RANDOM
649 ERROR_CONSTANTS_SRCDIR
650 OS_INC_SRCDIR
651 ABI_TWEAKS_SRCDIR
652 CPU_DEFINES_SRCDIR
653 ATOMIC_FLAGS
654 ATOMIC_WORD_SRCDIR
655 ATOMICITY_SRCDIR
656 INCLUDE_DIR_NOTPARALLEL_FALSE
657 INCLUDE_DIR_NOTPARALLEL_TRUE
658 BUILD_PDF_FALSE
659 BUILD_PDF_TRUE
660 PDFLATEX
661 DBLATEX
662 BUILD_MAN_FALSE
663 BUILD_MAN_TRUE
664 BUILD_HTML_FALSE
665 BUILD_HTML_TRUE
666 BUILD_XML_FALSE
667 BUILD_XML_TRUE
668 BUILD_EPUB_FALSE
669 BUILD_EPUB_TRUE
670 XSL_STYLE_DIR
671 XMLLINT
672 XSLTPROC
673 XMLCATALOG
675 DOXYGEN
676 BUILD_INFO_FALSE
677 BUILD_INFO_TRUE
678 USE_STATIC_TZDATA_FALSE
679 USE_STATIC_TZDATA_TRUE
680 EH_POOL_FLAGS
681 ENABLE_BACKTRACE_FALSE
682 ENABLE_BACKTRACE_TRUE
683 BACKTRACE_SUPPORTS_THREADS
684 BACKTRACE_USES_MALLOC
685 BACKTRACE_SUPPORTED
686 BACKTRACE_CPPFLAGS
687 ALLOC_FILE
688 VIEW_FILE
689 FORMAT_FILE
690 ENABLE_FILESYSTEM_TS_FALSE
691 ENABLE_FILESYSTEM_TS_TRUE
692 baseline_subdir_switch
693 baseline_dir
694 HWCAP_CFLAGS
695 GLIBCXX_LDBL_ALT128_COMPAT_FALSE
696 GLIBCXX_LDBL_ALT128_COMPAT_TRUE
697 GLIBCXX_LDBL_COMPAT_FALSE
698 GLIBCXX_LDBL_COMPAT_TRUE
699 LONG_DOUBLE_ALT128_COMPAT_FLAGS
700 LONG_DOUBLE_128_FLAGS
701 LONG_DOUBLE_COMPAT_FLAGS
702 ENABLE_CXX11_ABI_FALSE
703 ENABLE_CXX11_ABI_TRUE
704 glibcxx_cxx98_abi
705 ENABLE_DUAL_ABI_FALSE
706 ENABLE_DUAL_ABI_TRUE
707 ENABLE_VISIBILITY_FALSE
708 ENABLE_VISIBILITY_TRUE
709 libtool_VERSION
710 ENABLE_SYMVERS_SUN_FALSE
711 ENABLE_SYMVERS_SUN_TRUE
712 ENABLE_SYMVERS_DARWIN_FALSE
713 ENABLE_SYMVERS_DARWIN_TRUE
714 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE
715 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE
716 ENABLE_SYMVERS_GNU_FALSE
717 ENABLE_SYMVERS_GNU_TRUE
718 ENABLE_SYMVERS_FALSE
719 ENABLE_SYMVERS_TRUE
720 port_specific_symbol_files
721 SYMVER_FILE
722 CXXFILT
723 LTLIBICONV
724 LIBICONV
725 OPT_LDFLAGS
726 SECTION_LDFLAGS
727 GLIBCXX_LIBS
728 ENABLE_VTABLE_VERIFY_FALSE
729 ENABLE_VTABLE_VERIFY_TRUE
730 VTV_CYGMIN_FALSE
731 VTV_CYGMIN_TRUE
732 VTV_CXXLINKFLAGS
733 VTV_PCH_CXXFLAGS
734 VTV_CXXFLAGS
735 ENABLE_WERROR_FALSE
736 ENABLE_WERROR_TRUE
737 ENABLE_PYTHONDIR_FALSE
738 ENABLE_PYTHONDIR_TRUE
739 python_mod_dir
740 ENABLE_EXTERN_TEMPLATE_FALSE
741 ENABLE_EXTERN_TEMPLATE_TRUE
742 EXTRA_CXX_FLAGS
743 GLIBCXX_BUILD_DEBUG_FALSE
744 GLIBCXX_BUILD_DEBUG_TRUE
745 DEBUG_FLAGS
746 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE
747 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE
748 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE
749 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE
750 GLIBCXX_C_HEADERS_C_STD_FALSE
751 GLIBCXX_C_HEADERS_C_STD_TRUE
752 GLIBCXX_C_HEADERS_C_FALSE
753 GLIBCXX_C_HEADERS_C_TRUE
754 C_INCLUDE_DIR
755 ALLOCATOR_NAME
756 ALLOCATOR_H
757 ENABLE_ALLOCATOR_NEW_FALSE
758 ENABLE_ALLOCATOR_NEW_TRUE
759 CLOCALE_INTERNAL_H
760 CLOCALE_CC
761 CTIME_CC
762 CTIME_H
763 CNUMERIC_CC
764 CMONEY_CC
765 CMESSAGES_CC
766 CCTYPE_CC
767 CCOLLATE_CC
768 CCODECVT_CC
769 CMESSAGES_H
770 CLOCALE_H
771 USE_NLS
772 glibcxx_localedir
773 glibcxx_POFILES
774 glibcxx_MOFILES
775 check_msgfmt
776 BASIC_FILE_CC
777 BASIC_FILE_H
778 CSTDIO_H
779 SECTION_FLAGS
780 ENABLE_FLOAT128_FALSE
781 ENABLE_FLOAT128_TRUE
782 thread_header
783 glibcxx_PCHFLAGS
784 GLIBCXX_BUILD_PCH_FALSE
785 GLIBCXX_BUILD_PCH_TRUE
786 FREESTANDING_FLAGS
787 GLIBCXX_HOSTED_FALSE
788 GLIBCXX_HOSTED_TRUE
789 glibcxx_compiler_shared_flag
790 glibcxx_compiler_pic_flag
791 glibcxx_lt_pic_flag
792 OS_IS_DARWIN_FALSE
793 OS_IS_DARWIN_TRUE
794 ENABLE_DARWIN_AT_RPATH_FALSE
795 ENABLE_DARWIN_AT_RPATH_TRUE
796 enable_static
797 enable_shared
798 lt_host_flags
799 CXXCPP
800 OTOOL64
801 OTOOL
802 LIPO
803 NMEDIT
804 DSYMUTIL
805 OBJDUMP
807 ac_ct_DUMPBIN
808 DUMPBIN
810 FGREP
812 LIBTOOL
813 EGREP
814 GREP
816 MAINT
817 MAINTAINER_MODE_FALSE
818 MAINTAINER_MODE_TRUE
819 RANLIB
822 LN_S
823 toplevel_srcdir
824 toplevel_builddir
825 glibcxx_srcdir
826 glibcxx_builddir
827 ac_ct_CXX
828 CXXFLAGS
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
837 AM_BACKSLASH
838 AM_DEFAULT_VERBOSITY
839 AM_DEFAULT_V
840 AM_V
841 am__untar
842 am__tar
843 AMTAR
844 am__leading_dot
845 SET_MAKE
847 mkdir_p
848 MKDIR_P
849 INSTALL_STRIP_PROGRAM
850 STRIP
851 install_sh
852 MAKEINFO
853 AUTOHEADER
854 AUTOMAKE
855 AUTOCONF
856 ACLOCAL
857 VERSION
858 PACKAGE
859 CYGPATH_W
860 am__isrc
861 INSTALL_DATA
862 INSTALL_SCRIPT
863 INSTALL_PROGRAM
864 target_os
865 target_vendor
866 target_cpu
867 target
868 host_os
869 host_vendor
870 host_cpu
871 host
872 build_os
873 build_vendor
874 build_cpu
875 build
876 multi_basedir
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 enable_multilib
919 enable_silent_rules
920 enable_largefile
921 with_target_subdir
922 with_cross_host
923 with_newlib
924 enable_maintainer_mode
925 enable_shared
926 enable_static
927 with_pic
928 enable_fast_install
929 with_gnu_ld
930 enable_libtool_lock
931 enable_darwin_at_rpath
932 enable_hosted_libstdcxx
933 enable_libstdcxx_hosted
934 enable_libstdcxx_verbose
935 enable_libstdcxx_pch
936 with_libstdcxx_lock_policy
937 enable_cstdio
938 enable_clocale
939 enable_nls
940 enable_libstdcxx_allocator
941 enable_cheaders_obsolete
942 enable_cheaders
943 enable_long_long
944 enable_wchar_t
945 enable_c99
946 enable_concept_checks
947 enable_libstdcxx_debug_flags
948 enable_libstdcxx_debug
949 enable_cxx_flags
950 enable_fully_dynamic_string
951 enable_extern_template
952 with_python_dir
953 enable_werror
954 enable_vtable_verify
955 enable_libstdcxx_time
956 enable_tls
957 enable_rpath
958 with_libiconv_prefix
959 with_libiconv_type
960 with_system_libunwind
961 enable_linux_futex
962 enable_symvers
963 enable_libstdcxx_visibility
964 enable_libstdcxx_dual_abi
965 with_default_libstdcxx_abi
966 enable_libstdcxx_threads
967 enable_libstdcxx_filesystem_ts
968 enable_libstdcxx_backtrace
969 enable_libstdcxx_static_eh_pool
970 with_libstdcxx_eh_pool_obj_count
971 with_libstdcxx_zoneinfo
972 enable_cet
973 with_gxx_include_dir
974 enable_version_specific_runtime_libs
975 with_toolexeclibdir
976 with_gcc_major_version_only
978 ac_precious_vars='build_alias
979 host_alias
980 target_alias
982 CFLAGS
983 LDFLAGS
984 LIBS
985 CPPFLAGS
987 CXXFLAGS
990 CXXCPP
991 CXXFILT'
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1049 ac_prev=
1050 continue
1053 case $ac_option in
1054 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 *=) ac_optarg= ;;
1056 *) ac_optarg=yes ;;
1057 esac
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1063 ac_dashdash=yes ;;
1065 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 ac_prev=bindir ;;
1067 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068 bindir=$ac_optarg ;;
1070 -build | --build | --buil | --bui | --bu)
1071 ac_prev=build_alias ;;
1072 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073 build_alias=$ac_optarg ;;
1075 -cache-file | --cache-file | --cache-fil | --cache-fi \
1076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077 ac_prev=cache_file ;;
1078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080 cache_file=$ac_optarg ;;
1082 --config-cache | -C)
1083 cache_file=config.cache ;;
1085 -datadir | --datadir | --datadi | --datad)
1086 ac_prev=datadir ;;
1087 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088 datadir=$ac_optarg ;;
1090 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091 | --dataroo | --dataro | --datar)
1092 ac_prev=datarootdir ;;
1093 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095 datarootdir=$ac_optarg ;;
1097 -disable-* | --disable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid feature name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval enable_$ac_useropt=no ;;
1113 -docdir | --docdir | --docdi | --doc | --do)
1114 ac_prev=docdir ;;
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 ac_prev=dvidir ;;
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1123 -enable-* | --enable-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid feature name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "enable_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval enable_$ac_useropt=\$ac_optarg ;;
1139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141 | --exec | --exe | --ex)
1142 ac_prev=exec_prefix ;;
1143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145 | --exec=* | --exe=* | --ex=*)
1146 exec_prefix=$ac_optarg ;;
1148 -gas | --gas | --ga | --g)
1149 # Obsolete; use --with-gas.
1150 with_gas=yes ;;
1152 -help | --help | --hel | --he | -h)
1153 ac_init_help=long ;;
1154 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155 ac_init_help=recursive ;;
1156 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157 ac_init_help=short ;;
1159 -host | --host | --hos | --ho)
1160 ac_prev=host_alias ;;
1161 -host=* | --host=* | --hos=* | --ho=*)
1162 host_alias=$ac_optarg ;;
1164 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 ac_prev=htmldir ;;
1166 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 | --ht=*)
1168 htmldir=$ac_optarg ;;
1170 -includedir | --includedir | --includedi | --included | --include \
1171 | --includ | --inclu | --incl | --inc)
1172 ac_prev=includedir ;;
1173 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174 | --includ=* | --inclu=* | --incl=* | --inc=*)
1175 includedir=$ac_optarg ;;
1177 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 ac_prev=infodir ;;
1179 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180 infodir=$ac_optarg ;;
1182 -libdir | --libdir | --libdi | --libd)
1183 ac_prev=libdir ;;
1184 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185 libdir=$ac_optarg ;;
1187 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188 | --libexe | --libex | --libe)
1189 ac_prev=libexecdir ;;
1190 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191 | --libexe=* | --libex=* | --libe=*)
1192 libexecdir=$ac_optarg ;;
1194 -localedir | --localedir | --localedi | --localed | --locale)
1195 ac_prev=localedir ;;
1196 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197 localedir=$ac_optarg ;;
1199 -localstatedir | --localstatedir | --localstatedi | --localstated \
1200 | --localstate | --localstat | --localsta | --localst | --locals)
1201 ac_prev=localstatedir ;;
1202 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204 localstatedir=$ac_optarg ;;
1206 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 ac_prev=mandir ;;
1208 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209 mandir=$ac_optarg ;;
1211 -nfp | --nfp | --nf)
1212 # Obsolete; use --without-fp.
1213 with_fp=no ;;
1215 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216 | --no-cr | --no-c | -n)
1217 no_create=yes ;;
1219 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221 no_recursion=yes ;;
1223 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225 | --oldin | --oldi | --old | --ol | --o)
1226 ac_prev=oldincludedir ;;
1227 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230 oldincludedir=$ac_optarg ;;
1232 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 ac_prev=prefix ;;
1234 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235 prefix=$ac_optarg ;;
1237 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238 | --program-pre | --program-pr | --program-p)
1239 ac_prev=program_prefix ;;
1240 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242 program_prefix=$ac_optarg ;;
1244 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245 | --program-suf | --program-su | --program-s)
1246 ac_prev=program_suffix ;;
1247 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249 program_suffix=$ac_optarg ;;
1251 -program-transform-name | --program-transform-name \
1252 | --program-transform-nam | --program-transform-na \
1253 | --program-transform-n | --program-transform- \
1254 | --program-transform | --program-transfor \
1255 | --program-transfo | --program-transf \
1256 | --program-trans | --program-tran \
1257 | --progr-tra | --program-tr | --program-t)
1258 ac_prev=program_transform_name ;;
1259 -program-transform-name=* | --program-transform-name=* \
1260 | --program-transform-nam=* | --program-transform-na=* \
1261 | --program-transform-n=* | --program-transform-=* \
1262 | --program-transform=* | --program-transfor=* \
1263 | --program-transfo=* | --program-transf=* \
1264 | --program-trans=* | --program-tran=* \
1265 | --progr-tra=* | --program-tr=* | --program-t=*)
1266 program_transform_name=$ac_optarg ;;
1268 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 ac_prev=pdfdir ;;
1270 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271 pdfdir=$ac_optarg ;;
1273 -psdir | --psdir | --psdi | --psd | --ps)
1274 ac_prev=psdir ;;
1275 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276 psdir=$ac_optarg ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 silent=yes ;;
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1377 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1381 *=*)
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387 esac
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1399 esac
1400 done
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1409 no) ;;
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412 esac
1415 # Check all directory arguments for consistency.
1416 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1423 case $ac_val in
1424 */ )
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1427 esac
1428 # Be sure to have absolute directory names.
1429 case $ac_val in
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 esac
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 done
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455 test "$silent" = yes && exec 6>/dev/null
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $? "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $? "pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1484 /^X\(\/\/\)$/{
1485 s//\1/
1488 /^X\(\/\).*/{
1489 s//\1/
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1497 else
1498 ac_srcdir_defaulted=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1585 _ACEOF
1587 cat <<\_ACEOF
1589 Program names:
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594 System types:
1595 --build=BUILD configure for building on BUILD [guessed]
1596 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1597 --target=TARGET configure for building compilers for TARGET [HOST]
1598 _ACEOF
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of package-unused version-unused:";;
1604 esac
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-multilib build many library versions (default)
1612 --enable-silent-rules less verbose build output (undo: "make V=1")
1613 --disable-silent-rules verbose build output (undo: "make V=0")
1614 --disable-largefile omit support for large files
1615 --enable-maintainer-mode
1616 enable make rules and dependencies not useful (and
1617 sometimes confusing) to the casual installer
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --enable-darwin-at-rpath
1624 install libraries with @rpath/library-name, requires
1625 rpaths to be added to executables
1626 --disable-hosted-libstdcxx
1627 only build freestanding C++ runtime support
1628 --disable-libstdcxx-hosted
1629 alias for --disable-hosted-libstdcxx
1630 --disable-libstdcxx-verbose
1631 disable termination messages to standard error
1632 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1633 [default=$is_hosted]
1634 --enable-cstdio[=PACKAGE]
1635 use target-specific I/O package [default=stdio]
1636 --enable-clocale[=MODEL]
1637 use MODEL for target locale package [default=auto]
1638 --enable-nls use Native Language Support (default)
1639 --enable-libstdcxx-allocator[=KIND]
1640 use KIND for target std::allocator base
1641 [default=auto]
1642 --enable-cheaders-obsolete
1643 allow use of obsolete "C" headers for g++
1644 [default=no]
1645 --enable-cheaders[=KIND]
1646 construct "C" headers for g++ [default=$c_model]
1647 --enable-long-long enable template specializations for 'long long'
1648 [default=yes]
1649 --enable-wchar_t enable template specializations for 'wchar_t'
1650 [default=yes]
1651 --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes]
1652 --enable-concept-checks use Boost-derived template checks [default=no]
1653 --enable-libstdcxx-debug-flags=FLAGS
1654 pass compiler FLAGS when building debug library
1655 [default="-g3 -O0 -D_GLIBCXX_ASSERTIONS"]
1656 --enable-libstdcxx-debug
1657 build extra debug library [default=no]
1658 --enable-cxx-flags=FLAGS
1659 pass compiler FLAGS when building library [default=]
1660 --enable-fully-dynamic-string
1661 do not put empty strings in per-process static
1662 memory [default=no]
1663 --enable-extern-template
1664 enable extern template [default=yes]
1665 --enable-werror turns on -Werror [default=no]
1666 --enable-vtable-verify enable vtable verify [default=no]
1667 --enable-libstdcxx-time[=KIND]
1668 use KIND for check type [default=auto]
1669 --enable-tls Use thread-local storage [default=yes]
1670 --disable-rpath do not hardcode runtime library paths
1671 --enable-linux-futex use the Linux futex system call [default=default]
1672 --enable-symvers[=STYLE]
1673 enables symbol versioning of the shared library
1674 [default=yes]
1675 --enable-libstdcxx-visibility
1676 enables visibility safe usage [default=yes]
1677 --enable-libstdcxx-dual-abi
1678 support two versions of std::string [default=yes]
1679 --enable-libstdcxx-threads
1680 enable C++11 threads support [default=auto]
1681 --enable-libstdcxx-filesystem-ts
1682 turns on ISO/IEC TS 18822 support [default=auto]
1683 --enable-libstdcxx-backtrace
1684 turns on libbacktrace support [default=auto]
1685 --enable-libstdcxx-static-eh-pool
1686 use a fixed-size static buffer for allocating
1687 exceptions if malloc fails
1688 --enable-cet enable Intel CET in target libraries [default=auto]
1689 --enable-version-specific-runtime-libs
1690 Specify that runtime libraries should be installed
1691 in a compiler-specific directory
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-target-subdir=SUBDIR
1697 configuring in a subdirectory
1698 --with-cross-host=HOST configuring with a cross compiler
1699 --with-newlib assume newlib as a system C library
1700 --with-pic try to use only PIC/non-PIC objects [default=use
1701 both]
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1703 --with-libstdcxx-lock-policy={atomic,mutex,auto}
1704 synchronization policy for shared_ptr reference
1705 counting [default=auto]
1706 --with-python-dir the location to install Python modules. This path is
1707 relative starting from the prefix.
1708 --with-gnu-ld assume the C compiler uses GNU ld default=no
1709 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1710 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1711 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1712 --with-system-libunwind use installed libunwind
1713 --with-default-libstdcxx-abi
1714 set the std::string ABI to use by default
1715 --with-libstdcxx-eh-pool-obj-count
1716 the number of exceptions that can be allocated from
1717 the pool if malloc fails
1718 --with-libstdcxx-zoneinfo
1719 the location to use for tzdata
1720 --with-gxx-include-dir=DIR
1721 installation directory for include files
1722 --with-toolexeclibdir=DIR
1723 install libraries built with a cross compiler within
1725 --with-gcc-major-version-only
1726 use only GCC major number in filesystem paths
1728 Some influential environment variables:
1729 CC C compiler command
1730 CFLAGS C compiler flags
1731 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1732 nonstandard directory <lib dir>
1733 LIBS libraries to pass to the linker, e.g. -l<library>
1734 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1735 you have headers in a nonstandard directory <include dir>
1736 CXX C++ compiler command
1737 CXXFLAGS C++ compiler flags
1738 CPP C preprocessor
1739 CXXCPP C++ preprocessor
1740 CXXFILT Location of GNU c++filt. Defaults to the first GNU version of
1741 `c++filt', `gc++filt' on PATH.
1743 Use these variables to override the choices made by `configure' or to help
1744 it to find libraries and programs with nonstandard names/locations.
1746 Report bugs to the package provider.
1747 _ACEOF
1748 ac_status=$?
1751 if test "$ac_init_help" = "recursive"; then
1752 # If there are subdirs, report their specific --help.
1753 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1754 test -d "$ac_dir" ||
1755 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1756 continue
1757 ac_builddir=.
1759 case "$ac_dir" in
1760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1763 # A ".." for each directory in $ac_dir_suffix.
1764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1765 case $ac_top_builddir_sub in
1766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1768 esac ;;
1769 esac
1770 ac_abs_top_builddir=$ac_pwd
1771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1772 # for backward compatibility:
1773 ac_top_builddir=$ac_top_build_prefix
1775 case $srcdir in
1776 .) # We are building in place.
1777 ac_srcdir=.
1778 ac_top_srcdir=$ac_top_builddir_sub
1779 ac_abs_top_srcdir=$ac_pwd ;;
1780 [\\/]* | ?:[\\/]* ) # Absolute name.
1781 ac_srcdir=$srcdir$ac_dir_suffix;
1782 ac_top_srcdir=$srcdir
1783 ac_abs_top_srcdir=$srcdir ;;
1784 *) # Relative name.
1785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1786 ac_top_srcdir=$ac_top_build_prefix$srcdir
1787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 esac
1789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791 cd "$ac_dir" || { ac_status=$?; continue; }
1792 # Check for guested configure.
1793 if test -f "$ac_srcdir/configure.gnu"; then
1794 echo &&
1795 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1796 elif test -f "$ac_srcdir/configure"; then
1797 echo &&
1798 $SHELL "$ac_srcdir/configure" --help=recursive
1799 else
1800 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 fi || ac_status=$?
1802 cd "$ac_pwd" || { ac_status=$?; break; }
1803 done
1806 test -n "$ac_init_help" && exit $ac_status
1807 if $ac_init_version; then
1808 cat <<\_ACEOF
1809 package-unused configure version-unused
1810 generated by GNU Autoconf 2.69
1812 Copyright (C) 2012 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1815 _ACEOF
1816 exit
1819 ## ------------------------ ##
1820 ## Autoconf initialization. ##
1821 ## ------------------------ ##
1823 # ac_fn_c_try_compile LINENO
1824 # --------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_c_try_compile
1861 # ac_fn_cxx_try_compile LINENO
1862 # ----------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_compile ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext
1868 if { { ac_try="$ac_compile"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.$ac_objext; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_cxx_try_compile
1899 # ac_fn_c_try_cpp LINENO
1900 # ----------------------
1901 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_cpp ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { { ac_try="$ac_cpp conftest.$ac_ext"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } > conftest.i && {
1921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_c_try_cpp
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_link ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest$ac_exeext
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_link
1982 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists and can be compiled using the include files in
1985 # INCLUDES, setting the cache variable VAR accordingly.
1986 ac_fn_c_check_header_compile ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_header_compile
2013 # ac_fn_c_try_run LINENO
2014 # ----------------------
2015 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2016 # that executables *can* be run.
2017 ac_fn_c_try_run ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if { { ac_try="$ac_link"
2021 case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_link") 2>&5
2028 ac_status=$?
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2031 { { case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_try") 2>&5
2038 ac_status=$?
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; }; }; then :
2041 ac_retval=0
2042 else
2043 $as_echo "$as_me: program exited with status $ac_status" >&5
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 ac_retval=$ac_status
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_c_try_run
2055 # ac_fn_c_check_func LINENO FUNC VAR
2056 # ----------------------------------
2057 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2058 ac_fn_c_check_func ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 if test x$gcc_no_link = xyes; then
2067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2080 #ifdef __STDC__
2081 # include <limits.h>
2082 #else
2083 # include <assert.h>
2084 #endif
2086 #undef $2
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 ();
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2103 main ()
2105 return $2 ();
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"; then :
2111 eval "$3=yes"
2112 else
2113 eval "$3=no"
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_cxx_try_cpp LINENO
2126 # ------------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_cpp ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148 test ! -s conftest.err
2149 }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=1
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_cxx_try_cpp
2162 # ac_fn_cxx_try_link LINENO
2163 # -------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_link ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext
2169 if { { ac_try="$ac_link"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes ||
2189 test -x conftest$ac_exeext
2190 }; then :
2191 ac_retval=0
2192 else
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_retval=1
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200 # interfere with the next link command; also delete a directory that is
2201 # left behind by Apple's compiler. We do this before executing the actions.
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_cxx_try_link
2208 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2209 # -------------------------------------------------------
2210 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211 # the include files in INCLUDES and setting the cache variable VAR
2212 # accordingly.
2213 ac_fn_c_check_header_mongrel ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 else
2226 # Is the header compilable?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228 $as_echo_n "checking $2 usability... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2236 else
2237 ac_header_compiler=no
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241 $as_echo "$ac_header_compiler" >&6; }
2243 # Is the header present?
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245 $as_echo_n "checking $2 presence... " >&6; }
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_c_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2252 else
2253 ac_header_preproc=no
2255 rm -f conftest.err conftest.i conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257 $as_echo "$ac_header_preproc" >&6; }
2259 # So? What about this header?
2260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2261 yes:no: )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267 no:yes:* )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 eval "$3=\$ac_header_compiler"
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_header_mongrel
2295 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # ---------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2299 # accordingly.
2300 ac_fn_cxx_check_header_mongrel ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if eval \${$3+:} false; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \${$3+:} false; then :
2307 $as_echo_n "(cached) " >&6
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 else
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_cxx_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2323 else
2324 ac_header_compiler=no
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_cxx_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2339 else
2340 ac_header_preproc=no
2342 rm -f conftest.err conftest.i conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2348 yes:no: )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 no:yes:* )
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366 esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 eval "$3=\$ac_header_compiler"
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 } # ac_fn_cxx_check_header_mongrel
2382 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2383 # --------------------------------------------
2384 # Tries to find the compile-time value of EXPR in a program that includes
2385 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2386 # computed
2387 ac_fn_c_compute_int ()
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 if test "$cross_compiling" = yes; then
2391 # Depending upon the size, compute the lo and hi bounds.
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2396 main ()
2398 static int test_array [1 - 2 * !(($2) >= 0)];
2399 test_array [0] = 0;
2400 return test_array [0];
2403 return 0;
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407 ac_lo=0 ac_mid=0
2408 while :; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2413 main ()
2415 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2416 test_array [0] = 0;
2417 return test_array [0];
2420 return 0;
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 ac_hi=$ac_mid; break
2425 else
2426 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2427 if test $ac_lo -le $ac_mid; then
2428 ac_lo= ac_hi=
2429 break
2431 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 done
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 static int test_array [1 - 2 * !(($2) < 0)];
2443 test_array [0] = 0;
2444 return test_array [0];
2447 return 0;
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_hi=-1 ac_mid=-1
2452 while :; do
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 main ()
2459 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2460 test_array [0] = 0;
2461 return test_array [0];
2464 return 0;
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 ac_lo=$ac_mid; break
2469 else
2470 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2471 if test $ac_mid -le $ac_hi; then
2472 ac_lo= ac_hi=
2473 break
2475 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 done
2479 else
2480 ac_lo= ac_hi=
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 # Binary search between lo and hi bounds.
2486 while test "x$ac_lo" != "x$ac_hi"; do
2487 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2492 main ()
2494 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2495 test_array [0] = 0;
2496 return test_array [0];
2499 return 0;
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503 ac_hi=$ac_mid
2504 else
2505 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 done
2509 case $ac_lo in #((
2510 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2511 '') ac_retval=1 ;;
2512 esac
2513 else
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2517 static long int longval () { return $2; }
2518 static unsigned long int ulongval () { return $2; }
2519 #include <stdio.h>
2520 #include <stdlib.h>
2522 main ()
2525 FILE *f = fopen ("conftest.val", "w");
2526 if (! f)
2527 return 1;
2528 if (($2) < 0)
2530 long int i = longval ();
2531 if (i != ($2))
2532 return 1;
2533 fprintf (f, "%ld", i);
2535 else
2537 unsigned long int i = ulongval ();
2538 if (i != ($2))
2539 return 1;
2540 fprintf (f, "%lu", i);
2542 /* Do not output a trailing newline, as this causes \r\n confusion
2543 on some platforms. */
2544 return ferror (f) || fclose (f) != 0;
2547 return 0;
2549 _ACEOF
2550 if ac_fn_c_try_run "$LINENO"; then :
2551 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2552 else
2553 ac_retval=1
2555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2556 conftest.$ac_objext conftest.beam conftest.$ac_ext
2557 rm -f conftest.val
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_c_compute_int
2565 # ac_fn_cxx_check_func LINENO FUNC VAR
2566 # ------------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_cxx_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test x$gcc_no_link = xyes; then
2577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2596 #undef $2
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2613 main ()
2615 return $2 ();
2617 return 0;
2619 _ACEOF
2620 if ac_fn_cxx_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_cxx_check_func
2635 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2636 # ---------------------------------------------
2637 # Tests whether TYPE exists after having included INCLUDES, setting cache
2638 # variable VAR accordingly.
2639 ac_fn_cxx_check_type ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643 $as_echo_n "checking for $2... " >&6; }
2644 if eval \${$3+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 eval "$3=no"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2652 main ()
2654 if (sizeof ($2))
2655 return 0;
2657 return 0;
2659 _ACEOF
2660 if ac_fn_cxx_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 main ()
2667 if (sizeof (($2)))
2668 return 0;
2670 return 0;
2672 _ACEOF
2673 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 else
2676 eval "$3=yes"
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 } # ac_fn_cxx_check_type
2689 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2690 # ---------------------------------------------
2691 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2692 # accordingly.
2693 ac_fn_c_check_decl ()
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 as_decl_name=`echo $2|sed 's/ *(.*//'`
2697 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2699 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2700 if eval \${$3+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2707 main ()
2709 #ifndef $as_decl_name
2710 #ifdef __cplusplus
2711 (void) $as_decl_use;
2712 #else
2713 (void) $as_decl_name;
2714 #endif
2715 #endif
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733 } # ac_fn_c_check_decl
2734 cat >config.log <<_ACEOF
2735 This file contains any messages produced by compilers while
2736 running configure, to aid debugging if configure makes a mistake.
2738 It was created by package-unused $as_me version-unused, which was
2739 generated by GNU Autoconf 2.69. Invocation command line was
2741 $ $0 $@
2743 _ACEOF
2744 exec 5>>config.log
2746 cat <<_ASUNAME
2747 ## --------- ##
2748 ## Platform. ##
2749 ## --------- ##
2751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2768 _ASUNAME
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 $as_echo "PATH: $as_dir"
2776 done
2777 IFS=$as_save_IFS
2779 } >&5
2781 cat >&5 <<_ACEOF
2784 ## ----------- ##
2785 ## Core tests. ##
2786 ## ----------- ##
2788 _ACEOF
2791 # Keep a trace of the command line.
2792 # Strip out --no-create and --no-recursion so they do not pile up.
2793 # Strip out --silent because we don't want to record it for future runs.
2794 # Also quote any args containing shell meta-characters.
2795 # Make two passes to allow for proper duplicate-argument suppression.
2796 ac_configure_args=
2797 ac_configure_args0=
2798 ac_configure_args1=
2799 ac_must_keep_next=false
2800 for ac_pass in 1 2
2802 for ac_arg
2804 case $ac_arg in
2805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2807 | -silent | --silent | --silen | --sile | --sil)
2808 continue ;;
2809 *\'*)
2810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2811 esac
2812 case $ac_pass in
2813 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2815 as_fn_append ac_configure_args1 " '$ac_arg'"
2816 if test $ac_must_keep_next = true; then
2817 ac_must_keep_next=false # Got value, back to normal.
2818 else
2819 case $ac_arg in
2820 *=* | --config-cache | -C | -disable-* | --disable-* \
2821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2823 | -with-* | --with-* | -without-* | --without-* | --x)
2824 case "$ac_configure_args0 " in
2825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2826 esac
2828 -* ) ac_must_keep_next=true ;;
2829 esac
2831 as_fn_append ac_configure_args " '$ac_arg'"
2833 esac
2834 done
2835 done
2836 { ac_configure_args0=; unset ac_configure_args0;}
2837 { ac_configure_args1=; unset ac_configure_args1;}
2839 # When interrupted or exit'd, cleanup temporary files, and complete
2840 # config.log. We remove comments because anyway the quotes in there
2841 # would cause problems or look ugly.
2842 # WARNING: Use '\'' to represent an apostrophe within the trap.
2843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2844 trap 'exit_status=$?
2845 # Save into config.log some information that might help in debugging.
2847 echo
2849 $as_echo "## ---------------- ##
2850 ## Cache variables. ##
2851 ## ---------------- ##"
2852 echo
2853 # The following way of writing the cache mishandles newlines in values,
2855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856 eval ac_val=\$$ac_var
2857 case $ac_val in #(
2858 *${as_nl}*)
2859 case $ac_var in #(
2860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862 esac
2863 case $ac_var in #(
2864 _ | IFS | as_nl) ;; #(
2865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866 *) { eval $ac_var=; unset $ac_var;} ;;
2867 esac ;;
2868 esac
2869 done
2870 (set) 2>&1 |
2871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872 *${as_nl}ac_space=\ *)
2873 sed -n \
2874 "s/'\''/'\''\\\\'\'''\''/g;
2875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876 ;; #(
2878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2880 esac |
2881 sort
2883 echo
2885 $as_echo "## ----------------- ##
2886 ## Output variables. ##
2887 ## ----------------- ##"
2888 echo
2889 for ac_var in $ac_subst_vars
2891 eval ac_val=\$$ac_var
2892 case $ac_val in
2893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2894 esac
2895 $as_echo "$ac_var='\''$ac_val'\''"
2896 done | sort
2897 echo
2899 if test -n "$ac_subst_files"; then
2900 $as_echo "## ------------------- ##
2901 ## File substitutions. ##
2902 ## ------------------- ##"
2903 echo
2904 for ac_var in $ac_subst_files
2906 eval ac_val=\$$ac_var
2907 case $ac_val in
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 esac
2910 $as_echo "$ac_var='\''$ac_val'\''"
2911 done | sort
2912 echo
2915 if test -s confdefs.h; then
2916 $as_echo "## ----------- ##
2917 ## confdefs.h. ##
2918 ## ----------- ##"
2919 echo
2920 cat confdefs.h
2921 echo
2923 test "$ac_signal" != 0 &&
2924 $as_echo "$as_me: caught signal $ac_signal"
2925 $as_echo "$as_me: exit $exit_status"
2926 } >&5
2927 rm -f core *.core core.conftest.* &&
2928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929 exit $exit_status
2931 for ac_signal in 1 2 13 15; do
2932 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933 done
2934 ac_signal=0
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2939 $as_echo "/* confdefs.h */" > confdefs.h
2941 # Predefined preprocessor variables.
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 _ACEOF
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 _ACEOF
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 _ACEOF
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 _ACEOF
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2965 _ACEOF
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2970 ac_site_file1=NONE
2971 ac_site_file2=NONE
2972 if test -n "$CONFIG_SITE"; then
2973 # We do not want a PATH search for config.site.
2974 case $CONFIG_SITE in #((
2975 -*) ac_site_file1=./$CONFIG_SITE;;
2976 */*) ac_site_file1=$CONFIG_SITE;;
2977 *) ac_site_file1=./$CONFIG_SITE;;
2978 esac
2979 elif test "x$prefix" != xNONE; then
2980 ac_site_file1=$prefix/share/config.site
2981 ac_site_file2=$prefix/etc/config.site
2982 else
2983 ac_site_file1=$ac_default_prefix/share/config.site
2984 ac_site_file2=$ac_default_prefix/etc/config.site
2986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2988 test "x$ac_site_file" = xNONE && continue
2989 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2992 sed 's/^/| /' "$ac_site_file" >&5
2993 . "$ac_site_file" \
2994 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "failed to load site script $ac_site_file
2997 See \`config.log' for more details" "$LINENO" 5; }
2999 done
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special files
3003 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3004 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3007 case $cache_file in
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3010 esac
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3015 >$cache_file
3018 # Check that the precious variables saved in the cache have kept the same
3019 # value.
3020 ac_cache_corrupted=false
3021 for ac_var in $ac_precious_vars; do
3022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3023 eval ac_new_set=\$ac_env_${ac_var}_set
3024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3025 eval ac_new_val=\$ac_env_${ac_var}_value
3026 case $ac_old_set,$ac_new_set in
3027 set,)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3030 ac_cache_corrupted=: ;;
3031 ,set)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3035 ,);;
3037 if test "x$ac_old_val" != "x$ac_new_val"; then
3038 # differences in whitespace do not lead to failure.
3039 ac_old_val_w=`echo x $ac_old_val`
3040 ac_new_val_w=`echo x $ac_new_val`
3041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3044 ac_cache_corrupted=:
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3048 eval $ac_var=\$ac_old_val
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3054 fi;;
3055 esac
3056 # Pass precious variables to config.status.
3057 if test "$ac_new_set" = set; then
3058 case $ac_new_val in
3059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3060 *) ac_arg=$ac_var=$ac_new_val ;;
3061 esac
3062 case " $ac_configure_args " in
3063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3065 esac
3067 done
3068 if $ac_cache_corrupted; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3073 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3075 ## -------------------- ##
3076 ## Main body of script. ##
3077 ## -------------------- ##
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_config_headers="$ac_config_headers config.h"
3093 # This works around the fact that libtool configuration may change LD
3094 # for this particular configuration, but some shells, instead of
3095 # keeping the changes in LD private, export them just because LD is
3096 # exported. Only used at the end of this file.
3097 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
3099 # Find the rest of the source tree framework.
3100 # Default to --enable-multilib
3101 # Check whether --enable-multilib was given.
3102 if test "${enable_multilib+set}" = set; then :
3103 enableval=$enable_multilib; case "$enableval" in
3104 yes) multilib=yes ;;
3105 no) multilib=no ;;
3106 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3107 esac
3108 else
3109 multilib=yes
3113 # We may get other options which we leave undocumented:
3114 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3115 # See config-ml.in if you want the gory details.
3117 if test "$srcdir" = "."; then
3118 if test "$with_target_subdir" != "."; then
3119 multi_basedir="$srcdir/$with_multisrctop../.."
3120 else
3121 multi_basedir="$srcdir/$with_multisrctop.."
3123 else
3124 multi_basedir="$srcdir/.."
3128 # Even if the default multilib is not a cross compilation,
3129 # it may be that some of the other multilibs are.
3130 if test $cross_compiling = no && test $multilib = yes \
3131 && test "x${with_multisubdir}" != x ; then
3132 cross_compiling=maybe
3135 ac_config_commands="$ac_config_commands default-1"
3138 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
3140 # You will slowly go insane if you do not grok the following fact: when
3141 # building v3 as part of the compiler, the top-level /target/ becomes the
3142 # library's /host/. configure then causes --target to default to --host,
3143 # exactly like any other package using autoconf. Therefore, 'target' and
3144 # 'host' will always be the same. This makes sense both for native and
3145 # cross compilers, just think about it for a little while. :-)
3147 # Also, if v3 is being configured as part of a cross compiler, the top-level
3148 # configure script will pass the "real" host as $with_cross_host.
3150 # Do not delete or change the following two lines. For why, see
3151 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3152 ac_aux_dir=
3153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3154 if test -f "$ac_dir/install-sh"; then
3155 ac_aux_dir=$ac_dir
3156 ac_install_sh="$ac_aux_dir/install-sh -c"
3157 break
3158 elif test -f "$ac_dir/install.sh"; then
3159 ac_aux_dir=$ac_dir
3160 ac_install_sh="$ac_aux_dir/install.sh -c"
3161 break
3162 elif test -f "$ac_dir/shtool"; then
3163 ac_aux_dir=$ac_dir
3164 ac_install_sh="$ac_aux_dir/shtool install -c"
3165 break
3167 done
3168 if test -z "$ac_aux_dir"; then
3169 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3172 # These three variables are undocumented and unsupported,
3173 # and are intended to be withdrawn in a future Autoconf release.
3174 # They can cause serious problems if a builder's source tree is in a directory
3175 # whose full name contains unusual characters.
3176 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3177 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3178 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3181 # Make sure we can run config.sub.
3182 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3183 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3186 $as_echo_n "checking build system type... " >&6; }
3187 if ${ac_cv_build+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 ac_build_alias=$build_alias
3191 test "x$ac_build_alias" = x &&
3192 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3193 test "x$ac_build_alias" = x &&
3194 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3195 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3200 $as_echo "$ac_cv_build" >&6; }
3201 case $ac_cv_build in
3202 *-*-*) ;;
3203 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3204 esac
3205 build=$ac_cv_build
3206 ac_save_IFS=$IFS; IFS='-'
3207 set x $ac_cv_build
3208 shift
3209 build_cpu=$1
3210 build_vendor=$2
3211 shift; shift
3212 # Remember, the first character of IFS is used to create $*,
3213 # except with old shells:
3214 build_os=$*
3215 IFS=$ac_save_IFS
3216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3220 $as_echo_n "checking host system type... " >&6; }
3221 if ${ac_cv_host+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test "x$host_alias" = x; then
3225 ac_cv_host=$ac_cv_build
3226 else
3227 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3228 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3233 $as_echo "$ac_cv_host" >&6; }
3234 case $ac_cv_host in
3235 *-*-*) ;;
3236 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3237 esac
3238 host=$ac_cv_host
3239 ac_save_IFS=$IFS; IFS='-'
3240 set x $ac_cv_host
3241 shift
3242 host_cpu=$1
3243 host_vendor=$2
3244 shift; shift
3245 # Remember, the first character of IFS is used to create $*,
3246 # except with old shells:
3247 host_os=$*
3248 IFS=$ac_save_IFS
3249 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3253 $as_echo_n "checking target system type... " >&6; }
3254 if ${ac_cv_target+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if test "x$target_alias" = x; then
3258 ac_cv_target=$ac_cv_host
3259 else
3260 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3261 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3266 $as_echo "$ac_cv_target" >&6; }
3267 case $ac_cv_target in
3268 *-*-*) ;;
3269 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3270 esac
3271 target=$ac_cv_target
3272 ac_save_IFS=$IFS; IFS='-'
3273 set x $ac_cv_target
3274 shift
3275 target_cpu=$1
3276 target_vendor=$2
3277 shift; shift
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3280 target_os=$*
3281 IFS=$ac_save_IFS
3282 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3285 # The aliases save the names the user supplied, while $host etc.
3286 # will get canonicalized.
3287 test -n "$target_alias" &&
3288 test "$program_prefix$program_suffix$program_transform_name" = \
3289 NONENONEs,x,x, &&
3290 program_prefix=${target_alias}-
3292 target_alias=${target_alias-$host_alias}
3294 # Handy for debugging:
3295 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3297 if test "$build" != "$host"; then
3298 # We are being configured with some form of cross compiler.
3299 GLIBCXX_IS_NATIVE=false
3300 case "$host","$target" in
3301 # Darwin crosses can use the host system's libraries and headers,
3302 # because of the fat library support. Of course, it must be the
3303 # same version of Darwin on both sides. Allow the user to
3304 # just say --target=foo-darwin without a version number to mean
3305 # "the version on this system".
3306 *-*-darwin*,*-*-darwin*)
3307 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3308 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3309 if test $hostos = $targetos || test $targetos = darwin ; then
3310 GLIBCXX_IS_NATIVE=true
3317 esac
3318 else
3319 GLIBCXX_IS_NATIVE=true
3322 # In the case that we're building without headers, we won't have <stdio.h>
3323 # available. In these cases, we have to instruct autotools to never include
3324 # <stdio.h> as a part of default headers.
3326 if test "x$with_headers" = "xno"; then
3327 ac_includes_default=`echo "$ac_includes_default" | sed '/^#include <stdio.h>$/d'`
3331 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3332 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3333 # 1.x: minimum required version
3334 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3335 # of other PACKAGE_* variables will, however, and there's nothing
3336 # we can do about that; they come from AC_INIT).
3337 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3338 # file in the top srcdir, etc, etc), so stop complaining.
3339 # no-dependencies: turns off auto dependency generation (just for now)
3340 # no-dist: we don't want 'dist' and related rules.
3341 # -Wall: turns on all automake warnings...
3342 # -Wno-portability: ...except this one, since GNU make is now required.
3343 am__api_version='1.15'
3345 # Find a good install program. We prefer a C program (faster),
3346 # so one script is as good as another. But avoid the broken or
3347 # incompatible versions:
3348 # SysV /etc/install, /usr/sbin/install
3349 # SunOS /usr/etc/install
3350 # IRIX /sbin/install
3351 # AIX /bin/install
3352 # AmigaOS /C/install, which installs bootblocks on floppy discs
3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3356 # OS/2's system install, which has a completely different semantic
3357 # ./install, which can be erroneously created by make from ./install.sh.
3358 # Reject install programs that cannot install multiple files.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3361 if test -z "$INSTALL"; then
3362 if ${ac_cv_path_install+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 # Account for people who put trailing slashes in PATH elements.
3371 case $as_dir/ in #((
3372 ./ | .// | /[cC]/* | \
3373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3375 /usr/ucb/* ) ;;
3377 # OSF1 and SCO ODT 3.0 have their own names for install.
3378 # Don't use installbsd from OSF since it installs stuff as root
3379 # by default.
3380 for ac_prog in ginstall scoinst install; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3383 if test $ac_prog = install &&
3384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385 # AIX install. It has an incompatible calling convention.
3387 elif test $ac_prog = install &&
3388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3389 # program-specific install script used by HP pwplus--don't use.
3391 else
3392 rm -rf conftest.one conftest.two conftest.dir
3393 echo one > conftest.one
3394 echo two > conftest.two
3395 mkdir conftest.dir
3396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3397 test -s conftest.one && test -s conftest.two &&
3398 test -s conftest.dir/conftest.one &&
3399 test -s conftest.dir/conftest.two
3400 then
3401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3402 break 3
3406 done
3407 done
3409 esac
3411 done
3412 IFS=$as_save_IFS
3414 rm -rf conftest.one conftest.two conftest.dir
3417 if test "${ac_cv_path_install+set}" = set; then
3418 INSTALL=$ac_cv_path_install
3419 else
3420 # As a last resort, use the slow shell script. Don't cache a
3421 # value for INSTALL within a source directory, because that will
3422 # break other packages using the cache if that directory is
3423 # removed, or if the value is a relative name.
3424 INSTALL=$ac_install_sh
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3428 $as_echo "$INSTALL" >&6; }
3430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3431 # It thinks the first close brace ends the variable substitution.
3432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3439 $as_echo_n "checking whether build environment is sane... " >&6; }
3440 # Reject unsafe characters in $srcdir or the absolute working directory
3441 # name. Accept space and tab only in the latter.
3442 am_lf='
3444 case `pwd` in
3445 *[\\\"\#\$\&\'\`$am_lf]*)
3446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3447 esac
3448 case $srcdir in
3449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3450 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3451 esac
3453 # Do 'set' in a subshell so we don't clobber the current shell's
3454 # arguments. Must try -L first in case configure is actually a
3455 # symlink; some systems play weird games with the mod time of symlinks
3456 # (eg FreeBSD returns the mod time of the symlink's containing
3457 # directory).
3458 if (
3459 am_has_slept=no
3460 for am_try in 1 2; do
3461 echo "timestamp, slept: $am_has_slept" > conftest.file
3462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3463 if test "$*" = "X"; then
3464 # -L didn't work.
3465 set X `ls -t "$srcdir/configure" conftest.file`
3467 if test "$*" != "X $srcdir/configure conftest.file" \
3468 && test "$*" != "X conftest.file $srcdir/configure"; then
3470 # If neither matched, then we have a broken ls. This can happen
3471 # if, for instance, CONFIG_SHELL is bash and it inherits a
3472 # broken ls alias from the environment. This has actually
3473 # happened. Such a system could not be considered "sane".
3474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3475 alias in your environment" "$LINENO" 5
3477 if test "$2" = conftest.file || test $am_try -eq 2; then
3478 break
3480 # Just in case.
3481 sleep 1
3482 am_has_slept=yes
3483 done
3484 test "$2" = conftest.file
3486 then
3487 # Ok.
3489 else
3490 as_fn_error $? "newly created file is older than distributed files!
3491 Check your system clock" "$LINENO" 5
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 # If we didn't sleep, we still need to ensure time stamps of config.status and
3496 # generated files are strictly newer.
3497 am_sleep_pid=
3498 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3499 ( sleep 1 ) &
3500 am_sleep_pid=$!
3503 rm -f conftest.file
3505 test "$program_prefix" != NONE &&
3506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3515 # Expand $ac_aux_dir to an absolute path.
3516 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3518 if test x"${MISSING+set}" != xset; then
3519 case $am_aux_dir in
3520 *\ * | *\ *)
3521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3524 esac
3526 # Use eval to expand $SHELL
3527 if eval "$MISSING --is-lightweight"; then
3528 am_missing_run="$MISSING "
3529 else
3530 am_missing_run=
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3532 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3535 if test x"${install_sh+set}" != xset; then
3536 case $am_aux_dir in
3537 *\ * | *\ *)
3538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3540 install_sh="\${SHELL} $am_aux_dir/install-sh"
3541 esac
3544 # Installed binaries are usually stripped using 'strip' when the user
3545 # run "make install-strip". However 'strip' might not be the right
3546 # tool to use in cross-compilation environments, therefore Automake
3547 # will honor the 'STRIP' environment variable to overrule this program.
3548 if test "$cross_compiling" != no; then
3549 if test -n "$ac_tool_prefix"; then
3550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}strip; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_STRIP+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$STRIP"; then
3558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3571 done
3572 done
3573 IFS=$as_save_IFS
3577 STRIP=$ac_cv_prog_STRIP
3578 if test -n "$STRIP"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3580 $as_echo "$STRIP" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3588 if test -z "$ac_cv_prog_STRIP"; then
3589 ac_ct_STRIP=$STRIP
3590 # Extract the first word of "strip", so it can be a program name with args.
3591 set dummy strip; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_STRIP"; then
3598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_STRIP="strip"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3618 if test -n "$ac_ct_STRIP"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3620 $as_echo "$ac_ct_STRIP" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3626 if test "x$ac_ct_STRIP" = x; then
3627 STRIP=":"
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 STRIP=$ac_ct_STRIP
3637 else
3638 STRIP="$ac_cv_prog_STRIP"
3642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3646 if test -z "$MKDIR_P"; then
3647 if ${ac_cv_path_mkdir+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_prog in mkdir gmkdir; do
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3659 'mkdir (GNU coreutils) '* | \
3660 'mkdir (coreutils) '* | \
3661 'mkdir (fileutils) '4.1*)
3662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3663 break 3;;
3664 esac
3665 done
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 test -d ./--version && rmdir ./--version
3673 if test "${ac_cv_path_mkdir+set}" = set; then
3674 MKDIR_P="$ac_cv_path_mkdir -p"
3675 else
3676 # As a last resort, use the slow shell script. Don't cache a
3677 # value for MKDIR_P within a source directory, because that will
3678 # break other packages using the cache if that directory is
3679 # removed, or if the value is a relative name.
3680 MKDIR_P="$ac_install_sh -d"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3684 $as_echo "$MKDIR_P" >&6; }
3686 for ac_prog in gawk mawk nawk awk
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_AWK+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$AWK"; then
3696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_AWK="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3715 AWK=$ac_cv_prog_AWK
3716 if test -n "$AWK"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3718 $as_echo "$AWK" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$AWK" && break
3726 done
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3730 set x ${MAKE-make}
3731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3732 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat >conftest.make <<\_ACEOF
3736 SHELL = /bin/sh
3737 all:
3738 @echo '@@@%%%=$(MAKE)=@@@%%%'
3739 _ACEOF
3740 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3742 *@@@%%%=?*=@@@%%%*)
3743 eval ac_cv_prog_make_${ac_make}_set=yes;;
3745 eval ac_cv_prog_make_${ac_make}_set=no;;
3746 esac
3747 rm -f conftest.make
3749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 $as_echo "yes" >&6; }
3752 SET_MAKE=
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 SET_MAKE="MAKE=${MAKE-make}"
3759 rm -rf .tst 2>/dev/null
3760 mkdir .tst 2>/dev/null
3761 if test -d .tst; then
3762 am__leading_dot=.
3763 else
3764 am__leading_dot=_
3766 rmdir .tst 2>/dev/null
3768 # Check whether --enable-silent-rules was given.
3769 if test "${enable_silent_rules+set}" = set; then :
3770 enableval=$enable_silent_rules;
3773 case $enable_silent_rules in # (((
3774 yes) AM_DEFAULT_VERBOSITY=0;;
3775 no) AM_DEFAULT_VERBOSITY=1;;
3776 *) AM_DEFAULT_VERBOSITY=1;;
3777 esac
3778 am_make=${MAKE-make}
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3780 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3781 if ${am_cv_make_support_nested_variables+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if $as_echo 'TRUE=$(BAR$(V))
3785 BAR0=false
3786 BAR1=true
3788 am__doit:
3789 @$(TRUE)
3790 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3791 am_cv_make_support_nested_variables=yes
3792 else
3793 am_cv_make_support_nested_variables=no
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3797 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3798 if test $am_cv_make_support_nested_variables = yes; then
3799 AM_V='$(V)'
3800 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3801 else
3802 AM_V=$AM_DEFAULT_VERBOSITY
3803 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3805 AM_BACKSLASH='\'
3807 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3808 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3809 # is not polluted with repeated "-I."
3810 am__isrc=' -I$(srcdir)'
3811 # test to see if srcdir already configured
3812 if test -f $srcdir/config.status; then
3813 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3817 # test whether we have cygpath
3818 if test -z "$CYGPATH_W"; then
3819 if (cygpath --version) >/dev/null 2>/dev/null; then
3820 CYGPATH_W='cygpath -w'
3821 else
3822 CYGPATH_W=echo
3827 # Define the identity of the package.
3828 PACKAGE='libstdc++'
3829 VERSION='version-unused'
3832 # Some tools Automake needs.
3834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3848 # For better backward compatibility. To be removed once Automake 1.9.x
3849 # dies out for good. For more background, see:
3850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3852 mkdir_p='$(MKDIR_P)'
3854 # We need awk for the "check" target (and possibly the TAP driver). The
3855 # system "awk" is bad on some platforms.
3856 # Always define AMTAR for backward compatibility. Yes, it's still used
3857 # in the wild :-( We should find a proper way to deprecate it ...
3858 AMTAR='$${TAR-tar}'
3861 # We'll loop over all known methods to create a tar archive until one works.
3862 _am_tools='gnutar pax cpio none'
3864 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3871 # POSIX will say in a future version that running "rm -f" with no argument
3872 # is OK; and we want to be able to make that assumption in our Makefile
3873 # recipes. So use an aggressive probe to check that the usage we want is
3874 # actually supported "in the wild" to an acceptable degree.
3875 # See automake bug#10828.
3876 # To make any issue more visible, cause the running configure to be aborted
3877 # by default if the 'rm' program in use doesn't match our expectations; the
3878 # user can still override this though.
3879 if rm -f && rm -fr && rm -rf; then : OK; else
3880 cat >&2 <<'END'
3881 Oops!
3883 Your 'rm' program seems unable to run without file operands specified
3884 on the command line, even when the '-f' option is present. This is contrary
3885 to the behaviour of most rm programs out there, and not conforming with
3886 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3888 Please tell bug-automake@gnu.org about your system, including the value
3889 of your $PATH and any error possibly output before this message. This
3890 can help us improve future automake versions.
3893 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3894 echo 'Configuration will proceed anyway, since you have set the' >&2
3895 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3896 echo >&2
3897 else
3898 cat >&2 <<'END'
3899 Aborting the configuration process, to ensure you take notice of the issue.
3901 You can download and install GNU coreutils to get an 'rm' implementation
3902 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3904 If you want to complete the configuration process using your problematic
3905 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3906 to "yes", and re-run configure.
3909 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3916 # -fno-builtin must be present here so that a non-conflicting form of
3917 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
3919 save_CXXFLAGS="$CXXFLAGS"
3920 CXXFLAGS="$CXXFLAGS -fno-builtin"
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_CC+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3948 done
3949 done
3950 IFS=$as_save_IFS
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 $as_echo "$CC" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3965 if test -z "$ac_cv_prog_CC"; then
3966 ac_ct_CC=$CC
3967 # Extract the first word of "gcc", so it can be a program name with args.
3968 set dummy gcc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$ac_ct_CC"; then
3975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_CC="gcc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3990 IFS=$as_save_IFS
3994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995 if test -n "$ac_ct_CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997 $as_echo "$ac_ct_CC" >&6; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4003 if test "x$ac_ct_CC" = x; then
4004 CC=""
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007 yes:)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010 ac_tool_warned=yes ;;
4011 esac
4012 CC=$ac_ct_CC
4014 else
4015 CC="$ac_cv_prog_CC"
4018 if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}cc; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_CC+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$CC"; then
4028 ac_cv_prog_CC="$CC" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_CC="${ac_tool_prefix}cc"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4059 if test -z "$CC"; then
4060 # Extract the first word of "cc", so it can be a program name with args.
4061 set dummy cc; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_CC+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 ac_prog_rejected=no
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4079 ac_prog_rejected=yes
4080 continue
4082 ac_cv_prog_CC="cc"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4088 IFS=$as_save_IFS
4090 if test $ac_prog_rejected = yes; then
4091 # We found a bogon in the path, so make sure we never use it.
4092 set dummy $ac_cv_prog_CC
4093 shift
4094 if test $# != 0; then
4095 # We chose a different compiler from the bogus one.
4096 # However, it has the same basename, so the bogon will be chosen
4097 # first if we set CC to just the basename; use the full file name.
4098 shift
4099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$CC"; then
4116 if test -n "$ac_tool_prefix"; then
4117 for ac_prog in cl.exe
4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4142 IFS=$as_save_IFS
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4156 test -n "$CC" && break
4157 done
4159 if test -z "$CC"; then
4160 ac_ct_CC=$CC
4161 for ac_prog in cl.exe
4163 # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$ac_ct_CC"; then
4171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_CC="$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4193 $as_echo "$ac_ct_CC" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4200 test -n "$ac_ct_CC" && break
4201 done
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error $? "no acceptable C compiler found in \$PATH
4222 See \`config.log' for more details" "$LINENO" 5; }
4224 # Provide some information about the compiler.
4225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4226 set X $ac_compile
4227 ac_compiler=$2
4228 for ac_option in --version -v -V -qversion; do
4229 { { ac_try="$ac_compiler $ac_option >&5"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4237 ac_status=$?
4238 if test -s conftest.err; then
4239 sed '10a\
4240 ... rest of stderr output deleted ...
4241 10q' conftest.err >conftest.er1
4242 cat conftest.er1 >&5
4244 rm -f conftest.er1 conftest.err
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }
4247 done
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdio.h>
4253 main ()
4255 printf ("hello world\n");
4257 return 0;
4259 _ACEOF
4260 # FIXME: Cleanup?
4261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4262 (eval $ac_link) 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 gcc_no_link=no
4267 else
4268 gcc_no_link=yes
4270 if test x$gcc_no_link = xyes; then
4271 # Setting cross_compile will disable run tests; it will
4272 # also disable AC_CHECK_FILE but that's generally
4273 # correct if we can't link.
4274 cross_compiling=yes
4275 EXEEXT=
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 ac_clean_files_save=$ac_clean_files
4289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4290 # Try to create an executable without -o first, disregard a.out.
4291 # It will help us diagnose broken compilers, and finding out an intuition
4292 # of exeext.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4294 $as_echo_n "checking whether the C compiler works... " >&6; }
4295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4297 # The possible output files:
4298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4300 ac_rmfiles=
4301 for ac_file in $ac_files
4303 case $ac_file in
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4306 esac
4307 done
4308 rm -f $ac_rmfiles
4310 if { { ac_try="$ac_link_default"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link_default") 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4324 # so that the user can short-circuit this test for compilers unknown to
4325 # Autoconf.
4326 for ac_file in $ac_files ''
4328 test -f "$ac_file" || continue
4329 case $ac_file in
4330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4332 [ab].out )
4333 # We found the default executable, but exeext='' is most
4334 # certainly right.
4335 break;;
4336 *.* )
4337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4338 then :; else
4339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4341 # We set ac_cv_exeext here because the later test for it is not
4342 # safe: cross compilers may not add the suffix if given an `-o'
4343 # argument, so we may need to know it at that point already.
4344 # Even if this section looks crufty: it has the advantage of
4345 # actually working.
4346 break;;
4348 break;;
4349 esac
4350 done
4351 test "$ac_cv_exeext" = no && ac_cv_exeext=
4353 else
4354 ac_file=''
4356 if test -z "$ac_file"; then :
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error 77 "C compiler cannot create executables
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 $as_echo "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 $as_echo_n "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4393 # work properly (i.e., refer to `conftest.exe'), while it won't with
4394 # `rm'.
4395 for ac_file in conftest.exe conftest conftest.*; do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4400 break;;
4401 * ) break;;
4402 esac
4403 done
4404 else
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4408 See \`config.log' for more details" "$LINENO" 5; }
4410 rm -f conftest conftest$ac_cv_exeext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4412 $as_echo "$ac_cv_exeext" >&6; }
4414 rm -f conftest.$ac_ext
4415 EXEEXT=$ac_cv_exeext
4416 ac_exeext=$EXEEXT
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <stdio.h>
4421 main ()
4423 FILE *f = fopen ("conftest.out", "w");
4424 return ferror (f) || fclose (f) != 0;
4427 return 0;
4429 _ACEOF
4430 ac_clean_files="$ac_clean_files conftest.out"
4431 # Check that the compiler produces executables we can run. If not, either
4432 # the compiler is broken, or we cross compile.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4434 $as_echo_n "checking whether we are cross compiling... " >&6; }
4435 if test "$cross_compiling" != yes; then
4436 { { ac_try="$ac_link"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
4444 ac_status=$?
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 if { ac_try='./conftest$ac_cv_exeext'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4458 cross_compiling=no
4459 else
4460 if test "$cross_compiling" = maybe; then
4461 cross_compiling=yes
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details" "$LINENO" 5; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4475 ac_clean_files=$ac_clean_files_save
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4478 $as_echo_n "checking for suffix of object files... " >&6; }
4479 if ${ac_cv_objext+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4486 main ()
4490 return 0;
4492 _ACEOF
4493 rm -f conftest.o conftest.obj
4494 if { { ac_try="$ac_compile"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_compile") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 for ac_file in conftest.o conftest.obj conftest.*; do
4506 test -f "$ac_file" || continue;
4507 case $ac_file in
4508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4510 break;;
4511 esac
4512 done
4513 else
4514 $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 as_fn_error $? "cannot compute suffix of object files: cannot compile
4520 See \`config.log' for more details" "$LINENO" 5; }
4522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4525 $as_echo "$ac_cv_objext" >&6; }
4526 OBJEXT=$ac_cv_objext
4527 ac_objext=$OBJEXT
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4530 if ${ac_cv_c_compiler_gnu+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4539 #ifndef __GNUC__
4540 choke me
4541 #endif
4544 return 0;
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 ac_compiler_gnu=yes
4549 else
4550 ac_compiler_gnu=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4559 GCC=yes
4560 else
4561 GCC=
4563 ac_test_CFLAGS=${CFLAGS+set}
4564 ac_save_CFLAGS=$CFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4567 if ${ac_cv_prog_cc_g+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_save_c_werror_flag=$ac_c_werror_flag
4571 ac_c_werror_flag=yes
4572 ac_cv_prog_cc_g=no
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
4587 else
4588 CFLAGS=""
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4602 else
4603 ac_c_werror_flag=$ac_save_c_werror_flag
4604 CFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_prog_cc_g=yes
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4627 $as_echo "$ac_cv_prog_cc_g" >&6; }
4628 if test "$ac_test_CFLAGS" = set; then
4629 CFLAGS=$ac_save_CFLAGS
4630 elif test $ac_cv_prog_cc_g = yes; then
4631 if test "$GCC" = yes; then
4632 CFLAGS="-g -O2"
4633 else
4634 CFLAGS="-g"
4636 else
4637 if test "$GCC" = yes; then
4638 CFLAGS="-O2"
4639 else
4640 CFLAGS=
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4645 if ${ac_cv_prog_cc_c89+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_cv_prog_cc_c89=no
4649 ac_save_CC=$CC
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <stdarg.h>
4653 #include <stdio.h>
4654 struct stat;
4655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4656 struct buf { int x; };
4657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4658 static char *e (p, i)
4659 char **p;
4660 int i;
4662 return p[i];
4664 static char *f (char * (*g) (char **, int), char **p, ...)
4666 char *s;
4667 va_list v;
4668 va_start (v,p);
4669 s = g (p, va_arg (v,int));
4670 va_end (v);
4671 return s;
4674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4675 function prototypes and stuff, but not '\xHH' hex character constants.
4676 These don't provoke an error unfortunately, instead are silently treated
4677 as 'x'. The following induces an error, until -std is added to get
4678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4679 array size at least. It's necessary to write '\x00'==0 to get something
4680 that's true only with -std. */
4681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4684 inside strings and character constants. */
4685 #define FOO(x) 'x'
4686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4688 int test (int i, double x);
4689 struct s1 {int (*f) (int a);};
4690 struct s2 {int (*f) (double a);};
4691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4692 int argc;
4693 char **argv;
4695 main ()
4697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4699 return 0;
4701 _ACEOF
4702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4705 CC="$ac_save_CC $ac_arg"
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_prog_cc_c89=$ac_arg
4709 rm -f core conftest.err conftest.$ac_objext
4710 test "x$ac_cv_prog_cc_c89" != "xno" && break
4711 done
4712 rm -f conftest.$ac_ext
4713 CC=$ac_save_CC
4716 # AC_CACHE_VAL
4717 case "x$ac_cv_prog_cc_c89" in
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720 $as_echo "none needed" >&6; } ;;
4721 xno)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4723 $as_echo "unsupported" >&6; } ;;
4725 CC="$CC $ac_cv_prog_cc_c89"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4728 esac
4729 if test "x$ac_cv_prog_cc_c89" != xno; then :
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4745 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4746 if ${am_cv_prog_cc_c_o+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 main ()
4757 return 0;
4759 _ACEOF
4760 # Make sure it works both with $CC and with simple cc.
4761 # Following AC_PROG_CC_C_O, we do the test twice because some
4762 # compilers refuse to overwrite an existing .o file with -o,
4763 # though they will create one.
4764 am_cv_prog_cc_c_o=yes
4765 for am_i in 1 2; do
4766 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4767 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } \
4771 && test -f conftest2.$ac_objext; then
4772 : OK
4773 else
4774 am_cv_prog_cc_c_o=no
4775 break
4777 done
4778 rm -f core conftest*
4779 unset am_i
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4782 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4783 if test "$am_cv_prog_cc_c_o" != yes; then
4784 # Losing compiler, so override with the script.
4785 # FIXME: It is wrong to rewrite CC.
4786 # But if we don't then we get into trouble of one sort or another.
4787 # A longer-term fix would be to have automake use am__CC in this case,
4788 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4789 CC="$am_aux_dir/compile $CC"
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 ac_ext=cpp
4799 ac_cpp='$CXXCPP $CPPFLAGS'
4800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4803 if test -z "$CXX"; then
4804 if test -n "$CCC"; then
4805 CXX=$CCC
4806 else
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_CXX+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CXX"; then
4818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 CXX=$ac_cv_prog_CXX
4838 if test -n "$CXX"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4840 $as_echo "$CXX" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CXX" && break
4848 done
4850 if test -z "$CXX"; then
4851 ac_ct_CXX=$CXX
4852 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CXX"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_ac_ct_CXX="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4877 IFS=$as_save_IFS
4881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4882 if test -n "$ac_ct_CXX"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4884 $as_echo "$ac_ct_CXX" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CXX" && break
4892 done
4894 if test "x$ac_ct_CXX" = x; then
4895 CXX="g++"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CXX=$ac_ct_CXX
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4911 set X $ac_compile
4912 ac_compiler=$2
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 ac_status=$?
4923 if test -s conftest.err; then
4924 sed '10a\
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 done
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4935 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4936 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4943 main ()
4945 #ifndef __GNUC__
4946 choke me
4947 #endif
4950 return 0;
4952 _ACEOF
4953 if ac_fn_cxx_try_compile "$LINENO"; then :
4954 ac_compiler_gnu=yes
4955 else
4956 ac_compiler_gnu=no
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4964 if test $ac_compiler_gnu = yes; then
4965 GXX=yes
4966 else
4967 GXX=
4969 ac_test_CXXFLAGS=${CXXFLAGS+set}
4970 ac_save_CXXFLAGS=$CXXFLAGS
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4972 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4973 if ${ac_cv_prog_cxx_g+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4977 ac_cxx_werror_flag=yes
4978 ac_cv_prog_cxx_g=no
4979 CXXFLAGS="-g"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4984 main ()
4988 return 0;
4990 _ACEOF
4991 if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_cv_prog_cxx_g=yes
4993 else
4994 CXXFLAGS=""
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4999 main ()
5003 return 0;
5005 _ACEOF
5006 if ac_fn_cxx_try_compile "$LINENO"; then :
5008 else
5009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5010 CXXFLAGS="-g"
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5015 main ()
5019 return 0;
5021 _ACEOF
5022 if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_cv_prog_cxx_g=yes
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5033 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5034 if test "$ac_test_CXXFLAGS" = set; then
5035 CXXFLAGS=$ac_save_CXXFLAGS
5036 elif test $ac_cv_prog_cxx_g = yes; then
5037 if test "$GXX" = yes; then
5038 CXXFLAGS="-g -O2"
5039 else
5040 CXXFLAGS="-g"
5042 else
5043 if test "$GXX" = yes; then
5044 CXXFLAGS="-O2"
5045 else
5046 CXXFLAGS=
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 CXXFLAGS="$save_CXXFLAGS"
5058 # Check whether --enable-largefile was given.
5059 if test "${enable_largefile+set}" = set; then :
5060 enableval=$enable_largefile;
5063 if test "$enable_largefile" != no; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5066 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5067 if ${ac_cv_sys_largefile_CC+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 ac_cv_sys_largefile_CC=no
5071 if test "$GCC" != yes; then
5072 ac_save_CC=$CC
5073 while :; do
5074 # IRIX 6.2 and later do not support large files by default,
5075 # so use the C compiler's -n32 option if that helps.
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5088 main ()
5092 return 0;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 break
5098 rm -f core conftest.err conftest.$ac_objext
5099 CC="$CC -n32"
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_sys_largefile_CC=' -n32'; break
5103 rm -f core conftest.err conftest.$ac_objext
5104 break
5105 done
5106 CC=$ac_save_CC
5107 rm -f conftest.$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5111 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5112 if test "$ac_cv_sys_largefile_CC" != no; then
5113 CC=$CC$ac_cv_sys_largefile_CC
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5117 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5118 if ${ac_cv_sys_file_offset_bits+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 while :; do
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <sys/types.h>
5125 /* Check that off_t can represent 2**63 - 1 correctly.
5126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5127 since some C++ compilers masquerading as C compilers
5128 incorrectly reject 9223372036854775807. */
5129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5131 && LARGE_OFF_T % 2147483647 == 1)
5132 ? 1 : -1];
5134 main ()
5138 return 0;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_cv_sys_file_offset_bits=no; break
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #define _FILE_OFFSET_BITS 64
5148 #include <sys/types.h>
5149 /* Check that off_t can represent 2**63 - 1 correctly.
5150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5151 since some C++ compilers masquerading as C compilers
5152 incorrectly reject 9223372036854775807. */
5153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5155 && LARGE_OFF_T % 2147483647 == 1)
5156 ? 1 : -1];
5158 main ()
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_sys_file_offset_bits=64; break
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 ac_cv_sys_file_offset_bits=unknown
5170 break
5171 done
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5174 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5175 case $ac_cv_sys_file_offset_bits in #(
5176 no | unknown) ;;
5178 cat >>confdefs.h <<_ACEOF
5179 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5180 _ACEOF
5182 esac
5183 rm -rf conftest*
5184 if test $ac_cv_sys_file_offset_bits = unknown; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5186 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5187 if ${ac_cv_sys_large_files+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 while :; do
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <sys/types.h>
5194 /* Check that off_t can represent 2**63 - 1 correctly.
5195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5196 since some C++ compilers masquerading as C compilers
5197 incorrectly reject 9223372036854775807. */
5198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5200 && LARGE_OFF_T % 2147483647 == 1)
5201 ? 1 : -1];
5203 main ()
5207 return 0;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_cv_sys_large_files=no; break
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #define _LARGE_FILES 1
5217 #include <sys/types.h>
5218 /* Check that off_t can represent 2**63 - 1 correctly.
5219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220 since some C++ compilers masquerading as C compilers
5221 incorrectly reject 9223372036854775807. */
5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224 && LARGE_OFF_T % 2147483647 == 1)
5225 ? 1 : -1];
5227 main ()
5231 return 0;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 ac_cv_sys_large_files=1; break
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 ac_cv_sys_large_files=unknown
5239 break
5240 done
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5243 $as_echo "$ac_cv_sys_large_files" >&6; }
5244 case $ac_cv_sys_large_files in #(
5245 no | unknown) ;;
5247 cat >>confdefs.h <<_ACEOF
5248 #define _LARGE_FILES $ac_cv_sys_large_files
5249 _ACEOF
5251 esac
5252 rm -rf conftest*
5259 # Runs configure.host, and assorted other critical bits. Sets
5260 # up critical shell variables.
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5267 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5268 # On Suns, sometimes $CPP names a directory.
5269 if test -n "$CPP" && test -d "$CPP"; then
5270 CPP=
5272 if test -z "$CPP"; then
5273 if ${ac_cv_prog_CPP+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 # Double quotes because CPP needs to be expanded
5277 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5279 ac_preproc_ok=false
5280 for ac_c_preproc_warn_flag in '' yes
5282 # Use a header file that comes with gcc, so configuring glibc
5283 # with a fresh cross-compiler works.
5284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 # <limits.h> exists even on freestanding compilers.
5286 # On the NeXT, cc -E runs the code through the compiler's parser,
5287 # not just through cpp. "Syntax error" is here to catch this case.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #ifdef __STDC__
5291 # include <limits.h>
5292 #else
5293 # include <assert.h>
5294 #endif
5295 Syntax error
5296 _ACEOF
5297 if ac_fn_c_try_cpp "$LINENO"; then :
5299 else
5300 # Broken: fails on valid input.
5301 continue
5303 rm -f conftest.err conftest.i conftest.$ac_ext
5305 # OK, works on sane cases. Now check whether nonexistent headers
5306 # can be detected and how.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <ac_nonexistent.h>
5310 _ACEOF
5311 if ac_fn_c_try_cpp "$LINENO"; then :
5312 # Broken: success on invalid input.
5313 continue
5314 else
5315 # Passes both tests.
5316 ac_preproc_ok=:
5317 break
5319 rm -f conftest.err conftest.i conftest.$ac_ext
5321 done
5322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323 rm -f conftest.i conftest.err conftest.$ac_ext
5324 if $ac_preproc_ok; then :
5325 break
5328 done
5329 ac_cv_prog_CPP=$CPP
5332 CPP=$ac_cv_prog_CPP
5333 else
5334 ac_cv_prog_CPP=$CPP
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5337 $as_echo "$CPP" >&6; }
5338 ac_preproc_ok=false
5339 for ac_c_preproc_warn_flag in '' yes
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354 Syntax error
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5358 else
5359 # Broken: fails on valid input.
5360 continue
5362 rm -f conftest.err conftest.i conftest.$ac_ext
5364 # OK, works on sane cases. Now check whether nonexistent headers
5365 # can be detected and how.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5369 _ACEOF
5370 if ac_fn_c_try_cpp "$LINENO"; then :
5371 # Broken: success on invalid input.
5372 continue
5373 else
5374 # Passes both tests.
5375 ac_preproc_ok=:
5376 break
5378 rm -f conftest.err conftest.i conftest.$ac_ext
5380 done
5381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382 rm -f conftest.i conftest.err conftest.$ac_ext
5383 if $ac_preproc_ok; then :
5385 else
5386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5388 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5389 See \`config.log' for more details" "$LINENO" 5; }
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5400 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401 if ${ac_cv_path_GREP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -z "$GREP"; then
5405 ac_path_GREP_found=false
5406 # Loop through the user's path and test for each of PROGNAME-LIST
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_prog in grep ggrep; do
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415 as_fn_executable_p "$ac_path_GREP" || continue
5416 # Check for GNU ac_path_GREP and select it if it is found.
5417 # Check for GNU $ac_path_GREP
5418 case `"$ac_path_GREP" --version 2>&1` in
5419 *GNU*)
5420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5422 ac_count=0
5423 $as_echo_n 0123456789 >"conftest.in"
5424 while :
5426 cat "conftest.in" "conftest.in" >"conftest.tmp"
5427 mv "conftest.tmp" "conftest.in"
5428 cp "conftest.in" "conftest.nl"
5429 $as_echo 'GREP' >> "conftest.nl"
5430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432 as_fn_arith $ac_count + 1 && ac_count=$as_val
5433 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434 # Best one so far, save it but keep looking for a better one
5435 ac_cv_path_GREP="$ac_path_GREP"
5436 ac_path_GREP_max=$ac_count
5438 # 10*(2^10) chars as input seems more than enough
5439 test $ac_count -gt 10 && break
5440 done
5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5442 esac
5444 $ac_path_GREP_found && break 3
5445 done
5446 done
5447 done
5448 IFS=$as_save_IFS
5449 if test -z "$ac_cv_path_GREP"; then
5450 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5452 else
5453 ac_cv_path_GREP=$GREP
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5458 $as_echo "$ac_cv_path_GREP" >&6; }
5459 GREP="$ac_cv_path_GREP"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5463 $as_echo_n "checking for egrep... " >&6; }
5464 if ${ac_cv_path_EGREP+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5468 then ac_cv_path_EGREP="$GREP -E"
5469 else
5470 if test -z "$EGREP"; then
5471 ac_path_EGREP_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_prog in egrep; do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5481 as_fn_executable_p "$ac_path_EGREP" || continue
5482 # Check for GNU ac_path_EGREP and select it if it is found.
5483 # Check for GNU $ac_path_EGREP
5484 case `"$ac_path_EGREP" --version 2>&1` in
5485 *GNU*)
5486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5488 ac_count=0
5489 $as_echo_n 0123456789 >"conftest.in"
5490 while :
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 $as_echo 'EGREP' >> "conftest.nl"
5496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_EGREP="$ac_path_EGREP"
5502 ac_path_EGREP_max=$ac_count
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5510 $ac_path_EGREP_found && break 3
5511 done
5512 done
5513 done
5514 IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_EGREP"; then
5516 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5518 else
5519 ac_cv_path_EGREP=$EGREP
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5525 $as_echo "$ac_cv_path_EGREP" >&6; }
5526 EGREP="$ac_cv_path_EGREP"
5530 # Keep these sync'd with the list in Makefile.am. The first provides an
5531 # expandable list at autoconf time; the second provides an expandable list
5532 # (i.e., shell variable) at configure time.
5534 SUBDIRS='include libsupc++ src src/c++98 src/c++11 src/c++17 src/c++20 src/c++23 src/c++26 src/filesystem src/libbacktrace src/experimental doc po testsuite python'
5536 # These need to be absolute paths, yet at the same time need to
5537 # canonicalize only relative paths, because then amd will not unmount
5538 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
5539 glibcxx_builddir=`${PWDCMD-pwd}`
5540 case $srcdir in
5541 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
5542 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
5543 esac
5544 toplevel_builddir=${glibcxx_builddir}/..
5545 toplevel_srcdir=${glibcxx_srcdir}/..
5551 # We use these options to decide which functions to include. They are
5552 # set from the top level.
5554 # Check whether --with-target-subdir was given.
5555 if test "${with_target_subdir+set}" = set; then :
5556 withval=$with_target_subdir;
5561 # Check whether --with-cross-host was given.
5562 if test "${with_cross_host+set}" = set; then :
5563 withval=$with_cross_host;
5568 # Check whether --with-newlib was given.
5569 if test "${with_newlib+set}" = set; then :
5570 withval=$with_newlib;
5574 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
5575 # available). Uncomment the next line to force a particular method.
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5577 $as_echo_n "checking whether ln -s works... " >&6; }
5578 LN_S=$as_ln_s
5579 if test "$LN_S" = "ln -s"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5581 $as_echo "yes" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5584 $as_echo "no, using $LN_S" >&6; }
5587 #LN_S='cp -p'
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}as; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_prog_AS+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$AS"; then
5598 ac_cv_prog_AS="$AS" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_AS="${ac_tool_prefix}as"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5611 done
5612 done
5613 IFS=$as_save_IFS
5617 AS=$ac_cv_prog_AS
5618 if test -n "$AS"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5620 $as_echo "$AS" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5628 if test -z "$ac_cv_prog_AS"; then
5629 ac_ct_AS=$AS
5630 # Extract the first word of "as", so it can be a program name with args.
5631 set dummy as; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_AS"; then
5638 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_AS="as"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5658 if test -n "$ac_ct_AS"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5660 $as_echo "$ac_ct_AS" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5666 if test "x$ac_ct_AS" = x; then
5667 AS=""
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675 AS=$ac_ct_AS
5677 else
5678 AS="$ac_cv_prog_AS"
5681 if test -n "$ac_tool_prefix"; then
5682 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5683 set dummy ${ac_tool_prefix}ar; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_AR+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if test -n "$AR"; then
5690 ac_cv_prog_AR="$AR" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_AR="${ac_tool_prefix}ar"
5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5705 IFS=$as_save_IFS
5709 AR=$ac_cv_prog_AR
5710 if test -n "$AR"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5712 $as_echo "$AR" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5720 if test -z "$ac_cv_prog_AR"; then
5721 ac_ct_AR=$AR
5722 # Extract the first word of "ar", so it can be a program name with args.
5723 set dummy ar; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$ac_ct_AR"; then
5730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_ac_ct_AR="ar"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5750 if test -n "$ac_ct_AR"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5752 $as_echo "$ac_ct_AR" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5758 if test "x$ac_ct_AR" = x; then
5759 AR=""
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762 yes:)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5765 ac_tool_warned=yes ;;
5766 esac
5767 AR=$ac_ct_AR
5769 else
5770 AR="$ac_cv_prog_AR"
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_RANLIB+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$RANLIB"; then
5782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5795 done
5796 done
5797 IFS=$as_save_IFS
5801 RANLIB=$ac_cv_prog_RANLIB
5802 if test -n "$RANLIB"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5804 $as_echo "$RANLIB" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5812 if test -z "$ac_cv_prog_RANLIB"; then
5813 ac_ct_RANLIB=$RANLIB
5814 # Extract the first word of "ranlib", so it can be a program name with args.
5815 set dummy ranlib; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$ac_ct_RANLIB"; then
5822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_RANLIB="ranlib"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5842 if test -n "$ac_ct_RANLIB"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5844 $as_echo "$ac_ct_RANLIB" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5850 if test "x$ac_ct_RANLIB" = x; then
5851 RANLIB="ranlib-not-found-in-path-error"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854 yes:)
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 RANLIB=$ac_ct_RANLIB
5861 else
5862 RANLIB="$ac_cv_prog_RANLIB"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5869 # Check whether --enable-maintainer-mode was given.
5870 if test "${enable_maintainer_mode+set}" = set; then :
5871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5872 else
5873 USE_MAINTAINER_MODE=no
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5877 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5878 if test $USE_MAINTAINER_MODE = yes; then
5879 MAINTAINER_MODE_TRUE=
5880 MAINTAINER_MODE_FALSE='#'
5881 else
5882 MAINTAINER_MODE_TRUE='#'
5883 MAINTAINER_MODE_FALSE=
5886 MAINT=$MAINTAINER_MODE_TRUE
5890 # Set up safe default values for all subsequent AM_CONDITIONAL tests
5891 # which are themselves conditionally expanded.
5892 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
5893 ## other macros from doing the same. This should be automated.) -pme
5895 # Check for C library flavor since GNU/Linux platforms use different
5896 # configuration directories depending on the C library in use.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5900 #include <stdio.h>
5901 #if __UCLIBC__
5902 _using_uclibc
5903 #endif
5905 _ACEOF
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
5908 uclibc=yes
5909 else
5910 uclibc=no
5912 rm -f conftest*
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 #include <stdio.h>
5919 #if __BIONIC__
5920 _using_bionic
5921 #endif
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "_using_bionic" >/dev/null 2>&1; then :
5926 bionic=yes
5927 else
5928 bionic=no
5930 rm -f conftest*
5933 # Find platform-specific directories containing configuration info.
5934 # Also possibly modify flags used elsewhere, as needed by the platform.
5936 . $glibcxx_srcdir/configure.host
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
5938 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
5940 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
5944 # Libtool setup.
5945 if test "x${with_newlib}" != "xyes" &&
5946 test "x${with_avrlibc}" != "xyes" &&
5947 test "x$with_headers" != "xno"; then
5948 enable_dlopen=yes
5953 case `pwd` in
5954 *\ * | *\ *)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5956 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5957 esac
5961 macro_version='2.2.7a'
5962 macro_revision='1.3134'
5976 ltmain="$ac_aux_dir/ltmain.sh"
5978 # Backslashify metacharacters that are still active within
5979 # double-quoted strings.
5980 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5982 # Same as above, but do not quote variable references.
5983 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5985 # Sed substitution to delay expansion of an escaped shell variable in a
5986 # double_quote_subst'ed string.
5987 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5989 # Sed substitution to delay expansion of an escaped single quote.
5990 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5995 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6000 $as_echo_n "checking how to print strings... " >&6; }
6001 # Test print first, because it will be a builtin if present.
6002 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='print -r --'
6005 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6006 ECHO='printf %s\n'
6007 else
6008 # Use this function as a fallback that always works.
6009 func_fallback_echo ()
6011 eval 'cat <<_LTECHO_EOF
6013 _LTECHO_EOF'
6015 ECHO='func_fallback_echo'
6018 # func_echo_all arg...
6019 # Invoke $ECHO with all args, space-separated.
6020 func_echo_all ()
6022 $ECHO ""
6025 case "$ECHO" in
6026 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6027 $as_echo "printf" >&6; } ;;
6028 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6029 $as_echo "print -r" >&6; } ;;
6030 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6031 $as_echo "cat" >&6; } ;;
6032 esac
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6049 if ${ac_cv_path_SED+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6053 for ac_i in 1 2 3 4 5 6 7; do
6054 ac_script="$ac_script$as_nl$ac_script"
6055 done
6056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6057 { ac_script=; unset ac_script;}
6058 if test -z "$SED"; then
6059 ac_path_SED_found=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_prog in sed gsed; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6069 as_fn_executable_p "$ac_path_SED" || continue
6070 # Check for GNU ac_path_SED and select it if it is found.
6071 # Check for GNU $ac_path_SED
6072 case `"$ac_path_SED" --version 2>&1` in
6073 *GNU*)
6074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6076 ac_count=0
6077 $as_echo_n 0123456789 >"conftest.in"
6078 while :
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo '' >> "conftest.nl"
6084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086 as_fn_arith $ac_count + 1 && ac_count=$as_val
6087 if test $ac_count -gt ${ac_path_SED_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_SED="$ac_path_SED"
6090 ac_path_SED_max=$ac_count
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6094 done
6095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 esac
6098 $ac_path_SED_found && break 3
6099 done
6100 done
6101 done
6102 IFS=$as_save_IFS
6103 if test -z "$ac_cv_path_SED"; then
6104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6106 else
6107 ac_cv_path_SED=$SED
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6112 $as_echo "$ac_cv_path_SED" >&6; }
6113 SED="$ac_cv_path_SED"
6114 rm -f conftest.sed
6116 test -z "$SED" && SED=sed
6117 Xsed="$SED -e 1s/^X//"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6130 $as_echo_n "checking for fgrep... " >&6; }
6131 if ${ac_cv_path_FGREP+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6135 then ac_cv_path_FGREP="$GREP -F"
6136 else
6137 if test -z "$FGREP"; then
6138 ac_path_FGREP_found=false
6139 # Loop through the user's path and test for each of PROGNAME-LIST
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_prog in fgrep; do
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6148 as_fn_executable_p "$ac_path_FGREP" || continue
6149 # Check for GNU ac_path_FGREP and select it if it is found.
6150 # Check for GNU $ac_path_FGREP
6151 case `"$ac_path_FGREP" --version 2>&1` in
6152 *GNU*)
6153 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6155 ac_count=0
6156 $as_echo_n 0123456789 >"conftest.in"
6157 while :
6159 cat "conftest.in" "conftest.in" >"conftest.tmp"
6160 mv "conftest.tmp" "conftest.in"
6161 cp "conftest.in" "conftest.nl"
6162 $as_echo 'FGREP' >> "conftest.nl"
6163 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6165 as_fn_arith $ac_count + 1 && ac_count=$as_val
6166 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6167 # Best one so far, save it but keep looking for a better one
6168 ac_cv_path_FGREP="$ac_path_FGREP"
6169 ac_path_FGREP_max=$ac_count
6171 # 10*(2^10) chars as input seems more than enough
6172 test $ac_count -gt 10 && break
6173 done
6174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6175 esac
6177 $ac_path_FGREP_found && break 3
6178 done
6179 done
6180 done
6181 IFS=$as_save_IFS
6182 if test -z "$ac_cv_path_FGREP"; then
6183 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6185 else
6186 ac_cv_path_FGREP=$FGREP
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6192 $as_echo "$ac_cv_path_FGREP" >&6; }
6193 FGREP="$ac_cv_path_FGREP"
6196 test -z "$GREP" && GREP=grep
6216 # Check whether --with-gnu-ld was given.
6217 if test "${with_gnu_ld+set}" = set; then :
6218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6219 else
6220 with_gnu_ld=no
6223 ac_prog=ld
6224 if test "$GCC" = yes; then
6225 # Check if gcc -print-prog-name=ld gives a path.
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6227 $as_echo_n "checking for ld used by $CC... " >&6; }
6228 case $host in
6229 *-*-mingw*)
6230 # gcc leaves a trailing carriage return which upsets mingw
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6234 esac
6235 case $ac_prog in
6236 # Accept absolute paths.
6237 [\\/]* | ?:[\\/]*)
6238 re_direlt='/[^/][^/]*/\.\./'
6239 # Canonicalize the pathname of ld
6240 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6241 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6242 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6243 done
6244 test -z "$LD" && LD="$ac_prog"
6247 # If it fails, then pretend we aren't using GCC.
6248 ac_prog=ld
6251 # If it is relative, then search for the first ld in PATH.
6252 with_gnu_ld=unknown
6254 esac
6255 elif test "$with_gnu_ld" = yes; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6257 $as_echo_n "checking for GNU ld... " >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6260 $as_echo_n "checking for non-GNU ld... " >&6; }
6262 if ${lt_cv_path_LD+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -z "$LD"; then
6266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6267 for ac_dir in $PATH; do
6268 IFS="$lt_save_ifs"
6269 test -z "$ac_dir" && ac_dir=.
6270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6271 lt_cv_path_LD="$ac_dir/$ac_prog"
6272 # Check to see if the program is GNU ld. I'd rather use --version,
6273 # but apparently some variants of GNU ld only accept -v.
6274 # Break only if it was the GNU/non-GNU ld that we prefer.
6275 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6276 *GNU* | *'with BFD'*)
6277 test "$with_gnu_ld" != no && break
6280 test "$with_gnu_ld" != yes && break
6282 esac
6284 done
6285 IFS="$lt_save_ifs"
6286 else
6287 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6291 LD="$lt_cv_path_LD"
6292 if test -n "$LD"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6294 $as_echo "$LD" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6299 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6302 if ${lt_cv_prog_gnu_ld+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6306 case `$LD -v 2>&1 </dev/null` in
6307 *GNU* | *'with BFD'*)
6308 lt_cv_prog_gnu_ld=yes
6311 lt_cv_prog_gnu_ld=no
6313 esac
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6316 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$lt_cv_prog_gnu_ld
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6329 if ${lt_cv_path_NM+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$NM"; then
6333 # Let the user override the nm to test.
6334 lt_nm_to_check="$NM"
6335 else
6336 lt_nm_to_check="${ac_tool_prefix}nm"
6337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6338 lt_nm_to_check="$lt_nm_to_check nm"
6341 for lt_tmp_nm in "$lt_nm_to_check"; do
6342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6344 IFS="$lt_save_ifs"
6345 test -z "$ac_dir" && ac_dir=.
6346 # Strip out any user-provided options from the nm to test twice,
6347 # the first time to test to see if nm (rather than its options) has
6348 # an explicit path, the second time to yield a file which can be
6349 # nm'ed itself.
6350 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6351 case "$tmp_nm_path" in
6352 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6353 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6354 esac
6355 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6356 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6357 # Check to see if the nm accepts a BSD-compat flag.
6358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6359 # nm: unknown option "B" ignored
6360 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6361 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6362 break
6365 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6366 *$tmp_nm*)
6367 lt_cv_path_NM="$tmp_nm -p"
6368 break
6371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372 continue # so that we can try to find one that supports BSD flags
6374 esac
6376 esac
6378 done
6379 IFS="$lt_save_ifs"
6380 done
6381 : ${lt_cv_path_NM=no}
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6384 $as_echo "$lt_cv_path_NM" >&6; }
6385 if test "$lt_cv_path_NM" != "no"; then
6386 NM="$lt_cv_path_NM"
6387 else
6388 # Didn't find any BSD compatible name lister, look for dumpbin.
6389 if test -n "$DUMPBIN"; then :
6390 # Let the user override the test.
6391 else
6392 if test -n "$ac_tool_prefix"; then
6393 for ac_prog in dumpbin "link -dump"
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_DUMPBIN+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$DUMPBIN"; then
6403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 DUMPBIN=$ac_cv_prog_DUMPBIN
6423 if test -n "$DUMPBIN"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6425 $as_echo "$DUMPBIN" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$DUMPBIN" && break
6433 done
6435 if test -z "$DUMPBIN"; then
6436 ac_ct_DUMPBIN=$DUMPBIN
6437 for ac_prog in dumpbin "link -dump"
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_DUMPBIN"; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6467 if test -n "$ac_ct_DUMPBIN"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6469 $as_echo "$ac_ct_DUMPBIN" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6476 test -n "$ac_ct_DUMPBIN" && break
6477 done
6479 if test "x$ac_ct_DUMPBIN" = x; then
6480 DUMPBIN=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488 DUMPBIN=$ac_ct_DUMPBIN
6492 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6493 *COFF*)
6494 DUMPBIN="$DUMPBIN -symbols"
6497 DUMPBIN=:
6499 esac
6502 if test "$DUMPBIN" != ":"; then
6503 NM="$DUMPBIN"
6506 test -z "$NM" && NM=nm
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6515 if ${lt_cv_nm_interface+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_nm_interface="BSD nm"
6519 echo "int some_variable = 0;" > conftest.$ac_ext
6520 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6521 (eval "$ac_compile" 2>conftest.err)
6522 cat conftest.err >&5
6523 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6525 cat conftest.err >&5
6526 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6527 cat conftest.out >&5
6528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6529 lt_cv_nm_interface="MS dumpbin"
6531 rm -f conftest*
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6534 $as_echo "$lt_cv_nm_interface" >&6; }
6536 # find the maximum length of command line arguments
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6539 if ${lt_cv_sys_max_cmd_len+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 teststring="ABCD"
6545 case $build_os in
6546 msdosdjgpp*)
6547 # On DJGPP, this test can blow up pretty badly due to problems in libc
6548 # (any single argument exceeding 2000 bytes causes a buffer overrun
6549 # during glob expansion). Even if it were fixed, the result of this
6550 # check would be larger than it should be.
6551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6554 gnu*)
6555 # Under GNU Hurd, this test is not required because there is
6556 # no limit to the length of command line arguments.
6557 # Libtool will interpret -1 as no limit whatsoever
6558 lt_cv_sys_max_cmd_len=-1;
6561 cygwin* | mingw* | cegcc*)
6562 # On Win9x/ME, this test blows up -- it succeeds, but takes
6563 # about 5 minutes as the teststring grows exponentially.
6564 # Worse, since 9x/ME are not pre-emptively multitasking,
6565 # you end up with a "frozen" computer, even though with patience
6566 # the test eventually succeeds (with a max line length of 256k).
6567 # Instead, let's just punt: use the minimum linelength reported by
6568 # all of the supported platforms: 8192 (on NT/2K/XP).
6569 lt_cv_sys_max_cmd_len=8192;
6572 mint*)
6573 # On MiNT this can take a long time and run out of memory.
6574 lt_cv_sys_max_cmd_len=8192;
6577 amigaos*)
6578 # On AmigaOS with pdksh, this test takes hours, literally.
6579 # So we just punt and use a minimum line length of 8192.
6580 lt_cv_sys_max_cmd_len=8192;
6583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6584 # This has been around since 386BSD, at least. Likely further.
6585 if test -x /sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587 elif test -x /usr/sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6589 else
6590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6592 # And add a safety zone
6593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6597 interix*)
6598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6599 lt_cv_sys_max_cmd_len=196608
6602 osf*)
6603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6605 # nice to cause kernel panics so lets avoid the loop below.
6606 # First set a reasonable default.
6607 lt_cv_sys_max_cmd_len=16384
6609 if test -x /sbin/sysconfig; then
6610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6612 esac
6615 sco3.2v5*)
6616 lt_cv_sys_max_cmd_len=102400
6618 sysv5* | sco5v6* | sysv4.2uw2*)
6619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6620 if test -n "$kargmax"; then
6621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6622 else
6623 lt_cv_sys_max_cmd_len=32768
6627 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6628 if test -n "$lt_cv_sys_max_cmd_len"; then
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631 else
6632 # Make teststring a little bigger before we do anything with it.
6633 # a 1K string should be a reasonable start.
6634 for i in 1 2 3 4 5 6 7 8 ; do
6635 teststring=$teststring$teststring
6636 done
6637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6638 # If test is not a shell built-in, we'll probably end up computing a
6639 # maximum length that is only half of the actual maximum length, but
6640 # we can't tell.
6641 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6642 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6643 test $i != 17 # 1/2 MB should be enough
6645 i=`expr $i + 1`
6646 teststring=$teststring$teststring
6647 done
6648 # Only check the string length outside the loop.
6649 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650 teststring=
6651 # Add a significant safety factor because C++ compilers can tack on
6652 # massive amounts of additional arguments before passing them to the
6653 # linker. It appears as though 1/2 is a usable value.
6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6657 esac
6661 if test -n $lt_cv_sys_max_cmd_len ; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6663 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6666 $as_echo "none" >&6; }
6668 max_cmd_len=$lt_cv_sys_max_cmd_len
6675 : ${CP="cp -f"}
6676 : ${MV="mv -f"}
6677 : ${RM="rm -f"}
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6680 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6681 # Try some XSI features
6682 xsi_shell=no
6683 ( _lt_dummy="a/b/c"
6684 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6685 = c,a/b,, \
6686 && eval 'test $(( 1 + 1 )) -eq 2 \
6687 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688 && xsi_shell=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6690 $as_echo "$xsi_shell" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6694 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 lt_shell_append=no
6696 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697 >/dev/null 2>&1 \
6698 && lt_shell_append=yes
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6700 $as_echo "$lt_shell_append" >&6; }
6703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6704 lt_unset=unset
6705 else
6706 lt_unset=false
6713 # test EBCDIC or ASCII
6714 case `echo X|tr X '\101'` in
6715 A) # ASCII based system
6716 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6717 lt_SP2NL='tr \040 \012'
6718 lt_NL2SP='tr \015\012 \040\040'
6720 *) # EBCDIC based system
6721 lt_SP2NL='tr \100 \n'
6722 lt_NL2SP='tr \r\n \100\100'
6724 esac
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6735 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6736 if ${lt_cv_ld_reload_flag+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 lt_cv_ld_reload_flag='-r'
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6742 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6743 reload_flag=$lt_cv_ld_reload_flag
6744 case $reload_flag in
6745 "" | " "*) ;;
6746 *) reload_flag=" $reload_flag" ;;
6747 esac
6748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6749 case $host_os in
6750 darwin*)
6751 if test "$GCC" = yes; then
6752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6753 else
6754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 esac
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_OBJDUMP+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$OBJDUMP"; then
6776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 OBJDUMP=$ac_cv_prog_OBJDUMP
6796 if test -n "$OBJDUMP"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6798 $as_echo "$OBJDUMP" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OBJDUMP"; then
6807 ac_ct_OBJDUMP=$OBJDUMP
6808 # Extract the first word of "objdump", so it can be a program name with args.
6809 set dummy objdump; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_OBJDUMP"; then
6816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6835 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6836 if test -n "$ac_ct_OBJDUMP"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6838 $as_echo "$ac_ct_OBJDUMP" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OBJDUMP" = x; then
6845 OBJDUMP="false"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 OBJDUMP=$ac_ct_OBJDUMP
6855 else
6856 OBJDUMP="$ac_cv_prog_OBJDUMP"
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6870 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6871 if ${lt_cv_deplibs_check_method+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 lt_cv_file_magic_cmd='$MAGIC_CMD'
6875 lt_cv_file_magic_test_file=
6876 lt_cv_deplibs_check_method='unknown'
6877 # Need to set the preceding variable on all platforms that support
6878 # interlibrary dependencies.
6879 # 'none' -- dependencies not supported.
6880 # `unknown' -- same as none, but documents that we really don't know.
6881 # 'pass_all' -- all dependencies passed with no checks.
6882 # 'test_compile' -- check by making test program.
6883 # 'file_magic [[regex]]' -- check by looking for files in library path
6884 # which responds to the $file_magic_cmd with a given extended regex.
6885 # If you have `file' or equivalent on your system and you're not sure
6886 # whether `pass_all' will *always* work, you probably want this one.
6888 case $host_os in
6889 aix[4-9]*)
6890 lt_cv_deplibs_check_method=pass_all
6893 beos*)
6894 lt_cv_deplibs_check_method=pass_all
6897 bsdi[45]*)
6898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6899 lt_cv_file_magic_cmd='/usr/bin/file -L'
6900 lt_cv_file_magic_test_file=/shlib/libc.so
6903 cygwin*)
6904 # func_win32_libid is a shell function defined in ltmain.sh
6905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6906 lt_cv_file_magic_cmd='func_win32_libid'
6909 mingw* | pw32*)
6910 # Base MSYS/MinGW do not provide the 'file' command needed by
6911 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6912 # unless we find 'file', for example because we are cross-compiling.
6913 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6914 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6916 lt_cv_file_magic_cmd='func_win32_libid'
6917 else
6918 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6919 lt_cv_file_magic_cmd='$OBJDUMP -f'
6923 cegcc*)
6924 # use the weaker test based on 'objdump'. See mingw*.
6925 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6926 lt_cv_file_magic_cmd='$OBJDUMP -f'
6929 darwin* | rhapsody*)
6930 lt_cv_deplibs_check_method=pass_all
6933 freebsd* | dragonfly*)
6934 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6935 case $host_cpu in
6936 i*86 )
6937 # Not sure whether the presence of OpenBSD here was a mistake.
6938 # Let's accept both of them until this is cleared up.
6939 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6940 lt_cv_file_magic_cmd=/usr/bin/file
6941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6943 esac
6944 else
6945 lt_cv_deplibs_check_method=pass_all
6949 gnu*)
6950 lt_cv_deplibs_check_method=pass_all
6953 haiku*)
6954 lt_cv_deplibs_check_method=pass_all
6957 hpux10.20* | hpux11*)
6958 lt_cv_file_magic_cmd=/usr/bin/file
6959 case $host_cpu in
6960 ia64*)
6961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6964 hppa*64*)
6965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6972 esac
6975 interix[3-9]*)
6976 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6980 irix5* | irix6* | nonstopux*)
6981 case $LD in
6982 *-32|*"-32 ") libmagic=32-bit;;
6983 *-n32|*"-n32 ") libmagic=N32;;
6984 *-64|*"-64 ") libmagic=64-bit;;
6985 *) libmagic=never-match;;
6986 esac
6987 lt_cv_deplibs_check_method=pass_all
6990 # This must be Linux ELF.
6991 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6992 lt_cv_deplibs_check_method=pass_all
6995 netbsd*)
6996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6998 else
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7003 newos6*)
7004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7005 lt_cv_file_magic_cmd=/usr/bin/file
7006 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7009 *nto* | *qnx*)
7010 lt_cv_deplibs_check_method=pass_all
7013 openbsd*)
7014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7016 else
7017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7021 osf3* | osf4* | osf5*)
7022 lt_cv_deplibs_check_method=pass_all
7025 rdos*)
7026 lt_cv_deplibs_check_method=pass_all
7029 solaris*)
7030 lt_cv_deplibs_check_method=pass_all
7033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7034 lt_cv_deplibs_check_method=pass_all
7037 sysv4 | sysv4.3*)
7038 case $host_vendor in
7039 motorola)
7040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7043 ncr)
7044 lt_cv_deplibs_check_method=pass_all
7046 sequent)
7047 lt_cv_file_magic_cmd='/bin/file'
7048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7050 sni)
7051 lt_cv_file_magic_cmd='/bin/file'
7052 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7053 lt_cv_file_magic_test_file=/lib/libc.so
7055 siemens)
7056 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7061 esac
7064 tpf*)
7065 lt_cv_deplibs_check_method=pass_all
7067 vxworks*)
7068 # Assume VxWorks cross toolchains are built on Linux, possibly
7069 # as canadian for Windows hosts.
7070 lt_cv_deplibs_check_method=pass_all
7072 esac
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7077 file_magic_cmd=$lt_cv_file_magic_cmd
7078 deplibs_check_method=$lt_cv_deplibs_check_method
7079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7092 plugin_option=
7093 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7094 for plugin in $plugin_names; do
7095 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7096 if test x$plugin_so = x$plugin; then
7097 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7099 if test x$plugin_so != x$plugin; then
7100 plugin_option="--plugin $plugin_so"
7101 break
7103 done
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}ar; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_AR+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$AR"; then
7114 ac_cv_prog_AR="$AR" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_AR="${ac_tool_prefix}ar"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 AR=$ac_cv_prog_AR
7134 if test -n "$AR"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7136 $as_echo "$AR" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7144 if test -z "$ac_cv_prog_AR"; then
7145 ac_ct_AR=$AR
7146 # Extract the first word of "ar", so it can be a program name with args.
7147 set dummy ar; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$ac_ct_AR"; then
7154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_AR="ar"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7174 if test -n "$ac_ct_AR"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7176 $as_echo "$ac_ct_AR" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7182 if test "x$ac_ct_AR" = x; then
7183 AR="false"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 AR=$ac_ct_AR
7193 else
7194 AR="$ac_cv_prog_AR"
7197 test -z "$AR" && AR=ar
7198 if test -n "$plugin_option"; then
7199 if $AR --help 2>&1 | grep -q "\--plugin"; then
7200 touch conftest.c
7201 $AR $plugin_option rc conftest.a conftest.c
7202 if test "$?" != 0; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7204 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7205 else
7206 AR="$AR $plugin_option"
7208 rm -f conftest.*
7211 test -z "$AR_FLAGS" && AR_FLAGS=cru
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}strip; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_STRIP+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$STRIP"; then
7232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7251 STRIP=$ac_cv_prog_STRIP
7252 if test -n "$STRIP"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7254 $as_echo "$STRIP" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$ac_cv_prog_STRIP"; then
7263 ac_ct_STRIP=$STRIP
7264 # Extract the first word of "strip", so it can be a program name with args.
7265 set dummy strip; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$ac_ct_STRIP"; then
7272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_STRIP="strip"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7292 if test -n "$ac_ct_STRIP"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7294 $as_echo "$ac_ct_STRIP" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$ac_ct_STRIP" = x; then
7301 STRIP=":"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304 yes:)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7308 esac
7309 STRIP=$ac_ct_STRIP
7311 else
7312 STRIP="$ac_cv_prog_STRIP"
7315 test -z "$STRIP" && STRIP=:
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_RANLIB+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$RANLIB"; then
7331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7346 IFS=$as_save_IFS
7350 RANLIB=$ac_cv_prog_RANLIB
7351 if test -n "$RANLIB"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7353 $as_echo "$RANLIB" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7361 if test -z "$ac_cv_prog_RANLIB"; then
7362 ac_ct_RANLIB=$RANLIB
7363 # Extract the first word of "ranlib", so it can be a program name with args.
7364 set dummy ranlib; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$ac_ct_RANLIB"; then
7371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_RANLIB="ranlib"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7384 done
7385 done
7386 IFS=$as_save_IFS
7390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7391 if test -n "$ac_ct_RANLIB"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7393 $as_echo "$ac_ct_RANLIB" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7399 if test "x$ac_ct_RANLIB" = x; then
7400 RANLIB=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403 yes:)
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408 RANLIB=$ac_ct_RANLIB
7410 else
7411 RANLIB="$ac_cv_prog_RANLIB"
7414 test -z "$RANLIB" && RANLIB=:
7415 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7416 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7417 RANLIB="$RANLIB $plugin_option"
7426 # Determine commands to create old-style static archives.
7427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7428 old_postinstall_cmds='chmod 644 $oldlib'
7429 old_postuninstall_cmds=
7431 if test -n "$RANLIB"; then
7432 case $host_os in
7433 openbsd*)
7434 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7439 esac
7440 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7443 case $host_os in
7444 darwin*)
7445 lock_old_archive_extraction=yes ;;
7447 lock_old_archive_extraction=no ;;
7448 esac
7488 # If no C compiler was specified, use CC.
7489 LTCC=${LTCC-"$CC"}
7491 # If no C compiler flags were specified, use CFLAGS.
7492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7494 # Allow CC to be a program name with arguments.
7495 compiler=$CC
7498 # Check for command to grab the raw symbol name followed by C symbol from nm.
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7500 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7501 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7505 # These are sane defaults that work on at least a few old systems.
7506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7508 # Character class describing NM global symbol codes.
7509 symcode='[BCDEGRST]'
7511 # Regexp to match symbols that can be accessed directly from C.
7512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7514 # Define system-specific variables.
7515 case $host_os in
7516 aix*)
7517 symcode='[BCDT]'
7519 cygwin* | mingw* | pw32* | cegcc*)
7520 symcode='[ABCDGISTW]'
7522 hpux*)
7523 if test "$host_cpu" = ia64; then
7524 symcode='[ABCDEGRST]'
7527 irix* | nonstopux*)
7528 symcode='[BCDEGRST]'
7530 osf*)
7531 symcode='[BCDEGQRST]'
7533 solaris*)
7534 symcode='[BCDRT]'
7536 sco3.2v5*)
7537 symcode='[DT]'
7539 sysv4.2uw2*)
7540 symcode='[DT]'
7542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7543 symcode='[ABDT]'
7545 sysv4)
7546 symcode='[DFNSTU]'
7548 esac
7550 # If we're using GNU nm, then use its standard symbol codes.
7551 case `$NM -V 2>&1` in
7552 *GNU* | *'with BFD'*)
7553 symcode='[ABCDGIRSTW]' ;;
7554 esac
7556 # Transform an extracted symbol line into a proper C declaration.
7557 # Some systems (esp. on ia64) link data and code symbols differently,
7558 # so use this general approach.
7559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7561 # Transform an extracted symbol line into symbol name and symbol address
7562 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7565 # Handle CRLF in mingw tool chain
7566 opt_cr=
7567 case $build_os in
7568 mingw*)
7569 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7571 esac
7573 # Try without a prefix underscore, then with it.
7574 for ac_symprfx in "" "_"; do
7576 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7577 symxfrm="\\1 $ac_symprfx\\2 \\2"
7579 # Write the raw and C identifiers.
7580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7581 # Fake it for dumpbin and say T for any non-static function
7582 # and D for any global variable.
7583 # Also find C++ and __fastcall symbols from MSVC++,
7584 # which start with @ or ?.
7585 lt_cv_sys_global_symbol_pipe="$AWK '"\
7586 " {last_section=section; section=\$ 3};"\
7587 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7588 " \$ 0!~/External *\|/{next};"\
7589 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7590 " {if(hide[section]) next};"\
7591 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7592 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7593 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7594 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7595 " ' prfx=^$ac_symprfx"
7596 else
7597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7600 # Check to see that the pipe works correctly.
7601 pipe_works=no
7603 rm -f conftest*
7604 cat > conftest.$ac_ext <<_LT_EOF
7605 #ifdef __cplusplus
7606 extern "C" {
7607 #endif
7608 char nm_test_var;
7609 void nm_test_func(void);
7610 void nm_test_func(void){}
7611 #ifdef __cplusplus
7613 #endif
7614 int main(){nm_test_var='a';nm_test_func();return(0);}
7615 _LT_EOF
7617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7618 (eval $ac_compile) 2>&5
7619 ac_status=$?
7620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621 test $ac_status = 0; }; then
7622 # Now try to grab the symbols.
7623 nlist=conftest.nm
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7625 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7626 ac_status=$?
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; } && test -s "$nlist"; then
7629 # Try sorting and uniquifying the output.
7630 if sort "$nlist" | uniq > "$nlist"T; then
7631 mv -f "$nlist"T "$nlist"
7632 else
7633 rm -f "$nlist"T
7636 # Make sure that we snagged all the symbols we need.
7637 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7638 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7639 cat <<_LT_EOF > conftest.$ac_ext
7640 #ifdef __cplusplus
7641 extern "C" {
7642 #endif
7644 _LT_EOF
7645 # Now generate the symbol file.
7646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7648 cat <<_LT_EOF >> conftest.$ac_ext
7650 /* The mapping between symbol names and symbols. */
7651 const struct {
7652 const char *name;
7653 void *address;
7655 lt__PROGRAM__LTX_preloaded_symbols[] =
7657 { "@PROGRAM@", (void *) 0 },
7658 _LT_EOF
7659 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7660 cat <<\_LT_EOF >> conftest.$ac_ext
7661 {0, (void *) 0}
7664 /* This works around a problem in FreeBSD linker */
7665 #ifdef FREEBSD_WORKAROUND
7666 static const void *lt_preloaded_setup() {
7667 return lt__PROGRAM__LTX_preloaded_symbols;
7669 #endif
7671 #ifdef __cplusplus
7673 #endif
7674 _LT_EOF
7675 # Now try linking the two files.
7676 mv conftest.$ac_objext conftstm.$ac_objext
7677 lt_save_LIBS="$LIBS"
7678 lt_save_CFLAGS="$CFLAGS"
7679 LIBS="conftstm.$ac_objext"
7680 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7682 (eval $ac_link) 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7686 pipe_works=yes
7688 LIBS="$lt_save_LIBS"
7689 CFLAGS="$lt_save_CFLAGS"
7690 else
7691 echo "cannot find nm_test_func in $nlist" >&5
7693 else
7694 echo "cannot find nm_test_var in $nlist" >&5
7696 else
7697 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7699 else
7700 echo "$progname: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 rm -rf conftest* conftst*
7705 # Do not use the global_symbol_pipe unless it works.
7706 if test "$pipe_works" = yes; then
7707 break
7708 else
7709 lt_cv_sys_global_symbol_pipe=
7711 done
7715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7716 lt_cv_sys_global_symbol_to_cdecl=
7718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7720 $as_echo "failed" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7723 $as_echo "ok" >&6; }
7747 # Check whether --enable-libtool-lock was given.
7748 if test "${enable_libtool_lock+set}" = set; then :
7749 enableval=$enable_libtool_lock;
7752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7754 # Some flags need to be propagated to the compiler or linker for good
7755 # libtool support.
7756 case $host in
7757 ia64-*-hpux*)
7758 # Find out which ABI we are using.
7759 echo 'int i;' > conftest.$ac_ext
7760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7761 (eval $ac_compile) 2>&5
7762 ac_status=$?
7763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764 test $ac_status = 0; }; then
7765 case `/usr/bin/file conftest.$ac_objext` in
7766 *ELF-32*)
7767 HPUX_IA64_MODE="32"
7769 *ELF-64*)
7770 HPUX_IA64_MODE="64"
7772 esac
7774 rm -rf conftest*
7776 *-*-irix6*)
7777 # Find out which ABI we are using.
7778 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780 (eval $ac_compile) 2>&5
7781 ac_status=$?
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }; then
7784 if test "$lt_cv_prog_gnu_ld" = yes; then
7785 case `/usr/bin/file conftest.$ac_objext` in
7786 *32-bit*)
7787 LD="${LD-ld} -melf32bsmip"
7789 *N32*)
7790 LD="${LD-ld} -melf32bmipn32"
7792 *64-bit*)
7793 LD="${LD-ld} -melf64bmip"
7795 esac
7796 else
7797 case `/usr/bin/file conftest.$ac_objext` in
7798 *32-bit*)
7799 LD="${LD-ld} -32"
7801 *N32*)
7802 LD="${LD-ld} -n32"
7804 *64-bit*)
7805 LD="${LD-ld} -64"
7807 esac
7810 rm -rf conftest*
7813 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7814 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7815 # Find out which ABI we are using.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *32-bit*)
7824 case $host in
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_i386_fbsd"
7828 x86_64-*linux*)
7829 case `/usr/bin/file conftest.o` in
7830 *x86-64*)
7831 LD="${LD-ld} -m elf32_x86_64"
7834 LD="${LD-ld} -m elf_i386"
7836 esac
7838 powerpc64le-*linux*)
7839 LD="${LD-ld} -m elf32lppclinux"
7841 powerpc64-*linux*)
7842 LD="${LD-ld} -m elf32ppclinux"
7844 s390x-*linux*)
7845 LD="${LD-ld} -m elf_s390"
7847 sparc64-*linux*)
7848 LD="${LD-ld} -m elf32_sparc"
7850 esac
7852 *64-bit*)
7853 case $host in
7854 x86_64-*kfreebsd*-gnu)
7855 LD="${LD-ld} -m elf_x86_64_fbsd"
7857 x86_64-*linux*)
7858 LD="${LD-ld} -m elf_x86_64"
7860 powerpcle-*linux*)
7861 LD="${LD-ld} -m elf64lppc"
7863 powerpc-*linux*)
7864 LD="${LD-ld} -m elf64ppc"
7866 s390*-*linux*|s390*-*tpf*)
7867 LD="${LD-ld} -m elf64_s390"
7869 sparc*-*linux*)
7870 LD="${LD-ld} -m elf64_sparc"
7872 esac
7874 esac
7876 rm -rf conftest*
7879 *-*-sco3.2v5*)
7880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7881 SAVE_CFLAGS="$CFLAGS"
7882 CFLAGS="$CFLAGS -belf"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7885 if ${lt_cv_cc_needs_belf+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 if test x$gcc_no_link = xyes; then
7895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7901 main ()
7905 return 0;
7907 _ACEOF
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 lt_cv_cc_needs_belf=yes
7910 else
7911 lt_cv_cc_needs_belf=no
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7926 CFLAGS="$SAVE_CFLAGS"
7929 sparc*-*solaris*)
7930 # Find out which ABI we are using.
7931 echo 'int i;' > conftest.$ac_ext
7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7933 (eval $ac_compile) 2>&5
7934 ac_status=$?
7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7936 test $ac_status = 0; }; then
7937 case `/usr/bin/file conftest.o` in
7938 *64-bit*)
7939 case $lt_cv_prog_gnu_ld in
7940 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7943 LD="${LD-ld} -64"
7946 esac
7948 esac
7950 rm -rf conftest*
7952 esac
7954 need_locks="$enable_libtool_lock"
7957 case $host_os in
7958 rhapsody* | darwin*)
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 if test -n "$DSYMUTIL"; then
7968 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7983 IFS=$as_save_IFS
7987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7988 if test -n "$DSYMUTIL"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7990 $as_echo "$DSYMUTIL" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7998 if test -z "$ac_cv_prog_DSYMUTIL"; then
7999 ac_ct_DSYMUTIL=$DSYMUTIL
8000 # Extract the first word of "dsymutil", so it can be a program name with args.
8001 set dummy dsymutil; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test -n "$ac_ct_DSYMUTIL"; then
8008 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8028 if test -n "$ac_ct_DSYMUTIL"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8036 if test "x$ac_ct_DSYMUTIL" = x; then
8037 DSYMUTIL=":"
8038 else
8039 case $cross_compiling:$ac_tool_warned in
8040 yes:)
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned=yes ;;
8044 esac
8045 DSYMUTIL=$ac_ct_DSYMUTIL
8047 else
8048 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_NMEDIT+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if test -n "$NMEDIT"; then
8060 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8079 NMEDIT=$ac_cv_prog_NMEDIT
8080 if test -n "$NMEDIT"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8082 $as_echo "$NMEDIT" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8090 if test -z "$ac_cv_prog_NMEDIT"; then
8091 ac_ct_NMEDIT=$NMEDIT
8092 # Extract the first word of "nmedit", so it can be a program name with args.
8093 set dummy nmedit; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 if test -n "$ac_ct_NMEDIT"; then
8100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8113 done
8114 done
8115 IFS=$as_save_IFS
8119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8120 if test -n "$ac_ct_NMEDIT"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8122 $as_echo "$ac_ct_NMEDIT" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8128 if test "x$ac_ct_NMEDIT" = x; then
8129 NMEDIT=":"
8130 else
8131 case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137 NMEDIT=$ac_ct_NMEDIT
8139 else
8140 NMEDIT="$ac_cv_prog_NMEDIT"
8143 if test -n "$ac_tool_prefix"; then
8144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_prog_LIPO+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 if test -n "$LIPO"; then
8152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8165 done
8166 done
8167 IFS=$as_save_IFS
8171 LIPO=$ac_cv_prog_LIPO
8172 if test -n "$LIPO"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8174 $as_echo "$LIPO" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8182 if test -z "$ac_cv_prog_LIPO"; then
8183 ac_ct_LIPO=$LIPO
8184 # Extract the first word of "lipo", so it can be a program name with args.
8185 set dummy lipo; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$ac_ct_LIPO"; then
8192 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_ac_ct_LIPO="lipo"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8205 done
8206 done
8207 IFS=$as_save_IFS
8211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8212 if test -n "$ac_ct_LIPO"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8214 $as_echo "$ac_ct_LIPO" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8220 if test "x$ac_ct_LIPO" = x; then
8221 LIPO=":"
8222 else
8223 case $cross_compiling:$ac_tool_warned in
8224 yes:)
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8227 ac_tool_warned=yes ;;
8228 esac
8229 LIPO=$ac_ct_LIPO
8231 else
8232 LIPO="$ac_cv_prog_LIPO"
8235 if test -n "$ac_tool_prefix"; then
8236 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8237 set dummy ${ac_tool_prefix}otool; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_OTOOL+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$OTOOL"; then
8244 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8257 done
8258 done
8259 IFS=$as_save_IFS
8263 OTOOL=$ac_cv_prog_OTOOL
8264 if test -n "$OTOOL"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8266 $as_echo "$OTOOL" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8274 if test -z "$ac_cv_prog_OTOOL"; then
8275 ac_ct_OTOOL=$OTOOL
8276 # Extract the first word of "otool", so it can be a program name with args.
8277 set dummy otool; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$ac_ct_OTOOL"; then
8284 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_ac_ct_OTOOL="otool"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8304 if test -n "$ac_ct_OTOOL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8306 $as_echo "$ac_ct_OTOOL" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8312 if test "x$ac_ct_OTOOL" = x; then
8313 OTOOL=":"
8314 else
8315 case $cross_compiling:$ac_tool_warned in
8316 yes:)
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319 ac_tool_warned=yes ;;
8320 esac
8321 OTOOL=$ac_ct_OTOOL
8323 else
8324 OTOOL="$ac_cv_prog_OTOOL"
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_OTOOL64+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$OTOOL64"; then
8336 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 OTOOL64=$ac_cv_prog_OTOOL64
8356 if test -n "$OTOOL64"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8358 $as_echo "$OTOOL64" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8366 if test -z "$ac_cv_prog_OTOOL64"; then
8367 ac_ct_OTOOL64=$OTOOL64
8368 # Extract the first word of "otool64", so it can be a program name with args.
8369 set dummy otool64; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 if test -n "$ac_ct_OTOOL64"; then
8376 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_OTOOL64="otool64"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8389 done
8390 done
8391 IFS=$as_save_IFS
8395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8396 if test -n "$ac_ct_OTOOL64"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8398 $as_echo "$ac_ct_OTOOL64" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8404 if test "x$ac_ct_OTOOL64" = x; then
8405 OTOOL64=":"
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408 yes:)
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413 OTOOL64=$ac_ct_OTOOL64
8415 else
8416 OTOOL64="$ac_cv_prog_OTOOL64"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8446 $as_echo_n "checking for -single_module linker flag... " >&6; }
8447 if ${lt_cv_apple_cc_single_mod+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 lt_cv_apple_cc_single_mod=no
8451 if test -z "${LT_MULTI_MODULE}"; then
8452 # By default we will add the -single_module flag. You can override
8453 # by either setting the environment variable LT_MULTI_MODULE
8454 # non-empty at configure time, or by adding -multi_module to the
8455 # link flags.
8456 rm -rf libconftest.dylib*
8457 echo "int foo(void){return 1;}" > conftest.c
8458 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8459 -dynamiclib -Wl,-single_module conftest.c" >&5
8460 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8461 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8462 _lt_result=$?
8463 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8464 lt_cv_apple_cc_single_mod=yes
8465 else
8466 cat conftest.err >&5
8468 rm -rf libconftest.dylib*
8469 rm -f conftest.*
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8473 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8475 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8476 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 lt_cv_ld_exported_symbols_list=no
8480 save_LDFLAGS=$LDFLAGS
8481 echo "_main" > conftest.sym
8482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8483 if test x$gcc_no_link = xyes; then
8484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8490 main ()
8494 return 0;
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 lt_cv_ld_exported_symbols_list=yes
8499 else
8500 lt_cv_ld_exported_symbols_list=no
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LDFLAGS="$save_LDFLAGS"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8510 $as_echo_n "checking for -force_load linker flag... " >&6; }
8511 if ${lt_cv_ld_force_load+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 lt_cv_ld_force_load=no
8515 cat > conftest.c << _LT_EOF
8516 int forced_loaded() { return 2;}
8517 _LT_EOF
8518 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8519 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8520 echo "$AR cru libconftest.a conftest.o" >&5
8521 $AR cru libconftest.a conftest.o 2>&5
8522 cat > conftest.c << _LT_EOF
8523 int main() { return 0;}
8524 _LT_EOF
8525 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8526 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8527 _lt_result=$?
8528 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8529 lt_cv_ld_force_load=yes
8530 else
8531 cat conftest.err >&5
8533 rm -f conftest.err libconftest.a conftest conftest.c
8534 rm -rf conftest.dSYM
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8538 $as_echo "$lt_cv_ld_force_load" >&6; }
8539 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8540 # build without first building modern cctools / linker.
8541 case $host_cpu-$host_os in
8542 *-rhapsody* | *-darwin1.[012])
8543 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8544 *-darwin1.*)
8545 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8546 *-darwin*)
8547 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8548 # deployment target is forced to an earlier version.
8549 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8550 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8552 10.[012][,.]*)
8553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557 esac
8559 esac
8560 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8561 _lt_dar_single_mod='$single_module'
8563 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8564 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8565 else
8566 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8568 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8569 _lt_dsymutil='~$DSYMUTIL $lib || :'
8570 else
8571 _lt_dsymutil=
8574 esac
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8577 $as_echo_n "checking for ANSI C header files... " >&6; }
8578 if ${ac_cv_header_stdc+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <stdlib.h>
8584 #include <stdarg.h>
8585 #include <string.h>
8586 #include <float.h>
8589 main ()
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 ac_cv_header_stdc=yes
8598 else
8599 ac_cv_header_stdc=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 if test $ac_cv_header_stdc = yes; then
8604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 #include <string.h>
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "memchr" >/dev/null 2>&1; then :
8613 else
8614 ac_cv_header_stdc=no
8616 rm -f conftest*
8620 if test $ac_cv_header_stdc = yes; then
8621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <stdlib.h>
8626 _ACEOF
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 $EGREP "free" >/dev/null 2>&1; then :
8630 else
8631 ac_cv_header_stdc=no
8633 rm -f conftest*
8637 if test $ac_cv_header_stdc = yes; then
8638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8639 if test "$cross_compiling" = yes; then :
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 #include <ctype.h>
8645 #include <stdlib.h>
8646 #if ((' ' & 0x0FF) == 0x020)
8647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8649 #else
8650 # define ISLOWER(c) \
8651 (('a' <= (c) && (c) <= 'i') \
8652 || ('j' <= (c) && (c) <= 'r') \
8653 || ('s' <= (c) && (c) <= 'z'))
8654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8655 #endif
8657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8659 main ()
8661 int i;
8662 for (i = 0; i < 256; i++)
8663 if (XOR (islower (i), ISLOWER (i))
8664 || toupper (i) != TOUPPER (i))
8665 return 2;
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_run "$LINENO"; then :
8671 else
8672 ac_cv_header_stdc=no
8674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8675 conftest.$ac_objext conftest.beam conftest.$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8681 $as_echo "$ac_cv_header_stdc" >&6; }
8682 if test $ac_cv_header_stdc = yes; then
8684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8690 inttypes.h stdint.h unistd.h
8691 do :
8692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8696 cat >>confdefs.h <<_ACEOF
8697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 _ACEOF
8702 done
8705 for ac_header in dlfcn.h
8706 do :
8707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8709 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DLFCN_H 1
8712 _ACEOF
8716 done
8723 # Set options
8728 enable_win32_dll=no
8731 # Check whether --enable-shared was given.
8732 if test "${enable_shared+set}" = set; then :
8733 enableval=$enable_shared; p=${PACKAGE-default}
8734 case $enableval in
8735 yes) enable_shared=yes ;;
8736 no) enable_shared=no ;;
8738 enable_shared=no
8739 # Look at the argument we got. We use all the common list separators.
8740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8741 for pkg in $enableval; do
8742 IFS="$lt_save_ifs"
8743 if test "X$pkg" = "X$p"; then
8744 enable_shared=yes
8746 done
8747 IFS="$lt_save_ifs"
8749 esac
8750 else
8751 enable_shared=yes
8762 # Check whether --enable-static was given.
8763 if test "${enable_static+set}" = set; then :
8764 enableval=$enable_static; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8777 done
8778 IFS="$lt_save_ifs"
8780 esac
8781 else
8782 enable_static=yes
8794 # Check whether --with-pic was given.
8795 if test "${with_pic+set}" = set; then :
8796 withval=$with_pic; pic_mode="$withval"
8797 else
8798 pic_mode=default
8802 test -z "$pic_mode" && pic_mode=default
8810 # Check whether --enable-fast-install was given.
8811 if test "${enable_fast_install+set}" = set; then :
8812 enableval=$enable_fast_install; p=${PACKAGE-default}
8813 case $enableval in
8814 yes) enable_fast_install=yes ;;
8815 no) enable_fast_install=no ;;
8817 enable_fast_install=no
8818 # Look at the argument we got. We use all the common list separators.
8819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8820 for pkg in $enableval; do
8821 IFS="$lt_save_ifs"
8822 if test "X$pkg" = "X$p"; then
8823 enable_fast_install=yes
8825 done
8826 IFS="$lt_save_ifs"
8828 esac
8829 else
8830 enable_fast_install=yes
8843 # This can be used to rebuild libtool when needed
8844 LIBTOOL_DEPS="$ltmain"
8846 # Always use our own libtool.
8847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8874 test -z "$LN_S" && LN_S="ln -s"
8889 if test -n "${ZSH_VERSION+set}" ; then
8890 setopt NO_GLOB_SUBST
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8894 $as_echo_n "checking for objdir... " >&6; }
8895 if ${lt_cv_objdir+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 rm -f .libs 2>/dev/null
8899 mkdir .libs 2>/dev/null
8900 if test -d .libs; then
8901 lt_cv_objdir=.libs
8902 else
8903 # MS-DOS does not allow filenames that begin with a dot.
8904 lt_cv_objdir=_libs
8906 rmdir .libs 2>/dev/null
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8909 $as_echo "$lt_cv_objdir" >&6; }
8910 objdir=$lt_cv_objdir
8916 cat >>confdefs.h <<_ACEOF
8917 #define LT_OBJDIR "$lt_cv_objdir/"
8918 _ACEOF
8923 case $host_os in
8924 aix3*)
8925 # AIX sometimes has problems with the GCC collect2 program. For some
8926 # reason, if we set the COLLECT_NAMES environment variable, the problems
8927 # vanish in a puff of smoke.
8928 if test "X${COLLECT_NAMES+set}" != Xset; then
8929 COLLECT_NAMES=
8930 export COLLECT_NAMES
8933 esac
8935 # Global variables:
8936 ofile=libtool
8937 can_build_shared=yes
8939 # All known linkers require a `.a' archive for static linking (except MSVC,
8940 # which needs '.lib').
8941 libext=a
8943 with_gnu_ld="$lt_cv_prog_gnu_ld"
8945 old_CC="$CC"
8946 old_CFLAGS="$CFLAGS"
8948 # Set sane defaults for various variables
8949 test -z "$CC" && CC=cc
8950 test -z "$LTCC" && LTCC=$CC
8951 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8952 test -z "$LD" && LD=ld
8953 test -z "$ac_objext" && ac_objext=o
8955 for cc_temp in $compiler""; do
8956 case $cc_temp in
8957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8959 \-*) ;;
8960 *) break;;
8961 esac
8962 done
8963 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8966 # Only perform the check for file, if the check method requires it
8967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8968 case $deplibs_check_method in
8969 file_magic*)
8970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8972 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8973 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 case $MAGIC_CMD in
8977 [\\/*] | ?:[\\/]*)
8978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8981 lt_save_MAGIC_CMD="$MAGIC_CMD"
8982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8984 for ac_dir in $ac_dummy; do
8985 IFS="$lt_save_ifs"
8986 test -z "$ac_dir" && ac_dir=.
8987 if test -f $ac_dir/${ac_tool_prefix}file; then
8988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8989 if test -n "$file_magic_test_file"; then
8990 case $deplibs_check_method in
8991 "file_magic "*)
8992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8995 $EGREP "$file_magic_regex" > /dev/null; then
8997 else
8998 cat <<_LT_EOF 1>&2
9000 *** Warning: the command libtool uses to detect shared libraries,
9001 *** $file_magic_cmd, produces output that libtool cannot recognize.
9002 *** The result is that libtool may fail to recognize shared libraries
9003 *** as such. This will affect the creation of libtool libraries that
9004 *** depend on shared libraries, but programs linked with such libtool
9005 *** libraries will work regardless of this problem. Nevertheless, you
9006 *** may want to report the problem to your system manager and/or to
9007 *** bug-libtool@gnu.org
9009 _LT_EOF
9010 fi ;;
9011 esac
9013 break
9015 done
9016 IFS="$lt_save_ifs"
9017 MAGIC_CMD="$lt_save_MAGIC_CMD"
9019 esac
9022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9023 if test -n "$MAGIC_CMD"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9025 $as_echo "$MAGIC_CMD" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9035 if test -z "$lt_cv_path_MAGIC_CMD"; then
9036 if test -n "$ac_tool_prefix"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9038 $as_echo_n "checking for file... " >&6; }
9039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 case $MAGIC_CMD in
9043 [\\/*] | ?:[\\/]*)
9044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9047 lt_save_MAGIC_CMD="$MAGIC_CMD"
9048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9051 IFS="$lt_save_ifs"
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f $ac_dir/file; then
9054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9057 "file_magic "*)
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9063 else
9064 cat <<_LT_EOF 1>&2
9066 *** Warning: the command libtool uses to detect shared libraries,
9067 *** $file_magic_cmd, produces output that libtool cannot recognize.
9068 *** The result is that libtool may fail to recognize shared libraries
9069 *** as such. This will affect the creation of libtool libraries that
9070 *** depend on shared libraries, but programs linked with such libtool
9071 *** libraries will work regardless of this problem. Nevertheless, you
9072 *** may want to report the problem to your system manager and/or to
9073 *** bug-libtool@gnu.org
9075 _LT_EOF
9076 fi ;;
9077 esac
9079 break
9081 done
9082 IFS="$lt_save_ifs"
9083 MAGIC_CMD="$lt_save_MAGIC_CMD"
9085 esac
9088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089 if test -n "$MAGIC_CMD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9091 $as_echo "$MAGIC_CMD" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9098 else
9099 MAGIC_CMD=:
9105 esac
9107 # Use C for the default configuration in the libtool script
9109 lt_save_CC="$CC"
9110 ac_ext=c
9111 ac_cpp='$CPP $CPPFLAGS'
9112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9117 # Source file extension for C test sources.
9118 ac_ext=c
9120 # Object file extension for compiled C test sources.
9121 objext=o
9122 objext=$objext
9124 # Code to be used in simple compile tests
9125 lt_simple_compile_test_code="int some_variable = 0;"
9127 # Code to be used in simple link tests
9128 lt_simple_link_test_code='int main(){return(0);}'
9136 # If no C compiler was specified, use CC.
9137 LTCC=${LTCC-"$CC"}
9139 # If no C compiler flags were specified, use CFLAGS.
9140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9142 # Allow CC to be a program name with arguments.
9143 compiler=$CC
9145 # Save the default compiler, since it gets overwritten when the other
9146 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9147 compiler_DEFAULT=$CC
9149 # save warnings/boilerplate of simple test code
9150 ac_outfile=conftest.$ac_objext
9151 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153 _lt_compiler_boilerplate=`cat conftest.err`
9154 $RM conftest*
9156 ac_outfile=conftest.$ac_objext
9157 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9159 _lt_linker_boilerplate=`cat conftest.err`
9160 $RM -r conftest*
9163 ## CAVEAT EMPTOR:
9164 ## There is no encapsulation within the following macros, do not change
9165 ## the running order or otherwise move them around unless you know exactly
9166 ## what you are doing...
9167 if test -n "$compiler"; then
9169 lt_prog_compiler_no_builtin_flag=
9171 if test "$GCC" = yes; then
9172 case $cc_basename in
9173 nvcc*)
9174 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9176 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9177 esac
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9180 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9181 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 lt_cv_prog_compiler_rtti_exceptions=no
9185 ac_outfile=conftest.$ac_objext
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="-fno-rtti -fno-exceptions"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>conftest.err)
9199 ac_status=$?
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_rtti_exceptions=yes
9211 $RM conftest*
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9215 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9217 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9218 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9219 else
9230 lt_prog_compiler_wl=
9231 lt_prog_compiler_pic=
9232 lt_prog_compiler_static=
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9237 if test "$GCC" = yes; then
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_static='-static'
9241 case $host_os in
9242 aix*)
9243 # All AIX code is PIC.
9244 if test "$host_cpu" = ia64; then
9245 # AIX 5 now supports IA64 processor
9246 lt_prog_compiler_static='-Bstatic'
9248 lt_prog_compiler_pic='-fPIC'
9251 amigaos*)
9252 case $host_cpu in
9253 powerpc)
9254 # see comment about AmigaOS4 .so support
9255 lt_prog_compiler_pic='-fPIC'
9257 m68k)
9258 # FIXME: we need at least 68020 code to build shared libraries, but
9259 # adding the `-m68020' flag to GCC prevents building anything better,
9260 # like `-m68040'.
9261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9263 esac
9266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9267 # PIC is the default for these OSes.
9270 mingw* | cygwin* | pw32* | os2* | cegcc*)
9271 # This hack is so that the source file can tell whether it is being
9272 # built for inclusion in a dll (and should export symbols for example).
9273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9274 # (--disable-auto-import) libraries
9275 lt_prog_compiler_pic='-DDLL_EXPORT'
9278 darwin* | rhapsody*)
9279 # PIC is the default on this platform
9280 # Common symbols not allowed in MH_DYLIB files
9281 lt_prog_compiler_pic='-fno-common'
9284 haiku*)
9285 # PIC is the default for Haiku.
9286 # The "-static" flag exists, but is broken.
9287 lt_prog_compiler_static=
9290 hpux*)
9291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9293 # sets the default TLS model and affects inlining.
9294 case $host_cpu in
9295 hppa*64*)
9296 # +Z the default
9299 lt_prog_compiler_pic='-fPIC'
9301 esac
9304 interix[3-9]*)
9305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9306 # Instead, we relocate shared libraries at runtime.
9309 msdosdjgpp*)
9310 # Just because we use GCC doesn't mean we suddenly get shared libraries
9311 # on systems that don't support them.
9312 lt_prog_compiler_can_build_shared=no
9313 enable_shared=no
9316 *nto* | *qnx*)
9317 # QNX uses GNU C++, but need to define -shared option too, otherwise
9318 # it will coredump.
9319 lt_prog_compiler_pic='-fPIC -shared'
9322 sysv4*MP*)
9323 if test -d /usr/nec; then
9324 lt_prog_compiler_pic=-Kconform_pic
9329 lt_prog_compiler_pic='-fPIC'
9331 esac
9333 case $cc_basename in
9334 nvcc*) # Cuda Compiler Driver 2.2
9335 lt_prog_compiler_wl='-Xlinker '
9336 lt_prog_compiler_pic='-Xcompiler -fPIC'
9338 esac
9339 else
9340 # PORTME Check for flag to pass linker flags through the system compiler.
9341 case $host_os in
9342 aix*)
9343 lt_prog_compiler_wl='-Wl,'
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 now supports IA64 processor
9346 lt_prog_compiler_static='-Bstatic'
9347 else
9348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9352 mingw* | cygwin* | pw32* | os2* | cegcc*)
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 lt_prog_compiler_pic='-DDLL_EXPORT'
9358 hpux9* | hpux10* | hpux11*)
9359 lt_prog_compiler_wl='-Wl,'
9360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361 # not for PA HP-UX.
9362 case $host_cpu in
9363 hppa*64*|ia64*)
9364 # +Z the default
9367 lt_prog_compiler_pic='+Z'
9369 esac
9370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371 lt_prog_compiler_static='${wl}-a ${wl}archive'
9374 irix5* | irix6* | nonstopux*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC (with -KPIC) is the default.
9377 lt_prog_compiler_static='-non_shared'
9380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9381 case $cc_basename in
9382 # old Intel for x86_64 which still supported -KPIC.
9383 ecc*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-static'
9388 # icc used to be incompatible with GCC.
9389 # ICC 10 doesn't accept -KPIC any more.
9390 icc* | ifort*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9395 # Lahey Fortran 8.1.
9396 lf95*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='--shared'
9399 lt_prog_compiler_static='--static'
9401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9402 # Portland Group compilers (*not* the Pentium gcc compiler,
9403 # which looks to be a dead project)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-fpic'
9406 lt_prog_compiler_static='-Bstatic'
9408 ccc*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # All Alpha code is PIC.
9411 lt_prog_compiler_static='-non_shared'
9413 xl* | bgxl* | bgf* | mpixl*)
9414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-qpic'
9417 lt_prog_compiler_static='-qstaticlink'
9420 case `$CC -V 2>&1 | sed 5q` in
9421 *Sun\ F* | *Sun*Fortran*)
9422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 lt_prog_compiler_wl=''
9427 *Sun\ C*)
9428 # Sun C 5.9
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl='-Wl,'
9433 esac
9435 esac
9438 newsos6)
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9443 *nto* | *qnx*)
9444 # QNX uses GNU C++, but need to define -shared option too, otherwise
9445 # it will coredump.
9446 lt_prog_compiler_pic='-fPIC -shared'
9449 osf3* | osf4* | osf5*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # All OSF/1 code is PIC.
9452 lt_prog_compiler_static='-non_shared'
9455 rdos*)
9456 lt_prog_compiler_static='-non_shared'
9459 solaris*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 case $cc_basename in
9463 f77* | f90* | f95*)
9464 lt_prog_compiler_wl='-Qoption ld ';;
9466 lt_prog_compiler_wl='-Wl,';;
9467 esac
9470 sunos4*)
9471 lt_prog_compiler_wl='-Qoption ld '
9472 lt_prog_compiler_pic='-PIC'
9473 lt_prog_compiler_static='-Bstatic'
9476 sysv4 | sysv4.2uw2* | sysv4.3*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9482 sysv4*MP*)
9483 if test -d /usr/nec ;then
9484 lt_prog_compiler_pic='-Kconform_pic'
9485 lt_prog_compiler_static='-Bstatic'
9489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-KPIC'
9492 lt_prog_compiler_static='-Bstatic'
9495 unicos*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_can_build_shared=no
9500 uts4*)
9501 lt_prog_compiler_pic='-pic'
9502 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_can_build_shared=no
9508 esac
9511 case $host_os in
9512 # For platforms which do not support PIC, -DPIC is meaningless:
9513 *djgpp*)
9514 lt_prog_compiler_pic=
9517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9519 esac
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9521 $as_echo "$lt_prog_compiler_pic" >&6; }
9529 # Check to make sure the PIC flag actually works.
9531 if test -n "$lt_prog_compiler_pic"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9534 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 lt_cv_prog_compiler_pic_works=no
9538 ac_outfile=conftest.$ac_objext
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 # The option is referenced via a variable to avoid confusing sed.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551 (eval "$lt_compile" 2>conftest.err)
9552 ac_status=$?
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 if (exit $ac_status) && test -s "$ac_outfile"; then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings other than the usual output.
9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_pic_works=yes
9564 $RM conftest*
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9571 case $lt_prog_compiler_pic in
9572 "" | " "*) ;;
9573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9574 esac
9575 else
9576 lt_prog_compiler_pic=
9577 lt_prog_compiler_can_build_shared=no
9588 # Check to make sure the static flag actually works.
9590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9592 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9593 if ${lt_cv_prog_compiler_static_works+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 lt_cv_prog_compiler_static_works=no
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9601 # The linker can only warn and ignore the option if not recognized
9602 # So say no if there are warnings
9603 if test -s conftest.err; then
9604 # Append any errors to the config.log.
9605 cat conftest.err 1>&5
9606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_static_works=yes
9611 else
9612 lt_cv_prog_compiler_static_works=yes
9615 $RM -r conftest*
9616 LDFLAGS="$save_LDFLAGS"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9620 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9622 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9624 else
9625 lt_prog_compiler_static=
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9636 if ${lt_cv_prog_compiler_c_o+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 lt_cv_prog_compiler_c_o=no
9640 $RM -r conftest 2>/dev/null
9641 mkdir conftest
9642 cd conftest
9643 mkdir out
9644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646 lt_compiler_flag="-o out/conftest2.$ac_objext"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 lt_compile=`echo "$ac_compile" | $SED \
9652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9654 -e 's:$: $lt_compiler_flag:'`
9655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9656 (eval "$lt_compile" 2>out/conftest.err)
9657 ac_status=$?
9658 cat out/conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9661 then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_c_o=yes
9670 chmod u+w . 2>&5
9671 $RM conftest*
9672 # SGI C++ compiler will create directory out/ii_files/ for
9673 # template instantiation
9674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9675 $RM out/* && rmdir out
9676 cd ..
9677 $RM -r conftest
9678 $RM conftest*
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9691 if ${lt_cv_prog_compiler_c_o+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 lt_cv_prog_compiler_c_o=no
9695 $RM -r conftest 2>/dev/null
9696 mkdir conftest
9697 cd conftest
9698 mkdir out
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 lt_compiler_flag="-o out/conftest2.$ac_objext"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 lt_compile=`echo "$ac_compile" | $SED \
9707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9709 -e 's:$: $lt_compiler_flag:'`
9710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9711 (eval "$lt_compile" 2>out/conftest.err)
9712 ac_status=$?
9713 cat out/conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9716 then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_c_o=yes
9725 chmod u+w . 2>&5
9726 $RM conftest*
9727 # SGI C++ compiler will create directory out/ii_files/ for
9728 # template instantiation
9729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9730 $RM out/* && rmdir out
9731 cd ..
9732 $RM -r conftest
9733 $RM conftest*
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9742 hard_links="nottested"
9743 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9744 # do not overwrite the value of need_locks provided by the user
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9746 $as_echo_n "checking if we can lock with hard links... " >&6; }
9747 hard_links=yes
9748 $RM conftest*
9749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9750 touch conftest.a
9751 ln conftest.a conftest.b 2>&5 || hard_links=no
9752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9754 $as_echo "$hard_links" >&6; }
9755 if test "$hard_links" = no; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9758 need_locks=warn
9760 else
9761 need_locks=no
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9772 runpath_var=
9773 allow_undefined_flag=
9774 always_export_symbols=no
9775 archive_cmds=
9776 archive_expsym_cmds=
9777 compiler_needs_object=no
9778 enable_shared_with_static_runtimes=no
9779 export_dynamic_flag_spec=
9780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9781 hardcode_automatic=no
9782 hardcode_direct=no
9783 hardcode_direct_absolute=no
9784 hardcode_libdir_flag_spec=
9785 hardcode_libdir_flag_spec_ld=
9786 hardcode_libdir_separator=
9787 hardcode_minus_L=no
9788 hardcode_shlibpath_var=unsupported
9789 inherit_rpath=no
9790 link_all_deplibs=unknown
9791 module_cmds=
9792 module_expsym_cmds=
9793 old_archive_from_new_cmds=
9794 old_archive_from_expsyms_cmds=
9795 thread_safe_flag_spec=
9796 whole_archive_flag_spec=
9797 # include_expsyms should be a list of space-separated symbols to be *always*
9798 # included in the symbol list
9799 include_expsyms=
9800 # exclude_expsyms can be an extended regexp of symbols to exclude
9801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9803 # as well as any symbol that contains `d'.
9804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9806 # platforms (ab)use it in PIC code, but their linkers get confused if
9807 # the symbol is explicitly referenced. Since portable code cannot
9808 # rely on this symbol name, it's probably fine to never include it in
9809 # preloaded symbol tables.
9810 # Exclude shared library initialization/finalization symbols.
9811 extract_expsyms_cmds=
9813 case $host_os in
9814 cygwin* | mingw* | pw32* | cegcc*)
9815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9816 # When not using gcc, we currently assume that we are using
9817 # Microsoft Visual C++.
9818 if test "$GCC" != yes; then
9819 with_gnu_ld=no
9822 interix*)
9823 # we just hope/assume this is gcc and not c89 (= MSVC++)
9824 with_gnu_ld=yes
9826 openbsd*)
9827 with_gnu_ld=no
9829 esac
9831 ld_shlibs=yes
9833 # On some targets, GNU ld is compatible enough with the native linker
9834 # that we're better off using the native interface for both.
9835 lt_use_gnu_ld_interface=no
9836 if test "$with_gnu_ld" = yes; then
9837 case $host_os in
9838 aix*)
9839 # The AIX port of GNU ld has always aspired to compatibility
9840 # with the native linker. However, as the warning in the GNU ld
9841 # block says, versions before 2.19.5* couldn't really create working
9842 # shared libraries, regardless of the interface used.
9843 case `$LD -v 2>&1` in
9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9848 lt_use_gnu_ld_interface=yes
9850 esac
9853 lt_use_gnu_ld_interface=yes
9855 esac
9858 if test "$lt_use_gnu_ld_interface" = yes; then
9859 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 wlarc='${wl}'
9862 # Set some defaults for GNU ld with shared library support. These
9863 # are reset later if shared libraries are not supported. Putting them
9864 # here allows them to be overridden if necessary.
9865 runpath_var=LD_RUN_PATH
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867 export_dynamic_flag_spec='${wl}--export-dynamic'
9868 # ancient GNU ld didn't support --whole-archive et. al.
9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9871 else
9872 whole_archive_flag_spec=
9874 supports_anon_versioning=no
9875 case `$LD -v 2>&1` in
9876 *GNU\ gold*) supports_anon_versioning=yes ;;
9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9880 *\ 2.11.*) ;; # other 2.11 versions
9881 *) supports_anon_versioning=yes ;;
9882 esac
9884 # See if GNU ld supports shared libraries.
9885 case $host_os in
9886 aix[3-9]*)
9887 # On AIX/PPC, the GNU linker is very broken
9888 if test "$host_cpu" != ia64; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9892 *** Warning: the GNU linker, at least up to release 2.19, is reported
9893 *** to be unable to reliably create shared libraries on AIX.
9894 *** Therefore, libtool is disabling shared libraries support. If you
9895 *** really care for shared libraries, you may want to install binutils
9896 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9897 *** You will then need to restart the configuration process.
9899 _LT_EOF
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 archive_expsym_cmds=''
9910 m68k)
9911 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9915 esac
9918 beos*)
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 allow_undefined_flag=unsupported
9921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9922 # support --undefined. This deserves some investigation. FIXME
9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 else
9925 ld_shlibs=no
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9931 # as there is no search path for DLLs.
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 export_dynamic_flag_spec='${wl}--export-all-symbols'
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=no
9936 enable_shared_with_static_runtimes=yes
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941 # If the export-symbols file already is a .def file (1st line
9942 # is EXPORTS), use it as is; otherwise, prepend...
9943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9944 cp $export_symbols $output_objdir/$soname.def;
9945 else
9946 echo EXPORTS > $output_objdir/$soname.def;
9947 cat $export_symbols >> $output_objdir/$soname.def;
9949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9950 else
9951 ld_shlibs=no
9955 haiku*)
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 link_all_deplibs=yes
9960 interix[3-9]*)
9961 hardcode_direct=no
9962 hardcode_shlibpath_var=no
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 export_dynamic_flag_spec='${wl}-E'
9965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9966 # Instead, shared libraries are loaded at an image base (0x10000000 by
9967 # default) and relocated if they conflict, which is a slow very memory
9968 # consuming and fragmenting process. To avoid this, we pick a random,
9969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9972 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9976 tmp_diet=no
9977 if test "$host_os" = linux-dietlibc; then
9978 case $cc_basename in
9979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9980 esac
9982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9983 && test "$tmp_diet" = no
9984 then
9985 tmp_addflag=' $pic_flag'
9986 tmp_sharedflag='-shared'
9987 case $cc_basename,$host_cpu in
9988 pgcc*) # Portland Group C compiler
9989 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9990 tmp_addflag=' $pic_flag'
9992 pgf77* | pgf90* | pgf95* | pgfortran*)
9993 # Portland Group f77 and f90 compilers
9994 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9995 tmp_addflag=' $pic_flag -Mnomain' ;;
9996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9997 tmp_addflag=' -i_dynamic' ;;
9998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9999 tmp_addflag=' -i_dynamic -nofor_main' ;;
10000 ifc* | ifort*) # Intel Fortran compiler
10001 tmp_addflag=' -nofor_main' ;;
10002 lf95*) # Lahey Fortran 8.1
10003 whole_archive_flag_spec=
10004 tmp_sharedflag='--shared' ;;
10005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10006 tmp_sharedflag='-qmkshrobj'
10007 tmp_addflag= ;;
10008 nvcc*) # Cuda Compiler Driver 2.2
10009 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10010 compiler_needs_object=yes
10012 esac
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ C*) # Sun C 5.9
10015 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10016 compiler_needs_object=yes
10017 tmp_sharedflag='-G' ;;
10018 *Sun\ F*) # Sun Fortran 8.3
10019 tmp_sharedflag='-G' ;;
10020 esac
10021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 if test "x$supports_anon_versioning" = xyes; then
10024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10026 echo "local: *; };" >> $output_objdir/$libname.ver~
10027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10030 case $cc_basename in
10031 xlf* | bgf* | bgxlf* | mpixlf*)
10032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10034 hardcode_libdir_flag_spec=
10035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10037 if test "x$supports_anon_versioning" = xyes; then
10038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10040 echo "local: *; };" >> $output_objdir/$libname.ver~
10041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10044 esac
10045 else
10046 ld_shlibs=no
10050 netbsd*)
10051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053 wlarc=
10054 else
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10060 solaris*)
10061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10062 ld_shlibs=no
10063 cat <<_LT_EOF 1>&2
10065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10066 *** create shared libraries on Solaris systems. Therefore, libtool
10067 *** is disabling shared libraries support. We urge you to upgrade GNU
10068 *** binutils to release 2.9.1 or newer. Another option is to modify
10069 *** your PATH or compiler configuration so that the native linker is
10070 *** used, and then restart.
10072 _LT_EOF
10073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076 else
10077 ld_shlibs=no
10081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10082 case `$LD -v 2>&1` in
10083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10084 ld_shlibs=no
10085 cat <<_LT_EOF 1>&2
10087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10088 *** reliably create shared libraries on SCO systems. Therefore, libtool
10089 *** is disabling shared libraries support. We urge you to upgrade GNU
10090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10091 *** your PATH or compiler configuration so that the native linker is
10092 *** used, and then restart.
10094 _LT_EOF
10097 # For security reasons, it is highly recommended that you always
10098 # use absolute paths for naming shared libraries, and exclude the
10099 # DT_RUNPATH tag from executables and libraries. But doing so
10100 # requires that you compile everything twice, which is a pain.
10101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 else
10106 ld_shlibs=no
10109 esac
10112 sunos4*)
10113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 wlarc=
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10123 else
10124 ld_shlibs=no
10127 esac
10129 if test "$ld_shlibs" = no; then
10130 runpath_var=
10131 hardcode_libdir_flag_spec=
10132 export_dynamic_flag_spec=
10133 whole_archive_flag_spec=
10135 else
10136 # PORTME fill in a description of your system's linker (not GNU ld)
10137 case $host_os in
10138 aix3*)
10139 allow_undefined_flag=unsupported
10140 always_export_symbols=yes
10141 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10142 # Note: this linker hardcodes the directories in LIBPATH if there
10143 # are no directories specified by -L.
10144 hardcode_minus_L=yes
10145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10146 # Neither direct hardcoding nor static linking is supported with a
10147 # broken collect2.
10148 hardcode_direct=unsupported
10152 aix[4-9]*)
10153 if test "$host_cpu" = ia64; then
10154 # On IA64, the linker does run time linking by default, so we don't
10155 # have to do anything special.
10156 aix_use_runtimelinking=no
10157 exp_sym_flag='-Bexport'
10158 no_entry_flag=""
10159 else
10160 # If we're using GNU nm, then we don't want the "-C" option.
10161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10162 # Also, AIX nm treats weak defined symbols like other global
10163 # defined symbols, whereas GNU nm marks them as "W".
10164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10165 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10166 else
10167 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10169 aix_use_runtimelinking=no
10171 # Test if we are trying to use run time linking or normal
10172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10173 # need to do runtime linking.
10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10175 for ld_flag in $LDFLAGS; do
10176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10177 aix_use_runtimelinking=yes
10178 break
10180 done
10182 esac
10184 exp_sym_flag='-bexport'
10185 no_entry_flag='-bnoentry'
10188 # When large executables or shared objects are built, AIX ld can
10189 # have problems creating the table of contents. If linking a library
10190 # or program results in "error TOC overflow" add -mminimal-toc to
10191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10194 archive_cmds=''
10195 hardcode_direct=yes
10196 hardcode_direct_absolute=yes
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 file_list_spec='${wl}-f,'
10201 if test "$GCC" = yes; then
10202 case $host_os in aix4.[012]|aix4.[012].*)
10203 # We only want to do this on AIX 4.2 and lower, the check
10204 # below for broken collect2 doesn't work under 4.3+
10205 collect2name=`${CC} -print-prog-name=collect2`
10206 if test -f "$collect2name" &&
10207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10208 then
10209 # We have reworked collect2
10211 else
10212 # We have old collect2
10213 hardcode_direct=unsupported
10214 # It fails to find uninstalled libraries when the uninstalled
10215 # path is not listed in the libpath. Setting hardcode_minus_L
10216 # to unsupported forces relinking
10217 hardcode_minus_L=yes
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_libdir_separator=
10222 esac
10223 shared_flag='-shared'
10224 if test "$aix_use_runtimelinking" = yes; then
10225 shared_flag="$shared_flag "'${wl}-G'
10227 else
10228 # not using gcc
10229 if test "$host_cpu" = ia64; then
10230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10231 # chokes on -Wl,-G. The following line is correct:
10232 shared_flag='-G'
10233 else
10234 if test "$aix_use_runtimelinking" = yes; then
10235 shared_flag='${wl}-G'
10236 else
10237 shared_flag='${wl}-bM:SRE'
10242 export_dynamic_flag_spec='${wl}-bexpall'
10243 # It seems that -bexpall does not export symbols beginning with
10244 # underscore (_), so it is better to generate a list of symbols to export.
10245 always_export_symbols=yes
10246 if test "$aix_use_runtimelinking" = yes; then
10247 # Warning - without using the other runtime loading flags (-brtl),
10248 # -berok will link without error, but may produce a broken library.
10249 allow_undefined_flag='-berok'
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
10252 if test x$gcc_no_link = xyes; then
10253 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10259 main ()
10263 return 0;
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10268 lt_aix_libpath_sed='
10269 /Import File Strings/,/^$/ {
10270 /^0/ {
10271 s/^0 *\(.*\)$/\1/
10275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276 # Check for a 64-bit object if we didn't find anything.
10277 if test -z "$aix_libpath"; then
10278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10286 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10287 else
10288 if test "$host_cpu" = ia64; then
10289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10290 allow_undefined_flag="-z nodefs"
10291 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10292 else
10293 # Determine the default libpath from the value encoded in an
10294 # empty executable.
10295 if test x$gcc_no_link = xyes; then
10296 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10302 main ()
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10311 lt_aix_libpath_sed='
10312 /Import File Strings/,/^$/ {
10313 /^0/ {
10314 s/^0 *\(.*\)$/\1/
10318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10319 # Check for a 64-bit object if we didn't find anything.
10320 if test -z "$aix_libpath"; then
10321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10324 rm -f core conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10329 # Warning - without using the other run time loading flags,
10330 # -berok will link without error, but may produce a broken library.
10331 no_undefined_flag=' ${wl}-bernotok'
10332 allow_undefined_flag=' ${wl}-berok'
10333 if test "$with_gnu_ld" = yes; then
10334 # We only use this code for GNU lds that support --whole-archive.
10335 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10336 else
10337 # Exported symbols can be pulled into shared objects from archives
10338 whole_archive_flag_spec='$convenience'
10340 archive_cmds_need_lc=yes
10341 # This is similar to how AIX traditionally builds its shared libraries.
10342 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10347 amigaos*)
10348 case $host_cpu in
10349 powerpc)
10350 # see comment about AmigaOS4 .so support
10351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352 archive_expsym_cmds=''
10354 m68k)
10355 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_minus_L=yes
10359 esac
10362 bsdi[45]*)
10363 export_dynamic_flag_spec=-rdynamic
10366 cygwin* | mingw* | pw32* | cegcc*)
10367 # When not using gcc, we currently assume that we are using
10368 # Microsoft Visual C++.
10369 # hardcode_libdir_flag_spec is actually meaningless, as there is
10370 # no search path for DLLs.
10371 hardcode_libdir_flag_spec=' '
10372 allow_undefined_flag=unsupported
10373 # Tell ltmain to make .lib files, not .a files.
10374 libext=lib
10375 # Tell ltmain to make .dll files, not .so files.
10376 shrext_cmds=".dll"
10377 # FIXME: Setting linknames here is a bad hack.
10378 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10379 # The linker will automatically build a .lib file if we build a DLL.
10380 old_archive_from_new_cmds='true'
10381 # FIXME: Should let the user specify the lib program.
10382 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10383 fix_srcfile_path='`cygpath -w "$srcfile"`'
10384 enable_shared_with_static_runtimes=yes
10387 darwin* | rhapsody*)
10391 # Publish an arg to allow the user to select that Darwin host (and target)
10392 # libraries should be given install-names like @rpath/libfoo.dylib. This
10393 # requires that the user of the library then adds an 'rpath' to the DSO that
10394 # needs access.
10395 # NOTE: there are defaults below, for systems that support rpaths. The person
10396 # configuring can override the defaults for any system version that supports
10397 # them - they are, however, forced off for system versions without support.
10398 # Check whether --enable-darwin-at-rpath was given.
10399 if test "${enable_darwin_at_rpath+set}" = set; then :
10400 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10401 # This is not supported before macOS 10.5 / Darwin9.
10402 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10403 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10405 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10406 enable_darwin_at_rpath=no
10408 esac
10410 else
10411 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10412 # As above, before 10.5 / Darwin9 this does not work.
10413 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10414 enable_darwin_at_rpath=no
10417 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10418 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10419 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10420 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10422 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10423 enable_darwin_at_rpath=yes
10425 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10426 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10428 esac
10433 archive_cmds_need_lc=no
10434 hardcode_direct=no
10435 hardcode_automatic=yes
10436 hardcode_shlibpath_var=unsupported
10437 if test "$lt_cv_ld_force_load" = "yes"; then
10438 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10439 else
10440 whole_archive_flag_spec=''
10442 link_all_deplibs=yes
10443 allow_undefined_flag="$_lt_dar_allow_undefined"
10444 case $cc_basename in
10445 ifort*) _lt_dar_can_shared=yes ;;
10446 *) _lt_dar_can_shared=$GCC ;;
10447 esac
10448 if test "$_lt_dar_can_shared" = "yes"; then
10449 output_verbose_link_cmd=func_echo_all
10450 _lt_install_name='\$rpath/\$soname'
10451 if test "x$enable_darwin_at_rpath" = "xyes"; then
10452 _lt_install_name='@rpath/\$soname'
10454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10456 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10457 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10459 else
10460 ld_shlibs=no
10465 dgux*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_shlibpath_var=no
10471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10472 # support. Future versions do this automatically, but an explicit c++rt0.o
10473 # does not break anything, and helps significantly (at the cost of a little
10474 # extra space).
10475 freebsd2.2*)
10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10477 hardcode_libdir_flag_spec='-R$libdir'
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10483 freebsd2.*)
10484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10485 hardcode_direct=yes
10486 hardcode_minus_L=yes
10487 hardcode_shlibpath_var=no
10490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10491 freebsd* | dragonfly*)
10492 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10493 hardcode_libdir_flag_spec='-R$libdir'
10494 hardcode_direct=yes
10495 hardcode_shlibpath_var=no
10498 hpux9*)
10499 if test "$GCC" = yes; then
10500 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10501 else
10502 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10505 hardcode_libdir_separator=:
10506 hardcode_direct=yes
10508 # hardcode_minus_L: Not really in the search PATH,
10509 # but as the default location of the library.
10510 hardcode_minus_L=yes
10511 export_dynamic_flag_spec='${wl}-E'
10514 hpux10*)
10515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10516 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10517 else
10518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10520 if test "$with_gnu_ld" = no; then
10521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_flag_spec_ld='+b $libdir'
10523 hardcode_libdir_separator=:
10524 hardcode_direct=yes
10525 hardcode_direct_absolute=yes
10526 export_dynamic_flag_spec='${wl}-E'
10527 # hardcode_minus_L: Not really in the search PATH,
10528 # but as the default location of the library.
10529 hardcode_minus_L=yes
10533 hpux11*)
10534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10535 case $host_cpu in
10536 hppa*64*)
10537 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10539 ia64*)
10540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 esac
10546 else
10547 case $host_cpu in
10548 hppa*64*)
10549 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10551 ia64*)
10552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10556 # Older versions of the 11.00 compiler do not understand -b yet
10557 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10559 $as_echo_n "checking if $CC understands -b... " >&6; }
10560 if ${lt_cv_prog_compiler__b+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 lt_cv_prog_compiler__b=no
10564 save_LDFLAGS="$LDFLAGS"
10565 LDFLAGS="$LDFLAGS -b"
10566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10568 # The linker can only warn and ignore the option if not recognized
10569 # So say no if there are warnings
10570 if test -s conftest.err; then
10571 # Append any errors to the config.log.
10572 cat conftest.err 1>&5
10573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10575 if diff conftest.exp conftest.er2 >/dev/null; then
10576 lt_cv_prog_compiler__b=yes
10578 else
10579 lt_cv_prog_compiler__b=yes
10582 $RM -r conftest*
10583 LDFLAGS="$save_LDFLAGS"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10587 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10589 if test x"$lt_cv_prog_compiler__b" = xyes; then
10590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10591 else
10592 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10596 esac
10598 if test "$with_gnu_ld" = no; then
10599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600 hardcode_libdir_separator=:
10602 case $host_cpu in
10603 hppa*64*|ia64*)
10604 hardcode_direct=no
10605 hardcode_shlibpath_var=no
10608 hardcode_direct=yes
10609 hardcode_direct_absolute=yes
10610 export_dynamic_flag_spec='${wl}-E'
10612 # hardcode_minus_L: Not really in the search PATH,
10613 # but as the default location of the library.
10614 hardcode_minus_L=yes
10616 esac
10620 irix5* | irix6* | nonstopux*)
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10623 # Try to use the -exported_symbol ld option, if it does not
10624 # work, assume that -exports_file does not work either and
10625 # implicitly export all symbols.
10626 save_LDFLAGS="$LDFLAGS"
10627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10628 if test x$gcc_no_link = xyes; then
10629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 int foo(void) {}
10634 _ACEOF
10635 if ac_fn_c_try_link "$LINENO"; then :
10636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LDFLAGS="$save_LDFLAGS"
10642 else
10643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10646 archive_cmds_need_lc='no'
10647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10648 hardcode_libdir_separator=:
10649 inherit_rpath=yes
10650 link_all_deplibs=yes
10653 netbsd*)
10654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10656 else
10657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10659 hardcode_libdir_flag_spec='-R$libdir'
10660 hardcode_direct=yes
10661 hardcode_shlibpath_var=no
10664 newsos6)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator=:
10669 hardcode_shlibpath_var=no
10672 *nto* | *qnx*)
10675 openbsd*)
10676 if test -f /usr/libexec/ld.so; then
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10679 hardcode_direct_absolute=yes
10680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10684 export_dynamic_flag_spec='${wl}-E'
10685 else
10686 case $host_os in
10687 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_libdir_flag_spec='-R$libdir'
10692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10695 esac
10697 else
10698 ld_shlibs=no
10702 os2*)
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_minus_L=yes
10705 allow_undefined_flag=unsupported
10706 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10707 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10710 osf3*)
10711 if test "$GCC" = yes; then
10712 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10713 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10714 else
10715 allow_undefined_flag=' -expect_unresolved \*'
10716 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10718 archive_cmds_need_lc='no'
10719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10720 hardcode_libdir_separator=:
10723 osf4* | osf5*) # as osf3* with the addition of -msym flag
10724 if test "$GCC" = yes; then
10725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10726 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728 else
10729 allow_undefined_flag=' -expect_unresolved \*'
10730 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10731 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10732 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10734 # Both c and cxx compiler support -rpath directly
10735 hardcode_libdir_flag_spec='-rpath $libdir'
10737 archive_cmds_need_lc='no'
10738 hardcode_libdir_separator=:
10741 solaris*)
10742 no_undefined_flag=' -z defs'
10743 if test "$GCC" = yes; then
10744 wlarc='${wl}'
10745 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10747 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10748 else
10749 case `$CC -V 2>&1` in
10750 *"Compilers 5.0"*)
10751 wlarc=''
10752 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10757 wlarc='${wl}'
10758 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10760 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10762 esac
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 hardcode_shlibpath_var=no
10766 case $host_os in
10767 solaris2.[0-5] | solaris2.[0-5].*) ;;
10769 # The compiler driver will combine and reorder linker options,
10770 # but understands `-z linker_flag'. GCC discards it without `$wl',
10771 # but is careful enough not to reorder.
10772 # Supported since Solaris 2.6 (maybe 2.5.1?)
10773 if test "$GCC" = yes; then
10774 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10775 else
10776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10779 esac
10780 link_all_deplibs=yes
10783 sunos4*)
10784 if test "x$host_vendor" = xsequent; then
10785 # Use $CC to link under sequent, because it throws in some extra .o
10786 # files that make .init and .fini sections work.
10787 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10788 else
10789 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_libdir_flag_spec='-L$libdir'
10792 hardcode_direct=yes
10793 hardcode_minus_L=yes
10794 hardcode_shlibpath_var=no
10797 sysv4)
10798 case $host_vendor in
10799 sni)
10800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10801 hardcode_direct=yes # is this really true???
10803 siemens)
10804 ## LD is ld it makes a PLAMLIB
10805 ## CC just makes a GrossModule.
10806 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10807 reload_cmds='$CC -r -o $output$reload_objs'
10808 hardcode_direct=no
10810 motorola)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10814 esac
10815 runpath_var='LD_RUN_PATH'
10816 hardcode_shlibpath_var=no
10819 sysv4.3*)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_shlibpath_var=no
10822 export_dynamic_flag_spec='-Bexport'
10825 sysv4*MP*)
10826 if test -d /usr/nec; then
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_shlibpath_var=no
10829 runpath_var=LD_RUN_PATH
10830 hardcode_runpath_var=yes
10831 ld_shlibs=yes
10835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10836 no_undefined_flag='${wl}-z,text'
10837 archive_cmds_need_lc=no
10838 hardcode_shlibpath_var=no
10839 runpath_var='LD_RUN_PATH'
10841 if test "$GCC" = yes; then
10842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 else
10845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 sysv5* | sco3.2v5* | sco5v6*)
10851 # Note: We can NOT use -z defs as we might desire, because we do not
10852 # link with -lc, and that would cause any symbols used from libc to
10853 # always be unresolved, which means just about no library would
10854 # ever link correctly. If we're not using GNU ld we use -z text
10855 # though, which does catch some bad symbols but isn't as heavy-handed
10856 # as -z defs.
10857 no_undefined_flag='${wl}-z,text'
10858 allow_undefined_flag='${wl}-z,nodefs'
10859 archive_cmds_need_lc=no
10860 hardcode_shlibpath_var=no
10861 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10862 hardcode_libdir_separator=':'
10863 link_all_deplibs=yes
10864 export_dynamic_flag_spec='${wl}-Bexport'
10865 runpath_var='LD_RUN_PATH'
10867 if test "$GCC" = yes; then
10868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 else
10871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 uts4*)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_libdir_flag_spec='-L$libdir'
10879 hardcode_shlibpath_var=no
10883 ld_shlibs=no
10885 esac
10887 if test x$host_vendor = xsni; then
10888 case $host in
10889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10890 export_dynamic_flag_spec='${wl}-Blargedynsym'
10892 esac
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10897 $as_echo "$ld_shlibs" >&6; }
10898 test "$ld_shlibs" = no && can_build_shared=no
10900 with_gnu_ld=$with_gnu_ld
10917 # Do we need to explicitly link libc?
10919 case "x$archive_cmds_need_lc" in
10920 x|xyes)
10921 # Assume -lc should be added
10922 archive_cmds_need_lc=yes
10924 if test "$enable_shared" = yes && test "$GCC" = yes; then
10925 case $archive_cmds in
10926 *'~'*)
10927 # FIXME: we may have to deal with multi-command sequences.
10929 '$CC '*)
10930 # Test whether the compiler implicitly links with -lc since on some
10931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10932 # to ld, don't add -lc before -lgcc.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10935 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 $RM conftest*
10939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10942 (eval $ac_compile) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } 2>conftest.err; then
10946 soname=conftest
10947 lib=conftest
10948 libobjs=conftest.$ac_objext
10949 deplibs=
10950 wl=$lt_prog_compiler_wl
10951 pic_flag=$lt_prog_compiler_pic
10952 compiler_flags=-v
10953 linker_flags=-v
10954 verstring=
10955 output_objdir=.
10956 libname=conftest
10957 lt_save_allow_undefined_flag=$allow_undefined_flag
10958 allow_undefined_flag=
10959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10960 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10961 ac_status=$?
10962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10963 test $ac_status = 0; }
10964 then
10965 lt_cv_archive_cmds_need_lc=no
10966 else
10967 lt_cv_archive_cmds_need_lc=yes
10969 allow_undefined_flag=$lt_save_allow_undefined_flag
10970 else
10971 cat conftest.err 1>&5
10973 $RM conftest*
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10977 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10978 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10980 esac
10983 esac
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11144 if test "$GCC" = yes; then
11145 case $host_os in
11146 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11147 *) lt_awk_arg="/^libraries:/" ;;
11148 esac
11149 case $host_os in
11150 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11151 *) lt_sed_strip_eq="s,=/,/,g" ;;
11152 esac
11153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11154 case $lt_search_path_spec in
11155 *\;*)
11156 # if the path contains ";" then we assume it to be the separator
11157 # otherwise default to the standard path separator (i.e. ":") - it is
11158 # assumed that no part of a normal pathname contains ";" but that should
11159 # okay in the real world where ";" in dirpaths is itself problematic.
11160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11165 esac
11166 # Ok, now we have the path, separated by spaces, we can step through it
11167 # and add multilib dir if necessary.
11168 lt_tmp_lt_search_path_spec=
11169 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11170 for lt_sys_path in $lt_search_path_spec; do
11171 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11172 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11173 else
11174 test -d "$lt_sys_path" && \
11175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11177 done
11178 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11179 BEGIN {RS=" "; FS="/|\n";} {
11180 lt_foo="";
11181 lt_count=0;
11182 for (lt_i = NF; lt_i > 0; lt_i--) {
11183 if ($lt_i != "" && $lt_i != ".") {
11184 if ($lt_i == "..") {
11185 lt_count++;
11186 } else {
11187 if (lt_count == 0) {
11188 lt_foo="/" $lt_i lt_foo;
11189 } else {
11190 lt_count--;
11195 if (lt_foo != "") { lt_freq[lt_foo]++; }
11196 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11198 # AWK program above erroneously prepends '/' to C:/dos/paths
11199 # for these hosts.
11200 case $host_os in
11201 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11202 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11203 esac
11204 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11205 else
11206 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11208 library_names_spec=
11209 libname_spec='lib$name'
11210 soname_spec=
11211 shrext_cmds=".so"
11212 postinstall_cmds=
11213 postuninstall_cmds=
11214 finish_cmds=
11215 finish_eval=
11216 shlibpath_var=
11217 shlibpath_overrides_runpath=unknown
11218 version_type=none
11219 dynamic_linker="$host_os ld.so"
11220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11221 need_lib_prefix=unknown
11222 hardcode_into_libs=no
11224 # when you set need_version to no, make sure it does not cause -set_version
11225 # flags to be left without arguments
11226 need_version=unknown
11228 case $host_os in
11229 aix3*)
11230 version_type=linux
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11232 shlibpath_var=LIBPATH
11234 # AIX 3 has no versioning support, so we append a major version to the name.
11235 soname_spec='${libname}${release}${shared_ext}$major'
11238 aix[4-9]*)
11239 version_type=linux
11240 need_lib_prefix=no
11241 need_version=no
11242 hardcode_into_libs=yes
11243 if test "$host_cpu" = ia64; then
11244 # AIX 5 supports IA64
11245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 else
11248 # With GCC up to 2.95.x, collect2 would create an import file
11249 # for dependence libraries. The import file would start with
11250 # the line `#! .'. This would cause the generated library to
11251 # depend on `.', always an invalid library. This was fixed in
11252 # development snapshots of GCC prior to 3.0.
11253 case $host_os in
11254 aix4 | aix4.[01] | aix4.[01].*)
11255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11256 echo ' yes '
11257 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11259 else
11260 can_build_shared=no
11263 esac
11264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11265 # soname into executable. Probably we can add versioning support to
11266 # collect2, so additional links can be useful in future.
11267 if test "$aix_use_runtimelinking" = yes; then
11268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11269 # instead of lib<name>.a to let people know that these are not
11270 # typical AIX shared libraries.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 else
11273 # We preserve .a as extension for shared libraries through AIX4.2
11274 # and later when we are not doing run time linking.
11275 library_names_spec='${libname}${release}.a $libname.a'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11278 shlibpath_var=LIBPATH
11282 amigaos*)
11283 case $host_cpu in
11284 powerpc)
11285 # Since July 2007 AmigaOS4 officially supports .so libraries.
11286 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 m68k)
11290 library_names_spec='$libname.ixlibrary $libname.a'
11291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11292 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11294 esac
11297 beos*)
11298 library_names_spec='${libname}${shared_ext}'
11299 dynamic_linker="$host_os ld.so"
11300 shlibpath_var=LIBRARY_PATH
11303 bsdi[45]*)
11304 version_type=linux
11305 need_version=no
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11312 # the default ld.so.conf also contains /usr/contrib/lib and
11313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11314 # libtool to hard-code these into programs
11317 cygwin* | mingw* | pw32* | cegcc*)
11318 version_type=windows
11319 shrext_cmds=".dll"
11320 need_version=no
11321 need_lib_prefix=no
11323 case $GCC,$host_os in
11324 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11325 library_names_spec='$libname.dll.a'
11326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327 postinstall_cmds='base_file=`basename \${file}`~
11328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11329 dldir=$destdir/`dirname \$dlpath`~
11330 test -d \$dldir || mkdir -p \$dldir~
11331 $install_prog $dir/$dlname \$dldir/$dlname~
11332 chmod a+x \$dldir/$dlname~
11333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337 dlpath=$dir/\$dldll~
11338 $RM \$dlpath'
11339 shlibpath_overrides_runpath=yes
11341 case $host_os in
11342 cygwin*)
11343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11348 mingw* | cegcc*)
11349 # MinGW DLLs use traditional 'lib' prefix
11350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11352 pw32*)
11353 # pw32 DLLs use 'pw' prefix rather than 'lib'
11354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11356 esac
11360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11362 esac
11363 dynamic_linker='Win32 ld.exe'
11364 # FIXME: first we should search . and the directory the executable is in
11365 shlibpath_var=PATH
11368 darwin* | rhapsody*)
11369 dynamic_linker="$host_os dyld"
11370 version_type=darwin
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11374 soname_spec='${libname}${release}${major}$shared_ext'
11375 shlibpath_overrides_runpath=yes
11376 shlibpath_var=DYLD_LIBRARY_PATH
11377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11383 dgux*)
11384 version_type=linux
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 shlibpath_var=LD_LIBRARY_PATH
11392 freebsd* | dragonfly*)
11393 # DragonFly does not have aout. When/if they implement a new
11394 # versioning mechanism, adjust this.
11395 if test -x /usr/bin/objformat; then
11396 objformat=`/usr/bin/objformat`
11397 else
11398 case $host_os in
11399 freebsd[23].*) objformat=aout ;;
11400 *) objformat=elf ;;
11401 esac
11403 version_type=freebsd-$objformat
11404 case $version_type in
11405 freebsd-elf*)
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11407 need_version=no
11408 need_lib_prefix=no
11410 freebsd-*)
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11412 need_version=yes
11414 esac
11415 shlibpath_var=LD_LIBRARY_PATH
11416 case $host_os in
11417 freebsd2.*)
11418 shlibpath_overrides_runpath=yes
11420 freebsd3.[01]* | freebsdelf3.[01]*)
11421 shlibpath_overrides_runpath=yes
11422 hardcode_into_libs=yes
11424 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11425 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11426 shlibpath_overrides_runpath=no
11427 hardcode_into_libs=yes
11429 *) # from 4.6 on, and DragonFly
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11433 esac
11436 haiku*)
11437 version_type=linux
11438 need_lib_prefix=no
11439 need_version=no
11440 dynamic_linker="$host_os runtime_loader"
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11446 hardcode_into_libs=yes
11449 hpux9* | hpux10* | hpux11*)
11450 # Give a soname corresponding to the major version so that dld.sl refuses to
11451 # link against other versions.
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 case $host_cpu in
11456 ia64*)
11457 shrext_cmds='.so'
11458 hardcode_into_libs=yes
11459 dynamic_linker="$host_os dld.so"
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 if test "X$HPUX_IA64_MODE" = X32; then
11465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11466 else
11467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11471 hppa*64*)
11472 shrext_cmds='.sl'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11483 shrext_cmds='.sl'
11484 dynamic_linker="$host_os dld.sl"
11485 shlibpath_var=SHLIB_PATH
11486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11490 esac
11491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11492 postinstall_cmds='chmod 555 $lib'
11493 # or fails outright, so override atomically:
11494 install_override_mode=555
11497 interix[3-9]*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506 hardcode_into_libs=yes
11509 irix5* | irix6* | nonstopux*)
11510 case $host_os in
11511 nonstopux*) version_type=nonstopux ;;
11513 if test "$lt_cv_prog_gnu_ld" = yes; then
11514 version_type=linux
11515 else
11516 version_type=irix
11517 fi ;;
11518 esac
11519 need_lib_prefix=no
11520 need_version=no
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 case $host_os in
11524 irix5* | nonstopux*)
11525 libsuff= shlibsuff=
11528 case $LD in # libtool.m4 will add one of these switches to LD
11529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11530 libsuff= shlibsuff= libmagic=32-bit;;
11531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11532 libsuff=32 shlibsuff=N32 libmagic=N32;;
11533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11535 *) libsuff= shlibsuff= libmagic=never-match;;
11536 esac
11538 esac
11539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11540 shlibpath_overrides_runpath=no
11541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11543 hardcode_into_libs=yes
11546 # No shared lib support for Linux oldld, aout, or coff.
11547 linux*oldld* | linux*aout* | linux*coff*)
11548 dynamic_linker=no
11551 # This must be Linux ELF.
11553 # uclinux* changes (here and below) have been submitted to the libtool
11554 # project, but have not yet been accepted: they are GCC-local changes
11555 # for the time being. (See
11556 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11558 version_type=linux
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=no
11567 # Some binutils ld are patched to set DT_RUNPATH
11568 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 lt_cv_shlibpath_overrides_runpath=no
11572 save_LDFLAGS=$LDFLAGS
11573 save_libdir=$libdir
11574 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11575 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11576 if test x$gcc_no_link = xyes; then
11577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11583 main ()
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11592 lt_cv_shlibpath_overrides_runpath=yes
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LDFLAGS=$save_LDFLAGS
11598 libdir=$save_libdir
11602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11604 # This implies no fast_install, which is unacceptable.
11605 # Some rework will be needed to allow for fast_install
11606 # before this can be enabled.
11607 hardcode_into_libs=yes
11609 # Append ld.so.conf contents to the search path
11610 if test -f /etc/ld.so.conf; then
11611 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11615 # We used to test for /lib/ld.so.1 and disable shared libraries on
11616 # powerpc, because MkLinux only supported shared libraries with the
11617 # GNU dynamic linker. Since this was broken with cross compilers,
11618 # most powerpc-linux boxes support dynamic linking these days and
11619 # people can always --disable-shared, the test was removed, and we
11620 # assume the GNU/Linux dynamic linker is in use.
11621 dynamic_linker='GNU/Linux ld.so'
11624 netbsd*)
11625 version_type=sunos
11626 need_lib_prefix=no
11627 need_version=no
11628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11631 dynamic_linker='NetBSD (a.out) ld.so'
11632 else
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 dynamic_linker='NetBSD ld.elf_so'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11639 hardcode_into_libs=yes
11642 newsos6)
11643 version_type=linux
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=yes
11649 *nto* | *qnx*)
11650 version_type=qnx
11651 need_lib_prefix=no
11652 need_version=no
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11658 dynamic_linker='ldqnx.so'
11661 openbsd*)
11662 version_type=sunos
11663 sys_lib_dlsearch_path_spec="/usr/lib"
11664 need_lib_prefix=no
11665 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11666 case $host_os in
11667 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11668 *) need_version=no ;;
11669 esac
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11674 case $host_os in
11675 openbsd2.[89] | openbsd2.[89].*)
11676 shlibpath_overrides_runpath=no
11679 shlibpath_overrides_runpath=yes
11681 esac
11682 else
11683 shlibpath_overrides_runpath=yes
11687 os2*)
11688 libname_spec='$name'
11689 shrext_cmds=".dll"
11690 need_lib_prefix=no
11691 library_names_spec='$libname${shared_ext} $libname.a'
11692 dynamic_linker='OS/2 ld.exe'
11693 shlibpath_var=LIBPATH
11696 osf3* | osf4* | osf5*)
11697 version_type=osf
11698 need_lib_prefix=no
11699 need_version=no
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11707 rdos*)
11708 dynamic_linker=no
11711 solaris*)
11712 version_type=linux
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 # ldd complains unless libraries are executable
11721 postinstall_cmds='chmod +x $lib'
11724 sunos4*)
11725 version_type=sunos
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 if test "$with_gnu_ld" = yes; then
11731 need_lib_prefix=no
11733 need_version=yes
11736 sysv4 | sysv4.3*)
11737 version_type=linux
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 case $host_vendor in
11742 sni)
11743 shlibpath_overrides_runpath=no
11744 need_lib_prefix=no
11745 runpath_var=LD_RUN_PATH
11747 siemens)
11748 need_lib_prefix=no
11750 motorola)
11751 need_lib_prefix=no
11752 need_version=no
11753 shlibpath_overrides_runpath=no
11754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11756 esac
11759 sysv4*MP*)
11760 if test -d /usr/nec ;then
11761 version_type=linux
11762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11763 soname_spec='$libname${shared_ext}.$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11769 version_type=freebsd-elf
11770 need_lib_prefix=no
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 if test "$with_gnu_ld" = yes; then
11778 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11779 else
11780 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11781 case $host_os in
11782 sco3.2v5*)
11783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11785 esac
11787 sys_lib_dlsearch_path_spec='/usr/lib'
11790 tpf*)
11791 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11792 version_type=linux
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=no
11798 hardcode_into_libs=yes
11801 uts4*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11808 # Shared libraries for VwWorks, >= 7 only at this stage
11809 # and (fpic) still incompatible with "large" code models
11810 # in a few configurations. Only for RTP mode in any case,
11811 # and upon explicit request at configure time.
11812 vxworks7*)
11813 dynamic_linker=no
11814 case ${with_multisubdir}-${enable_shared} in
11815 *large*)
11817 *mrtp*-yes)
11818 version_type=linux
11819 need_lib_prefix=no
11820 need_version=no
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 dynamic_linker="$host_os module_loader"
11825 esac
11828 dynamic_linker=no
11830 esac
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11832 $as_echo "$dynamic_linker" >&6; }
11833 test "$dynamic_linker" = no && can_build_shared=no
11835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11836 if test "$GCC" = yes; then
11837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11840 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11841 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11843 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11844 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11939 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11940 hardcode_action=
11941 if test -n "$hardcode_libdir_flag_spec" ||
11942 test -n "$runpath_var" ||
11943 test "X$hardcode_automatic" = "Xyes" ; then
11945 # We can hardcode non-existent directories.
11946 if test "$hardcode_direct" != no &&
11947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11948 # have to relink, otherwise we might link with an installed library
11949 # when we should be linking with a yet-to-be-installed one
11950 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11951 test "$hardcode_minus_L" != no; then
11952 # Linking always hardcodes the temporary library directory.
11953 hardcode_action=relink
11954 else
11955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11956 hardcode_action=immediate
11958 else
11959 # We cannot hardcode anything, or else we can only hardcode existing
11960 # directories.
11961 hardcode_action=unsupported
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11964 $as_echo "$hardcode_action" >&6; }
11966 if test "$hardcode_action" = relink ||
11967 test "$inherit_rpath" = yes; then
11968 # Fast installation is not supported
11969 enable_fast_install=no
11970 elif test "$shlibpath_overrides_runpath" = yes ||
11971 test "$enable_shared" = no; then
11972 # Fast installation is not necessary
11973 enable_fast_install=needless
11981 if test "x$enable_dlopen" != xyes; then
11982 enable_dlopen=unknown
11983 enable_dlopen_self=unknown
11984 enable_dlopen_self_static=unknown
11985 else
11986 lt_cv_dlopen=no
11987 lt_cv_dlopen_libs=
11989 case $host_os in
11990 beos*)
11991 lt_cv_dlopen="load_add_on"
11992 lt_cv_dlopen_libs=
11993 lt_cv_dlopen_self=yes
11996 mingw* | pw32* | cegcc*)
11997 lt_cv_dlopen="LoadLibrary"
11998 lt_cv_dlopen_libs=
12001 cygwin*)
12002 lt_cv_dlopen="dlopen"
12003 lt_cv_dlopen_libs=
12006 darwin*)
12007 # if libdl is installed we need to link against it
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12009 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12010 if ${ac_cv_lib_dl_dlopen+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldl $LIBS"
12015 if test x$gcc_no_link = xyes; then
12016 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char dlopen ();
12029 main ()
12031 return dlopen ();
12033 return 0;
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_dl_dlopen=yes
12038 else
12039 ac_cv_lib_dl_dlopen=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12046 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12047 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12049 else
12051 lt_cv_dlopen="dyld"
12052 lt_cv_dlopen_libs=
12053 lt_cv_dlopen_self=yes
12060 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12061 if test "x$ac_cv_func_shl_load" = xyes; then :
12062 lt_cv_dlopen="shl_load"
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12065 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12066 if ${ac_cv_lib_dld_shl_load+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-ldld $LIBS"
12071 if test x$gcc_no_link = xyes; then
12072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char shl_load ();
12085 main ()
12087 return shl_load ();
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_dld_shl_load=yes
12094 else
12095 ac_cv_lib_dld_shl_load=no
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12102 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12103 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12104 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12105 else
12106 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12107 if test "x$ac_cv_func_dlopen" = xyes; then :
12108 lt_cv_dlopen="dlopen"
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12112 if ${ac_cv_lib_dl_dlopen+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-ldl $LIBS"
12117 if test x$gcc_no_link = xyes; then
12118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char dlopen ();
12131 main ()
12133 return dlopen ();
12135 return 0;
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_dl_dlopen=yes
12140 else
12141 ac_cv_lib_dl_dlopen=no
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12149 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12153 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12154 if ${ac_cv_lib_svld_dlopen+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 ac_check_lib_save_LIBS=$LIBS
12158 LIBS="-lsvld $LIBS"
12159 if test x$gcc_no_link = xyes; then
12160 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char dlopen ();
12173 main ()
12175 return dlopen ();
12177 return 0;
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_svld_dlopen=yes
12182 else
12183 ac_cv_lib_svld_dlopen=no
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12195 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12196 if ${ac_cv_lib_dld_dld_link+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-ldld $LIBS"
12201 if test x$gcc_no_link = xyes; then
12202 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dld_link ();
12215 main ()
12217 return dld_link ();
12219 return 0;
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_dld_dld_link=yes
12224 else
12225 ac_cv_lib_dld_dld_link=no
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12232 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12233 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12253 esac
12255 if test "x$lt_cv_dlopen" != xno; then
12256 enable_dlopen=yes
12257 else
12258 enable_dlopen=no
12261 case $lt_cv_dlopen in
12262 dlopen)
12263 save_CPPFLAGS="$CPPFLAGS"
12264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12266 save_LDFLAGS="$LDFLAGS"
12267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12269 save_LIBS="$LIBS"
12270 LIBS="$lt_cv_dlopen_libs $LIBS"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12273 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12274 if ${lt_cv_dlopen_self+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test "$cross_compiling" = yes; then :
12278 lt_cv_dlopen_self=cross
12279 else
12280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12281 lt_status=$lt_dlunknown
12282 cat > conftest.$ac_ext <<_LT_EOF
12283 #line 12283 "configure"
12284 #include "confdefs.h"
12286 #if HAVE_DLFCN_H
12287 #include <dlfcn.h>
12288 #endif
12290 #include <stdio.h>
12292 #ifdef RTLD_GLOBAL
12293 # define LT_DLGLOBAL RTLD_GLOBAL
12294 #else
12295 # ifdef DL_GLOBAL
12296 # define LT_DLGLOBAL DL_GLOBAL
12297 # else
12298 # define LT_DLGLOBAL 0
12299 # endif
12300 #endif
12302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12303 find out it does not work in some platform. */
12304 #ifndef LT_DLLAZY_OR_NOW
12305 # ifdef RTLD_LAZY
12306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12307 # else
12308 # ifdef DL_LAZY
12309 # define LT_DLLAZY_OR_NOW DL_LAZY
12310 # else
12311 # ifdef RTLD_NOW
12312 # define LT_DLLAZY_OR_NOW RTLD_NOW
12313 # else
12314 # ifdef DL_NOW
12315 # define LT_DLLAZY_OR_NOW DL_NOW
12316 # else
12317 # define LT_DLLAZY_OR_NOW 0
12318 # endif
12319 # endif
12320 # endif
12321 # endif
12322 #endif
12324 /* When -fvisbility=hidden is used, assume the code has been annotated
12325 correspondingly for the symbols needed. */
12326 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12327 void fnord () __attribute__((visibility("default")));
12328 #endif
12330 void fnord () { int i=42; }
12331 int main ()
12333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334 int status = $lt_dlunknown;
12336 if (self)
12338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12339 else
12341 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12342 else puts (dlerror ());
12344 /* dlclose (self); */
12346 else
12347 puts (dlerror ());
12349 return status;
12351 _LT_EOF
12352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12353 (eval $ac_link) 2>&5
12354 ac_status=$?
12355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12357 (./conftest; exit; ) >&5 2>/dev/null
12358 lt_status=$?
12359 case x$lt_status in
12360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363 esac
12364 else :
12365 # compilation failed
12366 lt_cv_dlopen_self=no
12369 rm -fr conftest*
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12374 $as_echo "$lt_cv_dlopen_self" >&6; }
12376 if test "x$lt_cv_dlopen_self" = xyes; then
12377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380 if ${lt_cv_dlopen_self_static+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test "$cross_compiling" = yes; then :
12384 lt_cv_dlopen_self_static=cross
12385 else
12386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387 lt_status=$lt_dlunknown
12388 cat > conftest.$ac_ext <<_LT_EOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12392 #if HAVE_DLFCN_H
12393 #include <dlfcn.h>
12394 #endif
12396 #include <stdio.h>
12398 #ifdef RTLD_GLOBAL
12399 # define LT_DLGLOBAL RTLD_GLOBAL
12400 #else
12401 # ifdef DL_GLOBAL
12402 # define LT_DLGLOBAL DL_GLOBAL
12403 # else
12404 # define LT_DLGLOBAL 0
12405 # endif
12406 #endif
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409 find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12411 # ifdef RTLD_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12413 # else
12414 # ifdef DL_LAZY
12415 # define LT_DLLAZY_OR_NOW DL_LAZY
12416 # else
12417 # ifdef RTLD_NOW
12418 # define LT_DLLAZY_OR_NOW RTLD_NOW
12419 # else
12420 # ifdef DL_NOW
12421 # define LT_DLLAZY_OR_NOW DL_NOW
12422 # else
12423 # define LT_DLLAZY_OR_NOW 0
12424 # endif
12425 # endif
12426 # endif
12427 # endif
12428 #endif
12430 /* When -fvisbility=hidden is used, assume the code has been annotated
12431 correspondingly for the symbols needed. */
12432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433 void fnord () __attribute__((visibility("default")));
12434 #endif
12436 void fnord () { int i=42; }
12437 int main ()
12439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440 int status = $lt_dlunknown;
12442 if (self)
12444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12445 else
12447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12448 else puts (dlerror ());
12450 /* dlclose (self); */
12452 else
12453 puts (dlerror ());
12455 return status;
12457 _LT_EOF
12458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459 (eval $ac_link) 2>&5
12460 ac_status=$?
12461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12463 (./conftest; exit; ) >&5 2>/dev/null
12464 lt_status=$?
12465 case x$lt_status in
12466 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12468 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12469 esac
12470 else :
12471 # compilation failed
12472 lt_cv_dlopen_self_static=no
12475 rm -fr conftest*
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12480 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12483 CPPFLAGS="$save_CPPFLAGS"
12484 LDFLAGS="$save_LDFLAGS"
12485 LIBS="$save_LIBS"
12487 esac
12489 case $lt_cv_dlopen_self in
12490 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12491 *) enable_dlopen_self=unknown ;;
12492 esac
12494 case $lt_cv_dlopen_self_static in
12495 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12496 *) enable_dlopen_self_static=unknown ;;
12497 esac
12516 striplib=
12517 old_striplib=
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12519 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12520 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12521 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12522 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12525 else
12526 # FIXME - insert some real tests, host_os isn't really good enough
12527 case $host_os in
12528 darwin*)
12529 if test -n "$STRIP" ; then
12530 striplib="$STRIP -x"
12531 old_striplib="$STRIP -S"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12543 esac
12557 # Report which library types will actually be built
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12559 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12561 $as_echo "$can_build_shared" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12564 $as_echo_n "checking whether to build shared libraries... " >&6; }
12565 test "$can_build_shared" = "no" && enable_shared=no
12567 # On AIX, shared libraries and static libraries use the same namespace, and
12568 # are all built from PIC.
12569 case $host_os in
12570 aix3*)
12571 test "$enable_shared" = yes && enable_static=no
12572 if test -n "$RANLIB"; then
12573 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12574 postinstall_cmds='$RANLIB $lib'
12578 aix[4-9]*)
12579 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12580 test "$enable_shared" = yes && enable_static=no
12583 esac
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12585 $as_echo "$enable_shared" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12588 $as_echo_n "checking whether to build static libraries... " >&6; }
12589 # Make sure either enable_shared or enable_static is yes.
12590 test "$enable_shared" = yes || enable_static=yes
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12592 $as_echo "$enable_static" >&6; }
12598 ac_ext=c
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12604 CC="$lt_save_CC"
12606 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12607 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12608 (test "X$CXX" != "Xg++"))) ; then
12609 ac_ext=cpp
12610 ac_cpp='$CXXCPP $CPPFLAGS'
12611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12615 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12616 if test -z "$CXXCPP"; then
12617 if ${ac_cv_prog_CXXCPP+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 # Double quotes because CXXCPP needs to be expanded
12621 for CXXCPP in "$CXX -E" "/lib/cpp"
12623 ac_preproc_ok=false
12624 for ac_cxx_preproc_warn_flag in '' yes
12626 # Use a header file that comes with gcc, so configuring glibc
12627 # with a fresh cross-compiler works.
12628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629 # <limits.h> exists even on freestanding compilers.
12630 # On the NeXT, cc -E runs the code through the compiler's parser,
12631 # not just through cpp. "Syntax error" is here to catch this case.
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #ifdef __STDC__
12635 # include <limits.h>
12636 #else
12637 # include <assert.h>
12638 #endif
12639 Syntax error
12640 _ACEOF
12641 if ac_fn_cxx_try_cpp "$LINENO"; then :
12643 else
12644 # Broken: fails on valid input.
12645 continue
12647 rm -f conftest.err conftest.i conftest.$ac_ext
12649 # OK, works on sane cases. Now check whether nonexistent headers
12650 # can be detected and how.
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <ac_nonexistent.h>
12654 _ACEOF
12655 if ac_fn_cxx_try_cpp "$LINENO"; then :
12656 # Broken: success on invalid input.
12657 continue
12658 else
12659 # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12663 rm -f conftest.err conftest.i conftest.$ac_ext
12665 done
12666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12667 rm -f conftest.i conftest.err conftest.$ac_ext
12668 if $ac_preproc_ok; then :
12669 break
12672 done
12673 ac_cv_prog_CXXCPP=$CXXCPP
12676 CXXCPP=$ac_cv_prog_CXXCPP
12677 else
12678 ac_cv_prog_CXXCPP=$CXXCPP
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12681 $as_echo "$CXXCPP" >&6; }
12682 ac_preproc_ok=false
12683 for ac_cxx_preproc_warn_flag in '' yes
12685 # Use a header file that comes with gcc, so configuring glibc
12686 # with a fresh cross-compiler works.
12687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12688 # <limits.h> exists even on freestanding compilers.
12689 # On the NeXT, cc -E runs the code through the compiler's parser,
12690 # not just through cpp. "Syntax error" is here to catch this case.
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #ifdef __STDC__
12694 # include <limits.h>
12695 #else
12696 # include <assert.h>
12697 #endif
12698 Syntax error
12699 _ACEOF
12700 if ac_fn_cxx_try_cpp "$LINENO"; then :
12702 else
12703 # Broken: fails on valid input.
12704 continue
12706 rm -f conftest.err conftest.i conftest.$ac_ext
12708 # OK, works on sane cases. Now check whether nonexistent headers
12709 # can be detected and how.
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 #include <ac_nonexistent.h>
12713 _ACEOF
12714 if ac_fn_cxx_try_cpp "$LINENO"; then :
12715 # Broken: success on invalid input.
12716 continue
12717 else
12718 # Passes both tests.
12719 ac_preproc_ok=:
12720 break
12722 rm -f conftest.err conftest.i conftest.$ac_ext
12724 done
12725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12726 rm -f conftest.i conftest.err conftest.$ac_ext
12727 if $ac_preproc_ok; then :
12729 else
12730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12732 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12733 See \`config.log' for more details" "$LINENO" 5; }
12736 ac_ext=c
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742 else
12743 _lt_caught_CXX_error=yes
12746 ac_ext=cpp
12747 ac_cpp='$CXXCPP $CPPFLAGS'
12748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12752 archive_cmds_need_lc_CXX=no
12753 allow_undefined_flag_CXX=
12754 always_export_symbols_CXX=no
12755 archive_expsym_cmds_CXX=
12756 compiler_needs_object_CXX=no
12757 export_dynamic_flag_spec_CXX=
12758 hardcode_direct_CXX=no
12759 hardcode_direct_absolute_CXX=no
12760 hardcode_libdir_flag_spec_CXX=
12761 hardcode_libdir_flag_spec_ld_CXX=
12762 hardcode_libdir_separator_CXX=
12763 hardcode_minus_L_CXX=no
12764 hardcode_shlibpath_var_CXX=unsupported
12765 hardcode_automatic_CXX=no
12766 inherit_rpath_CXX=no
12767 module_cmds_CXX=
12768 module_expsym_cmds_CXX=
12769 link_all_deplibs_CXX=unknown
12770 old_archive_cmds_CXX=$old_archive_cmds
12771 reload_flag_CXX=$reload_flag
12772 reload_cmds_CXX=$reload_cmds
12773 no_undefined_flag_CXX=
12774 whole_archive_flag_spec_CXX=
12775 enable_shared_with_static_runtimes_CXX=no
12777 # Source file extension for C++ test sources.
12778 ac_ext=cpp
12780 # Object file extension for compiled C++ test sources.
12781 objext=o
12782 objext_CXX=$objext
12784 # No sense in running all these tests if we already determined that
12785 # the CXX compiler isn't working. Some variables (like enable_shared)
12786 # are currently assumed to apply to all compilers on this platform,
12787 # and will be corrupted by setting them based on a non-working compiler.
12788 if test "$_lt_caught_CXX_error" != yes; then
12789 # Code to be used in simple compile tests
12790 lt_simple_compile_test_code="int some_variable = 0;"
12792 # Code to be used in simple link tests
12793 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12802 # If no C compiler was specified, use CC.
12803 LTCC=${LTCC-"$CC"}
12805 # If no C compiler flags were specified, use CFLAGS.
12806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12808 # Allow CC to be a program name with arguments.
12809 compiler=$CC
12812 # save warnings/boilerplate of simple test code
12813 ac_outfile=conftest.$ac_objext
12814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12816 _lt_compiler_boilerplate=`cat conftest.err`
12817 $RM conftest*
12819 ac_outfile=conftest.$ac_objext
12820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12822 _lt_linker_boilerplate=`cat conftest.err`
12823 $RM -r conftest*
12826 # Allow CC to be a program name with arguments.
12827 lt_save_CC=$CC
12828 lt_save_LD=$LD
12829 lt_save_GCC=$GCC
12830 GCC=$GXX
12831 lt_save_with_gnu_ld=$with_gnu_ld
12832 lt_save_path_LD=$lt_cv_path_LD
12833 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12834 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12835 else
12836 $as_unset lt_cv_prog_gnu_ld
12838 if test -n "${lt_cv_path_LDCXX+set}"; then
12839 lt_cv_path_LD=$lt_cv_path_LDCXX
12840 else
12841 $as_unset lt_cv_path_LD
12843 test -z "${LDCXX+set}" || LD=$LDCXX
12844 CC=${CXX-"c++"}
12845 compiler=$CC
12846 compiler_CXX=$CC
12847 for cc_temp in $compiler""; do
12848 case $cc_temp in
12849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12851 \-*) ;;
12852 *) break;;
12853 esac
12854 done
12855 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12858 if test -n "$compiler"; then
12859 # We don't want -fno-exception when compiling C++ code, so set the
12860 # no_builtin_flag separately
12861 if test "$GXX" = yes; then
12862 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12863 else
12864 lt_prog_compiler_no_builtin_flag_CXX=
12867 if test "$GXX" = yes; then
12868 # Set up default GNU C++ configuration
12872 # Check whether --with-gnu-ld was given.
12873 if test "${with_gnu_ld+set}" = set; then :
12874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12875 else
12876 with_gnu_ld=no
12879 ac_prog=ld
12880 if test "$GCC" = yes; then
12881 # Check if gcc -print-prog-name=ld gives a path.
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12883 $as_echo_n "checking for ld used by $CC... " >&6; }
12884 case $host in
12885 *-*-mingw*)
12886 # gcc leaves a trailing carriage return which upsets mingw
12887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12890 esac
12891 case $ac_prog in
12892 # Accept absolute paths.
12893 [\\/]* | ?:[\\/]*)
12894 re_direlt='/[^/][^/]*/\.\./'
12895 # Canonicalize the pathname of ld
12896 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12897 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12898 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12899 done
12900 test -z "$LD" && LD="$ac_prog"
12903 # If it fails, then pretend we aren't using GCC.
12904 ac_prog=ld
12907 # If it is relative, then search for the first ld in PATH.
12908 with_gnu_ld=unknown
12910 esac
12911 elif test "$with_gnu_ld" = yes; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12913 $as_echo_n "checking for GNU ld... " >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12916 $as_echo_n "checking for non-GNU ld... " >&6; }
12918 if ${lt_cv_path_LD+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 if test -z "$LD"; then
12922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12923 for ac_dir in $PATH; do
12924 IFS="$lt_save_ifs"
12925 test -z "$ac_dir" && ac_dir=.
12926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12927 lt_cv_path_LD="$ac_dir/$ac_prog"
12928 # Check to see if the program is GNU ld. I'd rather use --version,
12929 # but apparently some variants of GNU ld only accept -v.
12930 # Break only if it was the GNU/non-GNU ld that we prefer.
12931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12932 *GNU* | *'with BFD'*)
12933 test "$with_gnu_ld" != no && break
12936 test "$with_gnu_ld" != yes && break
12938 esac
12940 done
12941 IFS="$lt_save_ifs"
12942 else
12943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12947 LD="$lt_cv_path_LD"
12948 if test -n "$LD"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12950 $as_echo "$LD" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12955 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12957 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12958 if ${lt_cv_prog_gnu_ld+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12962 case `$LD -v 2>&1 </dev/null` in
12963 *GNU* | *'with BFD'*)
12964 lt_cv_prog_gnu_ld=yes
12967 lt_cv_prog_gnu_ld=no
12969 esac
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12972 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12973 with_gnu_ld=$lt_cv_prog_gnu_ld
12981 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12982 # archiving commands below assume that GNU ld is being used.
12983 if test "$with_gnu_ld" = yes; then
12984 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12985 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990 # If archive_cmds runs LD, not CC, wlarc should be empty
12991 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12992 # investigate it a little bit more. (MM)
12993 wlarc='${wl}'
12995 # ancient GNU ld didn't support --whole-archive et. al.
12996 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12997 $GREP 'no-whole-archive' > /dev/null; then
12998 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12999 else
13000 whole_archive_flag_spec_CXX=
13002 else
13003 with_gnu_ld=no
13004 wlarc=
13006 # A generic and very simple default shared library creation
13007 # command for GNU C++ for the case where it uses the native
13008 # linker, instead of GNU ld. If possible, this setting should
13009 # overridden to take advantage of the native linker features on
13010 # the platform it is being used on.
13011 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13014 # Commands to make compiler produce verbose output that lists
13015 # what "hidden" libraries, object files and flags are used when
13016 # linking a shared library.
13017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13019 else
13020 GXX=no
13021 with_gnu_ld=no
13022 wlarc=
13025 # PORTME: fill in a description of your system's C++ link characteristics
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13027 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13028 ld_shlibs_CXX=yes
13029 case $host_os in
13030 aix3*)
13031 # FIXME: insert proper C++ library support
13032 ld_shlibs_CXX=no
13034 aix[4-9]*)
13035 if test "$host_cpu" = ia64; then
13036 # On IA64, the linker does run time linking by default, so we don't
13037 # have to do anything special.
13038 aix_use_runtimelinking=no
13039 exp_sym_flag='-Bexport'
13040 no_entry_flag=""
13041 else
13042 aix_use_runtimelinking=no
13044 # Test if we are trying to use run time linking or normal
13045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046 # need to do runtime linking.
13047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13048 for ld_flag in $LDFLAGS; do
13049 case $ld_flag in
13050 *-brtl*)
13051 aix_use_runtimelinking=yes
13052 break
13054 esac
13055 done
13057 esac
13059 exp_sym_flag='-bexport'
13060 no_entry_flag='-bnoentry'
13063 # When large executables or shared objects are built, AIX ld can
13064 # have problems creating the table of contents. If linking a library
13065 # or program results in "error TOC overflow" add -mminimal-toc to
13066 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13067 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13069 archive_cmds_CXX=''
13070 hardcode_direct_CXX=yes
13071 hardcode_direct_absolute_CXX=yes
13072 hardcode_libdir_separator_CXX=':'
13073 link_all_deplibs_CXX=yes
13074 file_list_spec_CXX='${wl}-f,'
13076 if test "$GXX" = yes; then
13077 case $host_os in aix4.[012]|aix4.[012].*)
13078 # We only want to do this on AIX 4.2 and lower, the check
13079 # below for broken collect2 doesn't work under 4.3+
13080 collect2name=`${CC} -print-prog-name=collect2`
13081 if test -f "$collect2name" &&
13082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13083 then
13084 # We have reworked collect2
13086 else
13087 # We have old collect2
13088 hardcode_direct_CXX=unsupported
13089 # It fails to find uninstalled libraries when the uninstalled
13090 # path is not listed in the libpath. Setting hardcode_minus_L
13091 # to unsupported forces relinking
13092 hardcode_minus_L_CXX=yes
13093 hardcode_libdir_flag_spec_CXX='-L$libdir'
13094 hardcode_libdir_separator_CXX=
13096 esac
13097 shared_flag='-shared'
13098 if test "$aix_use_runtimelinking" = yes; then
13099 shared_flag="$shared_flag "'${wl}-G'
13101 else
13102 # not using gcc
13103 if test "$host_cpu" = ia64; then
13104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13105 # chokes on -Wl,-G. The following line is correct:
13106 shared_flag='-G'
13107 else
13108 if test "$aix_use_runtimelinking" = yes; then
13109 shared_flag='${wl}-G'
13110 else
13111 shared_flag='${wl}-bM:SRE'
13116 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13117 # It seems that -bexpall does not export symbols beginning with
13118 # underscore (_), so it is better to generate a list of symbols to
13119 # export.
13120 always_export_symbols_CXX=yes
13121 if test "$aix_use_runtimelinking" = yes; then
13122 # Warning - without using the other runtime loading flags (-brtl),
13123 # -berok will link without error, but may produce a broken library.
13124 allow_undefined_flag_CXX='-berok'
13125 # Determine the default libpath from the value encoded in an empty
13126 # executable.
13127 if test x$gcc_no_link = xyes; then
13128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13134 main ()
13138 return 0;
13140 _ACEOF
13141 if ac_fn_cxx_try_link "$LINENO"; then :
13143 lt_aix_libpath_sed='
13144 /Import File Strings/,/^$/ {
13145 /^0/ {
13146 s/^0 *\(.*\)$/\1/
13150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13151 # Check for a 64-bit object if we didn't find anything.
13152 if test -z "$aix_libpath"; then
13153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13162 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13163 else
13164 if test "$host_cpu" = ia64; then
13165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13166 allow_undefined_flag_CXX="-z nodefs"
13167 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13168 else
13169 # Determine the default libpath from the value encoded in an
13170 # empty executable.
13171 if test x$gcc_no_link = xyes; then
13172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13178 main ()
13182 return 0;
13184 _ACEOF
13185 if ac_fn_cxx_try_link "$LINENO"; then :
13187 lt_aix_libpath_sed='
13188 /Import File Strings/,/^$/ {
13189 /^0/ {
13190 s/^0 *\(.*\)$/\1/
13194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13195 # Check for a 64-bit object if we didn't find anything.
13196 if test -z "$aix_libpath"; then
13197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13204 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13205 # Warning - without using the other run time loading flags,
13206 # -berok will link without error, but may produce a broken library.
13207 no_undefined_flag_CXX=' ${wl}-bernotok'
13208 allow_undefined_flag_CXX=' ${wl}-berok'
13209 if test "$with_gnu_ld" = yes; then
13210 # We only use this code for GNU lds that support --whole-archive.
13211 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13212 else
13213 # Exported symbols can be pulled into shared objects from archives
13214 whole_archive_flag_spec_CXX='$convenience'
13216 archive_cmds_need_lc_CXX=yes
13217 # This is similar to how AIX traditionally builds its shared
13218 # libraries.
13219 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13224 beos*)
13225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226 allow_undefined_flag_CXX=unsupported
13227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13228 # support --undefined. This deserves some investigation. FIXME
13229 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13230 else
13231 ld_shlibs_CXX=no
13235 chorus*)
13236 case $cc_basename in
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13241 esac
13244 cygwin* | mingw* | pw32* | cegcc*)
13245 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13246 # as there is no search path for DLLs.
13247 hardcode_libdir_flag_spec_CXX='-L$libdir'
13248 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13249 allow_undefined_flag_CXX=unsupported
13250 always_export_symbols_CXX=no
13251 enable_shared_with_static_runtimes_CXX=yes
13253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13255 # If the export-symbols file already is a .def file (1st line
13256 # is EXPORTS), use it as is; otherwise, prepend...
13257 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13258 cp $export_symbols $output_objdir/$soname.def;
13259 else
13260 echo EXPORTS > $output_objdir/$soname.def;
13261 cat $export_symbols >> $output_objdir/$soname.def;
13263 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13264 else
13265 ld_shlibs_CXX=no
13268 darwin* | rhapsody*)
13272 # Publish an arg to allow the user to select that Darwin host (and target)
13273 # libraries should be given install-names like @rpath/libfoo.dylib. This
13274 # requires that the user of the library then adds an 'rpath' to the DSO that
13275 # needs access.
13276 # NOTE: there are defaults below, for systems that support rpaths. The person
13277 # configuring can override the defaults for any system version that supports
13278 # them - they are, however, forced off for system versions without support.
13279 # Check whether --enable-darwin-at-rpath was given.
13280 if test "${enable_darwin_at_rpath+set}" = set; then :
13281 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13282 # This is not supported before macOS 10.5 / Darwin9.
13283 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13284 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13286 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13287 enable_darwin_at_rpath=no
13289 esac
13291 else
13292 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13293 # As above, before 10.5 / Darwin9 this does not work.
13294 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13295 enable_darwin_at_rpath=no
13298 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13299 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13300 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13301 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13303 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13304 enable_darwin_at_rpath=yes
13306 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13307 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13309 esac
13314 archive_cmds_need_lc_CXX=no
13315 hardcode_direct_CXX=no
13316 hardcode_automatic_CXX=yes
13317 hardcode_shlibpath_var_CXX=unsupported
13318 if test "$lt_cv_ld_force_load" = "yes"; then
13319 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13320 else
13321 whole_archive_flag_spec_CXX=''
13323 link_all_deplibs_CXX=yes
13324 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13325 case $cc_basename in
13326 ifort*) _lt_dar_can_shared=yes ;;
13327 *) _lt_dar_can_shared=$GCC ;;
13328 esac
13329 if test "$_lt_dar_can_shared" = "yes"; then
13330 output_verbose_link_cmd=func_echo_all
13331 _lt_install_name='\$rpath/\$soname'
13332 if test "x$enable_darwin_at_rpath" = "xyes"; then
13333 _lt_install_name='@rpath/\$soname'
13335 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13336 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13337 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13338 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13339 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13340 _lt_install_name='\$rpath/\$soname'
13341 if test "x$enable_darwin_at_rpath" = "xyes"; then
13342 _lt_install_name='@rpath/\$soname'
13344 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
13345 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13348 else
13349 ld_shlibs_CXX=no
13354 dgux*)
13355 case $cc_basename in
13356 ec++*)
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13360 ghcx*)
13361 # Green Hills C++ Compiler
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13366 # FIXME: insert proper C++ library support
13367 ld_shlibs_CXX=no
13369 esac
13372 freebsd2.*)
13373 # C++ shared libraries reported to be fairly broken before
13374 # switch to ELF
13375 ld_shlibs_CXX=no
13378 freebsd-elf*)
13379 archive_cmds_need_lc_CXX=no
13382 freebsd* | dragonfly*)
13383 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13384 # conventions
13385 ld_shlibs_CXX=yes
13388 gnu*)
13391 haiku*)
13392 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393 link_all_deplibs_CXX=yes
13396 hpux9*)
13397 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13398 hardcode_libdir_separator_CXX=:
13399 export_dynamic_flag_spec_CXX='${wl}-E'
13400 hardcode_direct_CXX=yes
13401 hardcode_minus_L_CXX=yes # Not in the search PATH,
13402 # but as the default
13403 # location of the library.
13405 case $cc_basename in
13406 CC*)
13407 # FIXME: insert proper C++ library support
13408 ld_shlibs_CXX=no
13410 aCC*)
13411 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13412 # Commands to make compiler produce verbose output that lists
13413 # what "hidden" libraries, object files and flags are used when
13414 # linking a shared library.
13416 # There doesn't appear to be a way to prevent this compiler from
13417 # explicitly linking system object files so we need to strip them
13418 # from the output so that they don't get included in the library
13419 # dependencies.
13420 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13423 if test "$GXX" = yes; then
13424 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13425 else
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13430 esac
13433 hpux10*|hpux11*)
13434 if test $with_gnu_ld = no; then
13435 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13436 hardcode_libdir_separator_CXX=:
13438 case $host_cpu in
13439 hppa*64*|ia64*)
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13444 esac
13446 case $host_cpu in
13447 hppa*64*|ia64*)
13448 hardcode_direct_CXX=no
13449 hardcode_shlibpath_var_CXX=no
13452 hardcode_direct_CXX=yes
13453 hardcode_direct_absolute_CXX=yes
13454 hardcode_minus_L_CXX=yes # Not in the search PATH,
13455 # but as the default
13456 # location of the library.
13458 esac
13460 case $cc_basename in
13461 CC*)
13462 # FIXME: insert proper C++ library support
13463 ld_shlibs_CXX=no
13465 aCC*)
13466 case $host_cpu in
13467 hppa*64*)
13468 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 ia64*)
13471 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13476 esac
13477 # Commands to make compiler produce verbose output that lists
13478 # what "hidden" libraries, object files and flags are used when
13479 # linking a shared library.
13481 # There doesn't appear to be a way to prevent this compiler from
13482 # explicitly linking system object files so we need to strip them
13483 # from the output so that they don't get included in the library
13484 # dependencies.
13485 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13488 if test "$GXX" = yes; then
13489 if test $with_gnu_ld = no; then
13490 case $host_cpu in
13491 hppa*64*)
13492 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13494 ia64*)
13495 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13498 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13500 esac
13502 else
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13507 esac
13510 interix[3-9]*)
13511 hardcode_direct_CXX=no
13512 hardcode_shlibpath_var_CXX=no
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13514 export_dynamic_flag_spec_CXX='${wl}-E'
13515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13516 # Instead, shared libraries are loaded at an image base (0x10000000 by
13517 # default) and relocated if they conflict, which is a slow very memory
13518 # consuming and fragmenting process. To avoid this, we pick a random,
13519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13521 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13522 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13524 irix5* | irix6*)
13525 case $cc_basename in
13526 CC*)
13527 # SGI C++
13528 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13530 # Archives containing C++ object files must be created using
13531 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13532 # necessary to make sure instantiated templates are included
13533 # in the archive.
13534 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13537 if test "$GXX" = yes; then
13538 if test "$with_gnu_ld" = no; then
13539 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13540 else
13541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13544 link_all_deplibs_CXX=yes
13546 esac
13547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13548 hardcode_libdir_separator_CXX=:
13549 inherit_rpath_CXX=yes
13552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13553 case $cc_basename in
13554 KCC*)
13555 # Kuck and Associates, Inc. (KAI) C++ Compiler
13557 # KCC will only create a shared library if the output file
13558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13559 # to its proper name (with version) after linking.
13560 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13561 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13566 # There doesn't appear to be a way to prevent this compiler from
13567 # explicitly linking system object files so we need to strip them
13568 # from the output so that they don't get included in the library
13569 # dependencies.
13570 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13575 # Archives containing C++ object files must be created using
13576 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13577 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13579 icpc* | ecpc* )
13580 # Intel C++
13581 with_gnu_ld=yes
13582 # version 8.0 and above of icpc choke on multiply defined symbols
13583 # if we add $predep_objects and $postdep_objects, however 7.1 and
13584 # earlier do not add the objects themselves.
13585 case `$CC -V 2>&1` in
13586 *"Version 7."*)
13587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13590 *) # Version 8.0 or newer
13591 tmp_idyn=
13592 case $host_cpu in
13593 ia64*) tmp_idyn=' -i_dynamic';;
13594 esac
13595 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13598 esac
13599 archive_cmds_need_lc_CXX=no
13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13602 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13604 pgCC* | pgcpp*)
13605 # Portland Group C++ compiler
13606 case `$CC -V` in
13607 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13608 prelink_cmds_CXX='tpldir=Template.dir~
13609 rm -rf $tpldir~
13610 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13611 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13612 old_archive_cmds_CXX='tpldir=Template.dir~
13613 rm -rf $tpldir~
13614 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13615 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13616 $RANLIB $oldlib'
13617 archive_cmds_CXX='tpldir=Template.dir~
13618 rm -rf $tpldir~
13619 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13620 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13621 archive_expsym_cmds_CXX='tpldir=Template.dir~
13622 rm -rf $tpldir~
13623 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13624 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13626 *) # Version 6 and above use weak symbols
13627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13628 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13630 esac
13632 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13634 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13636 cxx*)
13637 # Compaq C++
13638 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13641 runpath_var=LD_RUN_PATH
13642 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13643 hardcode_libdir_separator_CXX=:
13645 # Commands to make compiler produce verbose output that lists
13646 # what "hidden" libraries, object files and flags are used when
13647 # linking a shared library.
13649 # There doesn't appear to be a way to prevent this compiler from
13650 # explicitly linking system object files so we need to strip them
13651 # from the output so that they don't get included in the library
13652 # dependencies.
13653 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13655 xl* | mpixl* | bgxl*)
13656 # IBM XL 8.0 on PPC, with GNU ld
13657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13659 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 if test "x$supports_anon_versioning" = xyes; then
13661 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13663 echo "local: *; };" >> $output_objdir/$libname.ver~
13664 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13668 case `$CC -V 2>&1 | sed 5q` in
13669 *Sun\ C*)
13670 # Sun C++ 5.9
13671 no_undefined_flag_CXX=' -zdefs'
13672 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13673 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13674 hardcode_libdir_flag_spec_CXX='-R$libdir'
13675 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13676 compiler_needs_object_CXX=yes
13678 # Not sure whether something based on
13679 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13680 # would be better.
13681 output_verbose_link_cmd='func_echo_all'
13683 # Archives containing C++ object files must be created using
13684 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13685 # necessary to make sure instantiated templates are included
13686 # in the archive.
13687 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13689 esac
13691 esac
13694 lynxos*)
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13699 m88k*)
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13704 mvs*)
13705 case $cc_basename in
13706 cxx*)
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13711 # FIXME: insert proper C++ library support
13712 ld_shlibs_CXX=no
13714 esac
13717 netbsd*)
13718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13719 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13720 wlarc=
13721 hardcode_libdir_flag_spec_CXX='-R$libdir'
13722 hardcode_direct_CXX=yes
13723 hardcode_shlibpath_var_CXX=no
13725 # Workaround some broken pre-1.5 toolchains
13726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13729 *nto* | *qnx*)
13730 ld_shlibs_CXX=yes
13733 openbsd2*)
13734 # C++ shared libraries are fairly broken
13735 ld_shlibs_CXX=no
13738 openbsd*)
13739 if test -f /usr/libexec/ld.so; then
13740 hardcode_direct_CXX=yes
13741 hardcode_shlibpath_var_CXX=no
13742 hardcode_direct_absolute_CXX=yes
13743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13746 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13747 export_dynamic_flag_spec_CXX='${wl}-E'
13748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13750 output_verbose_link_cmd=func_echo_all
13751 else
13752 ld_shlibs_CXX=no
13756 osf3* | osf4* | osf5*)
13757 case $cc_basename in
13758 KCC*)
13759 # Kuck and Associates, Inc. (KAI) C++ Compiler
13761 # KCC will only create a shared library if the output file
13762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13763 # to its proper name (with version) after linking.
13764 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13767 hardcode_libdir_separator_CXX=:
13769 # Archives containing C++ object files must be created using
13770 # the KAI C++ compiler.
13771 case $host in
13772 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13773 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13774 esac
13776 RCC*)
13777 # Rational C++ 2.4.1
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13781 cxx*)
13782 case $host in
13783 osf3*)
13784 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13785 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13789 allow_undefined_flag_CXX=' -expect_unresolved \*'
13790 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13791 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13792 echo "-hidden">> $lib.exp~
13793 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13794 $RM $lib.exp'
13795 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13797 esac
13799 hardcode_libdir_separator_CXX=:
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13805 # There doesn't appear to be a way to prevent this compiler from
13806 # explicitly linking system object files so we need to strip them
13807 # from the output so that they don't get included in the library
13808 # dependencies.
13809 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13813 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13814 case $host in
13815 osf3*)
13816 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13819 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13821 esac
13823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13824 hardcode_libdir_separator_CXX=:
13826 # Commands to make compiler produce verbose output that lists
13827 # what "hidden" libraries, object files and flags are used when
13828 # linking a shared library.
13829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13831 else
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13836 esac
13839 psos*)
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13844 sunos4*)
13845 case $cc_basename in
13846 CC*)
13847 # Sun C++ 4.x
13848 # FIXME: insert proper C++ library support
13849 ld_shlibs_CXX=no
13851 lcc*)
13852 # Lucid
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13857 # FIXME: insert proper C++ library support
13858 ld_shlibs_CXX=no
13860 esac
13863 solaris*)
13864 case $cc_basename in
13865 CC*)
13866 # Sun C++ 4.2, 5.x and Centerline C++
13867 archive_cmds_need_lc_CXX=yes
13868 no_undefined_flag_CXX=' -zdefs'
13869 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13870 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13871 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13873 hardcode_libdir_flag_spec_CXX='-R$libdir'
13874 hardcode_shlibpath_var_CXX=no
13875 case $host_os in
13876 solaris2.[0-5] | solaris2.[0-5].*) ;;
13878 # The compiler driver will combine and reorder linker options,
13879 # but understands `-z linker_flag'.
13880 # Supported since Solaris 2.6 (maybe 2.5.1?)
13881 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13883 esac
13884 link_all_deplibs_CXX=yes
13886 output_verbose_link_cmd='func_echo_all'
13888 # Archives containing C++ object files must be created using
13889 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13890 # necessary to make sure instantiated templates are included
13891 # in the archive.
13892 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13894 gcx*)
13895 # Green Hills C++ Compiler
13896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13898 # The C++ compiler must be used to create the archive.
13899 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13902 # GNU C++ compiler with Solaris linker
13903 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13904 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13905 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13906 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13907 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13908 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13910 # Commands to make compiler produce verbose output that lists
13911 # what "hidden" libraries, object files and flags are used when
13912 # linking a shared library.
13913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13914 else
13915 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13916 # platform.
13917 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13918 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13919 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13921 # Commands to make compiler produce verbose output that lists
13922 # what "hidden" libraries, object files and flags are used when
13923 # linking a shared library.
13924 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13927 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13928 case $host_os in
13929 solaris2.[0-5] | solaris2.[0-5].*) ;;
13931 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13933 esac
13936 esac
13939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13940 no_undefined_flag_CXX='${wl}-z,text'
13941 archive_cmds_need_lc_CXX=no
13942 hardcode_shlibpath_var_CXX=no
13943 runpath_var='LD_RUN_PATH'
13945 case $cc_basename in
13946 CC*)
13947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 esac
13957 sysv5* | sco3.2v5* | sco5v6*)
13958 # Note: We can NOT use -z defs as we might desire, because we do not
13959 # link with -lc, and that would cause any symbols used from libc to
13960 # always be unresolved, which means just about no library would
13961 # ever link correctly. If we're not using GNU ld we use -z text
13962 # though, which does catch some bad symbols but isn't as heavy-handed
13963 # as -z defs.
13964 no_undefined_flag_CXX='${wl}-z,text'
13965 allow_undefined_flag_CXX='${wl}-z,nodefs'
13966 archive_cmds_need_lc_CXX=no
13967 hardcode_shlibpath_var_CXX=no
13968 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13969 hardcode_libdir_separator_CXX=':'
13970 link_all_deplibs_CXX=yes
13971 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13972 runpath_var='LD_RUN_PATH'
13974 case $cc_basename in
13975 CC*)
13976 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13979 '"$old_archive_cmds_CXX"
13980 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13981 '"$reload_cmds_CXX"
13984 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13985 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13987 esac
13990 tandem*)
13991 case $cc_basename in
13992 NCC*)
13993 # NonStop-UX NCC 3.20
13994 # FIXME: insert proper C++ library support
13995 ld_shlibs_CXX=no
13998 # FIXME: insert proper C++ library support
13999 ld_shlibs_CXX=no
14001 esac
14004 vxworks*)
14005 # For VxWorks ports, we assume the use of a GNU linker with
14006 # standard elf conventions.
14007 ld_shlibs_CXX=yes
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14014 esac
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14017 $as_echo "$ld_shlibs_CXX" >&6; }
14018 test "$ld_shlibs_CXX" = no && can_build_shared=no
14020 GCC_CXX="$GXX"
14021 LD_CXX="$LD"
14023 ## CAVEAT EMPTOR:
14024 ## There is no encapsulation within the following macros, do not change
14025 ## the running order or otherwise move them around unless you know exactly
14026 ## what you are doing...
14027 # Dependencies to place before and after the object being linked:
14028 predep_objects_CXX=
14029 postdep_objects_CXX=
14030 predeps_CXX=
14031 postdeps_CXX=
14032 compiler_lib_search_path_CXX=
14034 cat > conftest.$ac_ext <<_LT_EOF
14035 class Foo
14037 public:
14038 Foo (void) { a = 0; }
14039 private:
14040 int a;
14042 _LT_EOF
14044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14045 (eval $ac_compile) 2>&5
14046 ac_status=$?
14047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14048 test $ac_status = 0; }; then
14049 # Parse the compiler output and extract the necessary
14050 # objects, libraries and library flags.
14052 # Sentinel used to keep track of whether or not we are before
14053 # the conftest object file.
14054 pre_test_object_deps_done=no
14056 for p in `eval "$output_verbose_link_cmd"`; do
14057 case $p in
14059 -L* | -R* | -l*)
14060 # Some compilers place space between "-{L,R}" and the path.
14061 # Remove the space.
14062 if test $p = "-L" ||
14063 test $p = "-R"; then
14064 prev=$p
14065 continue
14066 else
14067 prev=
14070 if test "$pre_test_object_deps_done" = no; then
14071 case $p in
14072 -L* | -R*)
14073 # Internal compiler library paths should come after those
14074 # provided the user. The postdeps already come after the
14075 # user supplied libs so there is no need to process them.
14076 if test -z "$compiler_lib_search_path_CXX"; then
14077 compiler_lib_search_path_CXX="${prev}${p}"
14078 else
14079 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14082 # The "-l" case would never come before the object being
14083 # linked, so don't bother handling this case.
14084 esac
14085 else
14086 if test -z "$postdeps_CXX"; then
14087 postdeps_CXX="${prev}${p}"
14088 else
14089 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14094 *.$objext)
14095 # This assumes that the test object file only shows up
14096 # once in the compiler output.
14097 if test "$p" = "conftest.$objext"; then
14098 pre_test_object_deps_done=yes
14099 continue
14102 if test "$pre_test_object_deps_done" = no; then
14103 if test -z "$predep_objects_CXX"; then
14104 predep_objects_CXX="$p"
14105 else
14106 predep_objects_CXX="$predep_objects_CXX $p"
14108 else
14109 if test -z "$postdep_objects_CXX"; then
14110 postdep_objects_CXX="$p"
14111 else
14112 postdep_objects_CXX="$postdep_objects_CXX $p"
14117 *) ;; # Ignore the rest.
14119 esac
14120 done
14122 # Clean up.
14123 rm -f a.out a.exe
14124 else
14125 echo "libtool.m4: error: problem compiling CXX test program"
14128 $RM -f confest.$objext
14130 # PORTME: override above test on systems where it is broken
14131 case $host_os in
14132 interix[3-9]*)
14133 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14134 # hack all around it, let's just trust "g++" to DTRT.
14135 predep_objects_CXX=
14136 postdep_objects_CXX=
14137 postdeps_CXX=
14140 linux*)
14141 case `$CC -V 2>&1 | sed 5q` in
14142 *Sun\ C*)
14143 # Sun C++ 5.9
14145 # The more standards-conforming stlport4 library is
14146 # incompatible with the Cstd library. Avoid specifying
14147 # it if it's in CXXFLAGS. Ignore libCrun as
14148 # -library=stlport4 depends on it.
14149 case " $CXX $CXXFLAGS " in
14150 *" -library=stlport4 "*)
14151 solaris_use_stlport4=yes
14153 esac
14155 if test "$solaris_use_stlport4" != yes; then
14156 postdeps_CXX='-library=Cstd -library=Crun'
14159 esac
14162 solaris*)
14163 case $cc_basename in
14164 CC*)
14165 # The more standards-conforming stlport4 library is
14166 # incompatible with the Cstd library. Avoid specifying
14167 # it if it's in CXXFLAGS. Ignore libCrun as
14168 # -library=stlport4 depends on it.
14169 case " $CXX $CXXFLAGS " in
14170 *" -library=stlport4 "*)
14171 solaris_use_stlport4=yes
14173 esac
14175 # Adding this requires a known-good setup of shared libraries for
14176 # Sun compiler versions before 5.6, else PIC objects from an old
14177 # archive will be linked into the output, leading to subtle bugs.
14178 if test "$solaris_use_stlport4" != yes; then
14179 postdeps_CXX='-library=Cstd -library=Crun'
14182 esac
14184 esac
14187 case " $postdeps_CXX " in
14188 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14189 esac
14190 compiler_lib_search_dirs_CXX=
14191 if test -n "${compiler_lib_search_path_CXX}"; then
14192 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14225 lt_prog_compiler_wl_CXX=
14226 lt_prog_compiler_pic_CXX=
14227 lt_prog_compiler_static_CXX=
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14230 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14232 # C++ specific cases for pic, static, wl, etc.
14233 if test "$GXX" = yes; then
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_static_CXX='-static'
14237 case $host_os in
14238 aix*)
14239 # All AIX code is PIC.
14240 if test "$host_cpu" = ia64; then
14241 # AIX 5 now supports IA64 processor
14242 lt_prog_compiler_static_CXX='-Bstatic'
14244 lt_prog_compiler_pic_CXX='-fPIC'
14247 amigaos*)
14248 case $host_cpu in
14249 powerpc)
14250 # see comment about AmigaOS4 .so support
14251 lt_prog_compiler_pic_CXX='-fPIC'
14253 m68k)
14254 # FIXME: we need at least 68020 code to build shared libraries, but
14255 # adding the `-m68020' flag to GCC prevents building anything better,
14256 # like `-m68040'.
14257 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14259 esac
14262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14263 # PIC is the default for these OSes.
14265 mingw* | cygwin* | os2* | pw32* | cegcc*)
14266 # This hack is so that the source file can tell whether it is being
14267 # built for inclusion in a dll (and should export symbols for example).
14268 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14269 # (--disable-auto-import) libraries
14270 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14272 darwin* | rhapsody*)
14273 # PIC is the default on this platform
14274 # Common symbols not allowed in MH_DYLIB files
14275 lt_prog_compiler_pic_CXX='-fno-common'
14277 *djgpp*)
14278 # DJGPP does not support shared libraries at all
14279 lt_prog_compiler_pic_CXX=
14281 haiku*)
14282 # PIC is the default for Haiku.
14283 # The "-static" flag exists, but is broken.
14284 lt_prog_compiler_static_CXX=
14286 interix[3-9]*)
14287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14288 # Instead, we relocate shared libraries at runtime.
14290 sysv4*MP*)
14291 if test -d /usr/nec; then
14292 lt_prog_compiler_pic_CXX=-Kconform_pic
14295 hpux*)
14296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14298 # sets the default TLS model and affects inlining.
14299 case $host_cpu in
14300 hppa*64*)
14303 lt_prog_compiler_pic_CXX='-fPIC'
14305 esac
14307 *qnx* | *nto*)
14308 # QNX uses GNU C++, but need to define -shared option too, otherwise
14309 # it will coredump.
14310 lt_prog_compiler_pic_CXX='-fPIC -shared'
14313 lt_prog_compiler_pic_CXX='-fPIC'
14315 esac
14316 else
14317 case $host_os in
14318 aix[4-9]*)
14319 # All AIX code is PIC.
14320 if test "$host_cpu" = ia64; then
14321 # AIX 5 now supports IA64 processor
14322 lt_prog_compiler_static_CXX='-Bstatic'
14323 else
14324 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14327 chorus*)
14328 case $cc_basename in
14329 cxch68*)
14330 # Green Hills C++ Compiler
14331 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14333 esac
14335 dgux*)
14336 case $cc_basename in
14337 ec++*)
14338 lt_prog_compiler_pic_CXX='-KPIC'
14340 ghcx*)
14341 # Green Hills C++ Compiler
14342 lt_prog_compiler_pic_CXX='-pic'
14346 esac
14348 freebsd* | dragonfly*)
14349 # FreeBSD uses GNU C++
14351 hpux9* | hpux10* | hpux11*)
14352 case $cc_basename in
14353 CC*)
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14356 if test "$host_cpu" != ia64; then
14357 lt_prog_compiler_pic_CXX='+Z'
14360 aCC*)
14361 lt_prog_compiler_wl_CXX='-Wl,'
14362 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14363 case $host_cpu in
14364 hppa*64*|ia64*)
14365 # +Z the default
14368 lt_prog_compiler_pic_CXX='+Z'
14370 esac
14374 esac
14376 interix*)
14377 # This is c89, which is MS Visual C++ (no shared libs)
14378 # Anyone wants to do a port?
14380 irix5* | irix6* | nonstopux*)
14381 case $cc_basename in
14382 CC*)
14383 lt_prog_compiler_wl_CXX='-Wl,'
14384 lt_prog_compiler_static_CXX='-non_shared'
14385 # CC pic flag -KPIC is the default.
14389 esac
14391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14392 case $cc_basename in
14393 KCC*)
14394 # KAI C++ Compiler
14395 lt_prog_compiler_wl_CXX='--backend -Wl,'
14396 lt_prog_compiler_pic_CXX='-fPIC'
14398 ecpc* )
14399 # old Intel C++ for x86_64 which still supported -KPIC.
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_pic_CXX='-KPIC'
14402 lt_prog_compiler_static_CXX='-static'
14404 icpc* )
14405 # Intel C++, used to be incompatible with GCC.
14406 # ICC 10 doesn't accept -KPIC any more.
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-fPIC'
14409 lt_prog_compiler_static_CXX='-static'
14411 pgCC* | pgcpp*)
14412 # Portland Group C++ compiler
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-fpic'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14417 cxx*)
14418 # Compaq C++
14419 # Make sure the PIC flag is empty. It appears that all Alpha
14420 # Linux and Compaq Tru64 Unix objects are PIC.
14421 lt_prog_compiler_pic_CXX=
14422 lt_prog_compiler_static_CXX='-non_shared'
14424 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14425 # IBM XL 8.0, 9.0 on PPC and BlueGene
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 lt_prog_compiler_pic_CXX='-qpic'
14428 lt_prog_compiler_static_CXX='-qstaticlink'
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*)
14433 # Sun C++ 5.9
14434 lt_prog_compiler_pic_CXX='-KPIC'
14435 lt_prog_compiler_static_CXX='-Bstatic'
14436 lt_prog_compiler_wl_CXX='-Qoption ld '
14438 esac
14440 esac
14442 lynxos*)
14444 m88k*)
14446 mvs*)
14447 case $cc_basename in
14448 cxx*)
14449 lt_prog_compiler_pic_CXX='-W c,exportall'
14453 esac
14455 netbsd*)
14457 *qnx* | *nto*)
14458 # QNX uses GNU C++, but need to define -shared option too, otherwise
14459 # it will coredump.
14460 lt_prog_compiler_pic_CXX='-fPIC -shared'
14462 osf3* | osf4* | osf5*)
14463 case $cc_basename in
14464 KCC*)
14465 lt_prog_compiler_wl_CXX='--backend -Wl,'
14467 RCC*)
14468 # Rational C++ 2.4.1
14469 lt_prog_compiler_pic_CXX='-pic'
14471 cxx*)
14472 # Digital/Compaq C++
14473 lt_prog_compiler_wl_CXX='-Wl,'
14474 # Make sure the PIC flag is empty. It appears that all Alpha
14475 # Linux and Compaq Tru64 Unix objects are PIC.
14476 lt_prog_compiler_pic_CXX=
14477 lt_prog_compiler_static_CXX='-non_shared'
14481 esac
14483 psos*)
14485 solaris*)
14486 case $cc_basename in
14487 CC*)
14488 # Sun C++ 4.2, 5.x and Centerline C++
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14491 lt_prog_compiler_wl_CXX='-Qoption ld '
14493 gcx*)
14494 # Green Hills C++ Compiler
14495 lt_prog_compiler_pic_CXX='-PIC'
14499 esac
14501 sunos4*)
14502 case $cc_basename in
14503 CC*)
14504 # Sun C++ 4.x
14505 lt_prog_compiler_pic_CXX='-pic'
14506 lt_prog_compiler_static_CXX='-Bstatic'
14508 lcc*)
14509 # Lucid
14510 lt_prog_compiler_pic_CXX='-pic'
14514 esac
14516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_pic_CXX='-KPIC'
14521 lt_prog_compiler_static_CXX='-Bstatic'
14523 esac
14525 tandem*)
14526 case $cc_basename in
14527 NCC*)
14528 # NonStop-UX NCC 3.20
14529 lt_prog_compiler_pic_CXX='-KPIC'
14533 esac
14535 vxworks*)
14538 lt_prog_compiler_can_build_shared_CXX=no
14540 esac
14543 case $host_os in
14544 # For platforms which do not support PIC, -DPIC is meaningless:
14545 *djgpp*)
14546 lt_prog_compiler_pic_CXX=
14549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14551 esac
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14553 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14558 # Check to make sure the PIC flag actually works.
14560 if test -n "$lt_prog_compiler_pic_CXX"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14563 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 lt_cv_prog_compiler_pic_works_CXX=no
14567 ac_outfile=conftest.$ac_objext
14568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14570 # Insert the option either (1) after the last *FLAGS variable, or
14571 # (2) before a word containing "conftest.", or (3) at the end.
14572 # Note that $ac_compile itself does not contain backslashes and begins
14573 # with a dollar sign (not a hyphen), so the echo should work correctly.
14574 # The option is referenced via a variable to avoid confusing sed.
14575 lt_compile=`echo "$ac_compile" | $SED \
14576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14578 -e 's:$: $lt_compiler_flag:'`
14579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14580 (eval "$lt_compile" 2>conftest.err)
14581 ac_status=$?
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 if (exit $ac_status) && test -s "$ac_outfile"; then
14585 # The compiler can only warn and ignore the option if not recognized
14586 # So say no if there are warnings other than the usual output.
14587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14590 lt_cv_prog_compiler_pic_works_CXX=yes
14593 $RM conftest*
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14597 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14599 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14600 case $lt_prog_compiler_pic_CXX in
14601 "" | " "*) ;;
14602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14603 esac
14604 else
14605 lt_prog_compiler_pic_CXX=
14606 lt_prog_compiler_can_build_shared_CXX=no
14614 # Check to make sure the static flag actually works.
14616 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14618 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14619 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 lt_cv_prog_compiler_static_works_CXX=no
14623 save_LDFLAGS="$LDFLAGS"
14624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14627 # The linker can only warn and ignore the option if not recognized
14628 # So say no if there are warnings
14629 if test -s conftest.err; then
14630 # Append any errors to the config.log.
14631 cat conftest.err 1>&5
14632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14634 if diff conftest.exp conftest.er2 >/dev/null; then
14635 lt_cv_prog_compiler_static_works_CXX=yes
14637 else
14638 lt_cv_prog_compiler_static_works_CXX=yes
14641 $RM -r conftest*
14642 LDFLAGS="$save_LDFLAGS"
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14646 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14648 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14650 else
14651 lt_prog_compiler_static_CXX=
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14659 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 lt_cv_prog_compiler_c_o_CXX=no
14663 $RM -r conftest 2>/dev/null
14664 mkdir conftest
14665 cd conftest
14666 mkdir out
14667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="-o out/conftest2.$ac_objext"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 lt_compile=`echo "$ac_compile" | $SED \
14675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14677 -e 's:$: $lt_compiler_flag:'`
14678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14679 (eval "$lt_compile" 2>out/conftest.err)
14680 ac_status=$?
14681 cat out/conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14684 then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings
14687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14690 lt_cv_prog_compiler_c_o_CXX=yes
14693 chmod u+w . 2>&5
14694 $RM conftest*
14695 # SGI C++ compiler will create directory out/ii_files/ for
14696 # template instantiation
14697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14698 $RM out/* && rmdir out
14699 cd ..
14700 $RM -r conftest
14701 $RM conftest*
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14705 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14711 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 lt_cv_prog_compiler_c_o_CXX=no
14715 $RM -r conftest 2>/dev/null
14716 mkdir conftest
14717 cd conftest
14718 mkdir out
14719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 lt_compiler_flag="-o out/conftest2.$ac_objext"
14722 # Insert the option either (1) after the last *FLAGS variable, or
14723 # (2) before a word containing "conftest.", or (3) at the end.
14724 # Note that $ac_compile itself does not contain backslashes and begins
14725 # with a dollar sign (not a hyphen), so the echo should work correctly.
14726 lt_compile=`echo "$ac_compile" | $SED \
14727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14729 -e 's:$: $lt_compiler_flag:'`
14730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14731 (eval "$lt_compile" 2>out/conftest.err)
14732 ac_status=$?
14733 cat out/conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14736 then
14737 # The compiler can only warn and ignore the option if not recognized
14738 # So say no if there are warnings
14739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14742 lt_cv_prog_compiler_c_o_CXX=yes
14745 chmod u+w . 2>&5
14746 $RM conftest*
14747 # SGI C++ compiler will create directory out/ii_files/ for
14748 # template instantiation
14749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14750 $RM out/* && rmdir out
14751 cd ..
14752 $RM -r conftest
14753 $RM conftest*
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14762 hard_links="nottested"
14763 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14764 # do not overwrite the value of need_locks provided by the user
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14766 $as_echo_n "checking if we can lock with hard links... " >&6; }
14767 hard_links=yes
14768 $RM conftest*
14769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14770 touch conftest.a
14771 ln conftest.a conftest.b 2>&5 || hard_links=no
14772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14774 $as_echo "$hard_links" >&6; }
14775 if test "$hard_links" = no; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14777 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14778 need_locks=warn
14780 else
14781 need_locks=no
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14790 case $host_os in
14791 aix[4-9]*)
14792 # If we're using GNU nm, then we don't want the "-C" option.
14793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14794 # Also, AIX nm treats weak defined symbols like other global defined
14795 # symbols, whereas GNU nm marks them as "W".
14796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14797 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14798 else
14799 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14802 pw32*)
14803 export_symbols_cmds_CXX="$ltdll_cmds"
14805 cygwin* | mingw* | cegcc*)
14806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14811 esac
14812 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14815 $as_echo "$ld_shlibs_CXX" >&6; }
14816 test "$ld_shlibs_CXX" = no && can_build_shared=no
14818 with_gnu_ld_CXX=$with_gnu_ld
14826 # Do we need to explicitly link libc?
14828 case "x$archive_cmds_need_lc_CXX" in
14829 x|xyes)
14830 # Assume -lc should be added
14831 archive_cmds_need_lc_CXX=yes
14833 if test "$enable_shared" = yes && test "$GCC" = yes; then
14834 case $archive_cmds_CXX in
14835 *'~'*)
14836 # FIXME: we may have to deal with multi-command sequences.
14838 '$CC '*)
14839 # Test whether the compiler implicitly links with -lc since on some
14840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14841 # to ld, don't add -lc before -lgcc.
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14844 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 $RM conftest*
14848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14851 (eval $ac_compile) 2>&5
14852 ac_status=$?
14853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14854 test $ac_status = 0; } 2>conftest.err; then
14855 soname=conftest
14856 lib=conftest
14857 libobjs=conftest.$ac_objext
14858 deplibs=
14859 wl=$lt_prog_compiler_wl_CXX
14860 pic_flag=$lt_prog_compiler_pic_CXX
14861 compiler_flags=-v
14862 linker_flags=-v
14863 verstring=
14864 output_objdir=.
14865 libname=conftest
14866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14867 allow_undefined_flag_CXX=
14868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14869 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; }
14873 then
14874 lt_cv_archive_cmds_need_lc_CXX=no
14875 else
14876 lt_cv_archive_cmds_need_lc_CXX=yes
14878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14879 else
14880 cat conftest.err 1>&5
14882 $RM conftest*
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14886 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14887 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14889 esac
14892 esac
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14960 library_names_spec=
14961 libname_spec='lib$name'
14962 soname_spec=
14963 shrext_cmds=".so"
14964 postinstall_cmds=
14965 postuninstall_cmds=
14966 finish_cmds=
14967 finish_eval=
14968 shlibpath_var=
14969 shlibpath_overrides_runpath=unknown
14970 version_type=none
14971 dynamic_linker="$host_os ld.so"
14972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14973 need_lib_prefix=unknown
14974 hardcode_into_libs=no
14976 # when you set need_version to no, make sure it does not cause -set_version
14977 # flags to be left without arguments
14978 need_version=unknown
14980 case $host_os in
14981 aix3*)
14982 version_type=linux
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14984 shlibpath_var=LIBPATH
14986 # AIX 3 has no versioning support, so we append a major version to the name.
14987 soname_spec='${libname}${release}${shared_ext}$major'
14990 aix[4-9]*)
14991 version_type=linux
14992 need_lib_prefix=no
14993 need_version=no
14994 hardcode_into_libs=yes
14995 if test "$host_cpu" = ia64; then
14996 # AIX 5 supports IA64
14997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 else
15000 # With GCC up to 2.95.x, collect2 would create an import file
15001 # for dependence libraries. The import file would start with
15002 # the line `#! .'. This would cause the generated library to
15003 # depend on `.', always an invalid library. This was fixed in
15004 # development snapshots of GCC prior to 3.0.
15005 case $host_os in
15006 aix4 | aix4.[01] | aix4.[01].*)
15007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15008 echo ' yes '
15009 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15011 else
15012 can_build_shared=no
15015 esac
15016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15017 # soname into executable. Probably we can add versioning support to
15018 # collect2, so additional links can be useful in future.
15019 if test "$aix_use_runtimelinking" = yes; then
15020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15021 # instead of lib<name>.a to let people know that these are not
15022 # typical AIX shared libraries.
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 else
15025 # We preserve .a as extension for shared libraries through AIX4.2
15026 # and later when we are not doing run time linking.
15027 library_names_spec='${libname}${release}.a $libname.a'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LIBPATH
15034 amigaos*)
15035 case $host_cpu in
15036 powerpc)
15037 # Since July 2007 AmigaOS4 officially supports .so libraries.
15038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 m68k)
15042 library_names_spec='$libname.ixlibrary $libname.a'
15043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15044 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15046 esac
15049 beos*)
15050 library_names_spec='${libname}${shared_ext}'
15051 dynamic_linker="$host_os ld.so"
15052 shlibpath_var=LIBRARY_PATH
15055 bsdi[45]*)
15056 version_type=linux
15057 need_version=no
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15064 # the default ld.so.conf also contains /usr/contrib/lib and
15065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15066 # libtool to hard-code these into programs
15069 cygwin* | mingw* | pw32* | cegcc*)
15070 version_type=windows
15071 shrext_cmds=".dll"
15072 need_version=no
15073 need_lib_prefix=no
15075 case $GCC,$host_os in
15076 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15077 library_names_spec='$libname.dll.a'
15078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15079 postinstall_cmds='base_file=`basename \${file}`~
15080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15081 dldir=$destdir/`dirname \$dlpath`~
15082 test -d \$dldir || mkdir -p \$dldir~
15083 $install_prog $dir/$dlname \$dldir/$dlname~
15084 chmod a+x \$dldir/$dlname~
15085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15089 dlpath=$dir/\$dldll~
15090 $RM \$dlpath'
15091 shlibpath_overrides_runpath=yes
15093 case $host_os in
15094 cygwin*)
15095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15099 mingw* | cegcc*)
15100 # MinGW DLLs use traditional 'lib' prefix
15101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103 pw32*)
15104 # pw32 DLLs use 'pw' prefix rather than 'lib'
15105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 esac
15111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15113 esac
15114 dynamic_linker='Win32 ld.exe'
15115 # FIXME: first we should search . and the directory the executable is in
15116 shlibpath_var=PATH
15119 darwin* | rhapsody*)
15120 dynamic_linker="$host_os dyld"
15121 version_type=darwin
15122 need_lib_prefix=no
15123 need_version=no
15124 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15125 soname_spec='${libname}${release}${major}$shared_ext'
15126 shlibpath_overrides_runpath=yes
15127 shlibpath_var=DYLD_LIBRARY_PATH
15128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15133 dgux*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15142 freebsd* | dragonfly*)
15143 # DragonFly does not have aout. When/if they implement a new
15144 # versioning mechanism, adjust this.
15145 if test -x /usr/bin/objformat; then
15146 objformat=`/usr/bin/objformat`
15147 else
15148 case $host_os in
15149 freebsd[23].*) objformat=aout ;;
15150 *) objformat=elf ;;
15151 esac
15153 version_type=freebsd-$objformat
15154 case $version_type in
15155 freebsd-elf*)
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157 need_version=no
15158 need_lib_prefix=no
15160 freebsd-*)
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15162 need_version=yes
15164 esac
15165 shlibpath_var=LD_LIBRARY_PATH
15166 case $host_os in
15167 freebsd2.*)
15168 shlibpath_overrides_runpath=yes
15170 freebsd3.[01]* | freebsdelf3.[01]*)
15171 shlibpath_overrides_runpath=yes
15172 hardcode_into_libs=yes
15174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15176 shlibpath_overrides_runpath=no
15177 hardcode_into_libs=yes
15179 *) # from 4.6 on, and DragonFly
15180 shlibpath_overrides_runpath=yes
15181 hardcode_into_libs=yes
15183 esac
15186 haiku*)
15187 version_type=linux
15188 need_lib_prefix=no
15189 need_version=no
15190 dynamic_linker="$host_os runtime_loader"
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15196 hardcode_into_libs=yes
15199 hpux9* | hpux10* | hpux11*)
15200 # Give a soname corresponding to the major version so that dld.sl refuses to
15201 # link against other versions.
15202 version_type=sunos
15203 need_lib_prefix=no
15204 need_version=no
15205 case $host_cpu in
15206 ia64*)
15207 shrext_cmds='.so'
15208 hardcode_into_libs=yes
15209 dynamic_linker="$host_os dld.so"
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 if test "X$HPUX_IA64_MODE" = X32; then
15215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15216 else
15217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15221 hppa*64*)
15222 shrext_cmds='.sl'
15223 hardcode_into_libs=yes
15224 dynamic_linker="$host_os dld.sl"
15225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15233 shrext_cmds='.sl'
15234 dynamic_linker="$host_os dld.sl"
15235 shlibpath_var=SHLIB_PATH
15236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15240 esac
15241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15242 postinstall_cmds='chmod 555 $lib'
15243 # or fails outright, so override atomically:
15244 install_override_mode=555
15247 interix[3-9]*)
15248 version_type=linux
15249 need_lib_prefix=no
15250 need_version=no
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=no
15256 hardcode_into_libs=yes
15259 irix5* | irix6* | nonstopux*)
15260 case $host_os in
15261 nonstopux*) version_type=nonstopux ;;
15263 if test "$lt_cv_prog_gnu_ld" = yes; then
15264 version_type=linux
15265 else
15266 version_type=irix
15267 fi ;;
15268 esac
15269 need_lib_prefix=no
15270 need_version=no
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 case $host_os in
15274 irix5* | nonstopux*)
15275 libsuff= shlibsuff=
15278 case $LD in # libtool.m4 will add one of these switches to LD
15279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280 libsuff= shlibsuff= libmagic=32-bit;;
15281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282 libsuff=32 shlibsuff=N32 libmagic=N32;;
15283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285 *) libsuff= shlibsuff= libmagic=never-match;;
15286 esac
15288 esac
15289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290 shlibpath_overrides_runpath=no
15291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293 hardcode_into_libs=yes
15296 # No shared lib support for Linux oldld, aout, or coff.
15297 linux*oldld* | linux*aout* | linux*coff*)
15298 dynamic_linker=no
15301 # This must be Linux ELF.
15303 # uclinux* changes (here and below) have been submitted to the libtool
15304 # project, but have not yet been accepted: they are GCC-local changes
15305 # for the time being. (See
15306 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15307 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15308 version_type=linux
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath=no
15317 # Some binutils ld are patched to set DT_RUNPATH
15318 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 lt_cv_shlibpath_overrides_runpath=no
15322 save_LDFLAGS=$LDFLAGS
15323 save_libdir=$libdir
15324 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15325 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15326 if test x$gcc_no_link = xyes; then
15327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15333 main ()
15337 return 0;
15339 _ACEOF
15340 if ac_fn_cxx_try_link "$LINENO"; then :
15341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15342 lt_cv_shlibpath_overrides_runpath=yes
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 LDFLAGS=$save_LDFLAGS
15348 libdir=$save_libdir
15352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15354 # This implies no fast_install, which is unacceptable.
15355 # Some rework will be needed to allow for fast_install
15356 # before this can be enabled.
15357 hardcode_into_libs=yes
15359 # Append ld.so.conf contents to the search path
15360 if test -f /etc/ld.so.conf; then
15361 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15365 # We used to test for /lib/ld.so.1 and disable shared libraries on
15366 # powerpc, because MkLinux only supported shared libraries with the
15367 # GNU dynamic linker. Since this was broken with cross compilers,
15368 # most powerpc-linux boxes support dynamic linking these days and
15369 # people can always --disable-shared, the test was removed, and we
15370 # assume the GNU/Linux dynamic linker is in use.
15371 dynamic_linker='GNU/Linux ld.so'
15374 netbsd*)
15375 version_type=sunos
15376 need_lib_prefix=no
15377 need_version=no
15378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15381 dynamic_linker='NetBSD (a.out) ld.so'
15382 else
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 dynamic_linker='NetBSD ld.elf_so'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes
15389 hardcode_into_libs=yes
15392 newsos6)
15393 version_type=linux
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes
15399 *nto* | *qnx*)
15400 version_type=qnx
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 shlibpath_overrides_runpath=no
15407 hardcode_into_libs=yes
15408 dynamic_linker='ldqnx.so'
15411 openbsd*)
15412 version_type=sunos
15413 sys_lib_dlsearch_path_spec="/usr/lib"
15414 need_lib_prefix=no
15415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15416 case $host_os in
15417 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15418 *) need_version=no ;;
15419 esac
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15424 case $host_os in
15425 openbsd2.[89] | openbsd2.[89].*)
15426 shlibpath_overrides_runpath=no
15429 shlibpath_overrides_runpath=yes
15431 esac
15432 else
15433 shlibpath_overrides_runpath=yes
15437 os2*)
15438 libname_spec='$name'
15439 shrext_cmds=".dll"
15440 need_lib_prefix=no
15441 library_names_spec='$libname${shared_ext} $libname.a'
15442 dynamic_linker='OS/2 ld.exe'
15443 shlibpath_var=LIBPATH
15446 osf3* | osf4* | osf5*)
15447 version_type=osf
15448 need_lib_prefix=no
15449 need_version=no
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15457 rdos*)
15458 dynamic_linker=no
15461 solaris*)
15462 version_type=linux
15463 need_lib_prefix=no
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 # ldd complains unless libraries are executable
15471 postinstall_cmds='chmod +x $lib'
15474 sunos4*)
15475 version_type=sunos
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=yes
15480 if test "$with_gnu_ld" = yes; then
15481 need_lib_prefix=no
15483 need_version=yes
15486 sysv4 | sysv4.3*)
15487 version_type=linux
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 case $host_vendor in
15492 sni)
15493 shlibpath_overrides_runpath=no
15494 need_lib_prefix=no
15495 runpath_var=LD_RUN_PATH
15497 siemens)
15498 need_lib_prefix=no
15500 motorola)
15501 need_lib_prefix=no
15502 need_version=no
15503 shlibpath_overrides_runpath=no
15504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15506 esac
15509 sysv4*MP*)
15510 if test -d /usr/nec ;then
15511 version_type=linux
15512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15513 soname_spec='$libname${shared_ext}.$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15519 version_type=freebsd-elf
15520 need_lib_prefix=no
15521 need_version=no
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 if test "$with_gnu_ld" = yes; then
15528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15529 else
15530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15531 case $host_os in
15532 sco3.2v5*)
15533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15535 esac
15537 sys_lib_dlsearch_path_spec='/usr/lib'
15540 tpf*)
15541 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15551 uts4*)
15552 version_type=linux
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15558 # Shared libraries for VwWorks, >= 7 only at this stage
15559 # and (fpic) still incompatible with "large" code models
15560 # in a few configurations. Only for RTP mode in any case,
15561 # and upon explicit request at configure time.
15562 vxworks7*)
15563 dynamic_linker=no
15564 case ${with_multisubdir}-${enable_shared} in
15565 *large*)
15567 *mrtp*-yes)
15568 version_type=linux
15569 need_lib_prefix=no
15570 need_version=no
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 dynamic_linker="$host_os module_loader"
15575 esac
15578 dynamic_linker=no
15580 esac
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15582 $as_echo "$dynamic_linker" >&6; }
15583 test "$dynamic_linker" = no && can_build_shared=no
15585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15586 if test "$GCC" = yes; then
15587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15591 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15593 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15594 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15636 hardcode_action_CXX=
15637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15638 test -n "$runpath_var_CXX" ||
15639 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15641 # We can hardcode non-existent directories.
15642 if test "$hardcode_direct_CXX" != no &&
15643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15644 # have to relink, otherwise we might link with an installed library
15645 # when we should be linking with a yet-to-be-installed one
15646 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15647 test "$hardcode_minus_L_CXX" != no; then
15648 # Linking always hardcodes the temporary library directory.
15649 hardcode_action_CXX=relink
15650 else
15651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15652 hardcode_action_CXX=immediate
15654 else
15655 # We cannot hardcode anything, or else we can only hardcode existing
15656 # directories.
15657 hardcode_action_CXX=unsupported
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15660 $as_echo "$hardcode_action_CXX" >&6; }
15662 if test "$hardcode_action_CXX" = relink ||
15663 test "$inherit_rpath_CXX" = yes; then
15664 # Fast installation is not supported
15665 enable_fast_install=no
15666 elif test "$shlibpath_overrides_runpath" = yes ||
15667 test "$enable_shared" = no; then
15668 # Fast installation is not necessary
15669 enable_fast_install=needless
15678 fi # test -n "$compiler"
15680 CC=$lt_save_CC
15681 LDCXX=$LD
15682 LD=$lt_save_LD
15683 GCC=$lt_save_GCC
15684 with_gnu_ld=$lt_save_with_gnu_ld
15685 lt_cv_path_LDCXX=$lt_cv_path_LD
15686 lt_cv_path_LD=$lt_save_path_LD
15687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15689 fi # test "$_lt_caught_CXX_error" != yes
15691 ac_ext=c
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709 ac_config_commands="$ac_config_commands libtool"
15714 # Only expand once:
15720 case $host in
15721 *-cygwin* | *-mingw*)
15722 # 'host' will be top-level target in the case of a target lib,
15723 # we must compare to with_cross_host to decide if this is a native
15724 # or cross-compiler and select where to install dlls appropriately.
15725 if test -n "$with_cross_host" &&
15726 test x"$with_cross_host" != x"no"; then
15727 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15728 else
15729 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15733 lt_host_flags=
15735 esac
15741 if test x$enable_darwin_at_rpath = xyes; then
15742 ENABLE_DARWIN_AT_RPATH_TRUE=
15743 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15744 else
15745 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15746 ENABLE_DARWIN_AT_RPATH_FALSE=
15749 os_is_darwin=no
15750 case ${host_os} in
15751 darwin*) os_is_darwin=yes ;;
15752 *) ;;
15753 esac
15754 if test x${os_is_darwin} = xyes; then
15755 OS_IS_DARWIN_TRUE=
15756 OS_IS_DARWIN_FALSE='#'
15757 else
15758 OS_IS_DARWIN_TRUE='#'
15759 OS_IS_DARWIN_FALSE=
15763 if test "$enable_vtable_verify" = yes; then
15764 predep_objects_CXX="${predep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_start.o"
15765 postdep_objects_CXX="${postdep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_end.o"
15769 # libtool variables for C++ shared and position-independent compiles.
15771 # Use glibcxx_lt_pic_flag to designate the automake variable
15772 # used to encapsulate the default libtool approach to creating objects
15773 # with position-independent code. Default: -prefer-pic.
15775 # Use glibcxx_compiler_shared_flag to designate a compile-time flags for
15776 # creating shared objects. Default: -D_GLIBCXX_SHARED.
15778 # Use glibcxx_compiler_pic_flag to designate a compile-time flags for
15779 # creating position-independent objects. This varies with the target
15780 # hardware and operating system, but is often: -DPIC -fPIC.
15781 if test "$enable_shared" = yes; then
15782 glibcxx_lt_pic_flag="-prefer-pic"
15783 glibcxx_compiler_pic_flag="$lt_prog_compiler_pic_CXX"
15784 glibcxx_compiler_shared_flag="-D_GLIBCXX_SHARED"
15786 else
15787 glibcxx_lt_pic_flag=
15788 glibcxx_compiler_pic_flag=
15789 glibcxx_compiler_shared_flag=
15795 # Override the libtool's pic_flag and pic_mode.
15796 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
15797 # NB: this impacts --with-pic and --without-pic.
15798 lt_prog_compiler_pic_CXX="$glibcxx_compiler_pic_flag $glibcxx_compiler_shared_flag"
15799 pic_mode='default'
15801 # Eliminate -lstdc++ addition to postdeps for cross compiles.
15802 postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
15804 # Possibly disable most of the library.
15805 ## TODO: Consider skipping unncessary tests altogether in this case, rather
15806 ## than just ignoring the results. Faster /and/ more correct, win win.
15808 # Check whether --enable-hosted-libstdcxx was given.
15809 if test "${enable_hosted_libstdcxx+set}" = set; then :
15810 enableval=$enable_hosted_libstdcxx; enable_hosted_libstdcxx_was_given=yes
15811 else
15812 case "$host" in
15813 arm*-*-symbianelf*)
15814 enable_hosted_libstdcxx=no
15817 case "${with_newlib}-${with_headers}" in
15818 no-no) enable_hosted_libstdcxx=no ;;
15819 *) enable_hosted_libstdcxx=yes ;;
15820 esac
15822 esac
15826 # Because most configure args are --enable-libstdcxx-foo add an alias
15827 # of that form for --enable-hosted-libstdcxx.
15828 # Check whether --enable-libstdcxx-hosted was given.
15829 if test "${enable_libstdcxx_hosted+set}" = set; then :
15830 enableval=$enable_libstdcxx_hosted; if test "$enable_hosted_libstdcxx_was_given" = yes; then
15831 if test "$enable_hosted_libstdcxx" != "$enableval"; then
15832 as_fn_error $? "--enable-libstdcxx-hosted=$enableval conflicts with --enable-hosted-libstdcxx=$enable_hosted_libstdcxx" "$LINENO" 5
15834 else
15835 enable_hosted_libstdcxx=${enableval}
15841 freestanding_flags=
15842 if test "$enable_hosted_libstdcxx" = no; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: Only freestanding libraries will be built" >&5
15844 $as_echo "$as_me: Only freestanding libraries will be built" >&6;}
15845 is_hosted=no
15846 hosted_define=0
15847 enable_abi_check=no
15848 enable_libstdcxx_pch=no
15849 if test "x$with_headers" = xno; then
15850 freestanding_flags="-ffreestanding"
15852 else
15853 is_hosted=yes
15854 hosted_define=__STDC_HOSTED__
15858 cat >>confdefs.h <<_ACEOF
15859 #define _GLIBCXX_HOSTED $hosted_define
15860 _ACEOF
15862 FREESTANDING_FLAGS="$freestanding_flags"
15866 # Enable descriptive messages to standard output on termination.
15868 # Check whether --enable-libstdcxx-verbose was given.
15869 if test "${enable_libstdcxx_verbose+set}" = set; then :
15870 enableval=$enable_libstdcxx_verbose;
15871 else
15872 enable_libstdcxx_verbose=yes
15875 if test x"$enable_libstdcxx_verbose" = xyes; then
15876 verbose_define=1
15877 else
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: verbose termination messages are disabled" >&5
15879 $as_echo "$as_me: verbose termination messages are disabled" >&6;}
15880 verbose_define=0
15883 cat >>confdefs.h <<_ACEOF
15884 #define _GLIBCXX_VERBOSE $verbose_define
15885 _ACEOF
15889 # Enable compiler support that doesn't require linking.
15891 # Check whether --enable-libstdcxx-pch was given.
15892 if test "${enable_libstdcxx_pch+set}" = set; then :
15893 enableval=$enable_libstdcxx_pch;
15894 case "$enableval" in
15895 yes|no) ;;
15896 *) as_fn_error $? "Argument to enable/disable libstdcxx-pch must be yes or no" "$LINENO" 5 ;;
15897 esac
15899 else
15900 enable_libstdcxx_pch=$is_hosted
15904 if test $enable_libstdcxx_pch = yes; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5
15906 $as_echo_n "checking for compiler with PCH support... " >&6; }
15907 if ${glibcxx_cv_prog_CXX_pch+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 ac_save_CXXFLAGS="$CXXFLAGS"
15911 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
15913 ac_ext=cpp
15914 ac_cpp='$CXXCPP $CPPFLAGS'
15915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15919 echo '#include <math.h>' > conftest.h
15920 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
15921 -o conftest.h.gch 1>&5 2>&1 &&
15922 echo '#error "pch failed"' > conftest.h &&
15923 echo '#include "conftest.h"' > conftest.cc &&
15924 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
15925 then
15926 glibcxx_cv_prog_CXX_pch=yes
15927 else
15928 glibcxx_cv_prog_CXX_pch=no
15930 rm -f conftest*
15931 CXXFLAGS=$ac_save_CXXFLAGS
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_prog_CXX_pch" >&5
15941 $as_echo "$glibcxx_cv_prog_CXX_pch" >&6; }
15942 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled PCH" >&5
15946 $as_echo_n "checking for enabled PCH... " >&6; }
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_pch" >&5
15948 $as_echo "$enable_libstdcxx_pch" >&6; }
15951 if test $enable_libstdcxx_pch = yes; then
15952 glibcxx_PCHFLAGS="-include bits/stdc++.h"
15953 else
15954 glibcxx_PCHFLAGS=""
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15960 $as_echo_n "checking for thread model used by GCC... " >&6; }
15961 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
15963 $as_echo "$target_thread_file" >&6; }
15965 case $target_thread_file in
15966 aix) thread_header=config/rs6000/gthr-aix.h ;;
15967 dce) thread_header=config/pa/gthr-dce.h ;;
15968 gcn) thread_header=config/gcn/gthr-gcn.h ;;
15969 lynx) thread_header=config/gthr-lynx.h ;;
15970 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
15971 posix) thread_header=gthr-posix.h ;;
15972 rtems) thread_header=config/gthr-rtems.h ;;
15973 single) thread_header=gthr-single.h ;;
15974 tpf) thread_header=config/s390/gthr-tpf.h ;;
15975 vxworks) thread_header=config/gthr-vxworks.h ;;
15976 win32) thread_header=config/i386/gthr-win32.h ;;
15977 mcf) thread_header=config/i386/gthr-mcf.h ;;
15978 esac
15984 ac_ext=cpp
15985 ac_cpp='$CXXCPP $CPPFLAGS'
15986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15990 old_CXXFLAGS="$CXXFLAGS"
15992 # Do link tests if possible, instead asm tests, limited to some platforms
15993 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
15994 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
15995 atomic_builtins_link_tests=no
15996 if test x$gcc_no_link != xyes; then
15997 # Can do link tests. Limit to some tested platforms
15998 case "$host" in
15999 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
16000 atomic_builtins_link_tests=yes
16002 esac
16005 if test x$atomic_builtins_link_tests = xyes; then
16007 # Do link tests.
16009 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
16012 $as_echo_n "checking for atomic builtins for bool... " >&6; }
16013 if ${glibcxx_cv_atomic_bool+:} false; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16017 if test x$gcc_no_link = xyes; then
16018 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16024 main ()
16026 typedef bool atomic_type;
16027 atomic_type c1;
16028 atomic_type c2;
16029 atomic_type c3(0);
16030 // N.B. __atomic_fetch_add is not supported for bool.
16031 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16032 __ATOMIC_RELAXED);
16033 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16034 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16037 return 0;
16039 _ACEOF
16040 if ac_fn_cxx_try_link "$LINENO"; then :
16041 glibcxx_cv_atomic_bool=yes
16042 else
16043 glibcxx_cv_atomic_bool=no
16045 rm -f core conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16050 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16053 $as_echo_n "checking for atomic builtins for short... " >&6; }
16054 if ${glibcxx_cv_atomic_short+:} false; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16058 if test x$gcc_no_link = xyes; then
16059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16065 main ()
16067 typedef short atomic_type;
16068 atomic_type c1;
16069 atomic_type c2;
16070 atomic_type c3(0);
16071 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16072 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16073 __ATOMIC_RELAXED);
16074 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16075 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16078 return 0;
16080 _ACEOF
16081 if ac_fn_cxx_try_link "$LINENO"; then :
16082 glibcxx_cv_atomic_short=yes
16083 else
16084 glibcxx_cv_atomic_short=no
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16091 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16094 $as_echo_n "checking for atomic builtins for int... " >&6; }
16095 if ${glibcxx_cv_atomic_int+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16099 if test x$gcc_no_link = xyes; then
16100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16106 main ()
16108 typedef int atomic_type;
16109 atomic_type c1;
16110 atomic_type c2;
16111 atomic_type c3(0);
16112 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16113 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16114 __ATOMIC_RELAXED);
16115 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16116 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16119 return 0;
16121 _ACEOF
16122 if ac_fn_cxx_try_link "$LINENO"; then :
16123 glibcxx_cv_atomic_int=yes
16124 else
16125 glibcxx_cv_atomic_int=no
16127 rm -f core conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16132 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16135 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16136 if ${glibcxx_cv_atomic_long_long+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16140 if test x$gcc_no_link = xyes; then
16141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16147 main ()
16149 typedef long long atomic_type;
16150 atomic_type c1;
16151 atomic_type c2;
16152 atomic_type c3(0);
16153 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16154 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16155 __ATOMIC_RELAXED);
16156 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16157 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16160 return 0;
16162 _ACEOF
16163 if ac_fn_cxx_try_link "$LINENO"; then :
16164 glibcxx_cv_atomic_long_long=yes
16165 else
16166 glibcxx_cv_atomic_long_long=no
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16173 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16175 else
16177 # Do asm tests.
16179 # Compile unoptimized.
16180 CXXFLAGS='-O0 -S'
16182 # Fake what AC_TRY_COMPILE does.
16184 cat > conftest.$ac_ext << EOF
16185 #line 16185 "configure"
16186 int main()
16188 typedef bool atomic_type;
16189 atomic_type c1;
16190 atomic_type c2;
16191 atomic_type c3(0);
16192 // N.B. __atomic_fetch_add is not supported for bool.
16193 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16194 __ATOMIC_RELAXED);
16195 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16196 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16198 return 0;
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
16203 $as_echo_n "checking for atomic builtins for bool... " >&6; }
16204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16205 (eval $ac_compile) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; then
16209 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16210 glibcxx_cv_atomic_bool=no
16211 else
16212 glibcxx_cv_atomic_bool=yes
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16216 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16217 rm -f conftest*
16219 cat > conftest.$ac_ext << EOF
16220 #line 16220 "configure"
16221 int main()
16223 typedef short atomic_type;
16224 atomic_type c1;
16225 atomic_type c2;
16226 atomic_type c3(0);
16227 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16228 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16229 __ATOMIC_RELAXED);
16230 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16231 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16233 return 0;
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16238 $as_echo_n "checking for atomic builtins for short... " >&6; }
16239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16240 (eval $ac_compile) 2>&5
16241 ac_status=$?
16242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243 test $ac_status = 0; }; then
16244 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16245 glibcxx_cv_atomic_short=no
16246 else
16247 glibcxx_cv_atomic_short=yes
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16251 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16252 rm -f conftest*
16254 cat > conftest.$ac_ext << EOF
16255 #line 16255 "configure"
16256 int main()
16258 // NB: _Atomic_word not necessarily int.
16259 typedef int atomic_type;
16260 atomic_type c1;
16261 atomic_type c2;
16262 atomic_type c3(0);
16263 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16264 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16265 __ATOMIC_RELAXED);
16266 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16267 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16269 return 0;
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16274 $as_echo_n "checking for atomic builtins for int... " >&6; }
16275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16276 (eval $ac_compile) 2>&5
16277 ac_status=$?
16278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 test $ac_status = 0; }; then
16280 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16281 glibcxx_cv_atomic_int=no
16282 else
16283 glibcxx_cv_atomic_int=yes
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16287 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16288 rm -f conftest*
16290 cat > conftest.$ac_ext << EOF
16291 #line 16291 "configure"
16292 int main()
16294 typedef long long atomic_type;
16295 atomic_type c1;
16296 atomic_type c2;
16297 atomic_type c3(0);
16298 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16299 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16300 __ATOMIC_RELAXED);
16301 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16302 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16304 return 0;
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16309 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16311 (eval $ac_compile) 2>&5
16312 ac_status=$?
16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16314 test $ac_status = 0; }; then
16315 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16316 glibcxx_cv_atomic_long_long=no
16317 else
16318 glibcxx_cv_atomic_long_long=yes
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16322 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16323 rm -f conftest*
16327 CXXFLAGS="$old_CXXFLAGS"
16328 ac_ext=c
16329 ac_cpp='$CPP $CPPFLAGS'
16330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 # Set atomicity_dir to builtins if all but the long long test above passes,
16336 # or if the builtins were already chosen (e.g. by configure.host).
16337 if { test "$glibcxx_cv_atomic_bool" = yes \
16338 && test "$glibcxx_cv_atomic_short" = yes \
16339 && test "$glibcxx_cv_atomic_int" = yes; } \
16340 || test "$atomicity_dir" = "cpu/generic/atomicity_builtins"; then
16342 $as_echo "#define _GLIBCXX_ATOMIC_BUILTINS 1" >>confdefs.h
16344 atomicity_dir=cpu/generic/atomicity_builtins
16347 # If still generic, set to mutex.
16348 if test $atomicity_dir = "cpu/generic" ; then
16349 atomicity_dir=cpu/generic/atomicity_mutex
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native atomic operations are provided for this platform." >&5
16351 $as_echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
16352 if test "x$target_thread_file" = xsingle; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They cannot be faked when thread support is disabled." >&5
16354 $as_echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Thread-safety of certain classes is not guaranteed." >&5
16356 $as_echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
16357 else
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They will be faked using a mutex." >&5
16359 $as_echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance of certain classes will degrade as a result." >&5
16361 $as_echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
16369 # Check whether --with-libstdcxx-lock-policy was given.
16370 if test "${with_libstdcxx_lock_policy+set}" = set; then :
16371 withval=$with_libstdcxx_lock_policy; libstdcxx_atomic_lock_policy=$withval
16372 else
16373 libstdcxx_atomic_lock_policy=auto
16377 case "$libstdcxx_atomic_lock_policy" in
16378 atomic|mutex|auto) ;;
16379 *) as_fn_error $? "Invalid argument for --with-libstdcxx-lock-policy" "$LINENO" 5 ;;
16380 esac
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock policy for shared_ptr reference counts" >&5
16382 $as_echo_n "checking for lock policy for shared_ptr reference counts... " >&6; }
16384 if test x"$libstdcxx_atomic_lock_policy" = x"auto"; then
16386 ac_ext=cpp
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16392 ac_save_CXXFLAGS="$CXXFLAGS"
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16397 #if defined __riscv
16398 # error "Defaulting to mutex-based locks for ABI compatibility"
16399 #endif
16400 #if ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
16401 # error "No 2-byte compare-and-swap"
16402 #elif ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
16403 # error "No 4-byte compare-and-swap"
16404 #endif
16407 main ()
16411 return 0;
16413 _ACEOF
16414 if ac_fn_cxx_try_compile "$LINENO"; then :
16415 libstdcxx_atomic_lock_policy=atomic
16416 else
16417 libstdcxx_atomic_lock_policy=mutex
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 ac_ext=c
16421 ac_cpp='$CPP $CPPFLAGS'
16422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16426 CXXFLAGS="$ac_save_CXXFLAGS"
16429 if test x"$libstdcxx_atomic_lock_policy" = x"atomic"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: atomic" >&5
16431 $as_echo "atomic" >&6; }
16433 $as_echo "#define HAVE_ATOMIC_LOCK_POLICY 1" >>confdefs.h
16435 else
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mutex" >&5
16437 $as_echo "mutex" >&6; }
16443 # Fake what AC_TRY_COMPILE does, without linking as this is
16444 # unnecessary for this test.
16446 cat > conftest.$ac_ext << EOF
16447 #line 16447 "configure"
16448 int main()
16450 _Decimal32 d1;
16451 _Decimal64 d2;
16452 _Decimal128 d3;
16453 return 0;
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC TR 24733 " >&5
16458 $as_echo_n "checking for ISO/IEC TR 24733 ... " >&6; }
16459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16460 (eval $ac_compile) 2>&5
16461 ac_status=$?
16462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16463 test $ac_status = 0; }; then
16465 $as_echo "#define _GLIBCXX_USE_DECIMAL_FLOAT 1" >>confdefs.h
16467 enable_dfp=yes
16468 else
16469 enable_dfp=no
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dfp" >&5
16472 $as_echo "$enable_dfp" >&6; }
16473 rm -f conftest*
16478 ac_ext=cpp
16479 ac_cpp='$CXXCPP $CPPFLAGS'
16480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16485 # Fake what AC_TRY_COMPILE does, without linking as this is
16486 # unnecessary for this test.
16488 cat > conftest.$ac_ext << EOF
16489 #line 16489 "configure"
16490 template<typename T1, typename T2>
16491 struct same
16492 { typedef T2 type; };
16494 template<typename T>
16495 struct same<T, T>;
16497 int main()
16499 typename same<double, __float128>::type f1;
16500 typename same<long double, __float128>::type f2;
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5
16505 $as_echo_n "checking for __float128... " >&6; }
16506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16507 (eval $ac_compile) 2>&5
16508 ac_status=$?
16509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510 test $ac_status = 0; }; then
16511 enable_float128=yes
16512 else
16513 enable_float128=no
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float128" >&5
16516 $as_echo "$enable_float128" >&6; }
16518 rm -f conftest*
16520 ac_ext=c
16521 ac_cpp='$CPP $CPPFLAGS'
16522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16527 if test "$enable_float128" = yes; then
16528 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/abi/pre/float128.ver"
16531 # Checks for compiler support that doesn't require linking.
16533 # All these tests are for C++; save the language and the compiler flags.
16534 # The CXXFLAGS thing is suspicious, but based on similar bits previously
16535 # found in GLIBCXX_CONFIGURE.
16537 ac_ext=cpp
16538 ac_cpp='$CXXCPP $CPPFLAGS'
16539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16543 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16544 ac_save_CXXFLAGS="$CXXFLAGS"
16546 # Check for -ffunction-sections -fdata-sections
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
16548 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
16549 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int foo; void bar() { };
16554 main ()
16558 return 0;
16560 _ACEOF
16561 if ac_fn_cxx_try_compile "$LINENO"; then :
16562 ac_fdsections=yes
16563 else
16564 ac_fdsections=no
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 if test "$ac_test_CXXFLAGS" = set; then
16568 CXXFLAGS="$ac_save_CXXFLAGS"
16569 else
16570 # this is the suspicious part
16571 CXXFLAGS=''
16573 if test x"$ac_fdsections" = x"yes"; then
16574 SECTION_FLAGS='-ffunction-sections -fdata-sections'
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
16577 $as_echo "$ac_fdsections" >&6; }
16579 ac_ext=c
16580 ac_cpp='$CPP $CPPFLAGS'
16581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16588 # Enable all the variable C++ runtime options that don't require linking.
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underlying I/O to use" >&5
16591 $as_echo_n "checking for underlying I/O to use... " >&6; }
16592 # Check whether --enable-cstdio was given.
16593 if test "${enable_cstdio+set}" = set; then :
16594 enableval=$enable_cstdio;
16595 case "$enableval" in
16596 stdio|stdio_posix|stdio_pure) ;;
16597 *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
16598 esac
16600 else
16601 enable_cstdio=stdio
16606 # The only available I/O model is based on stdio, via basic_file_stdio.
16607 # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
16608 # to get a file descriptor and then uses read(3) and write(3) with it.
16609 # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
16610 case ${enable_cstdio} in
16611 stdio*)
16612 CSTDIO_H=config/io/c_io_stdio.h
16613 BASIC_FILE_H=config/io/basic_file_stdio.h
16614 BASIC_FILE_CC=config/io/basic_file_stdio.cc
16616 if test "x$enable_cstdio" = "xstdio_pure" ; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5
16618 $as_echo "stdio (without POSIX read/write)" >&6; }
16620 $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
16622 else
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5
16624 $as_echo "stdio (with POSIX read/write)" >&6; }
16627 esac
16634 # Check whether --enable-clocale was given.
16635 if test "${enable_clocale+set}" = set; then :
16636 enableval=$enable_clocale;
16637 case "$enableval" in
16638 generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;;
16639 *) as_fn_error $? "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
16640 esac
16642 else
16643 enable_clocale=auto
16648 # Deal with gettext issues. Default to not using it (=no) until we detect
16649 # support for it later. Let the user turn it off via --e/d, but let that
16650 # default to on for easier handling.
16651 USE_NLS=no
16652 # Check whether --enable-nls was given.
16653 if test "${enable_nls+set}" = set; then :
16654 enableval=$enable_nls;
16655 else
16656 enable_nls=yes
16660 # Either a known package, or "auto"
16661 if test $enable_clocale = no || test $enable_clocale = yes; then
16662 enable_clocale=auto
16664 enable_clocale_flag=$enable_clocale
16666 # Probe for locale model to use if none specified.
16667 # Default to "generic".
16668 if test $enable_clocale_flag = auto; then
16669 case ${target_os} in
16670 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
16671 enable_clocale_flag=gnu
16673 darwin*)
16674 enable_clocale_flag=darwin
16676 vxworks*)
16677 enable_clocale_flag=vxworks
16679 dragonfly* | freebsd*)
16680 enable_clocale_flag=dragonfly
16682 openbsd*)
16683 enable_clocale_flag=newlib
16686 if test x"$with_newlib" = x"yes"; then
16687 enable_clocale_flag=newlib
16688 else
16689 enable_clocale_flag=generic
16692 esac
16695 # Sanity check model, and test for special functionality.
16696 if test $enable_clocale_flag = gnu; then
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16700 #include <features.h>
16701 #if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(__UCLIBC__)
16702 _GLIBCXX_ok
16703 #endif
16705 _ACEOF
16706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16707 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then :
16708 enable_clocale_flag=gnu
16709 else
16710 enable_clocale_flag=generic
16712 rm -f conftest*
16715 # Set it to scream when it hurts.
16716 ac_save_CFLAGS="$CFLAGS"
16717 CFLAGS="-Wimplicit-function-declaration -Werror"
16719 # Use strxfrm_l if available.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 #define _GNU_SOURCE 1
16723 #include <string.h>
16724 #include <locale.h>
16726 main ()
16728 char s[128]; __locale_t loc; strxfrm_l(s, "C", 5, loc);
16730 return 0;
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"; then :
16735 $as_echo "#define HAVE_STRXFRM_L 1" >>confdefs.h
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 # Use strerror_l if available.
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #define _GNU_SOURCE 1
16744 #include <string.h>
16745 #include <locale.h>
16747 main ()
16749 __locale_t loc; strerror_l(5, loc);
16751 return 0;
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"; then :
16756 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 CFLAGS="$ac_save_CFLAGS"
16764 # Perhaps use strerror_r if available, and strerror_l isn't.
16765 ac_save_CFLAGS="$CFLAGS"
16766 CFLAGS="-Wimplicit-function-declaration -Werror"
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 #define _GNU_SOURCE 1
16770 #include <string.h>
16771 #include <locale.h>
16773 main ()
16775 char s[128]; strerror_r(5, s, 128);
16777 return 0;
16779 _ACEOF
16780 if ac_fn_c_try_compile "$LINENO"; then :
16782 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 CFLAGS="$ac_save_CFLAGS"
16788 # Set configure bits for specified locale package
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C locale to use" >&5
16790 $as_echo_n "checking for C locale to use... " >&6; }
16791 case ${enable_clocale_flag} in
16792 generic)
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generic" >&5
16794 $as_echo "generic" >&6; }
16796 CLOCALE_H=config/locale/generic/c_locale.h
16797 CLOCALE_CC=config/locale/generic/c_locale.cc
16798 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16799 CCOLLATE_CC=config/locale/generic/collate_members.cc
16800 CCTYPE_CC=config/locale/generic/ctype_members.cc
16801 CMESSAGES_H=config/locale/generic/messages_members.h
16802 CMESSAGES_CC=config/locale/generic/messages_members.cc
16803 CMONEY_CC=config/locale/generic/monetary_members.cc
16804 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16805 CTIME_H=config/locale/generic/time_members.h
16806 CTIME_CC=config/locale/generic/time_members.cc
16807 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16809 darwin)
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
16811 $as_echo "darwin" >&6; }
16813 CLOCALE_H=config/locale/generic/c_locale.h
16814 CLOCALE_CC=config/locale/generic/c_locale.cc
16815 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16816 CCOLLATE_CC=config/locale/generic/collate_members.cc
16817 CCTYPE_CC=config/locale/darwin/ctype_members.cc
16818 CMESSAGES_H=config/locale/generic/messages_members.h
16819 CMESSAGES_CC=config/locale/generic/messages_members.cc
16820 CMONEY_CC=config/locale/generic/monetary_members.cc
16821 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16822 CTIME_H=config/locale/generic/time_members.h
16823 CTIME_CC=config/locale/generic/time_members.cc
16824 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16826 vxworks)
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vxworks" >&5
16828 $as_echo "vxworks" >&6; }
16830 CLOCALE_H=config/locale/generic/c_locale.h
16831 CLOCALE_CC=config/locale/generic/c_locale.cc
16832 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16833 CCOLLATE_CC=config/locale/generic/collate_members.cc
16834 CCTYPE_CC=config/locale/vxworks/ctype_members.cc
16835 CMESSAGES_H=config/locale/generic/messages_members.h
16836 CMESSAGES_CC=config/locale/generic/messages_members.cc
16837 CMONEY_CC=config/locale/generic/monetary_members.cc
16838 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16839 CTIME_H=config/locale/generic/time_members.h
16840 CTIME_CC=config/locale/generic/time_members.cc
16841 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16843 dragonfly)
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly or freebsd" >&5
16845 $as_echo "dragonfly or freebsd" >&6; }
16847 CLOCALE_H=config/locale/dragonfly/c_locale.h
16848 CLOCALE_CC=config/locale/dragonfly/c_locale.cc
16849 CCODECVT_CC=config/locale/dragonfly/codecvt_members.cc
16850 CCOLLATE_CC=config/locale/dragonfly/collate_members.cc
16851 CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
16852 CMESSAGES_H=config/locale/generic/messages_members.h
16853 CMESSAGES_CC=config/locale/generic/messages_members.cc
16854 CMONEY_CC=config/locale/dragonfly/monetary_members.cc
16855 CNUMERIC_CC=config/locale/dragonfly/numeric_members.cc
16856 CTIME_H=config/locale/dragonfly/time_members.h
16857 CTIME_CC=config/locale/dragonfly/time_members.cc
16858 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16861 gnu)
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnu" >&5
16863 $as_echo "gnu" >&6; }
16865 # Declare intention to use gettext, and add support for specific
16866 # languages.
16867 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
16868 ALL_LINGUAS="de fr"
16870 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
16871 # Extract the first word of "msgfmt", so it can be a program name with args.
16872 set dummy msgfmt; ac_word=$2
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16874 $as_echo_n "checking for $ac_word... " >&6; }
16875 if ${ac_cv_prog_check_msgfmt+:} false; then :
16876 $as_echo_n "(cached) " >&6
16877 else
16878 if test -n "$check_msgfmt"; then
16879 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
16880 else
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882 for as_dir in $PATH
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
16886 for ac_exec_ext in '' $ac_executable_extensions; do
16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16888 ac_cv_prog_check_msgfmt="yes"
16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16890 break 2
16892 done
16893 done
16894 IFS=$as_save_IFS
16896 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
16899 check_msgfmt=$ac_cv_prog_check_msgfmt
16900 if test -n "$check_msgfmt"; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_msgfmt" >&5
16902 $as_echo "$check_msgfmt" >&6; }
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 $as_echo "no" >&6; }
16909 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
16910 USE_NLS=yes
16912 # Export the build objects.
16913 for ling in $ALL_LINGUAS; do \
16914 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
16915 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
16916 done
16920 CLOCALE_H=config/locale/gnu/c_locale.h
16921 CLOCALE_CC=config/locale/gnu/c_locale.cc
16922 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
16923 CCOLLATE_CC=config/locale/gnu/collate_members.cc
16924 CCTYPE_CC=config/locale/gnu/ctype_members.cc
16925 CMESSAGES_H=config/locale/gnu/messages_members.h
16926 CMESSAGES_CC=config/locale/gnu/messages_members.cc
16927 CMONEY_CC=config/locale/gnu/monetary_members.cc
16928 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
16929 CTIME_H=config/locale/gnu/time_members.h
16930 CTIME_CC=config/locale/gnu/time_members.cc
16931 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
16933 ieee_1003.1-2001)
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE 1003.1" >&5
16935 $as_echo "IEEE 1003.1" >&6; }
16937 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
16938 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
16939 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16940 CCOLLATE_CC=config/locale/generic/collate_members.cc
16941 CCTYPE_CC=config/locale/generic/ctype_members.cc
16942 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
16943 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
16944 CMONEY_CC=config/locale/generic/monetary_members.cc
16945 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16946 CTIME_H=config/locale/generic/time_members.h
16947 CTIME_CC=config/locale/generic/time_members.cc
16948 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16950 newlib)
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newlib" >&5
16952 $as_echo "newlib" >&6; }
16954 CLOCALE_H=config/locale/generic/c_locale.h
16955 CLOCALE_CC=config/locale/generic/c_locale.cc
16956 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16957 CCOLLATE_CC=config/locale/generic/collate_members.cc
16958 CCTYPE_CC=config/locale/newlib/ctype_members.cc
16959 CMESSAGES_H=config/locale/generic/messages_members.h
16960 CMESSAGES_CC=config/locale/generic/messages_members.cc
16961 CMONEY_CC=config/locale/generic/monetary_members.cc
16962 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16963 CTIME_H=config/locale/generic/time_members.h
16964 CTIME_CC=config/locale/generic/time_members.cc
16965 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16967 esac
16969 # This is where the testsuite looks for locale catalogs, using the
16970 # -DLOCALEDIR define during testsuite compilation.
16971 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
16974 # A standalone libintl (e.g., GNU libintl) may be in use.
16975 if test $USE_NLS = yes; then
16976 for ac_header in libintl.h
16977 do :
16978 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_libintl_h" = xyes; then :
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_LIBINTL_H 1
16982 _ACEOF
16984 else
16985 USE_NLS=no
16988 done
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
16991 $as_echo_n "checking for library containing gettext... " >&6; }
16992 if ${ac_cv_search_gettext+:} false; then :
16993 $as_echo_n "(cached) " >&6
16994 else
16995 ac_func_search_save_LIBS=$LIBS
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char gettext ();
17007 main ()
17009 return gettext ();
17011 return 0;
17013 _ACEOF
17014 for ac_lib in '' intl; do
17015 if test -z "$ac_lib"; then
17016 ac_res="none required"
17017 else
17018 ac_res=-l$ac_lib
17019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17021 if test x$gcc_no_link = xyes; then
17022 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17024 if ac_fn_c_try_link "$LINENO"; then :
17025 ac_cv_search_gettext=$ac_res
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext
17029 if ${ac_cv_search_gettext+:} false; then :
17030 break
17032 done
17033 if ${ac_cv_search_gettext+:} false; then :
17035 else
17036 ac_cv_search_gettext=no
17038 rm conftest.$ac_ext
17039 LIBS=$ac_func_search_save_LIBS
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17042 $as_echo "$ac_cv_search_gettext" >&6; }
17043 ac_res=$ac_cv_search_gettext
17044 if test "$ac_res" != no; then :
17045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17047 else
17048 USE_NLS=no
17052 if test $USE_NLS = yes; then
17054 $as_echo "#define _GLIBCXX_USE_NLS 1" >>confdefs.h
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::allocator base class" >&5
17074 $as_echo_n "checking for std::allocator base class... " >&6; }
17075 # Check whether --enable-libstdcxx-allocator was given.
17076 if test "${enable_libstdcxx_allocator+set}" = set; then :
17077 enableval=$enable_libstdcxx_allocator;
17078 case "$enableval" in
17079 new|malloc|yes|no|auto) ;;
17080 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-allocator" "$LINENO" 5 ;;
17081 esac
17083 else
17084 enable_libstdcxx_allocator=auto
17089 # If they didn't use this option switch, or if they specified --enable
17090 # with no specific model, we'll have to look for one. If they
17091 # specified --disable (???), do likewise.
17092 if test $enable_libstdcxx_allocator = no ||
17093 test $enable_libstdcxx_allocator = yes;
17094 then
17095 enable_libstdcxx_allocator=auto
17098 # Either a known package, or "auto". Auto implies the default choice
17099 # for a particular platform.
17100 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
17102 # Probe for host-specific support if no specific model is specified.
17103 # Default to "new".
17104 if test $enable_libstdcxx_allocator_flag = auto; then
17105 case ${target_os} in
17106 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
17107 enable_libstdcxx_allocator_flag=new
17110 enable_libstdcxx_allocator_flag=new
17112 esac
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_allocator_flag" >&5
17115 $as_echo "$enable_libstdcxx_allocator_flag" >&6; }
17118 # Set configure bits for specified locale package
17119 case ${enable_libstdcxx_allocator_flag} in
17120 malloc)
17121 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
17122 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
17124 new)
17125 ALLOCATOR_H=config/allocator/new_allocator_base.h
17126 ALLOCATOR_NAME=__gnu_cxx::new_allocator
17128 esac
17135 # Check whether --enable-cheaders-obsolete was given.
17136 if test "${enable_cheaders_obsolete+set}" = set; then :
17137 enableval=$enable_cheaders_obsolete;
17138 case "$enableval" in
17139 yes|no) ;;
17140 *) as_fn_error $? "Argument to enable/disable cheaders-obsolete must be yes or no" "$LINENO" 5 ;;
17141 esac
17143 else
17144 enable_cheaders_obsolete=no
17148 # Check whether --enable-cheaders was given.
17149 if test "${enable_cheaders+set}" = set; then :
17150 enableval=$enable_cheaders;
17151 case "$enableval" in
17152 c|c_global|c_std) ;;
17153 *) as_fn_error $? "Unknown argument to enable/disable cheaders" "$LINENO" 5 ;;
17154 esac
17156 else
17157 enable_cheaders=$c_model
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: \"C\" header strategy set to $enable_cheaders" >&5
17162 $as_echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
17163 if test $enable_cheaders = c_std ; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&5
17165 $as_echo "$as_me: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&2;}
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&5
17167 $as_echo "$as_me: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&2;}
17168 if test $enable_cheaders_obsolete != yes ; then
17169 as_fn_error $? "use --enable-cheaders-obsolete to use c_std \"C\" headers" "$LINENO" 5
17173 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
17175 # Allow overrides to configure.host here.
17176 if test $enable_cheaders = c_global; then
17177 c_compatibility=yes
17186 # Check whether --enable-long-long was given.
17187 if test "${enable_long_long+set}" = set; then :
17188 enableval=$enable_long_long;
17189 case "$enableval" in
17190 yes|no) ;;
17191 *) as_fn_error $? "Argument to enable/disable long-long must be yes or no" "$LINENO" 5 ;;
17192 esac
17194 else
17195 enable_long_long=yes
17199 if test $enable_long_long = yes; then
17201 $as_echo "#define _GLIBCXX_USE_LONG_LONG 1" >>confdefs.h
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled long long specializations" >&5
17205 $as_echo_n "checking for enabled long long specializations... " >&6; }
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_long" >&5
17207 $as_echo "$enable_long_long" >&6; }
17210 # Check whether --enable-wchar_t was given.
17211 if test "${enable_wchar_t+set}" = set; then :
17212 enableval=$enable_wchar_t;
17213 case "$enableval" in
17214 yes|no) ;;
17215 *) as_fn_error $? "Argument to enable/disable wchar_t must be yes or no" "$LINENO" 5 ;;
17216 esac
17218 else
17219 enable_wchar_t=yes
17224 # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
17225 for ac_header in wchar.h
17226 do :
17227 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
17228 if test "x$ac_cv_header_wchar_h" = xyes; then :
17229 cat >>confdefs.h <<_ACEOF
17230 #define HAVE_WCHAR_H 1
17231 _ACEOF
17232 ac_has_wchar_h=yes
17233 else
17234 ac_has_wchar_h=no
17237 done
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17240 $as_echo_n "checking for mbstate_t... " >&6; }
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #include <wchar.h>
17245 main ()
17247 mbstate_t teststate;
17249 return 0;
17251 _ACEOF
17252 if ac_fn_c_try_compile "$LINENO"; then :
17253 have_mbstate_t=yes
17254 else
17255 have_mbstate_t=no
17257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
17259 $as_echo "$have_mbstate_t" >&6; }
17260 if test x"$have_mbstate_t" = xyes; then
17262 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17266 # Test it always, for use in GLIBCXX_ENABLE_C99, together with
17267 # ac_has_wchar_h.
17268 for ac_header in wctype.h
17269 do :
17270 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
17271 if test "x$ac_cv_header_wctype_h" = xyes; then :
17272 cat >>confdefs.h <<_ACEOF
17273 #define HAVE_WCTYPE_H 1
17274 _ACEOF
17275 ac_has_wctype_h=yes
17276 else
17277 ac_has_wctype_h=no
17280 done
17283 if test x"$enable_wchar_t" = x"yes"; then
17286 ac_ext=cpp
17287 ac_cpp='$CXXCPP $CPPFLAGS'
17288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17293 if test x"$ac_has_wchar_h" = xyes &&
17294 test x"$ac_has_wctype_h" = xyes; then
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 #include <wchar.h>
17298 #include <stddef.h>
17299 wint_t i;
17300 long l = WEOF;
17301 long j = WCHAR_MIN;
17302 long k = WCHAR_MAX;
17303 namespace test
17305 using ::btowc;
17306 using ::fgetwc;
17307 using ::fgetws;
17308 using ::fputwc;
17309 using ::fputws;
17310 using ::fwide;
17311 using ::fwprintf;
17312 using ::fwscanf;
17313 using ::getwc;
17314 using ::getwchar;
17315 using ::mbrlen;
17316 using ::mbrtowc;
17317 using ::mbsinit;
17318 using ::mbsrtowcs;
17319 using ::putwc;
17320 using ::putwchar;
17321 using ::swprintf;
17322 using ::swscanf;
17323 using ::ungetwc;
17324 using ::vfwprintf;
17325 using ::vswprintf;
17326 using ::vwprintf;
17327 using ::wcrtomb;
17328 using ::wcscat;
17329 using ::wcschr;
17330 using ::wcscmp;
17331 using ::wcscoll;
17332 using ::wcscpy;
17333 using ::wcscspn;
17334 using ::wcsftime;
17335 using ::wcslen;
17336 using ::wcsncat;
17337 using ::wcsncmp;
17338 using ::wcsncpy;
17339 using ::wcspbrk;
17340 using ::wcsrchr;
17341 using ::wcsrtombs;
17342 using ::wcsspn;
17343 using ::wcsstr;
17344 using ::wcstod;
17345 using ::wcstok;
17346 using ::wcstol;
17347 using ::wcstoul;
17348 using ::wcsxfrm;
17349 using ::wctob;
17350 using ::wmemchr;
17351 using ::wmemcmp;
17352 using ::wmemcpy;
17353 using ::wmemmove;
17354 using ::wmemset;
17355 using ::wprintf;
17356 using ::wscanf;
17360 main ()
17364 return 0;
17366 _ACEOF
17367 if ac_fn_cxx_try_compile "$LINENO"; then :
17369 else
17370 enable_wchar_t=no
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 else
17374 enable_wchar_t=no
17377 ac_ext=c
17378 ac_cpp='$CPP $CPPFLAGS'
17379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17385 if test x"$enable_wchar_t" = x"yes"; then
17387 $as_echo "#define _GLIBCXX_USE_WCHAR_T 1" >>confdefs.h
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled wchar_t specializations" >&5
17392 $as_echo_n "checking for enabled wchar_t specializations... " >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wchar_t" >&5
17394 $as_echo "$enable_wchar_t" >&6; }
17398 # Check whether --enable-c99 was given.
17399 if test "${enable_c99+set}" = set; then :
17400 enableval=$enable_c99;
17401 case "$enableval" in
17402 yes|no) ;;
17403 *) as_fn_error $? "Argument to enable/disable c99 must be yes or no" "$LINENO" 5 ;;
17404 esac
17406 else
17407 enable_c99=yes
17412 if test x"$enable_c99" = x"yes"; then
17414 ac_ext=cpp
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17421 # Use -std=c++98 (instead of -std=gnu++98) because leaving __STRICT_ANSI__
17422 # undefined may cause fake C99 facilities, like pre-standard snprintf,
17423 # to be spuriously enabled.
17424 ac_save_CXXFLAGS="$CXXFLAGS"
17425 CXXFLAGS="$CXXFLAGS -std=c++98"
17426 ac_save_LIBS="$LIBS"
17427 ac_save_gcc_no_link="$gcc_no_link"
17429 if test x$gcc_no_link != xyes; then
17430 # Use -fno-exceptions to that the C driver can link these tests without
17431 # hitting undefined references to personality routines.
17432 CXXFLAGS="$CXXFLAGS -fno-exceptions"
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17434 $as_echo_n "checking for sin in -lm... " >&6; }
17435 if ${ac_cv_lib_m_sin+:} false; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17438 ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-lm $LIBS"
17440 if test x$gcc_no_link = xyes; then
17441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17446 /* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 char sin ();
17454 main ()
17456 return sin ();
17458 return 0;
17460 _ACEOF
17461 if ac_fn_cxx_try_link "$LINENO"; then :
17462 ac_cv_lib_m_sin=yes
17463 else
17464 ac_cv_lib_m_sin=no
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17471 $as_echo "$ac_cv_lib_m_sin" >&6; }
17472 if test "x$ac_cv_lib_m_sin" = xyes; then :
17473 LIBS="$LIBS -lm"
17474 else
17476 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
17477 gcc_no_link=yes
17483 # Check for the existence of <math.h> functions used if C99 is enabled.
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <math.h> for C++98" >&5
17485 $as_echo_n "checking for ISO C99 support in <math.h> for C++98... " >&6; }
17486 if ${glibcxx_cv_c99_math_cxx98+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17490 if test x$gcc_no_link = xyes; then
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 #include <math.h>
17494 volatile double d1, d2;
17495 volatile int i;
17497 main ()
17499 i = fpclassify(d1);
17500 i = isfinite(d1);
17501 i = isinf(d1);
17502 i = isnan(d1);
17503 i = isnormal(d1);
17504 i = signbit(d1);
17505 i = isgreater(d1, d2);
17506 i = isgreaterequal(d1, d2);
17507 i = isless(d1, d2);
17508 i = islessequal(d1, d2);
17509 i = islessgreater(d1, d2);
17510 i = islessgreater(d1, d2);
17511 i = isunordered(d1, d2);
17514 return 0;
17516 _ACEOF
17517 if ac_fn_cxx_try_compile "$LINENO"; then :
17518 glibcxx_cv_c99_math_cxx98=yes
17519 else
17520 glibcxx_cv_c99_math_cxx98=no
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 else
17524 if test x$gcc_no_link = xyes; then
17525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <math.h>
17530 volatile double d1, d2;
17531 volatile int i;
17533 main ()
17535 i = fpclassify(d1);
17536 i = isfinite(d1);
17537 i = isinf(d1);
17538 i = isnan(d1);
17539 i = isnormal(d1);
17540 i = signbit(d1);
17541 i = isgreater(d1, d2);
17542 i = isgreaterequal(d1, d2);
17543 i = isless(d1, d2);
17544 i = islessequal(d1, d2);
17545 i = islessgreater(d1, d2);
17546 i = islessgreater(d1, d2);
17547 i = isunordered(d1, d2);
17550 return 0;
17552 _ACEOF
17553 if ac_fn_cxx_try_link "$LINENO"; then :
17554 glibcxx_cv_c99_math_cxx98=yes
17555 else
17556 glibcxx_cv_c99_math_cxx98=no
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx98" >&5
17564 $as_echo "$glibcxx_cv_c99_math_cxx98" >&6; }
17565 if test x"$glibcxx_cv_c99_math_cxx98" = x"yes"; then
17567 $as_echo "#define _GLIBCXX98_USE_C99_MATH 1" >>confdefs.h
17571 # Check for the existence of <complex.h> complex math functions.
17572 # This is necessary even though libstdc++ uses the builtin versions
17573 # of these functions, because if the builtin cannot be used, a reference
17574 # to the library function is emitted.
17575 for ac_header in tgmath.h
17576 do :
17577 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
17578 if test "x$ac_cv_header_tgmath_h" = xyes; then :
17579 cat >>confdefs.h <<_ACEOF
17580 #define HAVE_TGMATH_H 1
17581 _ACEOF
17582 ac_has_tgmath_h=yes
17583 else
17584 ac_has_tgmath_h=no
17587 done
17589 for ac_header in complex.h
17590 do :
17591 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
17592 if test "x$ac_cv_header_complex_h" = xyes; then :
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_COMPLEX_H 1
17595 _ACEOF
17596 ac_has_complex_h=yes
17597 else
17598 ac_has_complex_h=no
17601 done
17603 if test x"$ac_has_complex_h" = x"yes"; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++98" >&5
17605 $as_echo_n "checking for ISO C99 support in <complex.h> for C++98... " >&6; }
17606 if ${glibcxx_cv_c99_complex_cxx98+:} false; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17610 if test x$gcc_no_link = xyes; then
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <complex.h>
17614 typedef __complex__ float float_type;
17615 typedef __complex__ double double_type;
17616 typedef __complex__ long double ld_type;
17617 volatile float_type tmpf;
17618 volatile double_type tmpd;
17619 volatile ld_type tmpld;
17620 volatile float f;
17621 volatile double d;
17622 volatile long double ld;
17624 main ()
17626 f = cabsf(tmpf);
17627 f = cargf(tmpf);
17628 tmpf = ccosf(tmpf);
17629 tmpf = ccoshf(tmpf);
17630 tmpf = cexpf(tmpf);
17631 tmpf = clogf(tmpf);
17632 tmpf = csinf(tmpf);
17633 tmpf = csinhf(tmpf);
17634 tmpf = csqrtf(tmpf);
17635 tmpf = ctanf(tmpf);
17636 tmpf = ctanhf(tmpf);
17637 tmpf = cpowf(tmpf, tmpf);
17638 tmpf = cprojf(tmpf);
17639 d = cabs(tmpd);
17640 d = carg(tmpd);
17641 tmpd = ccos(tmpd);
17642 tmpd = ccosh(tmpd);
17643 tmpd = cexp(tmpd);
17644 tmpd = clog(tmpd);
17645 tmpd = csin(tmpd);
17646 tmpd = csinh(tmpd);
17647 tmpd = csqrt(tmpd);
17648 tmpd = ctan(tmpd);
17649 tmpd = ctanh(tmpd);
17650 tmpd = cpow(tmpd, tmpd);
17651 tmpd = cproj(tmpd);
17652 ld = cabsl(tmpld);
17653 ld = cargl(tmpld);
17654 tmpld = ccosl(tmpld);
17655 tmpld = ccoshl(tmpld);
17656 tmpld = cexpl(tmpld);
17657 tmpld = clogl(tmpld);
17658 tmpld = csinl(tmpld);
17659 tmpld = csinhl(tmpld);
17660 tmpld = csqrtl(tmpld);
17661 tmpld = ctanl(tmpld);
17662 tmpld = ctanhl(tmpld);
17663 tmpld = cpowl(tmpld, tmpld);
17664 tmpld = cprojl(tmpld);
17667 return 0;
17669 _ACEOF
17670 if ac_fn_cxx_try_compile "$LINENO"; then :
17671 glibcxx_cv_c99_complex_cxx98=yes
17672 else
17673 glibcxx_cv_c99_complex_cxx98=no
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 else
17677 if test x$gcc_no_link = xyes; then
17678 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 #include <complex.h>
17683 typedef __complex__ float float_type;
17684 typedef __complex__ double double_type;
17685 typedef __complex__ long double ld_type;
17686 volatile float_type tmpf;
17687 volatile double_type tmpd;
17688 volatile ld_type tmpld;
17689 volatile float f;
17690 volatile double d;
17691 volatile long double ld;
17693 main ()
17695 f = cabsf(tmpf);
17696 f = cargf(tmpf);
17697 tmpf = ccosf(tmpf);
17698 tmpf = ccoshf(tmpf);
17699 tmpf = cexpf(tmpf);
17700 tmpf = clogf(tmpf);
17701 tmpf = csinf(tmpf);
17702 tmpf = csinhf(tmpf);
17703 tmpf = csqrtf(tmpf);
17704 tmpf = ctanf(tmpf);
17705 tmpf = ctanhf(tmpf);
17706 tmpf = cpowf(tmpf, tmpf);
17707 tmpf = cprojf(tmpf);
17708 d = cabs(tmpd);
17709 d = carg(tmpd);
17710 tmpd = ccos(tmpd);
17711 tmpd = ccosh(tmpd);
17712 tmpd = cexp(tmpd);
17713 tmpd = clog(tmpd);
17714 tmpd = csin(tmpd);
17715 tmpd = csinh(tmpd);
17716 tmpd = csqrt(tmpd);
17717 tmpd = ctan(tmpd);
17718 tmpd = ctanh(tmpd);
17719 tmpd = cpow(tmpd, tmpd);
17720 tmpd = cproj(tmpd);
17721 ld = cabsl(tmpld);
17722 ld = cargl(tmpld);
17723 tmpld = ccosl(tmpld);
17724 tmpld = ccoshl(tmpld);
17725 tmpld = cexpl(tmpld);
17726 tmpld = clogl(tmpld);
17727 tmpld = csinl(tmpld);
17728 tmpld = csinhl(tmpld);
17729 tmpld = csqrtl(tmpld);
17730 tmpld = ctanl(tmpld);
17731 tmpld = ctanhl(tmpld);
17732 tmpld = cpowl(tmpld, tmpld);
17733 tmpld = cprojl(tmpld);
17736 return 0;
17738 _ACEOF
17739 if ac_fn_cxx_try_link "$LINENO"; then :
17740 glibcxx_cv_c99_complex_cxx98=yes
17741 else
17742 glibcxx_cv_c99_complex_cxx98=no
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx98" >&5
17750 $as_echo "$glibcxx_cv_c99_complex_cxx98" >&6; }
17752 if test x"$glibcxx_cv_c99_complex_cxx98" = x"yes"; then
17754 $as_echo "#define _GLIBCXX98_USE_C99_COMPLEX 1" >>confdefs.h
17758 # Check for the existence in <stdio.h> of vscanf, et. al.
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++98" >&5
17760 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++98... " >&6; }
17761 if ${glibcxx_cv_c99_stdio_cxx98+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17765 if test x$gcc_no_link = xyes; then
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17768 #include <stdio.h>
17769 #include <stdarg.h>
17770 void foo(char* fmt, ...)
17772 va_list args; va_start(args, fmt);
17773 vfscanf(stderr, "%i", args);
17774 vscanf("%i", args);
17775 vsnprintf(fmt, 0, "%i", args);
17776 vsscanf(fmt, "%i", args);
17777 snprintf(fmt, 0, "%i", 1);
17780 main ()
17784 return 0;
17786 _ACEOF
17787 if ac_fn_cxx_try_compile "$LINENO"; then :
17788 glibcxx_cv_c99_stdio_cxx98=yes
17789 else
17790 glibcxx_cv_c99_stdio_cxx98=no
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 else
17794 if test x$gcc_no_link = xyes; then
17795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 #include <stdio.h>
17800 #include <stdarg.h>
17801 void foo(char* fmt, ...)
17803 va_list args; va_start(args, fmt);
17804 vfscanf(stderr, "%i", args);
17805 vscanf("%i", args);
17806 vsnprintf(fmt, 0, "%i", args);
17807 vsscanf(fmt, "%i", args);
17808 snprintf(fmt, 0, "%i", 1);
17811 main ()
17815 return 0;
17817 _ACEOF
17818 if ac_fn_cxx_try_link "$LINENO"; then :
17819 glibcxx_cv_c99_stdio_cxx98=yes
17820 else
17821 glibcxx_cv_c99_stdio_cxx98=no
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx98" >&5
17829 $as_echo "$glibcxx_cv_c99_stdio_cxx98" >&6; }
17830 if test x"$glibcxx_cv_c99_stdio_cxx98" = x"yes"; then
17832 $as_echo "#define _GLIBCXX98_USE_C99_STDIO 1" >>confdefs.h
17836 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++98" >&5
17838 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++98... " >&6; }
17839 if ${glibcxx_cv_c99_stdlib_cxx98+:} false; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17843 if test x$gcc_no_link = xyes; then
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846 #include <stdlib.h>
17847 volatile float f;
17848 volatile long double ld;
17849 volatile unsigned long long ll;
17850 lldiv_t mydivt;
17852 main ()
17854 char* tmp;
17855 f = strtof("gnu", &tmp);
17856 ld = strtold("gnu", &tmp);
17857 ll = strtoll("gnu", &tmp, 10);
17858 ll = strtoull("gnu", &tmp, 10);
17859 ll = llabs(10);
17860 mydivt = lldiv(10,1);
17861 ll = mydivt.quot;
17862 ll = mydivt.rem;
17863 ll = atoll("10");
17864 _Exit(0);
17867 return 0;
17869 _ACEOF
17870 if ac_fn_cxx_try_compile "$LINENO"; then :
17871 glibcxx_cv_c99_stdlib_cxx98=yes
17872 else
17873 glibcxx_cv_c99_stdlib_cxx98=no
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 else
17877 if test x$gcc_no_link = xyes; then
17878 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <stdlib.h>
17883 volatile float f;
17884 volatile long double ld;
17885 volatile unsigned long long ll;
17886 lldiv_t mydivt;
17888 main ()
17890 char* tmp;
17891 f = strtof("gnu", &tmp);
17892 ld = strtold("gnu", &tmp);
17893 ll = strtoll("gnu", &tmp, 10);
17894 ll = strtoull("gnu", &tmp, 10);
17895 ll = llabs(10);
17896 mydivt = lldiv(10,1);
17897 ll = mydivt.quot;
17898 ll = mydivt.rem;
17899 ll = atoll("10");
17900 _Exit(0);
17903 return 0;
17905 _ACEOF
17906 if ac_fn_cxx_try_link "$LINENO"; then :
17907 glibcxx_cv_c99_stdlib_cxx98=yes
17908 else
17909 glibcxx_cv_c99_stdlib_cxx98=no
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx98" >&5
17917 $as_echo "$glibcxx_cv_c99_stdlib_cxx98" >&6; }
17918 if test x"$glibcxx_cv_c99_stdlib_cxx98" = x"yes"; then
17920 $as_echo "#define _GLIBCXX98_USE_C99_STDLIB 1" >>confdefs.h
17924 # Check for the existence in <wchar.h> of wcstold, etc.
17925 if test x"$ac_has_wchar_h" = xyes &&
17926 test x"$ac_has_wctype_h" = xyes; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++98" >&5
17928 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++98... " >&6; }
17929 if ${glibcxx_cv_c99_wchar_cxx98+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935 #include <wchar.h>
17936 namespace test
17938 using ::wcstold;
17939 using ::wcstoll;
17940 using ::wcstoull;
17944 main ()
17948 return 0;
17950 _ACEOF
17951 if ac_fn_cxx_try_compile "$LINENO"; then :
17952 glibcxx_cv_c99_wchar_cxx98=yes
17953 else
17954 glibcxx_cv_c99_wchar_cxx98=no
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx98" >&5
17960 $as_echo "$glibcxx_cv_c99_wchar_cxx98" >&6; }
17962 # Checks for wide character functions that may not be present.
17963 # Injection of these is wrapped with guard macros.
17964 # NB: only put functions here, instead of immediately above, if
17965 # absolutely necessary.
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17968 #include <wchar.h>
17969 namespace test { using ::vfwscanf; }
17971 main ()
17975 return 0;
17977 _ACEOF
17978 if ac_fn_cxx_try_compile "$LINENO"; then :
17980 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987 #include <wchar.h>
17988 namespace test { using ::vswscanf; }
17990 main ()
17994 return 0;
17996 _ACEOF
17997 if ac_fn_cxx_try_compile "$LINENO"; then :
17999 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 #include <wchar.h>
18007 namespace test { using ::vwscanf; }
18009 main ()
18013 return 0;
18015 _ACEOF
18016 if ac_fn_cxx_try_compile "$LINENO"; then :
18018 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h. */
18025 #include <wchar.h>
18026 namespace test { using ::wcstof; }
18028 main ()
18032 return 0;
18034 _ACEOF
18035 if ac_fn_cxx_try_compile "$LINENO"; then :
18037 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18044 #include <wctype.h>
18046 main ()
18048 wint_t t; int i = iswblank(t);
18050 return 0;
18052 _ACEOF
18053 if ac_fn_cxx_try_compile "$LINENO"; then :
18055 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 if test x"$glibcxx_cv_c99_wchar_cxx98" = x"yes"; then
18062 $as_echo "#define _GLIBCXX98_USE_C99_WCHAR 1" >>confdefs.h
18067 # Option parsed, now set things appropriately.
18068 if test x"$glibcxx_cv_c99_math_cxx98" = x"no" ||
18069 test x"$glibcxx_cv_c99_complex_cxx98" = x"no" ||
18070 test x"$glibcxx_cv_c99_stdio_cxx98" = x"no" ||
18071 test x"$glibcxx_cv_c99_stdlib_cxx98" = x"no" ||
18072 test x"$glibcxx_cv_c99_wchar_cxx98" = x"no"; then
18073 enable_c99=no;
18074 else
18076 $as_echo "#define _GLIBCXX_USE_C99 1" >>confdefs.h
18080 gcc_no_link="$ac_save_gcc_no_link"
18081 LIBS="$ac_save_LIBS"
18082 CXXFLAGS="$ac_save_CXXFLAGS"
18083 ac_ext=c
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18091 ac_ext=cpp
18092 ac_cpp='$CXXCPP $CPPFLAGS'
18093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18098 # Use -std=c++11 and test again for C99 library feature in C++11 mode.
18099 # For the reasons given above we use -std=c++11 not -std=gnu++11.
18100 ac_save_CXXFLAGS="$CXXFLAGS"
18101 CXXFLAGS="$CXXFLAGS -std=c++11"
18102 ac_save_LIBS="$LIBS"
18103 ac_save_gcc_no_link="$gcc_no_link"
18105 if test x$gcc_no_link != xyes; then
18106 # Use -fno-exceptions to that the C driver can link these tests without
18107 # hitting undefined references to personality routines.
18108 CXXFLAGS="$CXXFLAGS -fno-exceptions"
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18110 $as_echo_n "checking for sin in -lm... " >&6; }
18111 if ${ac_cv_lib_m_sin+:} false; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114 ac_check_lib_save_LIBS=$LIBS
18115 LIBS="-lm $LIBS"
18116 if test x$gcc_no_link = xyes; then
18117 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char sin ();
18130 main ()
18132 return sin ();
18134 return 0;
18136 _ACEOF
18137 if ac_fn_cxx_try_link "$LINENO"; then :
18138 ac_cv_lib_m_sin=yes
18139 else
18140 ac_cv_lib_m_sin=no
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144 LIBS=$ac_check_lib_save_LIBS
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18147 $as_echo "$ac_cv_lib_m_sin" >&6; }
18148 if test "x$ac_cv_lib_m_sin" = xyes; then :
18149 LIBS="$LIBS -lm"
18150 else
18152 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
18153 gcc_no_link=yes
18159 # Check for the existence of <stdint.h> types.
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdint.h> for C++11" >&5
18161 $as_echo_n "checking for ISO C99 support in <stdint.h> for C++11... " >&6; }
18162 if ${glibcxx_cv_c99_stdint+:} false; then :
18163 $as_echo_n "(cached) " >&6
18164 else
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168 #define __STDC_LIMIT_MACROS
18169 #define __STDC_CONSTANT_MACROS
18170 #include <stdint.h>
18172 main ()
18174 typedef int8_t my_int8_t;
18175 my_int8_t i8 = INT8_MIN;
18176 i8 = INT8_MAX;
18177 typedef int16_t my_int16_t;
18178 my_int16_t i16 = INT16_MIN;
18179 i16 = INT16_MAX;
18180 typedef int32_t my_int32_t;
18181 my_int32_t i32 = INT32_MIN;
18182 i32 = INT32_MAX;
18183 typedef int64_t my_int64_t;
18184 my_int64_t i64 = INT64_MIN;
18185 i64 = INT64_MAX;
18186 typedef int_fast8_t my_int_fast8_t;
18187 my_int_fast8_t if8 = INT_FAST8_MIN;
18188 if8 = INT_FAST8_MAX;
18189 typedef int_fast16_t my_int_fast16_t;
18190 my_int_fast16_t if16 = INT_FAST16_MIN;
18191 if16 = INT_FAST16_MAX;
18192 typedef int_fast32_t my_int_fast32_t;
18193 my_int_fast32_t if32 = INT_FAST32_MIN;
18194 if32 = INT_FAST32_MAX;
18195 typedef int_fast64_t my_int_fast64_t;
18196 my_int_fast64_t if64 = INT_FAST64_MIN;
18197 if64 = INT_FAST64_MAX;
18198 typedef int_least8_t my_int_least8_t;
18199 my_int_least8_t il8 = INT_LEAST8_MIN;
18200 il8 = INT_LEAST8_MAX;
18201 typedef int_least16_t my_int_least16_t;
18202 my_int_least16_t il16 = INT_LEAST16_MIN;
18203 il16 = INT_LEAST16_MAX;
18204 typedef int_least32_t my_int_least32_t;
18205 my_int_least32_t il32 = INT_LEAST32_MIN;
18206 il32 = INT_LEAST32_MAX;
18207 typedef int_least64_t my_int_least64_t;
18208 my_int_least64_t il64 = INT_LEAST64_MIN;
18209 il64 = INT_LEAST64_MAX;
18210 typedef intmax_t my_intmax_t;
18211 my_intmax_t im = INTMAX_MAX;
18212 im = INTMAX_MIN;
18213 typedef intptr_t my_intptr_t;
18214 my_intptr_t ip = INTPTR_MAX;
18215 ip = INTPTR_MIN;
18216 typedef uint8_t my_uint8_t;
18217 my_uint8_t ui8 = UINT8_MAX;
18218 ui8 = UINT8_MAX;
18219 typedef uint16_t my_uint16_t;
18220 my_uint16_t ui16 = UINT16_MAX;
18221 ui16 = UINT16_MAX;
18222 typedef uint32_t my_uint32_t;
18223 my_uint32_t ui32 = UINT32_MAX;
18224 ui32 = UINT32_MAX;
18225 typedef uint64_t my_uint64_t;
18226 my_uint64_t ui64 = UINT64_MAX;
18227 ui64 = UINT64_MAX;
18228 typedef uint_fast8_t my_uint_fast8_t;
18229 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
18230 uif8 = UINT_FAST8_MAX;
18231 typedef uint_fast16_t my_uint_fast16_t;
18232 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
18233 uif16 = UINT_FAST16_MAX;
18234 typedef uint_fast32_t my_uint_fast32_t;
18235 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
18236 uif32 = UINT_FAST32_MAX;
18237 typedef uint_fast64_t my_uint_fast64_t;
18238 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
18239 uif64 = UINT_FAST64_MAX;
18240 typedef uint_least8_t my_uint_least8_t;
18241 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
18242 uil8 = UINT_LEAST8_MAX;
18243 typedef uint_least16_t my_uint_least16_t;
18244 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
18245 uil16 = UINT_LEAST16_MAX;
18246 typedef uint_least32_t my_uint_least32_t;
18247 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
18248 uil32 = UINT_LEAST32_MAX;
18249 typedef uint_least64_t my_uint_least64_t;
18250 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
18251 uil64 = UINT_LEAST64_MAX;
18252 typedef uintmax_t my_uintmax_t;
18253 my_uintmax_t uim = UINTMAX_MAX;
18254 uim = UINTMAX_MAX;
18255 typedef uintptr_t my_uintptr_t;
18256 my_uintptr_t uip = UINTPTR_MAX;
18257 uip = UINTPTR_MAX;
18260 return 0;
18262 _ACEOF
18263 if ac_fn_cxx_try_compile "$LINENO"; then :
18264 glibcxx_cv_c99_stdint=yes
18265 else
18266 glibcxx_cv_c99_stdint=no
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint" >&5
18272 $as_echo "$glibcxx_cv_c99_stdint" >&6; }
18273 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18275 $as_echo "#define _GLIBCXX_USE_C99_STDINT 1" >>confdefs.h
18279 # Check for the existence of <inttypes.h> functions (NB: doesn't make
18280 # sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18281 ac_c99_inttypes=no;
18282 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <inttypes.h>" >&5
18284 $as_echo_n "checking for ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <inttypes.h>
18289 main ()
18291 intmax_t i, numer, denom, base;
18292 const char* s;
18293 char** endptr;
18294 intmax_t ret = imaxabs(i);
18295 imaxdiv_t dret = imaxdiv(numer, denom);
18296 ret = strtoimax(s, endptr, base);
18297 uintmax_t uret = strtoumax(s, endptr, base);
18300 return 0;
18302 _ACEOF
18303 if ac_fn_cxx_try_compile "$LINENO"; then :
18304 ac_c99_inttypes=yes
18305 else
18306 ac_c99_inttypes=no
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes" >&5
18310 $as_echo "$ac_c99_inttypes" >&6; }
18312 if test x"$ac_c99_inttypes" = x"yes"; then
18314 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES 1" >>confdefs.h
18318 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
18319 # make sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18320 ac_c99_inttypes_wchar_t=no;
18321 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support for C++11 in <inttypes.h>" >&5
18323 $as_echo_n "checking for wchar_t ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <inttypes.h>
18328 main ()
18330 intmax_t base;
18331 const wchar_t* s;
18332 wchar_t** endptr;
18333 intmax_t ret = wcstoimax(s, endptr, base);
18334 uintmax_t uret = wcstoumax(s, endptr, base);
18337 return 0;
18339 _ACEOF
18340 if ac_fn_cxx_try_compile "$LINENO"; then :
18341 ac_c99_inttypes_wchar_t=yes
18342 else
18343 ac_c99_inttypes_wchar_t=no
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t" >&5
18347 $as_echo "$ac_c99_inttypes_wchar_t" >&6; }
18349 if test x"$ac_c99_inttypes_wchar_t" = x"yes"; then
18351 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T 1" >>confdefs.h
18355 # Check for the existence of <math.h> generic macros used if C99 is enabled.
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 generic macro support in <math.h> for C++11" >&5
18357 $as_echo_n "checking for ISO C99 generic macro support in <math.h> for C++11... " >&6; }
18358 if ${glibcxx_cv_c99_math_cxx11+:} false; then :
18359 $as_echo_n "(cached) " >&6
18360 else
18362 if test x$gcc_no_link = xyes; then
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365 #include <math.h>
18366 volatile double d1, d2;
18367 volatile int i;
18369 main ()
18371 i = fpclassify(d1);
18372 i = isfinite(d1);
18373 i = isinf(d1);
18374 i = isnan(d1);
18375 i = isnormal(d1);
18376 i = signbit(d1);
18377 i = isgreater(d1, d2);
18378 i = isgreaterequal(d1, d2);
18379 i = isless(d1, d2);
18380 i = islessequal(d1, d2);
18381 i = islessgreater(d1, d2);
18382 i = islessgreater(d1, d2);
18383 i = isunordered(d1, d2);
18386 return 0;
18388 _ACEOF
18389 if ac_fn_cxx_try_compile "$LINENO"; then :
18390 glibcxx_cv_c99_math_cxx11=yes
18391 else
18392 glibcxx_cv_c99_math_cxx11=no
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 else
18396 if test x$gcc_no_link = xyes; then
18397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #include <math.h>
18402 volatile double d1, d2;
18403 volatile int i;
18405 main ()
18407 i = fpclassify(d1);
18408 i = isfinite(d1);
18409 i = isinf(d1);
18410 i = isnan(d1);
18411 i = isnormal(d1);
18412 i = signbit(d1);
18413 i = isgreater(d1, d2);
18414 i = isgreaterequal(d1, d2);
18415 i = isless(d1, d2);
18416 i = islessequal(d1, d2);
18417 i = islessgreater(d1, d2);
18418 i = islessgreater(d1, d2);
18419 i = isunordered(d1, d2);
18422 return 0;
18424 _ACEOF
18425 if ac_fn_cxx_try_link "$LINENO"; then :
18426 glibcxx_cv_c99_math_cxx11=yes
18427 else
18428 glibcxx_cv_c99_math_cxx11=no
18430 rm -f core conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx11" >&5
18436 $as_echo "$glibcxx_cv_c99_math_cxx11" >&6; }
18437 if test x"$glibcxx_cv_c99_math_cxx11" = x"yes"; then
18439 $as_echo "#define _GLIBCXX11_USE_C99_MATH 1" >>confdefs.h
18443 # Check for the existence of <math.h> typedefs.
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 float types for C++11 in <math.h>" >&5
18445 $as_echo_n "checking for ISO C99 float types for C++11 in <math.h>... " >&6; }
18446 if ${glibcxx_cv_c99_flt_eval_types+:} false; then :
18447 $as_echo_n "(cached) " >&6
18448 else
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452 #include <math.h>
18454 main ()
18456 // Types
18457 typedef double_t my_double_t;
18458 typedef float_t my_float_t;
18461 return 0;
18463 _ACEOF
18464 if ac_fn_cxx_try_compile "$LINENO"; then :
18465 glibcxx_cv_c99_flt_eval_types=yes
18466 else
18467 glibcxx_cv_c99_flt_eval_types=no
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_flt_eval_types" >&5
18473 $as_echo "$glibcxx_cv_c99_flt_eval_types" >&6; }
18474 if test x"$glibcxx_cv_c99_flt_eval_types" = x"yes"; then
18476 $as_echo "#define HAVE_C99_FLT_EVAL_TYPES 1" >>confdefs.h
18480 # Check for the existence of <math.h> functions.
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 function support for C++11 in <math.h>" >&5
18482 $as_echo_n "checking for ISO C99 function support for C++11 in <math.h>... " >&6; }
18483 if ${glibcxx_cv_c99_math_funcs+:} false; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18489 #include <math.h>
18491 main ()
18494 // Hyperbolic
18495 acosh(0.0);
18496 acoshf(0.0f);
18497 acoshl(0.0l);
18498 asinh(0.0);
18499 asinhf(0.0f);
18500 asinhl(0.0l);
18501 atanh(0.0);
18502 atanhf(0.0f);
18503 atanhl(0.0l);
18504 // Exponential and logarithmic
18505 exp2(0.0);
18506 exp2f(0.0f);
18507 exp2l(0.0l);
18508 expm1(0.0);
18509 expm1f(0.0f);
18510 expm1l(0.0l);
18511 ilogb(0.0);
18512 ilogbf(0.0f);
18513 ilogbl(0.0l);
18514 log1p(0.0);
18515 log1pf(0.0f);
18516 log1pl(0.0l);
18517 log2(0.0);
18518 log2f(0.0f);
18519 log2l(0.0l);
18520 logb(0.0);
18521 logbf(0.0f);
18522 logbl(0.0l);
18523 scalbln(0.0, 0l);
18524 scalblnf(0.0f, 0l);
18525 scalblnl(0.0l, 0l);
18526 scalbn(0.0, 0);
18527 scalbnf(0.0f, 0);
18528 scalbnl(0.0l, 0);
18529 // Power and absolute-value
18530 cbrt(0.0);
18531 cbrtf(0.0f);
18532 cbrtl(0.0l);
18533 hypot(0.0, 0.0);
18534 hypotf(0.0f, 0.0f);
18535 hypotl(0.0l, 0.0l);
18536 // Error and gamma
18537 erf(0.0);
18538 erff(0.0f);
18539 erfl(0.0l);
18540 erfc(0.0);
18541 erfcf(0.0f);
18542 erfcl(0.0l);
18543 lgamma(0.0);
18544 lgammaf(0.0f);
18545 lgammal(0.0l);
18546 tgamma(0.0);
18547 tgammaf(0.0f);
18548 tgammal(0.0l);
18549 // Nearest integer
18550 nearbyint(0.0);
18551 nearbyintf(0.0f);
18552 nearbyintl(0.0l);
18553 rint(0.0);
18554 rintf(0.0f);
18555 rintl(0.0l);
18556 round(0.0);
18557 roundf(0.0f);
18558 roundl(0.0l);
18559 lrint(0.0);
18560 lrintf(0.0f);
18561 lrintl(0.0l);
18562 lround(0.0);
18563 lroundf(0.0f);
18564 lroundl(0.0l);
18565 #ifndef __APPLE__ /* see below */
18566 llrint(0.0);
18567 llrintf(0.0f);
18568 llrintl(0.0l);
18569 llround(0.0);
18570 llroundf(0.0f);
18571 llroundl(0.0l);
18572 #endif
18573 trunc(0.0);
18574 truncf(0.0f);
18575 truncl(0.0l);
18576 // Remainder
18577 remainder(0.0, 0.0);
18578 remainderf(0.0f, 0.0f);
18579 remainderl(0.0l, 0.0l);
18580 remquo(0.0, 0.0, 0);
18581 remquof(0.0f, 0.0f, 0);
18582 remquol(0.0l, 0.0l, 0);
18583 // Manipulation
18584 copysign(0.0, 0.0);
18585 copysignf(0.0f, 0.0f);
18586 copysignl(0.0l, 0.0l);
18587 nan("");
18588 nanf("");
18589 nanl("");
18590 nextafter(0.0, 0.0);
18591 nextafterf(0.0f, 0.0f);
18592 nextafterl(0.0l, 0.0l);
18593 nexttoward(0.0, 0.0);
18594 nexttowardf(0.0f, 0.0f);
18595 nexttowardl(0.0l, 0.0l);
18596 // Max, min, positive difference
18597 fdim(0.0, 0.0);
18598 fdimf(0.0f, 0.0f);
18599 fdiml(0.0l, 0.0l);
18600 fmax(0.0, 0.0);
18601 fmaxf(0.0f, 0.0f);
18602 fmaxl(0.0l, 0.0l);
18603 fmin(0.0, 0.0);
18604 fminf(0.0f, 0.0f);
18605 fminl(0.0l, 0.0l);
18606 // FP Multiply-add
18607 fma(0.0, 0.0, 0.0);
18608 fmaf(0.0f, 0.0f, 0.0f);
18609 fmal(0.0l, 0.0l, 0.0l);
18612 return 0;
18614 _ACEOF
18615 if ac_fn_cxx_try_compile "$LINENO"; then :
18616 glibcxx_cv_c99_math_funcs=yes
18617 else
18618 glibcxx_cv_c99_math_funcs=no
18620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_funcs" >&5
18624 $as_echo "$glibcxx_cv_c99_math_funcs" >&6; }
18625 if test x"$glibcxx_cv_c99_math_funcs" = x"yes"; then
18627 $as_echo "#define _GLIBCXX_USE_C99_MATH_FUNCS 1" >>confdefs.h
18630 case "${target_os}" in
18631 darwin*)
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 rounding functions in <math.h>" >&5
18633 $as_echo_n "checking for ISO C99 rounding functions in <math.h>... " >&6; }
18634 if ${glibcxx_cv_c99_math_llround+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640 #include <math.h>
18642 main ()
18644 llrint(0.0);
18645 llrintf(0.0f);
18646 llrintl(0.0l);
18647 llround(0.0);
18648 llroundf(0.0f);
18649 llroundl(0.0l);
18652 return 0;
18654 _ACEOF
18655 if ac_fn_cxx_try_compile "$LINENO"; then :
18656 glibcxx_cv_c99_math_llround=yes
18657 else
18658 glibcxx_cv_c99_math_llround=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_llround" >&5
18664 $as_echo "$glibcxx_cv_c99_math_llround" >&6; }
18666 esac
18667 if test x"$glibcxx_cv_c99_math_llround" = x"no"; then
18669 $as_echo "#define _GLIBCXX_NO_C99_ROUNDING_FUNCS 1" >>confdefs.h
18674 # Check for the existence of <complex.h> complex math functions.
18675 # This is necessary even though libstdc++ uses the builtin versions
18676 # of these functions, because if the builtin cannot be used, a reference
18677 # to the library function is emitted.
18678 for ac_header in tgmath.h
18679 do :
18680 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
18681 if test "x$ac_cv_header_tgmath_h" = xyes; then :
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_TGMATH_H 1
18684 _ACEOF
18685 ac_has_tgmath_h=yes
18686 else
18687 ac_has_tgmath_h=no
18690 done
18692 for ac_header in complex.h
18693 do :
18694 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
18695 if test "x$ac_cv_header_complex_h" = xyes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_COMPLEX_H 1
18698 _ACEOF
18699 ac_has_complex_h=yes
18700 else
18701 ac_has_complex_h=no
18704 done
18706 if test x"$ac_has_complex_h" = x"yes"; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++11" >&5
18708 $as_echo_n "checking for ISO C99 support in <complex.h> for C++11... " >&6; }
18709 if ${glibcxx_cv_c99_complex_cxx11+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18713 if test x$gcc_no_link = xyes; then
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716 #include <complex.h>
18717 typedef __complex__ float float_type;
18718 typedef __complex__ double double_type;
18719 typedef __complex__ long double ld_type;
18720 volatile float_type tmpf;
18721 volatile double_type tmpd;
18722 volatile ld_type tmpld;
18723 volatile float f;
18724 volatile double d;
18725 volatile long double ld;
18727 main ()
18729 f = cabsf(tmpf);
18730 f = cargf(tmpf);
18731 tmpf = ccosf(tmpf);
18732 tmpf = ccoshf(tmpf);
18733 tmpf = cexpf(tmpf);
18734 tmpf = clogf(tmpf);
18735 tmpf = csinf(tmpf);
18736 tmpf = csinhf(tmpf);
18737 tmpf = csqrtf(tmpf);
18738 tmpf = ctanf(tmpf);
18739 tmpf = ctanhf(tmpf);
18740 tmpf = cpowf(tmpf, tmpf);
18741 tmpf = cprojf(tmpf);
18742 d = cabs(tmpd);
18743 d = carg(tmpd);
18744 tmpd = ccos(tmpd);
18745 tmpd = ccosh(tmpd);
18746 tmpd = cexp(tmpd);
18747 tmpd = clog(tmpd);
18748 tmpd = csin(tmpd);
18749 tmpd = csinh(tmpd);
18750 tmpd = csqrt(tmpd);
18751 tmpd = ctan(tmpd);
18752 tmpd = ctanh(tmpd);
18753 tmpd = cpow(tmpd, tmpd);
18754 tmpd = cproj(tmpd);
18755 ld = cabsl(tmpld);
18756 ld = cargl(tmpld);
18757 tmpld = ccosl(tmpld);
18758 tmpld = ccoshl(tmpld);
18759 tmpld = cexpl(tmpld);
18760 tmpld = clogl(tmpld);
18761 tmpld = csinl(tmpld);
18762 tmpld = csinhl(tmpld);
18763 tmpld = csqrtl(tmpld);
18764 tmpld = ctanl(tmpld);
18765 tmpld = ctanhl(tmpld);
18766 tmpld = cpowl(tmpld, tmpld);
18767 tmpld = cprojl(tmpld);
18770 return 0;
18772 _ACEOF
18773 if ac_fn_cxx_try_compile "$LINENO"; then :
18774 glibcxx_cv_c99_complex_cxx11=yes
18775 else
18776 glibcxx_cv_c99_complex_cxx11=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 else
18780 if test x$gcc_no_link = xyes; then
18781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 #include <complex.h>
18786 typedef __complex__ float float_type;
18787 typedef __complex__ double double_type;
18788 typedef __complex__ long double ld_type;
18789 volatile float_type tmpf;
18790 volatile double_type tmpd;
18791 volatile ld_type tmpld;
18792 volatile float f;
18793 volatile double d;
18794 volatile long double ld;
18796 main ()
18798 f = cabsf(tmpf);
18799 f = cargf(tmpf);
18800 tmpf = ccosf(tmpf);
18801 tmpf = ccoshf(tmpf);
18802 tmpf = cexpf(tmpf);
18803 tmpf = clogf(tmpf);
18804 tmpf = csinf(tmpf);
18805 tmpf = csinhf(tmpf);
18806 tmpf = csqrtf(tmpf);
18807 tmpf = ctanf(tmpf);
18808 tmpf = ctanhf(tmpf);
18809 tmpf = cpowf(tmpf, tmpf);
18810 tmpf = cprojf(tmpf);
18811 d = cabs(tmpd);
18812 d = carg(tmpd);
18813 tmpd = ccos(tmpd);
18814 tmpd = ccosh(tmpd);
18815 tmpd = cexp(tmpd);
18816 tmpd = clog(tmpd);
18817 tmpd = csin(tmpd);
18818 tmpd = csinh(tmpd);
18819 tmpd = csqrt(tmpd);
18820 tmpd = ctan(tmpd);
18821 tmpd = ctanh(tmpd);
18822 tmpd = cpow(tmpd, tmpd);
18823 tmpd = cproj(tmpd);
18824 ld = cabsl(tmpld);
18825 ld = cargl(tmpld);
18826 tmpld = ccosl(tmpld);
18827 tmpld = ccoshl(tmpld);
18828 tmpld = cexpl(tmpld);
18829 tmpld = clogl(tmpld);
18830 tmpld = csinl(tmpld);
18831 tmpld = csinhl(tmpld);
18832 tmpld = csqrtl(tmpld);
18833 tmpld = ctanl(tmpld);
18834 tmpld = ctanhl(tmpld);
18835 tmpld = cpowl(tmpld, tmpld);
18836 tmpld = cprojl(tmpld);
18839 return 0;
18841 _ACEOF
18842 if ac_fn_cxx_try_link "$LINENO"; then :
18843 glibcxx_cv_c99_complex_cxx11=yes
18844 else
18845 glibcxx_cv_c99_complex_cxx11=no
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx11" >&5
18853 $as_echo "$glibcxx_cv_c99_complex_cxx11" >&6; }
18855 if test x"$glibcxx_cv_c99_complex_cxx11" = x"yes"; then
18857 $as_echo "#define _GLIBCXX11_USE_C99_COMPLEX 1" >>confdefs.h
18861 # Check for the existence of <complex.h> complex inverse trigonometric
18862 # math functions used by <complex> for C++11 and later.
18863 ac_c99_complex_arc=no;
18864 if test x"$ac_has_complex_h" = x"yes"; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for inverse trig functions in <complex.h>" >&5
18866 $as_echo_n "checking for ISO C99 support for inverse trig functions in <complex.h>... " >&6; }
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18869 #include <complex.h>
18871 main ()
18873 typedef __complex__ float float_type; float_type tmpf;
18874 cacosf(tmpf);
18875 casinf(tmpf);
18876 catanf(tmpf);
18877 cacoshf(tmpf);
18878 casinhf(tmpf);
18879 catanhf(tmpf);
18880 typedef __complex__ double double_type; double_type tmpd;
18881 cacos(tmpd);
18882 casin(tmpd);
18883 catan(tmpd);
18884 cacosh(tmpd);
18885 casinh(tmpd);
18886 catanh(tmpd);
18887 typedef __complex__ long double ld_type; ld_type tmpld;
18888 cacosl(tmpld);
18889 casinl(tmpld);
18890 catanl(tmpld);
18891 cacoshl(tmpld);
18892 casinhl(tmpld);
18893 catanhl(tmpld);
18896 return 0;
18898 _ACEOF
18899 if ac_fn_cxx_try_compile "$LINENO"; then :
18900 ac_c99_complex_arc=yes
18901 else
18902 ac_c99_complex_arc=no
18904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_arc" >&5
18907 $as_echo "$ac_c99_complex_arc" >&6; }
18908 if test x"$ac_c99_complex_arc" = x"yes"; then
18910 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_ARC 1" >>confdefs.h
18914 # Check for the existence in <stdio.h> of vscanf, et. al.
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++11" >&5
18916 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++11... " >&6; }
18917 if ${glibcxx_cv_c99_stdio_cxx11+:} false; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18921 if test x$gcc_no_link = xyes; then
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924 #include <stdio.h>
18925 #include <stdarg.h>
18926 void foo(char* fmt, ...)
18928 va_list args; va_start(args, fmt);
18929 vfscanf(stderr, "%i", args);
18930 vscanf("%i", args);
18931 vsnprintf(fmt, 0, "%i", args);
18932 vsscanf(fmt, "%i", args);
18933 snprintf(fmt, 0, "%i", 1);
18936 main ()
18940 return 0;
18942 _ACEOF
18943 if ac_fn_cxx_try_compile "$LINENO"; then :
18944 glibcxx_cv_c99_stdio_cxx11=yes
18945 else
18946 glibcxx_cv_c99_stdio_cxx11=no
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 else
18950 if test x$gcc_no_link = xyes; then
18951 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h. */
18955 #include <stdio.h>
18956 #include <stdarg.h>
18957 void foo(char* fmt, ...)
18959 va_list args; va_start(args, fmt);
18960 vfscanf(stderr, "%i", args);
18961 vscanf("%i", args);
18962 vsnprintf(fmt, 0, "%i", args);
18963 vsscanf(fmt, "%i", args);
18964 snprintf(fmt, 0, "%i", 1);
18967 main ()
18971 return 0;
18973 _ACEOF
18974 if ac_fn_cxx_try_link "$LINENO"; then :
18975 glibcxx_cv_c99_stdio_cxx11=yes
18976 else
18977 glibcxx_cv_c99_stdio_cxx11=no
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx11" >&5
18985 $as_echo "$glibcxx_cv_c99_stdio_cxx11" >&6; }
18986 if test x"$glibcxx_cv_c99_stdio_cxx11" = x"yes"; then
18988 $as_echo "#define _GLIBCXX11_USE_C99_STDIO 1" >>confdefs.h
18992 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++11" >&5
18994 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++11... " >&6; }
18995 if ${glibcxx_cv_c99_stdlib_cxx11+:} false; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18999 if test x$gcc_no_link = xyes; then
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002 #include <stdlib.h>
19003 volatile float f;
19004 volatile long double ld;
19005 volatile unsigned long long ll;
19006 lldiv_t mydivt;
19008 main ()
19010 char* tmp;
19011 f = strtof("gnu", &tmp);
19012 ld = strtold("gnu", &tmp);
19013 ll = strtoll("gnu", &tmp, 10);
19014 ll = strtoull("gnu", &tmp, 10);
19015 ll = llabs(10);
19016 mydivt = lldiv(10,1);
19017 ll = mydivt.quot;
19018 ll = mydivt.rem;
19019 ll = atoll("10");
19020 _Exit(0);
19023 return 0;
19025 _ACEOF
19026 if ac_fn_cxx_try_compile "$LINENO"; then :
19027 glibcxx_cv_c99_stdlib_cxx11=yes
19028 else
19029 glibcxx_cv_c99_stdlib_cxx11=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 else
19033 if test x$gcc_no_link = xyes; then
19034 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038 #include <stdlib.h>
19039 volatile float f;
19040 volatile long double ld;
19041 volatile unsigned long long ll;
19042 lldiv_t mydivt;
19044 main ()
19046 char* tmp;
19047 f = strtof("gnu", &tmp);
19048 ld = strtold("gnu", &tmp);
19049 ll = strtoll("gnu", &tmp, 10);
19050 ll = strtoull("gnu", &tmp, 10);
19051 ll = llabs(10);
19052 mydivt = lldiv(10,1);
19053 ll = mydivt.quot;
19054 ll = mydivt.rem;
19055 ll = atoll("10");
19056 _Exit(0);
19059 return 0;
19061 _ACEOF
19062 if ac_fn_cxx_try_link "$LINENO"; then :
19063 glibcxx_cv_c99_stdlib_cxx11=yes
19064 else
19065 glibcxx_cv_c99_stdlib_cxx11=no
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx11" >&5
19073 $as_echo "$glibcxx_cv_c99_stdlib_cxx11" >&6; }
19074 if test x"$glibcxx_cv_c99_stdlib_cxx11" = x"yes"; then
19076 $as_echo "#define _GLIBCXX11_USE_C99_STDLIB 1" >>confdefs.h
19080 # Check for the existence in <wchar.h> of wcstold, etc.
19081 if test x"$ac_has_wchar_h" = xyes &&
19082 test x"$ac_has_wctype_h" = xyes; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++11" >&5
19084 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++11... " >&6; }
19085 if ${glibcxx_cv_c99_wchar_cxx11+:} false; then :
19086 $as_echo_n "(cached) " >&6
19087 else
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <wchar.h>
19092 namespace test
19094 using ::wcstold;
19095 using ::wcstoll;
19096 using ::wcstoull;
19100 main ()
19104 return 0;
19106 _ACEOF
19107 if ac_fn_cxx_try_compile "$LINENO"; then :
19108 glibcxx_cv_c99_wchar_cxx11=yes
19109 else
19110 glibcxx_cv_c99_wchar_cxx11=no
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx11" >&5
19116 $as_echo "$glibcxx_cv_c99_wchar_cxx11" >&6; }
19118 # Checks for wide character functions that may not be present.
19119 # Injection of these is wrapped with guard macros.
19120 # NB: only put functions here, instead of immediately above, if
19121 # absolutely necessary.
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124 #include <wchar.h>
19125 namespace test { using ::vfwscanf; }
19127 main ()
19131 return 0;
19133 _ACEOF
19134 if ac_fn_cxx_try_compile "$LINENO"; then :
19136 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143 #include <wchar.h>
19144 namespace test { using ::vswscanf; }
19146 main ()
19150 return 0;
19152 _ACEOF
19153 if ac_fn_cxx_try_compile "$LINENO"; then :
19155 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <wchar.h>
19163 namespace test { using ::vwscanf; }
19165 main ()
19169 return 0;
19171 _ACEOF
19172 if ac_fn_cxx_try_compile "$LINENO"; then :
19174 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19181 #include <wchar.h>
19182 namespace test { using ::wcstof; }
19184 main ()
19188 return 0;
19190 _ACEOF
19191 if ac_fn_cxx_try_compile "$LINENO"; then :
19193 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19200 #include <wctype.h>
19202 main ()
19204 wint_t t; int i = iswblank(t);
19206 return 0;
19208 _ACEOF
19209 if ac_fn_cxx_try_compile "$LINENO"; then :
19211 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 if test x"$glibcxx_cv_c99_wchar_cxx11" = x"yes"; then
19218 $as_echo "#define _GLIBCXX11_USE_C99_WCHAR 1" >>confdefs.h
19223 # Check for the existence of <ctype.h> functions.
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <ctype.h>" >&5
19225 $as_echo_n "checking for ISO C99 support for C++11 in <ctype.h>... " >&6; }
19226 if ${glibcxx_cv_c99_ctype+:} false; then :
19227 $as_echo_n "(cached) " >&6
19228 else
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232 #include <ctype.h>
19234 main ()
19236 int ch;
19237 int ret;
19238 ret = isblank(ch);
19241 return 0;
19243 _ACEOF
19244 if ac_fn_cxx_try_compile "$LINENO"; then :
19245 glibcxx_cv_c99_ctype=yes
19246 else
19247 glibcxx_cv_c99_ctype=no
19249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype" >&5
19253 $as_echo "$glibcxx_cv_c99_ctype" >&6; }
19254 if test x"$glibcxx_cv_c99_ctype" = x"yes"; then
19256 $as_echo "#define _GLIBCXX_USE_C99_CTYPE 1" >>confdefs.h
19260 # Check for the existence of <fenv.h> functions.
19261 for ac_header in fenv.h
19262 do :
19263 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
19264 if test "x$ac_cv_header_fenv_h" = xyes; then :
19265 cat >>confdefs.h <<_ACEOF
19266 #define HAVE_FENV_H 1
19267 _ACEOF
19268 ac_has_fenv_h=yes
19269 else
19270 ac_has_fenv_h=no
19273 done
19275 ac_c99_fenv=no;
19276 if test x"$ac_has_fenv_h" = x"yes"; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <fenv.h>" >&5
19278 $as_echo_n "checking for ISO C99 support for C++11 in <fenv.h>... " >&6; }
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #include <fenv.h>
19283 main ()
19285 int except, mode;
19286 fexcept_t* pflag;
19287 fenv_t* penv;
19288 int ret;
19289 ret = feclearexcept(except);
19290 ret = fegetexceptflag(pflag, except);
19291 ret = feraiseexcept(except);
19292 ret = fesetexceptflag(pflag, except);
19293 ret = fetestexcept(except);
19294 ret = fegetround();
19295 ret = fesetround(mode);
19296 ret = fegetenv(penv);
19297 ret = feholdexcept(penv);
19298 ret = fesetenv(penv);
19299 ret = feupdateenv(penv);
19302 return 0;
19304 _ACEOF
19305 if ac_fn_cxx_try_compile "$LINENO"; then :
19306 ac_c99_fenv=yes
19307 else
19308 ac_c99_fenv=no
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv" >&5
19312 $as_echo "$ac_c99_fenv" >&6; }
19314 if test x"$ac_c99_fenv" = x"yes"; then
19316 $as_echo "#define _GLIBCXX_USE_C99_FENV 1" >>confdefs.h
19320 gcc_no_link="$ac_save_gcc_no_link"
19321 LIBS="$ac_save_LIBS"
19322 CXXFLAGS="$ac_save_CXXFLAGS"
19323 ac_ext=c
19324 ac_cpp='$CPP $CPPFLAGS'
19325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fully enabled ISO C99 support" >&5
19332 $as_echo_n "checking for fully enabled ISO C99 support... " >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_c99" >&5
19334 $as_echo "$enable_c99" >&6; }
19337 # Check whether --enable-concept-checks was given.
19338 if test "${enable_concept_checks+set}" = set; then :
19339 enableval=$enable_concept_checks;
19340 case "$enableval" in
19341 yes|no) ;;
19342 *) as_fn_error $? "Argument to enable/disable concept-checks must be yes or no" "$LINENO" 5 ;;
19343 esac
19345 else
19346 enable_concept_checks=no
19350 if test $enable_concept_checks = yes; then
19352 $as_echo "#define _GLIBCXX_CONCEPT_CHECKS 1" >>confdefs.h
19357 # Check whether --enable-libstdcxx-debug-flags was given.
19358 if test "${enable_libstdcxx_debug_flags+set}" = set; then :
19359 enableval=$enable_libstdcxx_debug_flags; case "x$enable_libstdcxx_debug_flags" in
19360 xno | x) enable_libstdcxx_debug_flags= ;;
19361 x-*) ;;
19362 *) as_fn_error $? "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19363 esac
19364 else
19365 enable_libstdcxx_debug_flags="-g3 -O0 -D_GLIBCXX_ASSERTIONS"
19370 # Option parsed, now set things appropriately
19371 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: Debug build flags set to $DEBUG_FLAGS" >&5
19375 $as_echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional debug build" >&5
19379 $as_echo_n "checking for additional debug build... " >&6; }
19380 skip_debug_build=
19381 # Check whether --enable-libstdcxx-debug was given.
19382 if test "${enable_libstdcxx_debug+set}" = set; then :
19383 enableval=$enable_libstdcxx_debug;
19384 case "$enableval" in
19385 yes|no) ;;
19386 *) as_fn_error $? "Argument to enable/disable libstdcxx-debug must be yes or no" "$LINENO" 5 ;;
19387 esac
19389 else
19390 enable_libstdcxx_debug=no
19394 if test x$enable_libstdcxx_debug = xyes; then
19395 if test -f $toplevel_builddir/../stage_final \
19396 && test -f $toplevel_builddir/../stage_current; then
19397 stage_final=`cat $toplevel_builddir/../stage_final`
19398 stage_current=`cat $toplevel_builddir/../stage_current`
19399 if test x$stage_current != x$stage_final ; then
19400 skip_debug_build=" (skipped for bootstrap stage $stage_current)"
19401 enable_libstdcxx_debug=no
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_debug$skip_debug_build" >&5
19406 $as_echo "$enable_libstdcxx_debug$skip_debug_build" >&6; }
19411 enable_parallel=no;
19413 # See if configured libgomp/omp.h exists. (libgomp may be in
19414 # noconfigdirs but not explicitly disabled.)
19415 if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
19416 enable_parallel=yes;
19417 else
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: target-libgomp not built" >&5
19419 $as_echo "$as_me: target-libgomp not built" >&6;}
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parallel mode support" >&5
19423 $as_echo_n "checking for parallel mode support... " >&6; }
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel" >&5
19425 $as_echo "$enable_parallel" >&6; }
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra compiler flags for building" >&5
19428 $as_echo_n "checking for extra compiler flags for building... " >&6; }
19429 # Check whether --enable-cxx-flags was given.
19430 if test "${enable_cxx_flags+set}" = set; then :
19431 enableval=$enable_cxx_flags; case "x$enable_cxx_flags" in
19432 xno | x) enable_cxx_flags= ;;
19433 x-*) ;;
19434 *) as_fn_error $? "--enable-cxx-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19435 esac
19436 else
19437 enable_cxx_flags=
19442 # Run through flags (either default or command-line) and set anything
19443 # extra (e.g., #defines) that must accompany particular g++ options.
19444 if test -n "$enable_cxx_flags"; then
19445 for f in $enable_cxx_flags; do
19446 case "$f" in
19447 -fhonor-std) ;;
19448 -*) ;;
19449 *) # and we're trying to pass /what/ exactly?
19450 as_fn_error $? "compiler flags start with a -" "$LINENO" 5 ;;
19451 esac
19452 done
19455 EXTRA_CXX_FLAGS="$enable_cxx_flags"
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CXX_FLAGS" >&5
19457 $as_echo "$EXTRA_CXX_FLAGS" >&6; }
19461 # Check whether --enable-fully-dynamic-string was given.
19462 if test "${enable_fully_dynamic_string+set}" = set; then :
19463 enableval=$enable_fully_dynamic_string;
19464 case "$enableval" in
19465 yes|no) ;;
19466 *) as_fn_error $? "Unknown argument to enable/disable fully-dynamic-string" "$LINENO" 5 ;;
19467 esac
19469 else
19470 enable_fully_dynamic_string=no
19474 if test $enable_fully_dynamic_string = yes; then
19475 enable_fully_dynamic_string_def=1
19476 else
19477 enable_fully_dynamic_string_def=0
19480 cat >>confdefs.h <<_ACEOF
19481 #define _GLIBCXX_FULLY_DYNAMIC_STRING ${enable_fully_dynamic_string_def}
19482 _ACEOF
19487 # Check whether --enable-extern-template was given.
19488 if test "${enable_extern_template+set}" = set; then :
19489 enableval=$enable_extern_template;
19490 case "$enableval" in
19491 yes|no) ;;
19492 *) as_fn_error $? "Argument to enable/disable extern-template must be yes or no" "$LINENO" 5 ;;
19493 esac
19495 else
19496 enable_extern_template=yes
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern template support" >&5
19502 $as_echo_n "checking for extern template support... " >&6; }
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extern_template" >&5
19504 $as_echo "$enable_extern_template" >&6; }
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom python install directory" >&5
19511 $as_echo_n "checking for custom python install directory... " >&6; }
19513 # Check whether --with-python-dir was given.
19514 if test "${with_python_dir+set}" = set; then :
19515 withval=$with_python_dir; with_python_dir=$withval
19516 else
19517 with_python_dir="no"
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_python_dir}" >&5
19521 $as_echo "${with_python_dir}" >&6; }
19523 # Needed for installing Python modules during make install.
19524 python_mod_dir="${with_python_dir}"
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror" >&5
19530 $as_echo_n "checking for -Werror... " >&6; }
19531 # Check whether --enable-werror was given.
19532 if test "${enable_werror+set}" = set; then :
19533 enableval=$enable_werror;
19534 case "$enableval" in
19535 yes|no) ;;
19536 *) as_fn_error $? "Argument to enable/disable werror must be yes or no" "$LINENO" 5 ;;
19537 esac
19539 else
19540 enable_werror=no
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_werror" >&5
19545 $as_echo "$enable_werror" >&6; }
19550 # Check whether --enable-vtable-verify was given.
19551 if test "${enable_vtable_verify+set}" = set; then :
19552 enableval=$enable_vtable_verify;
19553 case "$enableval" in
19554 yes|no) ;;
19555 *) as_fn_error $? "Argument to enable/disable vtable-verify must be yes or no" "$LINENO" 5 ;;
19556 esac
19558 else
19559 enable_vtable_verify=no
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtable verify support" >&5
19565 $as_echo_n "checking for vtable verify support... " >&6; }
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
19567 $as_echo "$enable_vtable_verify" >&6; }
19569 vtv_cygmin=no
19570 if test $enable_vtable_verify = yes; then
19571 case ${target_os} in
19572 cygwin*|mingw32*)
19573 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19574 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19575 vtv_cygmin=yes
19577 darwin*)
19578 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end"
19579 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-rpath,${toplevel_builddir}/libvtv/.libs"
19581 solaris2*)
19582 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19583 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-R -Wl,${toplevel_builddir}/libvtv/.libs"
19586 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19587 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19589 esac
19590 VTV_PCH_CXXFLAGS="-fvtable-verify=std"
19591 else
19592 VTV_CXXFLAGS=
19593 VTV_PCH_CXXFLAGS=
19594 VTV_CXXLINKFLAGS=
19600 if test x$vtv_cygmin = xyes; then
19601 VTV_CYGMIN_TRUE=
19602 VTV_CYGMIN_FALSE='#'
19603 else
19604 VTV_CYGMIN_TRUE='#'
19605 VTV_CYGMIN_FALSE=
19611 # Checks for operating systems support that doesn't require linking.
19615 ac_ext=cpp
19616 ac_cpp='$CXXCPP $CPPFLAGS'
19617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19621 # Use C++11 because a conforming <stdio.h> won't define gets for C++14,
19622 # and we don't need a declaration for C++14 anyway.
19623 ac_save_CXXFLAGS="$CXXFLAGS"
19624 CXXFLAGS="$CXXFLAGS -std=gnu++11"
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gets declaration" >&5
19627 $as_echo_n "checking for gets declaration... " >&6; }
19628 if ${glibcxx_cv_gets+:} false; then :
19629 $as_echo_n "(cached) " >&6
19630 else
19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19633 /* end confdefs.h. */
19634 #include <stdio.h>
19635 namespace test
19637 using ::gets;
19640 _ACEOF
19641 if ac_fn_cxx_try_compile "$LINENO"; then :
19642 glibcxx_cv_gets=yes
19643 else
19644 glibcxx_cv_gets=no
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_gets" >&5
19650 $as_echo "$glibcxx_cv_gets" >&6; }
19652 if test $glibcxx_cv_gets = yes; then
19654 $as_echo "#define HAVE_GETS 1" >>confdefs.h
19658 CXXFLAGS="$ac_save_CXXFLAGS"
19659 ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 ac_ext=cpp
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675 ac_save_CXXFLAGS="$CXXFLAGS"
19676 CXXFLAGS="$CXXFLAGS -std=c++11"
19678 case "$host" in
19679 *-*-solaris2.*)
19680 # Solaris 12 Build 86, Solaris 11.3 SRU 3.6, and Solaris 10 Patch
19681 # 11996[67]-02 introduced the C++11 <math.h> floating point overloads.
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> floating point overloads" >&5
19683 $as_echo_n "checking for C++11 <math.h> floating point overloads... " >&6; }
19684 if ${glibcxx_cv_math11_fp_overload+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <math.h>
19691 #undef isfinite
19692 namespace std {
19693 inline bool isfinite(float __x)
19694 { return __builtin_isfinite(__x); }
19697 _ACEOF
19698 if ac_fn_cxx_try_compile "$LINENO"; then :
19699 glibcxx_cv_math11_fp_overload=no
19700 else
19701 glibcxx_cv_math11_fp_overload=yes
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_fp_overload" >&5
19707 $as_echo "$glibcxx_cv_math11_fp_overload" >&6; }
19709 # autoheader cannot handle indented templates.
19712 if test $glibcxx_cv_math11_fp_overload = yes; then
19713 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_FP 1" >>confdefs.h
19717 # Solaris 12 Build 90, Solaris 11.3 SRU 5.6, and Solaris 10 Patch
19718 # 11996[67]-02 introduced the C++11 <math.h> integral type overloads.
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> integral type overloads" >&5
19720 $as_echo_n "checking for C++11 <math.h> integral type overloads... " >&6; }
19721 if ${glibcxx_cv_math11_int_overload+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727 #include <math.h>
19728 namespace std {
19729 template<typename _Tp>
19730 struct __is_integer;
19731 template<>
19732 struct __is_integer<int>
19734 enum { __value = 1 };
19737 namespace __gnu_cxx {
19738 template<bool, typename>
19739 struct __enable_if;
19740 template<typename _Tp>
19741 struct __enable_if<true, _Tp>
19742 { typedef _Tp __type; };
19744 namespace std {
19745 template<typename _Tp>
19746 constexpr typename __gnu_cxx::__enable_if
19747 <__is_integer<_Tp>::__value, double>::__type
19748 log2(_Tp __x)
19749 { return __builtin_log2(__x); }
19752 main (void)
19754 int i = 1000;
19755 return std::log2(i);
19758 _ACEOF
19759 if ac_fn_cxx_try_compile "$LINENO"; then :
19760 glibcxx_cv_math11_int_overload=no
19761 else
19762 glibcxx_cv_math11_int_overload=yes
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_int_overload" >&5
19768 $as_echo "$glibcxx_cv_math11_int_overload" >&6; }
19770 # autoheader cannot handle indented templates.
19773 if test $glibcxx_cv_math11_int_overload = yes; then
19774 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_INT 1" >>confdefs.h
19779 # If <math.h> defines the obsolete isinf(double) and isnan(double)
19780 # functions (instead of or as well as the C99 generic macros) then we
19781 # can't define std::isinf(double) and std::isnan(double) in <cmath>
19782 # and must use the ones from <math.h> instead.
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf function in <math.h>" >&5
19784 $as_echo_n "checking for obsolete isinf function in <math.h>... " >&6; }
19785 if ${glibcxx_cv_obsolete_isinf+:} false; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19792 #include <math.h>
19793 #undef isinf
19794 namespace std {
19795 using ::isinf;
19796 bool isinf(float);
19797 bool isinf(long double);
19799 using std::isinf;
19800 bool b = isinf(0.0);
19802 _ACEOF
19803 if ac_fn_cxx_try_compile "$LINENO"; then :
19804 glibcxx_cv_obsolete_isinf=yes
19805 else
19806 glibcxx_cv_obsolete_isinf=no
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf" >&5
19812 $as_echo "$glibcxx_cv_obsolete_isinf" >&6; }
19813 if test $glibcxx_cv_obsolete_isinf = yes; then
19815 $as_echo "#define HAVE_OBSOLETE_ISINF 1" >>confdefs.h
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isnan function in <math.h>" >&5
19820 $as_echo_n "checking for obsolete isnan function in <math.h>... " >&6; }
19821 if ${glibcxx_cv_obsolete_isnan+:} false; then :
19822 $as_echo_n "(cached) " >&6
19823 else
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19827 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19828 #include <math.h>
19829 #undef isnan
19830 namespace std {
19831 using ::isnan;
19832 bool isnan(float);
19833 bool isnan(long double);
19835 using std::isnan;
19836 bool b = isnan(0.0);
19838 _ACEOF
19839 if ac_fn_cxx_try_compile "$LINENO"; then :
19840 glibcxx_cv_obsolete_isnan=yes
19841 else
19842 glibcxx_cv_obsolete_isnan=no
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isnan" >&5
19848 $as_echo "$glibcxx_cv_obsolete_isnan" >&6; }
19849 if test $glibcxx_cv_obsolete_isnan = yes; then
19851 $as_echo "#define HAVE_OBSOLETE_ISNAN 1" >>confdefs.h
19855 esac
19857 CXXFLAGS="$ac_save_CXXFLAGS"
19858 ac_ext=c
19859 ac_cpp='$CPP $CPPFLAGS'
19860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867 # Test uchar.h.
19868 for ac_header in uchar.h
19869 do :
19870 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
19871 if test "x$ac_cv_header_uchar_h" = xyes; then :
19872 cat >>confdefs.h <<_ACEOF
19873 #define HAVE_UCHAR_H 1
19874 _ACEOF
19875 ac_has_uchar_h=yes
19876 else
19877 ac_has_uchar_h=no
19880 done
19884 ac_ext=cpp
19885 ac_cpp='$CXXCPP $CPPFLAGS'
19886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19890 ac_save_CXXFLAGS="$CXXFLAGS"
19891 CXXFLAGS="$CXXFLAGS -std=c++11"
19893 if test x"$ac_has_uchar_h" = x"yes"; then
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 support for <uchar.h>" >&5
19895 $as_echo_n "checking for ISO C11 support for <uchar.h>... " >&6; }
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 #include <uchar.h>
19899 #ifdef __STDC_UTF_16__
19900 long i = __STDC_UTF_16__;
19901 #endif
19902 #ifdef __STDC_UTF_32__
19903 long j = __STDC_UTF_32__;
19904 #endif
19905 namespace test
19907 using ::c16rtomb;
19908 using ::c32rtomb;
19909 using ::mbrtoc16;
19910 using ::mbrtoc32;
19914 main ()
19918 return 0;
19920 _ACEOF
19921 if ac_fn_cxx_try_compile "$LINENO"; then :
19922 ac_c11_uchar_cxx11=yes
19923 else
19924 ac_c11_uchar_cxx11=no
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c11_uchar_cxx11" >&5
19928 $as_echo "$ac_c11_uchar_cxx11" >&6; }
19929 else
19930 ac_c11_uchar_cxx11=no
19932 if test x"$ac_c11_uchar_cxx11" = x"yes"; then
19934 $as_echo "#define _GLIBCXX_USE_C11_UCHAR_CXX11 1" >>confdefs.h
19938 CXXFLAGS="$CXXFLAGS -fchar8_t"
19939 if test x"$ac_has_uchar_h" = x"yes"; then
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t" >&5
19941 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t... " >&6; }
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <uchar.h>
19945 namespace test
19947 using ::c8rtomb;
19948 using ::mbrtoc8;
19952 main ()
19956 return 0;
19958 _ACEOF
19959 if ac_fn_cxx_try_compile "$LINENO"; then :
19960 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=yes
19961 else
19962 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&5
19966 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&6; }
19967 else
19968 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19970 if test x"$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" = x"yes"; then
19972 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_FCHAR8_T 1" >>confdefs.h
19976 CXXFLAGS="$CXXFLAGS -std=c++20"
19977 if test x"$ac_has_uchar_h" = x"yes"; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20" >&5
19979 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20... " >&6; }
19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19982 #include <uchar.h>
19983 namespace test
19985 using ::c8rtomb;
19986 using ::mbrtoc8;
19990 main ()
19994 return 0;
19996 _ACEOF
19997 if ac_fn_cxx_try_compile "$LINENO"; then :
19998 ac_uchar_c8rtomb_mbrtoc8_cxx20=yes
19999 else
20000 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_cxx20" >&5
20004 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_cxx20" >&6; }
20005 else
20006 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
20008 if test x"$ac_uchar_c8rtomb_mbrtoc8_cxx20" = x"yes"; then
20010 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_CXX20 1" >>confdefs.h
20014 CXXFLAGS="$ac_save_CXXFLAGS"
20015 ac_ext=c
20016 ac_cpp='$CPP $CPPFLAGS'
20017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023 # For LFS support.
20026 ac_ext=cpp
20027 ac_cpp='$CXXCPP $CPPFLAGS'
20028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20032 ac_save_CXXFLAGS="$CXXFLAGS"
20033 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LFS support" >&5
20035 $as_echo_n "checking for LFS support... " >&6; }
20036 if ${glibcxx_cv_LFS+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20040 if test x$gcc_no_link = xyes; then
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043 #include <unistd.h>
20044 #include <stdio.h>
20045 #include <sys/stat.h>
20048 main ()
20050 FILE* fp;
20051 fopen64("t", "w");
20052 fseeko64(fp, 0, SEEK_CUR);
20053 ftello64(fp);
20054 lseek64(1, 0, SEEK_CUR);
20055 struct stat64 buf;
20056 fstat64(1, &buf);
20058 return 0;
20060 _ACEOF
20061 if ac_fn_cxx_try_compile "$LINENO"; then :
20062 glibcxx_cv_LFS=yes
20063 else
20064 glibcxx_cv_LFS=no
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 else
20068 if test x$gcc_no_link = xyes; then
20069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20073 #include <unistd.h>
20074 #include <stdio.h>
20075 #include <sys/stat.h>
20078 main ()
20080 FILE* fp;
20081 fopen64("t", "w");
20082 fseeko64(fp, 0, SEEK_CUR);
20083 ftello64(fp);
20084 lseek64(1, 0, SEEK_CUR);
20085 struct stat64 buf;
20086 fstat64(1, &buf);
20088 return 0;
20090 _ACEOF
20091 if ac_fn_cxx_try_link "$LINENO"; then :
20092 glibcxx_cv_LFS=yes
20093 else
20094 glibcxx_cv_LFS=no
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_LFS" >&5
20102 $as_echo "$glibcxx_cv_LFS" >&6; }
20103 if test $glibcxx_cv_LFS = yes; then
20105 $as_echo "#define _GLIBCXX_USE_LFS 1" >>confdefs.h
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko and ftello" >&5
20110 $as_echo_n "checking for fseeko and ftello... " >&6; }
20111 if ${glibcxx_cv_posix_lfs+:} false; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20115 if test x$gcc_no_link = xyes; then
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20118 #include <stdio.h>
20121 main ()
20123 FILE* fp;
20124 fseeko(fp, 0, SEEK_CUR);
20125 ftello(fp);
20128 return 0;
20130 _ACEOF
20131 if ac_fn_cxx_try_compile "$LINENO"; then :
20132 glibcxx_cv_posix_lfs=yes
20133 else
20134 glibcxx_cv_posix_lfs=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 else
20138 if test x$gcc_no_link = xyes; then
20139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <stdio.h>
20146 main ()
20148 FILE* fp;
20149 fseeko(fp, 0, SEEK_CUR);
20150 ftello(fp);
20153 return 0;
20155 _ACEOF
20156 if ac_fn_cxx_try_link "$LINENO"; then :
20157 glibcxx_cv_posix_lfs=yes
20158 else
20159 glibcxx_cv_posix_lfs=no
20161 rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_posix_lfs" >&5
20167 $as_echo "$glibcxx_cv_posix_lfs" >&6; }
20168 if test $glibcxx_cv_posix_lfs = yes; then
20170 $as_echo "#define _GLIBCXX_USE_FSEEKO_FTELLO 1" >>confdefs.h
20174 CXXFLAGS="$ac_save_CXXFLAGS"
20175 ac_ext=c
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183 # For showmanyc_helper().
20184 for ac_header in sys/ioctl.h sys/filio.h
20185 do :
20186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20187 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20189 cat >>confdefs.h <<_ACEOF
20190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20191 _ACEOF
20195 done
20200 ac_ext=cpp
20201 ac_cpp='$CXXCPP $CPPFLAGS'
20202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20206 ac_save_CXXFLAGS="$CXXFLAGS"
20207 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
20210 $as_echo_n "checking for poll... " >&6; }
20211 if ${glibcxx_cv_POLL+:} false; then :
20212 $as_echo_n "(cached) " >&6
20213 else
20215 if test x$gcc_no_link = xyes; then
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218 #include <poll.h>
20220 main ()
20222 struct pollfd pfd[1];
20223 pfd[0].events = POLLIN;
20224 poll(pfd, 1, 0);
20226 return 0;
20228 _ACEOF
20229 if ac_fn_cxx_try_compile "$LINENO"; then :
20230 glibcxx_cv_POLL=yes
20231 else
20232 glibcxx_cv_POLL=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 else
20236 if test x$gcc_no_link = xyes; then
20237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20241 #include <poll.h>
20243 main ()
20245 struct pollfd pfd[1];
20246 pfd[0].events = POLLIN;
20247 poll(pfd, 1, 0);
20249 return 0;
20251 _ACEOF
20252 if ac_fn_cxx_try_link "$LINENO"; then :
20253 glibcxx_cv_POLL=yes
20254 else
20255 glibcxx_cv_POLL=no
20257 rm -f core conftest.err conftest.$ac_objext \
20258 conftest$ac_exeext conftest.$ac_ext
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_POLL" >&5
20263 $as_echo "$glibcxx_cv_POLL" >&6; }
20264 if test $glibcxx_cv_POLL = yes; then
20266 $as_echo "#define HAVE_POLL 1" >>confdefs.h
20270 CXXFLAGS="$ac_save_CXXFLAGS"
20271 ac_ext=c
20272 ac_cpp='$CPP $CPPFLAGS'
20273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20281 ac_ext=cpp
20282 ac_cpp='$CXXCPP $CPPFLAGS'
20283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20287 ac_save_CXXFLAGS="$CXXFLAGS"
20288 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISREG or S_IFREG" >&5
20291 $as_echo_n "checking for S_ISREG or S_IFREG... " >&6; }
20292 if ${glibcxx_cv_S_ISREG+:} false; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20296 if test x$gcc_no_link = xyes; then
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #include <sys/stat.h>
20301 main ()
20303 struct stat buffer;
20304 fstat(0, &buffer);
20305 S_ISREG(buffer.st_mode);
20307 return 0;
20309 _ACEOF
20310 if ac_fn_cxx_try_compile "$LINENO"; then :
20311 glibcxx_cv_S_ISREG=yes
20312 else
20313 glibcxx_cv_S_ISREG=no
20315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316 else
20317 if test x$gcc_no_link = xyes; then
20318 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h. */
20322 #include <sys/stat.h>
20324 main ()
20326 struct stat buffer;
20327 fstat(0, &buffer);
20328 S_ISREG(buffer.st_mode);
20330 return 0;
20332 _ACEOF
20333 if ac_fn_cxx_try_link "$LINENO"; then :
20334 glibcxx_cv_S_ISREG=yes
20335 else
20336 glibcxx_cv_S_ISREG=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20344 if ${glibcxx_cv_S_IFREG+:} false; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20348 if test x$gcc_no_link = xyes; then
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351 #include <sys/stat.h>
20353 main ()
20355 struct stat buffer;
20356 fstat(0, &buffer);
20357 S_IFREG & buffer.st_mode;
20359 return 0;
20361 _ACEOF
20362 if ac_fn_cxx_try_compile "$LINENO"; then :
20363 glibcxx_cv_S_IFREG=yes
20364 else
20365 glibcxx_cv_S_IFREG=no
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 else
20369 if test x$gcc_no_link = xyes; then
20370 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373 /* end confdefs.h. */
20374 #include <sys/stat.h>
20376 main ()
20378 struct stat buffer;
20379 fstat(0, &buffer);
20380 S_IFREG & buffer.st_mode;
20382 return 0;
20384 _ACEOF
20385 if ac_fn_cxx_try_link "$LINENO"; then :
20386 glibcxx_cv_S_IFREG=yes
20387 else
20388 glibcxx_cv_S_IFREG=no
20390 rm -f core conftest.err conftest.$ac_objext \
20391 conftest$ac_exeext conftest.$ac_ext
20396 res=no
20397 if test $glibcxx_cv_S_ISREG = yes; then
20399 $as_echo "#define HAVE_S_ISREG 1" >>confdefs.h
20401 res=S_ISREG
20402 elif test $glibcxx_cv_S_IFREG = yes; then
20404 $as_echo "#define HAVE_S_IFREG 1" >>confdefs.h
20406 res=S_IFREG
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
20409 $as_echo "$res" >&6; }
20411 CXXFLAGS="$ac_save_CXXFLAGS"
20412 ac_ext=c
20413 ac_cpp='$CPP $CPPFLAGS'
20414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20420 # For xsputn_2().
20421 for ac_header in sys/uio.h
20422 do :
20423 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
20424 if test "x$ac_cv_header_sys_uio_h" = xyes; then :
20425 cat >>confdefs.h <<_ACEOF
20426 #define HAVE_SYS_UIO_H 1
20427 _ACEOF
20431 done
20436 ac_ext=cpp
20437 ac_cpp='$CXXCPP $CPPFLAGS'
20438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20442 ac_save_CXXFLAGS="$CXXFLAGS"
20443 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev" >&5
20446 $as_echo_n "checking for writev... " >&6; }
20447 if ${glibcxx_cv_WRITEV+:} false; then :
20448 $as_echo_n "(cached) " >&6
20449 else
20451 if test x$gcc_no_link = xyes; then
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454 #include <sys/uio.h>
20456 main ()
20458 struct iovec iov[2];
20459 writev(0, iov, 0);
20461 return 0;
20463 _ACEOF
20464 if ac_fn_cxx_try_compile "$LINENO"; then :
20465 glibcxx_cv_WRITEV=yes
20466 else
20467 glibcxx_cv_WRITEV=no
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 else
20471 if test x$gcc_no_link = xyes; then
20472 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476 #include <sys/uio.h>
20478 main ()
20480 struct iovec iov[2];
20481 writev(0, iov, 0);
20483 return 0;
20485 _ACEOF
20486 if ac_fn_cxx_try_link "$LINENO"; then :
20487 glibcxx_cv_WRITEV=yes
20488 else
20489 glibcxx_cv_WRITEV=no
20491 rm -f core conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_WRITEV" >&5
20497 $as_echo "$glibcxx_cv_WRITEV" >&6; }
20498 if test $glibcxx_cv_WRITEV = yes; then
20500 $as_echo "#define HAVE_WRITEV 1" >>confdefs.h
20504 CXXFLAGS="$ac_save_CXXFLAGS"
20505 ac_ext=c
20506 ac_cpp='$CPP $CPPFLAGS'
20507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513 # Check for fenv.h and complex.h before GLIBCXX_CHECK_C99_TR1
20514 # so that the check is done with the C compiler (not C++).
20515 # Checking with C++ can break a canadian cross build if either
20516 # file does not exist in C but does in C++.
20517 for ac_header in fenv.h complex.h
20518 do :
20519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20522 cat >>confdefs.h <<_ACEOF
20523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20524 _ACEOF
20528 done
20531 # For C99 support to TR1.
20535 ac_ext=cpp
20536 ac_cpp='$CXXCPP $CPPFLAGS'
20537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20542 # Use -std=c++98 because -std=gnu++98 leaves __STRICT_ANSI__
20543 # undefined and fake C99 facilities may be spuriously enabled.
20544 ac_save_CXXFLAGS="$CXXFLAGS"
20545 CXXFLAGS="$CXXFLAGS -std=c++98"
20547 # Check for the existence of <complex.h> complex math functions used
20548 # by tr1/complex.
20549 for ac_header in complex.h
20550 do :
20551 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
20552 if test "x$ac_cv_header_complex_h" = xyes; then :
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_COMPLEX_H 1
20555 _ACEOF
20556 ac_has_complex_h=yes
20557 else
20558 ac_has_complex_h=no
20561 done
20563 ac_c99_complex_tr1=no;
20564 if test x"$ac_has_complex_h" = x"yes"; then
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <complex.h>" >&5
20566 $as_echo_n "checking for ISO C99 support to TR1 in <complex.h>... " >&6; }
20567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h. */
20569 #include <complex.h>
20571 main ()
20573 typedef __complex__ float float_type; float_type tmpf;
20574 cacosf(tmpf);
20575 casinf(tmpf);
20576 catanf(tmpf);
20577 cacoshf(tmpf);
20578 casinhf(tmpf);
20579 catanhf(tmpf);
20580 typedef __complex__ double double_type; double_type tmpd;
20581 cacos(tmpd);
20582 casin(tmpd);
20583 catan(tmpd);
20584 cacosh(tmpd);
20585 casinh(tmpd);
20586 catanh(tmpd);
20587 typedef __complex__ long double ld_type; ld_type tmpld;
20588 cacosl(tmpld);
20589 casinl(tmpld);
20590 catanl(tmpld);
20591 cacoshl(tmpld);
20592 casinhl(tmpld);
20593 catanhl(tmpld);
20596 return 0;
20598 _ACEOF
20599 if ac_fn_cxx_try_compile "$LINENO"; then :
20600 ac_c99_complex_tr1=yes
20601 else
20602 ac_c99_complex_tr1=no
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_tr1" >&5
20607 $as_echo "$ac_c99_complex_tr1" >&6; }
20608 if test x"$ac_c99_complex_tr1" = x"yes"; then
20610 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_TR1 1" >>confdefs.h
20614 # Check for the existence of <ctype.h> functions.
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <ctype.h>" >&5
20616 $as_echo_n "checking for ISO C99 support to TR1 in <ctype.h>... " >&6; }
20617 if ${glibcxx_cv_c99_ctype_tr1+:} false; then :
20618 $as_echo_n "(cached) " >&6
20619 else
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20623 #include <ctype.h>
20625 main ()
20627 int ch;
20628 int ret;
20629 ret = isblank(ch);
20632 return 0;
20634 _ACEOF
20635 if ac_fn_cxx_try_compile "$LINENO"; then :
20636 glibcxx_cv_c99_ctype_tr1=yes
20637 else
20638 glibcxx_cv_c99_ctype_tr1=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype_tr1" >&5
20644 $as_echo "$glibcxx_cv_c99_ctype_tr1" >&6; }
20645 if test x"$glibcxx_cv_c99_ctype_tr1" = x"yes"; then
20647 $as_echo "#define _GLIBCXX_USE_C99_CTYPE_TR1 1" >>confdefs.h
20651 # Check for the existence of <fenv.h> functions.
20652 for ac_header in fenv.h
20653 do :
20654 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
20655 if test "x$ac_cv_header_fenv_h" = xyes; then :
20656 cat >>confdefs.h <<_ACEOF
20657 #define HAVE_FENV_H 1
20658 _ACEOF
20659 ac_has_fenv_h=yes
20660 else
20661 ac_has_fenv_h=no
20664 done
20666 ac_c99_fenv_tr1=no;
20667 if test x"$ac_has_fenv_h" = x"yes"; then
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <fenv.h>" >&5
20669 $as_echo_n "checking for ISO C99 support to TR1 in <fenv.h>... " >&6; }
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20672 #include <fenv.h>
20674 main ()
20676 int except, mode;
20677 fexcept_t* pflag;
20678 fenv_t* penv;
20679 int ret;
20680 ret = feclearexcept(except);
20681 ret = fegetexceptflag(pflag, except);
20682 ret = feraiseexcept(except);
20683 ret = fesetexceptflag(pflag, except);
20684 ret = fetestexcept(except);
20685 ret = fegetround();
20686 ret = fesetround(mode);
20687 ret = fegetenv(penv);
20688 ret = feholdexcept(penv);
20689 ret = fesetenv(penv);
20690 ret = feupdateenv(penv);
20693 return 0;
20695 _ACEOF
20696 if ac_fn_cxx_try_compile "$LINENO"; then :
20697 ac_c99_fenv_tr1=yes
20698 else
20699 ac_c99_fenv_tr1=no
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv_tr1" >&5
20703 $as_echo "$ac_c99_fenv_tr1" >&6; }
20705 if test x"$ac_c99_fenv_tr1" = x"yes"; then
20707 $as_echo "#define _GLIBCXX_USE_C99_FENV_TR1 1" >>confdefs.h
20711 # Check for the existence of <stdint.h> types.
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <stdint.h>" >&5
20713 $as_echo_n "checking for ISO C99 support to TR1 in <stdint.h>... " >&6; }
20714 if ${glibcxx_cv_c99_stdint_tr1+:} false; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #define __STDC_LIMIT_MACROS
20721 #define __STDC_CONSTANT_MACROS
20722 #include <stdint.h>
20724 main ()
20726 typedef int8_t my_int8_t;
20727 my_int8_t i8 = INT8_MIN;
20728 i8 = INT8_MAX;
20729 typedef int16_t my_int16_t;
20730 my_int16_t i16 = INT16_MIN;
20731 i16 = INT16_MAX;
20732 typedef int32_t my_int32_t;
20733 my_int32_t i32 = INT32_MIN;
20734 i32 = INT32_MAX;
20735 typedef int64_t my_int64_t;
20736 my_int64_t i64 = INT64_MIN;
20737 i64 = INT64_MAX;
20738 typedef int_fast8_t my_int_fast8_t;
20739 my_int_fast8_t if8 = INT_FAST8_MIN;
20740 if8 = INT_FAST8_MAX;
20741 typedef int_fast16_t my_int_fast16_t;
20742 my_int_fast16_t if16 = INT_FAST16_MIN;
20743 if16 = INT_FAST16_MAX;
20744 typedef int_fast32_t my_int_fast32_t;
20745 my_int_fast32_t if32 = INT_FAST32_MIN;
20746 if32 = INT_FAST32_MAX;
20747 typedef int_fast64_t my_int_fast64_t;
20748 my_int_fast64_t if64 = INT_FAST64_MIN;
20749 if64 = INT_FAST64_MAX;
20750 typedef int_least8_t my_int_least8_t;
20751 my_int_least8_t il8 = INT_LEAST8_MIN;
20752 il8 = INT_LEAST8_MAX;
20753 typedef int_least16_t my_int_least16_t;
20754 my_int_least16_t il16 = INT_LEAST16_MIN;
20755 il16 = INT_LEAST16_MAX;
20756 typedef int_least32_t my_int_least32_t;
20757 my_int_least32_t il32 = INT_LEAST32_MIN;
20758 il32 = INT_LEAST32_MAX;
20759 typedef int_least64_t my_int_least64_t;
20760 my_int_least64_t il64 = INT_LEAST64_MIN;
20761 il64 = INT_LEAST64_MAX;
20762 typedef intmax_t my_intmax_t;
20763 my_intmax_t im = INTMAX_MAX;
20764 im = INTMAX_MIN;
20765 typedef intptr_t my_intptr_t;
20766 my_intptr_t ip = INTPTR_MAX;
20767 ip = INTPTR_MIN;
20768 typedef uint8_t my_uint8_t;
20769 my_uint8_t ui8 = UINT8_MAX;
20770 ui8 = UINT8_MAX;
20771 typedef uint16_t my_uint16_t;
20772 my_uint16_t ui16 = UINT16_MAX;
20773 ui16 = UINT16_MAX;
20774 typedef uint32_t my_uint32_t;
20775 my_uint32_t ui32 = UINT32_MAX;
20776 ui32 = UINT32_MAX;
20777 typedef uint64_t my_uint64_t;
20778 my_uint64_t ui64 = UINT64_MAX;
20779 ui64 = UINT64_MAX;
20780 typedef uint_fast8_t my_uint_fast8_t;
20781 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
20782 uif8 = UINT_FAST8_MAX;
20783 typedef uint_fast16_t my_uint_fast16_t;
20784 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
20785 uif16 = UINT_FAST16_MAX;
20786 typedef uint_fast32_t my_uint_fast32_t;
20787 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
20788 uif32 = UINT_FAST32_MAX;
20789 typedef uint_fast64_t my_uint_fast64_t;
20790 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
20791 uif64 = UINT_FAST64_MAX;
20792 typedef uint_least8_t my_uint_least8_t;
20793 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
20794 uil8 = UINT_LEAST8_MAX;
20795 typedef uint_least16_t my_uint_least16_t;
20796 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
20797 uil16 = UINT_LEAST16_MAX;
20798 typedef uint_least32_t my_uint_least32_t;
20799 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
20800 uil32 = UINT_LEAST32_MAX;
20801 typedef uint_least64_t my_uint_least64_t;
20802 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
20803 uil64 = UINT_LEAST64_MAX;
20804 typedef uintmax_t my_uintmax_t;
20805 my_uintmax_t uim = UINTMAX_MAX;
20806 uim = UINTMAX_MAX;
20807 typedef uintptr_t my_uintptr_t;
20808 my_uintptr_t uip = UINTPTR_MAX;
20809 uip = UINTPTR_MAX;
20812 return 0;
20814 _ACEOF
20815 if ac_fn_cxx_try_compile "$LINENO"; then :
20816 glibcxx_cv_c99_stdint_tr1=yes
20817 else
20818 glibcxx_cv_c99_stdint_tr1=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint_tr1" >&5
20824 $as_echo "$glibcxx_cv_c99_stdint_tr1" >&6; }
20825 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20827 $as_echo "#define _GLIBCXX_USE_C99_STDINT_TR1 1" >>confdefs.h
20831 # Check for the existence of <math.h> functions.
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <math.h>" >&5
20833 $as_echo_n "checking for ISO C99 support to TR1 in <math.h>... " >&6; }
20834 if ${glibcxx_cv_c99_math_tr1+:} false; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <math.h>
20842 main ()
20844 typedef double_t my_double_t;
20845 typedef float_t my_float_t;
20846 acosh(0.0);
20847 acoshf(0.0f);
20848 acoshl(0.0l);
20849 asinh(0.0);
20850 asinhf(0.0f);
20851 asinhl(0.0l);
20852 atanh(0.0);
20853 atanhf(0.0f);
20854 atanhl(0.0l);
20855 cbrt(0.0);
20856 cbrtf(0.0f);
20857 cbrtl(0.0l);
20858 copysign(0.0, 0.0);
20859 copysignf(0.0f, 0.0f);
20860 copysignl(0.0l, 0.0l);
20861 erf(0.0);
20862 erff(0.0f);
20863 erfl(0.0l);
20864 erfc(0.0);
20865 erfcf(0.0f);
20866 erfcl(0.0l);
20867 exp2(0.0);
20868 exp2f(0.0f);
20869 exp2l(0.0l);
20870 expm1(0.0);
20871 expm1f(0.0f);
20872 expm1l(0.0l);
20873 fdim(0.0, 0.0);
20874 fdimf(0.0f, 0.0f);
20875 fdiml(0.0l, 0.0l);
20876 fma(0.0, 0.0, 0.0);
20877 fmaf(0.0f, 0.0f, 0.0f);
20878 fmal(0.0l, 0.0l, 0.0l);
20879 fmax(0.0, 0.0);
20880 fmaxf(0.0f, 0.0f);
20881 fmaxl(0.0l, 0.0l);
20882 fmin(0.0, 0.0);
20883 fminf(0.0f, 0.0f);
20884 fminl(0.0l, 0.0l);
20885 hypot(0.0, 0.0);
20886 hypotf(0.0f, 0.0f);
20887 hypotl(0.0l, 0.0l);
20888 ilogb(0.0);
20889 ilogbf(0.0f);
20890 ilogbl(0.0l);
20891 lgamma(0.0);
20892 lgammaf(0.0f);
20893 lgammal(0.0l);
20894 #ifndef __APPLE__ /* see below */
20895 llrint(0.0);
20896 llrintf(0.0f);
20897 llrintl(0.0l);
20898 llround(0.0);
20899 llroundf(0.0f);
20900 llroundl(0.0l);
20901 #endif
20902 log1p(0.0);
20903 log1pf(0.0f);
20904 log1pl(0.0l);
20905 log2(0.0);
20906 log2f(0.0f);
20907 log2l(0.0l);
20908 logb(0.0);
20909 logbf(0.0f);
20910 logbl(0.0l);
20911 lrint(0.0);
20912 lrintf(0.0f);
20913 lrintl(0.0l);
20914 lround(0.0);
20915 lroundf(0.0f);
20916 lroundl(0.0l);
20917 nan("");
20918 nanf("");
20919 nanl("");
20920 nearbyint(0.0);
20921 nearbyintf(0.0f);
20922 nearbyintl(0.0l);
20923 nextafter(0.0, 0.0);
20924 nextafterf(0.0f, 0.0f);
20925 nextafterl(0.0l, 0.0l);
20926 nexttoward(0.0, 0.0);
20927 nexttowardf(0.0f, 0.0f);
20928 nexttowardl(0.0l, 0.0l);
20929 remainder(0.0, 0.0);
20930 remainderf(0.0f, 0.0f);
20931 remainderl(0.0l, 0.0l);
20932 remquo(0.0, 0.0, 0);
20933 remquof(0.0f, 0.0f, 0);
20934 remquol(0.0l, 0.0l, 0);
20935 rint(0.0);
20936 rintf(0.0f);
20937 rintl(0.0l);
20938 round(0.0);
20939 roundf(0.0f);
20940 roundl(0.0l);
20941 scalbln(0.0, 0l);
20942 scalblnf(0.0f, 0l);
20943 scalblnl(0.0l, 0l);
20944 scalbn(0.0, 0);
20945 scalbnf(0.0f, 0);
20946 scalbnl(0.0l, 0);
20947 tgamma(0.0);
20948 tgammaf(0.0f);
20949 tgammal(0.0l);
20950 trunc(0.0);
20951 truncf(0.0f);
20952 truncl(0.0l);
20955 return 0;
20957 _ACEOF
20958 if ac_fn_cxx_try_compile "$LINENO"; then :
20959 glibcxx_cv_c99_math_tr1=yes
20960 else
20961 glibcxx_cv_c99_math_tr1=no
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_tr1" >&5
20967 $as_echo "$glibcxx_cv_c99_math_tr1" >&6; }
20968 if test x"$glibcxx_cv_c99_math_tr1" = x"yes"; then
20970 $as_echo "#define _GLIBCXX_USE_C99_MATH_TR1 1" >>confdefs.h
20974 # Check for the existence of <inttypes.h> functions (NB: doesn't make
20975 # sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
20976 ac_c99_inttypes_tr1=no;
20977 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <inttypes.h>" >&5
20979 $as_echo_n "checking for ISO C99 support to TR1 in <inttypes.h>... " >&6; }
20980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h. */
20982 #include <inttypes.h>
20984 main ()
20986 intmax_t i, numer, denom, base;
20987 const char* s;
20988 char** endptr;
20989 intmax_t ret = imaxabs(i);
20990 imaxdiv_t dret = imaxdiv(numer, denom);
20991 ret = strtoimax(s, endptr, base);
20992 uintmax_t uret = strtoumax(s, endptr, base);
20995 return 0;
20997 _ACEOF
20998 if ac_fn_cxx_try_compile "$LINENO"; then :
20999 ac_c99_inttypes_tr1=yes
21000 else
21001 ac_c99_inttypes_tr1=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_tr1" >&5
21005 $as_echo "$ac_c99_inttypes_tr1" >&6; }
21007 if test x"$ac_c99_inttypes_tr1" = x"yes"; then
21009 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_TR1 1" >>confdefs.h
21013 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
21014 # make sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
21015 ac_c99_inttypes_wchar_t_tr1=no;
21016 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support to TR1 in <inttypes.h>" >&5
21018 $as_echo_n "checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... " >&6; }
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021 #include <inttypes.h>
21023 main ()
21025 intmax_t base;
21026 const wchar_t* s;
21027 wchar_t** endptr;
21028 intmax_t ret = wcstoimax(s, endptr, base);
21029 uintmax_t uret = wcstoumax(s, endptr, base);
21032 return 0;
21034 _ACEOF
21035 if ac_fn_cxx_try_compile "$LINENO"; then :
21036 ac_c99_inttypes_wchar_t_tr1=yes
21037 else
21038 ac_c99_inttypes_wchar_t_tr1=no
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t_tr1" >&5
21042 $as_echo "$ac_c99_inttypes_wchar_t_tr1" >&6; }
21044 if test x"$ac_c99_inttypes_wchar_t_tr1" = x"yes"; then
21046 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1 1" >>confdefs.h
21050 # Check for the existence of the <stdbool.h> header.
21051 for ac_header in stdbool.h
21052 do :
21053 ac_fn_cxx_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
21054 if test "x$ac_cv_header_stdbool_h" = xyes; then :
21055 cat >>confdefs.h <<_ACEOF
21056 #define HAVE_STDBOOL_H 1
21057 _ACEOF
21061 done
21064 # Check for the existence of the <stdalign.h> header.
21065 for ac_header in stdalign.h
21066 do :
21067 ac_fn_cxx_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
21068 if test "x$ac_cv_header_stdalign_h" = xyes; then :
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_STDALIGN_H 1
21071 _ACEOF
21075 done
21078 CXXFLAGS="$ac_save_CXXFLAGS"
21079 ac_ext=c
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087 # For the EOF, SEEK_CUR, and SEEK_END integer constants.
21090 if test "$is_hosted" = yes; then
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of EOF" >&5
21092 $as_echo_n "checking for the value of EOF... " >&6; }
21093 if ${glibcxx_cv_stdio_eof+:} false; then :
21094 $as_echo_n "(cached) " >&6
21095 else
21097 if ac_fn_c_compute_int "$LINENO" "EOF" "glibcxx_cv_stdio_eof" "#include <stdio.h>"; then :
21099 else
21100 as_fn_error $? "computing EOF failed" "$LINENO" 5
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_eof" >&5
21106 $as_echo "$glibcxx_cv_stdio_eof" >&6; }
21108 cat >>confdefs.h <<_ACEOF
21109 #define _GLIBCXX_STDIO_EOF $glibcxx_cv_stdio_eof
21110 _ACEOF
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_CUR" >&5
21114 $as_echo_n "checking for the value of SEEK_CUR... " >&6; }
21115 if ${glibcxx_cv_stdio_seek_cur+:} false; then :
21116 $as_echo_n "(cached) " >&6
21117 else
21119 if ac_fn_c_compute_int "$LINENO" "SEEK_CUR" "glibcxx_cv_stdio_seek_cur" "#include <stdio.h>"; then :
21121 else
21122 as_fn_error $? "computing SEEK_CUR failed" "$LINENO" 5
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_cur" >&5
21128 $as_echo "$glibcxx_cv_stdio_seek_cur" >&6; }
21130 cat >>confdefs.h <<_ACEOF
21131 #define _GLIBCXX_STDIO_SEEK_CUR $glibcxx_cv_stdio_seek_cur
21132 _ACEOF
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_END" >&5
21136 $as_echo_n "checking for the value of SEEK_END... " >&6; }
21137 if ${glibcxx_cv_stdio_seek_end+:} false; then :
21138 $as_echo_n "(cached) " >&6
21139 else
21141 if ac_fn_c_compute_int "$LINENO" "SEEK_END" "glibcxx_cv_stdio_seek_end" "#include <stdio.h>"; then :
21143 else
21144 as_fn_error $? "computing SEEK_END failed" "$LINENO" 5
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_end" >&5
21150 $as_echo "$glibcxx_cv_stdio_seek_end" >&6; }
21152 cat >>confdefs.h <<_ACEOF
21153 #define _GLIBCXX_STDIO_SEEK_END $glibcxx_cv_stdio_seek_end
21154 _ACEOF
21159 # For gettimeofday support.
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21163 $as_echo_n "checking for gettimeofday... " >&6; }
21166 ac_ext=cpp
21167 ac_cpp='$CXXCPP $CPPFLAGS'
21168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21172 ac_save_CXXFLAGS="$CXXFLAGS"
21173 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21175 ac_has_gettimeofday=no;
21176 for ac_header in sys/time.h
21177 do :
21178 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
21179 if test "x$ac_cv_header_sys_time_h" = xyes; then :
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE_SYS_TIME_H 1
21182 _ACEOF
21183 ac_has_sys_time_h=yes
21184 else
21185 ac_has_sys_time_h=no
21188 done
21190 if test x"$ac_has_sys_time_h" = x"yes"; then
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21192 $as_echo_n "checking for gettimeofday... " >&6; }
21193 if test x$gcc_no_link = xyes; then
21194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h. */
21196 #include <sys/time.h>
21198 main ()
21200 timeval tv; gettimeofday(&tv, 0);
21202 return 0;
21204 _ACEOF
21205 if ac_fn_cxx_try_compile "$LINENO"; then :
21206 ac_has_gettimeofday=yes
21207 else
21208 ac_has_gettimeofday=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 else
21212 if test x$gcc_no_link = xyes; then
21213 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217 #include <sys/time.h>
21219 main ()
21221 timeval tv; gettimeofday(&tv, 0);
21223 return 0;
21225 _ACEOF
21226 if ac_fn_cxx_try_link "$LINENO"; then :
21227 ac_has_gettimeofday=yes
21228 else
21229 ac_has_gettimeofday=no
21231 rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
21236 $as_echo "$ac_has_gettimeofday" >&6; }
21239 if test x"$ac_has_gettimeofday" = x"yes"; then
21241 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
21245 CXXFLAGS="$ac_save_CXXFLAGS"
21246 ac_ext=c
21247 ac_cpp='$CPP $CPPFLAGS'
21248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254 # For clock_gettime, nanosleep and sched_yield support.
21257 # Check whether --enable-libstdcxx-time was given.
21258 if test "${enable_libstdcxx_time+set}" = set; then :
21259 enableval=$enable_libstdcxx_time;
21260 case "$enableval" in
21261 yes|no|rt) ;;
21262 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
21263 esac
21265 else
21266 enable_libstdcxx_time=auto
21272 ac_ext=cpp
21273 ac_cpp='$CXXCPP $CPPFLAGS'
21274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21278 ac_save_CXXFLAGS="$CXXFLAGS"
21279 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21280 ac_save_LIBS="$LIBS"
21282 ac_has_clock_monotonic=no
21283 ac_has_clock_realtime=no
21284 ac_has_nanosleep=no
21285 ac_has_sched_yield=no
21287 if test x"$enable_libstdcxx_time" = x"auto"; then
21289 case "${target_os}" in
21290 cygwin*)
21291 ac_has_nanosleep=yes
21293 mingw*)
21294 ac_has_win32_sleep=yes
21295 ac_has_sched_yield=yes
21297 darwin*)
21298 ac_has_nanosleep=yes
21299 ac_has_sched_yield=yes
21301 # VxWorks has nanosleep as soon as the kernel is configured with
21302 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
21303 vxworks*)
21304 ac_has_nanosleep=yes
21306 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21307 # Don't use link test for freestanding library, in case gcc_no_link=yes
21308 if test x"$is_hosted" = xyes; then
21309 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21311 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21312 if ${ac_cv_search_clock_gettime+:} false; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ac_func_search_save_LIBS=$LIBS
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21319 /* Override any GCC internal prototype to avoid an error.
21320 Use char because int might match the return type of a GCC
21321 builtin and then its argument prototype would still apply. */
21322 #ifdef __cplusplus
21323 extern "C"
21324 #endif
21325 char clock_gettime ();
21327 main ()
21329 return clock_gettime ();
21331 return 0;
21333 _ACEOF
21334 for ac_lib in '' rt; do
21335 if test -z "$ac_lib"; then
21336 ac_res="none required"
21337 else
21338 ac_res=-l$ac_lib
21339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21341 if test x$gcc_no_link = xyes; then
21342 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21344 if ac_fn_cxx_try_link "$LINENO"; then :
21345 ac_cv_search_clock_gettime=$ac_res
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext
21349 if ${ac_cv_search_clock_gettime+:} false; then :
21350 break
21352 done
21353 if ${ac_cv_search_clock_gettime+:} false; then :
21355 else
21356 ac_cv_search_clock_gettime=no
21358 rm conftest.$ac_ext
21359 LIBS=$ac_func_search_save_LIBS
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21362 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21363 ac_res=$ac_cv_search_clock_gettime
21364 if test "$ac_res" != no; then :
21365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21369 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
21370 ac_has_clock_monotonic=yes
21371 ac_has_clock_realtime=yes
21374 ac_has_nanosleep=yes
21375 ac_has_sched_yield=yes
21377 freebsd*|netbsd*|dragonfly*|rtems*)
21378 ac_has_clock_monotonic=yes
21379 ac_has_clock_realtime=yes
21380 ac_has_nanosleep=yes
21381 ac_has_sched_yield=yes
21383 openbsd*)
21384 ac_has_clock_monotonic=yes
21385 ac_has_clock_realtime=yes
21386 ac_has_nanosleep=yes
21388 solaris*)
21389 ac_has_clock_monotonic=yes
21390 ac_has_clock_realtime=yes
21391 ac_has_nanosleep=yes
21392 ac_has_sched_yield=yes
21394 uclinux*)
21395 ac_has_nanosleep=yes
21396 ac_has_sched_yield=yes
21397 esac
21399 elif test x"$enable_libstdcxx_time" != x"no"; then
21401 if test x"$enable_libstdcxx_time" = x"rt"; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21403 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21404 if ${ac_cv_search_clock_gettime+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 ac_func_search_save_LIBS=$LIBS
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21411 /* Override any GCC internal prototype to avoid an error.
21412 Use char because int might match the return type of a GCC
21413 builtin and then its argument prototype would still apply. */
21414 #ifdef __cplusplus
21415 extern "C"
21416 #endif
21417 char clock_gettime ();
21419 main ()
21421 return clock_gettime ();
21423 return 0;
21425 _ACEOF
21426 for ac_lib in '' rt; do
21427 if test -z "$ac_lib"; then
21428 ac_res="none required"
21429 else
21430 ac_res=-l$ac_lib
21431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21433 if test x$gcc_no_link = xyes; then
21434 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21436 if ac_fn_cxx_try_link "$LINENO"; then :
21437 ac_cv_search_clock_gettime=$ac_res
21439 rm -f core conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext
21441 if ${ac_cv_search_clock_gettime+:} false; then :
21442 break
21444 done
21445 if ${ac_cv_search_clock_gettime+:} false; then :
21447 else
21448 ac_cv_search_clock_gettime=no
21450 rm conftest.$ac_ext
21451 LIBS=$ac_func_search_save_LIBS
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21454 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21455 ac_res=$ac_cv_search_clock_gettime
21456 if test "$ac_res" != no; then :
21457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21462 $as_echo_n "checking for library containing nanosleep... " >&6; }
21463 if ${ac_cv_search_nanosleep+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 ac_func_search_save_LIBS=$LIBS
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h. */
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 char nanosleep ();
21478 main ()
21480 return nanosleep ();
21482 return 0;
21484 _ACEOF
21485 for ac_lib in '' rt; do
21486 if test -z "$ac_lib"; then
21487 ac_res="none required"
21488 else
21489 ac_res=-l$ac_lib
21490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21492 if test x$gcc_no_link = xyes; then
21493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21495 if ac_fn_cxx_try_link "$LINENO"; then :
21496 ac_cv_search_nanosleep=$ac_res
21498 rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext
21500 if ${ac_cv_search_nanosleep+:} false; then :
21501 break
21503 done
21504 if ${ac_cv_search_nanosleep+:} false; then :
21506 else
21507 ac_cv_search_nanosleep=no
21509 rm conftest.$ac_ext
21510 LIBS=$ac_func_search_save_LIBS
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21513 $as_echo "$ac_cv_search_nanosleep" >&6; }
21514 ac_res=$ac_cv_search_nanosleep
21515 if test "$ac_res" != no; then :
21516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21520 else
21521 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
21522 if test "x$ac_cv_func_clock_gettime" = xyes; then :
21526 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
21527 if test "x$ac_cv_func_nanosleep" = xyes; then :
21533 case "$ac_cv_search_clock_gettime" in
21534 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
21536 esac
21537 case "$ac_cv_search_nanosleep" in
21538 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
21540 esac
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21543 $as_echo_n "checking for library containing sched_yield... " >&6; }
21544 if ${ac_cv_search_sched_yield+:} false; then :
21545 $as_echo_n "(cached) " >&6
21546 else
21547 ac_func_search_save_LIBS=$LIBS
21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21554 #ifdef __cplusplus
21555 extern "C"
21556 #endif
21557 char sched_yield ();
21559 main ()
21561 return sched_yield ();
21563 return 0;
21565 _ACEOF
21566 for ac_lib in '' rt; do
21567 if test -z "$ac_lib"; then
21568 ac_res="none required"
21569 else
21570 ac_res=-l$ac_lib
21571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21573 if test x$gcc_no_link = xyes; then
21574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21576 if ac_fn_cxx_try_link "$LINENO"; then :
21577 ac_cv_search_sched_yield=$ac_res
21579 rm -f core conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext
21581 if ${ac_cv_search_sched_yield+:} false; then :
21582 break
21584 done
21585 if ${ac_cv_search_sched_yield+:} false; then :
21587 else
21588 ac_cv_search_sched_yield=no
21590 rm conftest.$ac_ext
21591 LIBS=$ac_func_search_save_LIBS
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21594 $as_echo "$ac_cv_search_sched_yield" >&6; }
21595 ac_res=$ac_cv_search_sched_yield
21596 if test "$ac_res" != no; then :
21597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21602 case "$ac_cv_search_sched_yield" in
21603 -lrt*)
21604 if test x"$enable_libstdcxx_time" = x"rt"; then
21605 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
21606 ac_has_sched_yield=yes
21610 ac_has_sched_yield=yes
21612 esac
21614 for ac_header in unistd.h
21615 do :
21616 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21617 if test "x$ac_cv_header_unistd_h" = xyes; then :
21618 cat >>confdefs.h <<_ACEOF
21619 #define HAVE_UNISTD_H 1
21620 _ACEOF
21621 ac_has_unistd_h=yes
21622 else
21623 ac_has_unistd_h=no
21626 done
21629 if test x"$ac_has_unistd_h" = x"yes"; then
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
21631 $as_echo_n "checking for monotonic clock... " >&6; }
21632 if test x$gcc_no_link = xyes; then
21633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21637 #include <unistd.h>
21638 #include <time.h>
21641 main ()
21643 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21644 timespec tp;
21645 #endif
21646 clock_gettime(CLOCK_MONOTONIC, &tp);
21649 return 0;
21651 _ACEOF
21652 if ac_fn_cxx_try_link "$LINENO"; then :
21653 ac_has_clock_monotonic=yes
21654 else
21655 ac_has_clock_monotonic=no
21657 rm -f core conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
21661 $as_echo "$ac_has_clock_monotonic" >&6; }
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
21664 $as_echo_n "checking for realtime clock... " >&6; }
21665 if test x$gcc_no_link = xyes; then
21666 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h. */
21670 #include <unistd.h>
21671 #include <time.h>
21674 main ()
21676 #if _POSIX_TIMERS > 0
21677 timespec tp;
21678 #endif
21679 clock_gettime(CLOCK_REALTIME, &tp);
21682 return 0;
21684 _ACEOF
21685 if ac_fn_cxx_try_link "$LINENO"; then :
21686 ac_has_clock_realtime=yes
21687 else
21688 ac_has_clock_realtime=no
21690 rm -f core conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext conftest.$ac_ext
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
21694 $as_echo "$ac_has_clock_realtime" >&6; }
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
21697 $as_echo_n "checking for nanosleep... " >&6; }
21698 if test x$gcc_no_link = xyes; then
21699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21703 #include <unistd.h>
21704 #include <time.h>
21707 main ()
21709 #if _POSIX_TIMERS > 0
21710 timespec tp;
21711 #endif
21712 nanosleep(&tp, 0);
21715 return 0;
21717 _ACEOF
21718 if ac_fn_cxx_try_link "$LINENO"; then :
21719 ac_has_nanosleep=yes
21720 else
21721 ac_has_nanosleep=no
21723 rm -f core conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
21727 $as_echo "$ac_has_nanosleep" >&6; }
21731 if test x"$ac_has_clock_monotonic" != x"yes"; then
21732 case ${target_os} in
21733 linux* | uclinux*)
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
21735 $as_echo_n "checking for clock_gettime syscall... " >&6; }
21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21737 /* end confdefs.h. */
21738 #include <unistd.h>
21739 #include <time.h>
21740 #include <sys/syscall.h>
21743 main ()
21745 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21746 timespec tp;
21747 #endif
21748 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
21749 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
21752 return 0;
21754 _ACEOF
21755 if ac_fn_cxx_try_compile "$LINENO"; then :
21756 ac_has_clock_gettime_syscall=yes
21757 else
21758 ac_has_clock_gettime_syscall=no
21760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
21762 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
21763 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
21765 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
21767 ac_has_clock_monotonic=yes
21768 ac_has_clock_realtime=yes
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
21770 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
21771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21772 /* end confdefs.h. */
21773 #include <time.h>
21774 #include <sys/syscall.h>
21777 main ()
21779 #ifdef SYS_clock_gettime64
21780 #if SYS_clock_gettime64 != SYS_clock_gettime
21781 // We need to use SYS_clock_gettime and libc appears to
21782 // also know about the SYS_clock_gettime64 syscall.
21783 // Check that userspace doesn't use time64 version of timespec.
21784 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
21785 "struct timespec must be compatible with SYS_clock_gettime");
21786 #endif
21787 #endif
21790 return 0;
21792 _ACEOF
21793 if ac_fn_cxx_try_compile "$LINENO"; then :
21794 ac_timespec_matches_syscall=yes
21795 else
21796 ac_timespec_matches_syscall=no
21798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
21800 $as_echo "$ac_timespec_matches_syscall" >&6; }
21801 if test x"$ac_timespec_matches_syscall" = no; then
21802 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
21804 fi;;
21805 esac
21808 if test x"$ac_has_clock_monotonic" = x"yes"; then
21810 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
21814 if test x"$ac_has_clock_realtime" = x"yes"; then
21816 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
21820 if test x"$ac_has_sched_yield" = x"yes"; then
21822 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
21826 if test x"$ac_has_nanosleep" = x"yes"; then
21828 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
21830 elif test x"$ac_has_win32_sleep" = x"yes"; then
21832 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
21834 else
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
21836 $as_echo_n "checking for sleep... " >&6; }
21837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21839 #include <unistd.h>
21841 main ()
21843 sleep(1)
21845 return 0;
21847 _ACEOF
21848 if ac_fn_cxx_try_compile "$LINENO"; then :
21849 ac_has_sleep=yes
21850 else
21851 ac_has_sleep=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 if test x"$ac_has_sleep" = x"yes"; then
21856 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
21860 $as_echo "$ac_has_sleep" >&6; }
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
21862 $as_echo_n "checking for usleep... " >&6; }
21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864 /* end confdefs.h. */
21865 #include <unistd.h>
21867 main ()
21869 sleep(1);
21870 usleep(100);
21872 return 0;
21874 _ACEOF
21875 if ac_fn_cxx_try_compile "$LINENO"; then :
21876 ac_has_usleep=yes
21877 else
21878 ac_has_usleep=no
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 if test x"$ac_has_usleep" = x"yes"; then
21883 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
21887 $as_echo "$ac_has_usleep" >&6; }
21890 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
21892 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
21898 CXXFLAGS="$ac_save_CXXFLAGS"
21899 LIBS="$ac_save_LIBS"
21900 ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908 # Check for tmpnam which is obsolescent in POSIX.1-2008
21910 ac_ext=cpp
21911 ac_cpp='$CXXCPP $CPPFLAGS'
21912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21916 ac_save_CXXFLAGS="$CXXFLAGS"
21917 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpnam" >&5
21919 $as_echo_n "checking for tmpnam... " >&6; }
21920 if ${glibcxx_cv_TMPNAM+:} false; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 if test x$gcc_no_link = xyes; then
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21926 #include <stdio.h>
21928 main ()
21930 char *tmp = tmpnam(NULL);
21932 return 0;
21934 _ACEOF
21935 if ac_fn_cxx_try_compile "$LINENO"; then :
21936 glibcxx_cv_TMPNAM=yes
21937 else
21938 glibcxx_cv_TMPNAM=no
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 else
21942 if test x$gcc_no_link = xyes; then
21943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h. */
21947 #include <stdio.h>
21949 main ()
21951 char *tmp = tmpnam(NULL);
21953 return 0;
21955 _ACEOF
21956 if ac_fn_cxx_try_link "$LINENO"; then :
21957 glibcxx_cv_TMPNAM=yes
21958 else
21959 glibcxx_cv_TMPNAM=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_TMPNAM" >&5
21967 $as_echo "$glibcxx_cv_TMPNAM" >&6; }
21968 if test $glibcxx_cv_TMPNAM = yes; then
21970 $as_echo "#define _GLIBCXX_USE_TMPNAM 1" >>confdefs.h
21973 CXXFLAGS="$ac_save_CXXFLAGS"
21974 ac_ext=c
21975 ac_cpp='$CPP $CPPFLAGS'
21976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21982 # For pthread_cond_clockwait
21986 ac_ext=cpp
21987 ac_cpp='$CXXCPP $CPPFLAGS'
21988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21992 ac_save_CXXFLAGS="$CXXFLAGS"
21993 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21994 ac_save_LIBS="$LIBS"
21995 LIBS="$LIBS -lpthread"
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_clockwait" >&5
21998 $as_echo_n "checking for pthread_cond_clockwait... " >&6; }
21999 if ${glibcxx_cv_PTHREAD_COND_CLOCKWAIT+:} false; then :
22000 $as_echo_n "(cached) " >&6
22001 else
22003 if test x$gcc_no_link = xyes; then
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22006 #include <pthread.h>
22008 main ()
22010 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
22012 return 0;
22014 _ACEOF
22015 if ac_fn_cxx_try_compile "$LINENO"; then :
22016 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22017 else
22018 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 else
22022 if test x$gcc_no_link = xyes; then
22023 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 #include <pthread.h>
22029 main ()
22031 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
22033 return 0;
22035 _ACEOF
22036 if ac_fn_cxx_try_link "$LINENO"; then :
22037 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22038 else
22039 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&5
22047 $as_echo "$glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&6; }
22048 if test $glibcxx_cv_PTHREAD_COND_CLOCKWAIT = yes; then
22050 $as_echo "#define _GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT 1" >>confdefs.h
22054 CXXFLAGS="$ac_save_CXXFLAGS"
22055 LIBS="$ac_save_LIBS"
22056 ac_ext=c
22057 ac_cpp='$CPP $CPPFLAGS'
22058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22064 # For pthread_mutex_clocklock
22068 ac_ext=cpp
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074 ac_save_CXXFLAGS="$CXXFLAGS"
22075 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22076 ac_save_LIBS="$LIBS"
22077 LIBS="$LIBS -lpthread"
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_clocklock" >&5
22080 $as_echo_n "checking for pthread_mutex_clocklock... " >&6; }
22081 if ${glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK+:} false; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22085 if test x$gcc_no_link = xyes; then
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #include <pthread.h>
22090 main ()
22092 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22094 return 0;
22096 _ACEOF
22097 if ac_fn_cxx_try_compile "$LINENO"; then :
22098 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22099 else
22100 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 else
22104 if test x$gcc_no_link = xyes; then
22105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22109 #include <pthread.h>
22111 main ()
22113 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22115 return 0;
22117 _ACEOF
22118 if ac_fn_cxx_try_link "$LINENO"; then :
22119 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22120 else
22121 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22123 rm -f core conftest.err conftest.$ac_objext \
22124 conftest$ac_exeext conftest.$ac_ext
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&5
22129 $as_echo "$glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&6; }
22130 if test $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK = yes; then
22132 $as_echo "#define _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK (_GLIBCXX_TSAN==0)" >>confdefs.h
22136 CXXFLAGS="$ac_save_CXXFLAGS"
22137 LIBS="$ac_save_LIBS"
22138 ac_ext=c
22139 ac_cpp='$CPP $CPPFLAGS'
22140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146 # For pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock
22150 ac_ext=cpp
22151 ac_cpp='$CXXCPP $CPPFLAGS'
22152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22156 ac_save_CXXFLAGS="$CXXFLAGS"
22157 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22158 ac_save_LIBS="$LIBS"
22159 LIBS="$LIBS -lpthread"
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock" >&5
22162 $as_echo_n "checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock... " >&6; }
22163 if ${glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK+:} false; then :
22164 $as_echo_n "(cached) " >&6
22165 else
22167 if test x$gcc_no_link = xyes; then
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22170 #include <pthread.h>
22172 main ()
22174 pthread_rwlock_t rwl; struct timespec ts;
22175 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22176 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22178 return 0;
22180 _ACEOF
22181 if ac_fn_cxx_try_compile "$LINENO"; then :
22182 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22183 else
22184 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 else
22188 if test x$gcc_no_link = xyes; then
22189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22192 /* end confdefs.h. */
22193 #include <pthread.h>
22195 main ()
22197 pthread_rwlock_t rwl; struct timespec ts;
22198 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22199 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22201 return 0;
22203 _ACEOF
22204 if ac_fn_cxx_try_link "$LINENO"; then :
22205 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22206 else
22207 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22209 rm -f core conftest.err conftest.$ac_objext \
22210 conftest$ac_exeext conftest.$ac_ext
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&5
22215 $as_echo "$glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&6; }
22216 if test $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK = yes; then
22218 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_CLOCKLOCK 1" >>confdefs.h
22222 CXXFLAGS="$ac_save_CXXFLAGS"
22223 LIBS="$ac_save_LIBS"
22224 ac_ext=c
22225 ac_cpp='$CPP $CPPFLAGS'
22226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22233 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22234 if test "x$ac_cv_header_locale_h" = xyes; then :
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
22237 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22238 if ${ac_cv_val_LC_MESSAGES+:} false; then :
22239 $as_echo_n "(cached) " >&6
22240 else
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243 #include <locale.h>
22245 main ()
22247 return LC_MESSAGES
22249 return 0;
22251 _ACEOF
22252 if ac_fn_c_try_compile "$LINENO"; then :
22253 ac_cv_val_LC_MESSAGES=yes
22254 else
22255 ac_cv_val_LC_MESSAGES=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_val_LC_MESSAGES" >&5
22260 $as_echo "$ac_cv_val_LC_MESSAGES" >&6; }
22261 if test $ac_cv_val_LC_MESSAGES = yes; then
22263 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
22272 # For hardware_concurrency
22273 for ac_header in sys/sysinfo.h
22274 do :
22275 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
22276 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_SYS_SYSINFO_H 1
22279 _ACEOF
22283 done
22288 ac_ext=cpp
22289 ac_cpp='$CXXCPP $CPPFLAGS'
22290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22294 ac_save_CXXFLAGS="$CXXFLAGS"
22295 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_nprocs" >&5
22298 $as_echo_n "checking for get_nprocs... " >&6; }
22299 if ${glibcxx_cv_GET_NPROCS+:} false; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22303 if test x$gcc_no_link = xyes; then
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22306 #include <sys/sysinfo.h>
22308 main ()
22310 int n = get_nprocs();
22312 return 0;
22314 _ACEOF
22315 if ac_fn_cxx_try_compile "$LINENO"; then :
22316 glibcxx_cv_GET_NPROCS=yes
22317 else
22318 glibcxx_cv_GET_NPROCS=no
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 else
22322 if test x$gcc_no_link = xyes; then
22323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h. */
22327 #include <sys/sysinfo.h>
22329 main ()
22331 int n = get_nprocs();
22333 return 0;
22335 _ACEOF
22336 if ac_fn_cxx_try_link "$LINENO"; then :
22337 glibcxx_cv_GET_NPROCS=yes
22338 else
22339 glibcxx_cv_GET_NPROCS=no
22341 rm -f core conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext conftest.$ac_ext
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_GET_NPROCS" >&5
22347 $as_echo "$glibcxx_cv_GET_NPROCS" >&6; }
22348 if test $glibcxx_cv_GET_NPROCS = yes; then
22350 $as_echo "#define _GLIBCXX_USE_GET_NPROCS 1" >>confdefs.h
22354 CXXFLAGS="$ac_save_CXXFLAGS"
22355 ac_ext=c
22356 ac_cpp='$CPP $CPPFLAGS'
22357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362 for ac_header in unistd.h
22363 do :
22364 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22365 if test "x$ac_cv_header_unistd_h" = xyes; then :
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_UNISTD_H 1
22368 _ACEOF
22372 done
22377 ac_ext=cpp
22378 ac_cpp='$CXXCPP $CPPFLAGS'
22379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22383 ac_save_CXXFLAGS="$CXXFLAGS"
22384 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5
22387 $as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
22388 if ${glibcxx_cv_SC_NPROCESSORS_ONLN+:} false; then :
22389 $as_echo_n "(cached) " >&6
22390 else
22392 if test x$gcc_no_link = xyes; then
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22395 #include <unistd.h>
22397 main ()
22399 int n = sysconf(_SC_NPROCESSORS_ONLN);
22401 return 0;
22403 _ACEOF
22404 if ac_fn_cxx_try_compile "$LINENO"; then :
22405 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22406 else
22407 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 else
22411 if test x$gcc_no_link = xyes; then
22412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #include <unistd.h>
22418 main ()
22420 int n = sysconf(_SC_NPROCESSORS_ONLN);
22422 return 0;
22424 _ACEOF
22425 if ac_fn_cxx_try_link "$LINENO"; then :
22426 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22427 else
22428 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22430 rm -f core conftest.err conftest.$ac_objext \
22431 conftest$ac_exeext conftest.$ac_ext
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROCESSORS_ONLN" >&5
22436 $as_echo "$glibcxx_cv_SC_NPROCESSORS_ONLN" >&6; }
22437 if test $glibcxx_cv_SC_NPROCESSORS_ONLN = yes; then
22439 $as_echo "#define _GLIBCXX_USE_SC_NPROCESSORS_ONLN 1" >>confdefs.h
22443 CXXFLAGS="$ac_save_CXXFLAGS"
22444 ac_ext=c
22445 ac_cpp='$CPP $CPPFLAGS'
22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454 ac_ext=cpp
22455 ac_cpp='$CXXCPP $CPPFLAGS'
22456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22460 ac_save_CXXFLAGS="$CXXFLAGS"
22461 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROC_ONLN" >&5
22464 $as_echo_n "checking for _SC_NPROC_ONLN... " >&6; }
22465 if ${glibcxx_cv_SC_NPROC_ONLN+:} false; then :
22466 $as_echo_n "(cached) " >&6
22467 else
22469 if test x$gcc_no_link = xyes; then
22470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471 /* end confdefs.h. */
22472 #include <unistd.h>
22474 main ()
22476 int n = sysconf(_SC_NPROC_ONLN);
22478 return 0;
22480 _ACEOF
22481 if ac_fn_cxx_try_compile "$LINENO"; then :
22482 glibcxx_cv_SC_NPROC_ONLN=yes
22483 else
22484 glibcxx_cv_SC_NPROC_ONLN=no
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 else
22488 if test x$gcc_no_link = xyes; then
22489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22492 /* end confdefs.h. */
22493 #include <unistd.h>
22495 main ()
22497 int n = sysconf(_SC_NPROC_ONLN);
22499 return 0;
22501 _ACEOF
22502 if ac_fn_cxx_try_link "$LINENO"; then :
22503 glibcxx_cv_SC_NPROC_ONLN=yes
22504 else
22505 glibcxx_cv_SC_NPROC_ONLN=no
22507 rm -f core conftest.err conftest.$ac_objext \
22508 conftest$ac_exeext conftest.$ac_ext
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROC_ONLN" >&5
22513 $as_echo "$glibcxx_cv_SC_NPROC_ONLN" >&6; }
22514 if test $glibcxx_cv_SC_NPROC_ONLN = yes; then
22516 $as_echo "#define _GLIBCXX_USE_SC_NPROC_ONLN 1" >>confdefs.h
22520 CXXFLAGS="$ac_save_CXXFLAGS"
22521 ac_ext=c
22522 ac_cpp='$CPP $CPPFLAGS'
22523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22531 ac_ext=cpp
22532 ac_cpp='$CXXCPP $CPPFLAGS'
22533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22537 ac_save_CXXFLAGS="$CXXFLAGS"
22538 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_num_processors_np" >&5
22541 $as_echo_n "checking for pthreads_num_processors_np... " >&6; }
22542 if ${glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP+:} false; then :
22543 $as_echo_n "(cached) " >&6
22544 else
22546 if test x$gcc_no_link = xyes; then
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22549 #include <pthread.h>
22551 main ()
22553 int n = pthread_num_processors_np();
22555 return 0;
22557 _ACEOF
22558 if ac_fn_cxx_try_compile "$LINENO"; then :
22559 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22560 else
22561 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 else
22565 if test x$gcc_no_link = xyes; then
22566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h. */
22570 #include <pthread.h>
22572 main ()
22574 int n = pthread_num_processors_np();
22576 return 0;
22578 _ACEOF
22579 if ac_fn_cxx_try_link "$LINENO"; then :
22580 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22581 else
22582 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22584 rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&5
22590 $as_echo "$glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&6; }
22591 if test $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP = yes; then
22593 $as_echo "#define _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP 1" >>confdefs.h
22597 CXXFLAGS="$ac_save_CXXFLAGS"
22598 ac_ext=c
22599 ac_cpp='$CPP $CPPFLAGS'
22600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22608 ac_ext=cpp
22609 ac_cpp='$CXXCPP $CPPFLAGS'
22610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22614 ac_save_CXXFLAGS="$CXXFLAGS"
22615 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hw.ncpu sysctl" >&5
22618 $as_echo_n "checking for hw.ncpu sysctl... " >&6; }
22619 if ${glibcxx_cv_SYSCTL_HW_NCPU+:} false; then :
22620 $as_echo_n "(cached) " >&6
22621 else
22623 if test x$gcc_no_link = xyes; then
22624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625 /* end confdefs.h. */
22627 #include <stddef.h>
22628 #include <sys/sysctl.h>
22631 main ()
22634 int count;
22635 size_t size = sizeof(count);
22636 int mib[] = { CTL_HW, HW_NCPU };
22637 sysctl(mib, 2, &count, &size, NULL, 0);
22640 return 0;
22642 _ACEOF
22643 if ac_fn_cxx_try_compile "$LINENO"; then :
22644 glibcxx_cv_SYSCTL_HW_NCPU=yes
22645 else
22646 glibcxx_cv_SYSCTL_HW_NCPU=no
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 else
22650 if test x$gcc_no_link = xyes; then
22651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22656 #include <stddef.h>
22657 #include <sys/sysctl.h>
22660 main ()
22663 int count;
22664 size_t size = sizeof(count);
22665 int mib[] = { CTL_HW, HW_NCPU };
22666 sysctl(mib, 2, &count, &size, NULL, 0);
22669 return 0;
22671 _ACEOF
22672 if ac_fn_cxx_try_link "$LINENO"; then :
22673 glibcxx_cv_SYSCTL_HW_NCPU=yes
22674 else
22675 glibcxx_cv_SYSCTL_HW_NCPU=no
22677 rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SYSCTL_HW_NCPU" >&5
22683 $as_echo "$glibcxx_cv_SYSCTL_HW_NCPU" >&6; }
22684 if test $glibcxx_cv_SYSCTL_HW_NCPU = yes; then
22686 $as_echo "#define _GLIBCXX_USE_SYSCTL_HW_NCPU 1" >>confdefs.h
22690 CXXFLAGS="$ac_save_CXXFLAGS"
22691 ac_ext=c
22692 ac_cpp='$CPP $CPPFLAGS'
22693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22699 # Note that this test has to be run with the C language.
22700 # Otherwise, sdt.h will try to include some headers from
22701 # libstdc++ itself.
22703 ac_ext=c
22704 ac_cpp='$CPP $CPPFLAGS'
22705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sys/sdt.h" >&5
22710 $as_echo_n "checking for suitable sys/sdt.h... " >&6; }
22711 if ${glibcxx_cv_sys_sdt_h+:} false; then :
22712 $as_echo_n "(cached) " >&6
22713 else
22715 # Because we have to run the test in C, we use grep rather
22716 # than the compiler to check for the bug. The bug is that
22717 # were strings without trailing whitespace, causing g++
22718 # to look for operator"". The pattern searches for the fixed
22719 # output.
22720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721 /* end confdefs.h. */
22723 #include <sys/sdt.h>
22724 int f() { STAP_PROBE(hi, bob); }
22726 _ACEOF
22727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22728 $EGREP " \",\" " >/dev/null 2>&1; then :
22729 glibcxx_cv_sys_sdt_h=yes
22730 else
22731 glibcxx_cv_sys_sdt_h=no
22733 rm -f conftest*
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5
22738 $as_echo "$glibcxx_cv_sys_sdt_h" >&6; }
22739 ac_ext=c
22740 ac_cpp='$CPP $CPPFLAGS'
22741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22745 if test $glibcxx_cv_sys_sdt_h = yes; then
22747 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
22752 # Check for available headers.
22753 for ac_header in endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
22754 locale.h machine/endian.h machine/param.h nan.h stdint.h stdlib.h string.h \
22755 strings.h sys/ipc.h sys/isa_defs.h sys/machine.h sys/param.h \
22756 sys/resource.h sys/sem.h sys/stat.h sys/time.h sys/types.h unistd.h \
22757 wchar.h wctype.h linux/types.h
22758 do :
22759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22762 cat >>confdefs.h <<_ACEOF
22763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22764 _ACEOF
22768 done
22771 for ac_header in linux/random.h
22772 do :
22773 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "#ifdef HAVE_LINUX_TYPES_H
22774 # include <linux/types.h>
22775 #endif
22778 if test "x$ac_cv_header_linux_random_h" = xyes; then :
22779 cat >>confdefs.h <<_ACEOF
22780 #define HAVE_LINUX_RANDOM_H 1
22781 _ACEOF
22785 done
22788 for ac_header in xlocale.h
22789 do :
22790 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22791 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22792 cat >>confdefs.h <<_ACEOF
22793 #define HAVE_XLOCALE_H 1
22794 _ACEOF
22798 done
22801 # Only do link tests if native. Else, hardcode.
22802 if $GLIBCXX_IS_NATIVE; then
22804 # We can do more elaborate tests that assume a working linker.
22805 CANADIAN=no
22809 # Check whether --with-gnu-ld was given.
22810 if test "${with_gnu_ld+set}" = set; then :
22811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22812 else
22813 with_gnu_ld=no
22816 ac_prog=ld
22817 if test "$GCC" = yes; then
22818 # Check if gcc -print-prog-name=ld gives a path.
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22820 $as_echo_n "checking for ld used by $CC... " >&6; }
22821 case $host in
22822 *-*-mingw*)
22823 # gcc leaves a trailing carriage return which upsets mingw
22824 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22826 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22827 esac
22828 case $ac_prog in
22829 # Accept absolute paths.
22830 [\\/]* | ?:[\\/]*)
22831 re_direlt='/[^/][^/]*/\.\./'
22832 # Canonicalize the pathname of ld
22833 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22834 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22835 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22836 done
22837 test -z "$LD" && LD="$ac_prog"
22840 # If it fails, then pretend we aren't using GCC.
22841 ac_prog=ld
22844 # If it is relative, then search for the first ld in PATH.
22845 with_gnu_ld=unknown
22847 esac
22848 elif test "$with_gnu_ld" = yes; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22850 $as_echo_n "checking for GNU ld... " >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22853 $as_echo_n "checking for non-GNU ld... " >&6; }
22855 if ${lt_cv_path_LD+:} false; then :
22856 $as_echo_n "(cached) " >&6
22857 else
22858 if test -z "$LD"; then
22859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22860 for ac_dir in $PATH; do
22861 IFS="$lt_save_ifs"
22862 test -z "$ac_dir" && ac_dir=.
22863 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22864 lt_cv_path_LD="$ac_dir/$ac_prog"
22865 # Check to see if the program is GNU ld. I'd rather use --version,
22866 # but apparently some variants of GNU ld only accept -v.
22867 # Break only if it was the GNU/non-GNU ld that we prefer.
22868 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22869 *GNU* | *'with BFD'*)
22870 test "$with_gnu_ld" != no && break
22873 test "$with_gnu_ld" != yes && break
22875 esac
22877 done
22878 IFS="$lt_save_ifs"
22879 else
22880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22884 LD="$lt_cv_path_LD"
22885 if test -n "$LD"; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22887 $as_echo "$LD" >&6; }
22888 else
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22892 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22894 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22895 if ${lt_cv_prog_gnu_ld+:} false; then :
22896 $as_echo_n "(cached) " >&6
22897 else
22898 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22899 case `$LD -v 2>&1 </dev/null` in
22900 *GNU* | *'with BFD'*)
22901 lt_cv_prog_gnu_ld=yes
22904 lt_cv_prog_gnu_ld=no
22906 esac
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22909 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22910 with_gnu_ld=$lt_cv_prog_gnu_ld
22918 # If we're not using GNU ld, then there's no point in even trying these
22919 # tests. Check for that first. We should have already tested for gld
22920 # by now (in libtool), but require it now just to be safe...
22921 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
22922 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
22926 # The name set by libtool depends on the version of libtool. Shame on us
22927 # for depending on an impl detail, but c'est la vie. Older versions used
22928 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
22929 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
22930 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
22931 # set (hence we're using an older libtool), then set it.
22932 if test x${with_gnu_ld+set} != xset; then
22933 if test x${ac_cv_prog_gnu_ld+set} != xset; then
22934 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
22935 with_gnu_ld=no
22936 else
22937 with_gnu_ld=$ac_cv_prog_gnu_ld
22941 # Start by getting the version number. I think the libtool test already
22942 # does some of this, but throws away the result.
22943 glibcxx_ld_is_gold=no
22944 glibcxx_ld_is_mold=no
22945 if test x"$with_gnu_ld" = x"yes"; then
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
22947 $as_echo_n "checking for ld version... " >&6; }
22949 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
22950 glibcxx_ld_is_gold=yes
22951 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
22952 glibcxx_ld_is_mold=yes
22954 ldver=`$LD --version 2>/dev/null |
22955 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
22957 glibcxx_gnu_ld_version=`echo $ldver | \
22958 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
22960 $as_echo "$glibcxx_gnu_ld_version" >&6; }
22963 # Set --gc-sections.
22964 glibcxx_have_gc_sections=no
22965 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
22966 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
22967 glibcxx_have_gc_sections=yes
22969 else
22970 glibcxx_gcsections_min_ld=21602
22971 if test x"$with_gnu_ld" = x"yes" &&
22972 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
22973 glibcxx_have_gc_sections=yes
22976 if test "$glibcxx_have_gc_sections" = "yes"; then
22977 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
22978 # NB: This flag only works reliably after 2.16.1. Configure tests
22979 # for this are difficult, so hard wire a value that should work.
22981 ac_test_CFLAGS="${CFLAGS+set}"
22982 ac_save_CFLAGS="$CFLAGS"
22983 CFLAGS='-Wl,--gc-sections'
22985 # Check for -Wl,--gc-sections
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
22987 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
22988 if test x$gcc_no_link = xyes; then
22989 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22993 int one(void) { return 1; }
22994 int two(void) { return 2; }
22997 main ()
22999 two();
23001 return 0;
23003 _ACEOF
23004 if ac_fn_c_try_link "$LINENO"; then :
23005 ac_gcsections=yes
23006 else
23007 ac_gcsections=no
23009 rm -f core conftest.err conftest.$ac_objext \
23010 conftest$ac_exeext conftest.$ac_ext
23011 if test "$ac_gcsections" = "yes"; then
23012 rm -f conftest.c
23013 touch conftest.c
23014 if $CC -c conftest.c; then
23015 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
23016 grep "Warning: gc-sections option ignored" > /dev/null; then
23017 ac_gcsections=no
23020 rm -f conftest.c conftest.o conftest
23022 if test "$ac_gcsections" = "yes"; then
23023 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
23026 $as_echo "$ac_gcsections" >&6; }
23028 if test "$ac_test_CFLAGS" = set; then
23029 CFLAGS="$ac_save_CFLAGS"
23030 else
23031 # this is the suspicious part
23032 CFLAGS=''
23036 # Set -z,relro.
23037 # Note this is only for shared objects.
23038 ac_ld_relro=no
23039 if test x"$with_gnu_ld" = x"yes"; then
23040 # cygwin and mingw uses PE, which has no ELF relro support,
23041 # multi target ld may confuse configure machinery
23042 case "$host" in
23043 *-*-cygwin*)
23045 *-*-mingw*)
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
23049 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
23050 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
23051 if test -n "$cxx_z_relo"; then
23052 OPT_LDFLAGS="-Wl,-z,relro"
23053 ac_ld_relro=yes
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
23056 $as_echo "$ac_ld_relro" >&6; }
23057 esac
23060 # Set linker optimization flags.
23061 if test x"$with_gnu_ld" = x"yes"; then
23062 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
23069 ac_test_CXXFLAGS="${CXXFLAGS+set}"
23070 ac_save_CXXFLAGS="$CXXFLAGS"
23071 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
23074 $as_echo_n "checking for sin in -lm... " >&6; }
23075 if ${ac_cv_lib_m_sin+:} false; then :
23076 $as_echo_n "(cached) " >&6
23077 else
23078 ac_check_lib_save_LIBS=$LIBS
23079 LIBS="-lm $LIBS"
23080 if test x$gcc_no_link = xyes; then
23081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23086 /* Override any GCC internal prototype to avoid an error.
23087 Use char because int might match the return type of a GCC
23088 builtin and then its argument prototype would still apply. */
23089 #ifdef __cplusplus
23090 extern "C"
23091 #endif
23092 char sin ();
23094 main ()
23096 return sin ();
23098 return 0;
23100 _ACEOF
23101 if ac_fn_c_try_link "$LINENO"; then :
23102 ac_cv_lib_m_sin=yes
23103 else
23104 ac_cv_lib_m_sin=no
23106 rm -f core conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
23111 $as_echo "$ac_cv_lib_m_sin" >&6; }
23112 if test "x$ac_cv_lib_m_sin" = xyes; then :
23113 libm="-lm"
23116 ac_save_LIBS="$LIBS"
23117 LIBS="$LIBS $libm"
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
23122 $as_echo_n "checking for isinf declaration... " >&6; }
23123 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
23124 if ${glibcxx_cv_func_isinf_use+:} false; then :
23125 $as_echo_n "(cached) " >&6
23126 else
23129 ac_ext=cpp
23130 ac_cpp='$CXXCPP $CPPFLAGS'
23131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23137 #include <math.h>
23138 #ifdef HAVE_IEEEFP_H
23139 #include <ieeefp.h>
23140 #endif
23143 main ()
23145 isinf(0);
23147 return 0;
23149 _ACEOF
23150 if ac_fn_cxx_try_compile "$LINENO"; then :
23151 glibcxx_cv_func_isinf_use=yes
23152 else
23153 glibcxx_cv_func_isinf_use=no
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 ac_ext=c
23157 ac_cpp='$CPP $CPPFLAGS'
23158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
23167 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
23169 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
23170 for ac_func in isinf
23171 do :
23172 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
23173 if test "x$ac_cv_func_isinf" = xyes; then :
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_ISINF 1
23176 _ACEOF
23179 done
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
23186 $as_echo_n "checking for isnan declaration... " >&6; }
23187 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
23188 if ${glibcxx_cv_func_isnan_use+:} false; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23193 ac_ext=cpp
23194 ac_cpp='$CXXCPP $CPPFLAGS'
23195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23201 #include <math.h>
23202 #ifdef HAVE_IEEEFP_H
23203 #include <ieeefp.h>
23204 #endif
23207 main ()
23209 isnan(0);
23211 return 0;
23213 _ACEOF
23214 if ac_fn_cxx_try_compile "$LINENO"; then :
23215 glibcxx_cv_func_isnan_use=yes
23216 else
23217 glibcxx_cv_func_isnan_use=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 ac_ext=c
23221 ac_cpp='$CPP $CPPFLAGS'
23222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
23231 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
23233 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
23234 for ac_func in isnan
23235 do :
23236 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
23237 if test "x$ac_cv_func_isnan" = xyes; then :
23238 cat >>confdefs.h <<_ACEOF
23239 #define HAVE_ISNAN 1
23240 _ACEOF
23243 done
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
23250 $as_echo_n "checking for finite declaration... " >&6; }
23251 if test x${glibcxx_cv_func_finite_use+set} != xset; then
23252 if ${glibcxx_cv_func_finite_use+:} false; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23257 ac_ext=cpp
23258 ac_cpp='$CXXCPP $CPPFLAGS'
23259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h. */
23265 #include <math.h>
23266 #ifdef HAVE_IEEEFP_H
23267 #include <ieeefp.h>
23268 #endif
23271 main ()
23273 finite(0);
23275 return 0;
23277 _ACEOF
23278 if ac_fn_cxx_try_compile "$LINENO"; then :
23279 glibcxx_cv_func_finite_use=yes
23280 else
23281 glibcxx_cv_func_finite_use=no
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 ac_ext=c
23285 ac_cpp='$CPP $CPPFLAGS'
23286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
23295 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
23297 if test x$glibcxx_cv_func_finite_use = x"yes"; then
23298 for ac_func in finite
23299 do :
23300 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
23301 if test "x$ac_cv_func_finite" = xyes; then :
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_FINITE 1
23304 _ACEOF
23307 done
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
23314 $as_echo_n "checking for sincos declaration... " >&6; }
23315 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
23316 if ${glibcxx_cv_func_sincos_use+:} false; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23321 ac_ext=cpp
23322 ac_cpp='$CXXCPP $CPPFLAGS'
23323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23329 #include <math.h>
23331 main ()
23333 sincos(0, 0, 0);
23335 return 0;
23337 _ACEOF
23338 if ac_fn_cxx_try_compile "$LINENO"; then :
23339 glibcxx_cv_func_sincos_use=yes
23340 else
23341 glibcxx_cv_func_sincos_use=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 ac_ext=c
23345 ac_cpp='$CPP $CPPFLAGS'
23346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
23355 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
23357 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
23358 for ac_func in sincos
23359 do :
23360 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
23361 if test "x$ac_cv_func_sincos" = xyes; then :
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_SINCOS 1
23364 _ACEOF
23367 done
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
23374 $as_echo_n "checking for fpclass declaration... " >&6; }
23375 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
23376 if ${glibcxx_cv_func_fpclass_use+:} false; then :
23377 $as_echo_n "(cached) " >&6
23378 else
23381 ac_ext=cpp
23382 ac_cpp='$CXXCPP $CPPFLAGS'
23383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23389 #include <math.h>
23390 #ifdef HAVE_IEEEFP_H
23391 #include <ieeefp.h>
23392 #endif
23395 main ()
23397 fpclass(0);
23399 return 0;
23401 _ACEOF
23402 if ac_fn_cxx_try_compile "$LINENO"; then :
23403 glibcxx_cv_func_fpclass_use=yes
23404 else
23405 glibcxx_cv_func_fpclass_use=no
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23408 ac_ext=c
23409 ac_cpp='$CPP $CPPFLAGS'
23410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
23419 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
23421 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
23422 for ac_func in fpclass
23423 do :
23424 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
23425 if test "x$ac_cv_func_fpclass" = xyes; then :
23426 cat >>confdefs.h <<_ACEOF
23427 #define HAVE_FPCLASS 1
23428 _ACEOF
23431 done
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
23438 $as_echo_n "checking for qfpclass declaration... " >&6; }
23439 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
23440 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
23441 $as_echo_n "(cached) " >&6
23442 else
23445 ac_ext=cpp
23446 ac_cpp='$CXXCPP $CPPFLAGS'
23447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453 #include <math.h>
23454 #ifdef HAVE_IEEEFP_H
23455 #include <ieeefp.h>
23456 #endif
23459 main ()
23461 qfpclass(0);
23463 return 0;
23465 _ACEOF
23466 if ac_fn_cxx_try_compile "$LINENO"; then :
23467 glibcxx_cv_func_qfpclass_use=yes
23468 else
23469 glibcxx_cv_func_qfpclass_use=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 ac_ext=c
23473 ac_cpp='$CPP $CPPFLAGS'
23474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
23483 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
23485 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
23486 for ac_func in qfpclass
23487 do :
23488 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
23489 if test "x$ac_cv_func_qfpclass" = xyes; then :
23490 cat >>confdefs.h <<_ACEOF
23491 #define HAVE_QFPCLASS 1
23492 _ACEOF
23495 done
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
23502 $as_echo_n "checking for hypot declaration... " >&6; }
23503 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
23504 if ${glibcxx_cv_func_hypot_use+:} false; then :
23505 $as_echo_n "(cached) " >&6
23506 else
23509 ac_ext=cpp
23510 ac_cpp='$CXXCPP $CPPFLAGS'
23511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23517 #include <math.h>
23519 main ()
23521 hypot(0, 0);
23523 return 0;
23525 _ACEOF
23526 if ac_fn_cxx_try_compile "$LINENO"; then :
23527 glibcxx_cv_func_hypot_use=yes
23528 else
23529 glibcxx_cv_func_hypot_use=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532 ac_ext=c
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
23543 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
23545 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
23546 for ac_func in hypot
23547 do :
23548 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
23549 if test "x$ac_cv_func_hypot" = xyes; then :
23550 cat >>confdefs.h <<_ACEOF
23551 #define HAVE_HYPOT 1
23552 _ACEOF
23555 done
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
23562 $as_echo_n "checking for float trig functions... " >&6; }
23563 if ${glibcxx_cv_func_float_trig_use+:} false; then :
23564 $as_echo_n "(cached) " >&6
23565 else
23568 ac_ext=cpp
23569 ac_cpp='$CXXCPP $CPPFLAGS'
23570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23576 #include <math.h>
23578 main ()
23580 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
23582 return 0;
23584 _ACEOF
23585 if ac_fn_cxx_try_compile "$LINENO"; then :
23586 glibcxx_cv_func_float_trig_use=yes
23587 else
23588 glibcxx_cv_func_float_trig_use=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 ac_ext=c
23592 ac_cpp='$CPP $CPPFLAGS'
23593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
23600 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
23601 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
23602 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
23603 do :
23604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23607 cat >>confdefs.h <<_ACEOF
23608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23609 _ACEOF
23612 done
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
23619 $as_echo_n "checking for float round functions... " >&6; }
23620 if ${glibcxx_cv_func_float_round_use+:} false; then :
23621 $as_echo_n "(cached) " >&6
23622 else
23625 ac_ext=cpp
23626 ac_cpp='$CXXCPP $CPPFLAGS'
23627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633 #include <math.h>
23635 main ()
23637 ceilf (0); floorf (0);
23639 return 0;
23641 _ACEOF
23642 if ac_fn_cxx_try_compile "$LINENO"; then :
23643 glibcxx_cv_func_float_round_use=yes
23644 else
23645 glibcxx_cv_func_float_round_use=no
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 ac_ext=c
23649 ac_cpp='$CPP $CPPFLAGS'
23650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
23657 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
23658 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
23659 for ac_func in ceilf floorf
23660 do :
23661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23664 cat >>confdefs.h <<_ACEOF
23665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23666 _ACEOF
23669 done
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
23677 $as_echo_n "checking for expf declaration... " >&6; }
23678 if test x${glibcxx_cv_func_expf_use+set} != xset; then
23679 if ${glibcxx_cv_func_expf_use+:} false; then :
23680 $as_echo_n "(cached) " >&6
23681 else
23684 ac_ext=cpp
23685 ac_cpp='$CXXCPP $CPPFLAGS'
23686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23691 /* end confdefs.h. */
23692 #include <math.h>
23693 #ifdef HAVE_IEEEFP_H
23694 #include <ieeefp.h>
23695 #endif
23698 main ()
23700 expf(0);
23702 return 0;
23704 _ACEOF
23705 if ac_fn_cxx_try_compile "$LINENO"; then :
23706 glibcxx_cv_func_expf_use=yes
23707 else
23708 glibcxx_cv_func_expf_use=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 ac_ext=c
23712 ac_cpp='$CPP $CPPFLAGS'
23713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
23722 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
23724 if test x$glibcxx_cv_func_expf_use = x"yes"; then
23725 for ac_func in expf
23726 do :
23727 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
23728 if test "x$ac_cv_func_expf" = xyes; then :
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_EXPF 1
23731 _ACEOF
23734 done
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
23741 $as_echo_n "checking for isnanf declaration... " >&6; }
23742 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
23743 if ${glibcxx_cv_func_isnanf_use+:} false; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23748 ac_ext=cpp
23749 ac_cpp='$CXXCPP $CPPFLAGS'
23750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756 #include <math.h>
23757 #ifdef HAVE_IEEEFP_H
23758 #include <ieeefp.h>
23759 #endif
23762 main ()
23764 isnanf(0);
23766 return 0;
23768 _ACEOF
23769 if ac_fn_cxx_try_compile "$LINENO"; then :
23770 glibcxx_cv_func_isnanf_use=yes
23771 else
23772 glibcxx_cv_func_isnanf_use=no
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 ac_ext=c
23776 ac_cpp='$CPP $CPPFLAGS'
23777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
23786 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
23788 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
23789 for ac_func in isnanf
23790 do :
23791 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
23792 if test "x$ac_cv_func_isnanf" = xyes; then :
23793 cat >>confdefs.h <<_ACEOF
23794 #define HAVE_ISNANF 1
23795 _ACEOF
23798 done
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
23805 $as_echo_n "checking for isinff declaration... " >&6; }
23806 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
23807 if ${glibcxx_cv_func_isinff_use+:} false; then :
23808 $as_echo_n "(cached) " >&6
23809 else
23812 ac_ext=cpp
23813 ac_cpp='$CXXCPP $CPPFLAGS'
23814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23820 #include <math.h>
23821 #ifdef HAVE_IEEEFP_H
23822 #include <ieeefp.h>
23823 #endif
23826 main ()
23828 isinff(0);
23830 return 0;
23832 _ACEOF
23833 if ac_fn_cxx_try_compile "$LINENO"; then :
23834 glibcxx_cv_func_isinff_use=yes
23835 else
23836 glibcxx_cv_func_isinff_use=no
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 ac_ext=c
23840 ac_cpp='$CPP $CPPFLAGS'
23841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
23850 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
23852 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
23853 for ac_func in isinff
23854 do :
23855 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
23856 if test "x$ac_cv_func_isinff" = xyes; then :
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_ISINFF 1
23859 _ACEOF
23862 done
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
23869 $as_echo_n "checking for atan2f declaration... " >&6; }
23870 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
23871 if ${glibcxx_cv_func_atan2f_use+:} false; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23876 ac_ext=cpp
23877 ac_cpp='$CXXCPP $CPPFLAGS'
23878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883 /* end confdefs.h. */
23884 #include <math.h>
23886 main ()
23888 atan2f(0, 0);
23890 return 0;
23892 _ACEOF
23893 if ac_fn_cxx_try_compile "$LINENO"; then :
23894 glibcxx_cv_func_atan2f_use=yes
23895 else
23896 glibcxx_cv_func_atan2f_use=no
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899 ac_ext=c
23900 ac_cpp='$CPP $CPPFLAGS'
23901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
23910 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
23912 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
23913 for ac_func in atan2f
23914 do :
23915 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
23916 if test "x$ac_cv_func_atan2f" = xyes; then :
23917 cat >>confdefs.h <<_ACEOF
23918 #define HAVE_ATAN2F 1
23919 _ACEOF
23922 done
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
23929 $as_echo_n "checking for fabsf declaration... " >&6; }
23930 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
23931 if ${glibcxx_cv_func_fabsf_use+:} false; then :
23932 $as_echo_n "(cached) " >&6
23933 else
23936 ac_ext=cpp
23937 ac_cpp='$CXXCPP $CPPFLAGS'
23938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23944 #include <math.h>
23945 #ifdef HAVE_IEEEFP_H
23946 #include <ieeefp.h>
23947 #endif
23950 main ()
23952 fabsf(0);
23954 return 0;
23956 _ACEOF
23957 if ac_fn_cxx_try_compile "$LINENO"; then :
23958 glibcxx_cv_func_fabsf_use=yes
23959 else
23960 glibcxx_cv_func_fabsf_use=no
23962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23963 ac_ext=c
23964 ac_cpp='$CPP $CPPFLAGS'
23965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
23974 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
23976 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
23977 for ac_func in fabsf
23978 do :
23979 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
23980 if test "x$ac_cv_func_fabsf" = xyes; then :
23981 cat >>confdefs.h <<_ACEOF
23982 #define HAVE_FABSF 1
23983 _ACEOF
23986 done
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
23993 $as_echo_n "checking for fmodf declaration... " >&6; }
23994 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
23995 if ${glibcxx_cv_func_fmodf_use+:} false; then :
23996 $as_echo_n "(cached) " >&6
23997 else
24000 ac_ext=cpp
24001 ac_cpp='$CXXCPP $CPPFLAGS'
24002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24008 #include <math.h>
24010 main ()
24012 fmodf(0, 0);
24014 return 0;
24016 _ACEOF
24017 if ac_fn_cxx_try_compile "$LINENO"; then :
24018 glibcxx_cv_func_fmodf_use=yes
24019 else
24020 glibcxx_cv_func_fmodf_use=no
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 ac_ext=c
24024 ac_cpp='$CPP $CPPFLAGS'
24025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
24034 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
24036 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
24037 for ac_func in fmodf
24038 do :
24039 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
24040 if test "x$ac_cv_func_fmodf" = xyes; then :
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_FMODF 1
24043 _ACEOF
24046 done
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
24053 $as_echo_n "checking for frexpf declaration... " >&6; }
24054 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
24055 if ${glibcxx_cv_func_frexpf_use+:} false; then :
24056 $as_echo_n "(cached) " >&6
24057 else
24060 ac_ext=cpp
24061 ac_cpp='$CXXCPP $CPPFLAGS'
24062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h. */
24068 #include <math.h>
24070 main ()
24072 frexpf(0, 0);
24074 return 0;
24076 _ACEOF
24077 if ac_fn_cxx_try_compile "$LINENO"; then :
24078 glibcxx_cv_func_frexpf_use=yes
24079 else
24080 glibcxx_cv_func_frexpf_use=no
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 ac_ext=c
24084 ac_cpp='$CPP $CPPFLAGS'
24085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
24094 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
24096 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
24097 for ac_func in frexpf
24098 do :
24099 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
24100 if test "x$ac_cv_func_frexpf" = xyes; then :
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_FREXPF 1
24103 _ACEOF
24106 done
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
24113 $as_echo_n "checking for hypotf declaration... " >&6; }
24114 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
24115 if ${glibcxx_cv_func_hypotf_use+:} false; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24120 ac_ext=cpp
24121 ac_cpp='$CXXCPP $CPPFLAGS'
24122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127 /* end confdefs.h. */
24128 #include <math.h>
24130 main ()
24132 hypotf(0, 0);
24134 return 0;
24136 _ACEOF
24137 if ac_fn_cxx_try_compile "$LINENO"; then :
24138 glibcxx_cv_func_hypotf_use=yes
24139 else
24140 glibcxx_cv_func_hypotf_use=no
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 ac_ext=c
24144 ac_cpp='$CPP $CPPFLAGS'
24145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
24154 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
24156 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
24157 for ac_func in hypotf
24158 do :
24159 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
24160 if test "x$ac_cv_func_hypotf" = xyes; then :
24161 cat >>confdefs.h <<_ACEOF
24162 #define HAVE_HYPOTF 1
24163 _ACEOF
24166 done
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
24173 $as_echo_n "checking for ldexpf declaration... " >&6; }
24174 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
24175 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24180 ac_ext=cpp
24181 ac_cpp='$CXXCPP $CPPFLAGS'
24182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h. */
24188 #include <math.h>
24190 main ()
24192 ldexpf(0, 0);
24194 return 0;
24196 _ACEOF
24197 if ac_fn_cxx_try_compile "$LINENO"; then :
24198 glibcxx_cv_func_ldexpf_use=yes
24199 else
24200 glibcxx_cv_func_ldexpf_use=no
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 ac_ext=c
24204 ac_cpp='$CPP $CPPFLAGS'
24205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
24214 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
24216 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
24217 for ac_func in ldexpf
24218 do :
24219 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
24220 if test "x$ac_cv_func_ldexpf" = xyes; then :
24221 cat >>confdefs.h <<_ACEOF
24222 #define HAVE_LDEXPF 1
24223 _ACEOF
24226 done
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
24233 $as_echo_n "checking for logf declaration... " >&6; }
24234 if test x${glibcxx_cv_func_logf_use+set} != xset; then
24235 if ${glibcxx_cv_func_logf_use+:} false; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24240 ac_ext=cpp
24241 ac_cpp='$CXXCPP $CPPFLAGS'
24242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24248 #include <math.h>
24249 #ifdef HAVE_IEEEFP_H
24250 #include <ieeefp.h>
24251 #endif
24254 main ()
24256 logf(0);
24258 return 0;
24260 _ACEOF
24261 if ac_fn_cxx_try_compile "$LINENO"; then :
24262 glibcxx_cv_func_logf_use=yes
24263 else
24264 glibcxx_cv_func_logf_use=no
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 ac_ext=c
24268 ac_cpp='$CPP $CPPFLAGS'
24269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
24278 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
24280 if test x$glibcxx_cv_func_logf_use = x"yes"; then
24281 for ac_func in logf
24282 do :
24283 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
24284 if test "x$ac_cv_func_logf" = xyes; then :
24285 cat >>confdefs.h <<_ACEOF
24286 #define HAVE_LOGF 1
24287 _ACEOF
24290 done
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
24297 $as_echo_n "checking for log10f declaration... " >&6; }
24298 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
24299 if ${glibcxx_cv_func_log10f_use+:} false; then :
24300 $as_echo_n "(cached) " >&6
24301 else
24304 ac_ext=cpp
24305 ac_cpp='$CXXCPP $CPPFLAGS'
24306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24312 #include <math.h>
24313 #ifdef HAVE_IEEEFP_H
24314 #include <ieeefp.h>
24315 #endif
24318 main ()
24320 log10f(0);
24322 return 0;
24324 _ACEOF
24325 if ac_fn_cxx_try_compile "$LINENO"; then :
24326 glibcxx_cv_func_log10f_use=yes
24327 else
24328 glibcxx_cv_func_log10f_use=no
24330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331 ac_ext=c
24332 ac_cpp='$CPP $CPPFLAGS'
24333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
24342 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
24344 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
24345 for ac_func in log10f
24346 do :
24347 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
24348 if test "x$ac_cv_func_log10f" = xyes; then :
24349 cat >>confdefs.h <<_ACEOF
24350 #define HAVE_LOG10F 1
24351 _ACEOF
24354 done
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
24361 $as_echo_n "checking for modff declaration... " >&6; }
24362 if test x${glibcxx_cv_func_modff_use+set} != xset; then
24363 if ${glibcxx_cv_func_modff_use+:} false; then :
24364 $as_echo_n "(cached) " >&6
24365 else
24368 ac_ext=cpp
24369 ac_cpp='$CXXCPP $CPPFLAGS'
24370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24376 #include <math.h>
24378 main ()
24380 modff(0, 0);
24382 return 0;
24384 _ACEOF
24385 if ac_fn_cxx_try_compile "$LINENO"; then :
24386 glibcxx_cv_func_modff_use=yes
24387 else
24388 glibcxx_cv_func_modff_use=no
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 ac_ext=c
24392 ac_cpp='$CPP $CPPFLAGS'
24393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
24402 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
24404 if test x$glibcxx_cv_func_modff_use = x"yes"; then
24405 for ac_func in modff
24406 do :
24407 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
24408 if test "x$ac_cv_func_modff" = xyes; then :
24409 cat >>confdefs.h <<_ACEOF
24410 #define HAVE_MODFF 1
24411 _ACEOF
24414 done
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
24421 $as_echo_n "checking for modf declaration... " >&6; }
24422 if test x${glibcxx_cv_func_modf_use+set} != xset; then
24423 if ${glibcxx_cv_func_modf_use+:} false; then :
24424 $as_echo_n "(cached) " >&6
24425 else
24428 ac_ext=cpp
24429 ac_cpp='$CXXCPP $CPPFLAGS'
24430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24436 #include <math.h>
24438 main ()
24440 modf(0, 0);
24442 return 0;
24444 _ACEOF
24445 if ac_fn_cxx_try_compile "$LINENO"; then :
24446 glibcxx_cv_func_modf_use=yes
24447 else
24448 glibcxx_cv_func_modf_use=no
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 ac_ext=c
24452 ac_cpp='$CPP $CPPFLAGS'
24453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
24462 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
24464 if test x$glibcxx_cv_func_modf_use = x"yes"; then
24465 for ac_func in modf
24466 do :
24467 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
24468 if test "x$ac_cv_func_modf" = xyes; then :
24469 cat >>confdefs.h <<_ACEOF
24470 #define HAVE_MODF 1
24471 _ACEOF
24474 done
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
24481 $as_echo_n "checking for powf declaration... " >&6; }
24482 if test x${glibcxx_cv_func_powf_use+set} != xset; then
24483 if ${glibcxx_cv_func_powf_use+:} false; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24488 ac_ext=cpp
24489 ac_cpp='$CXXCPP $CPPFLAGS'
24490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24496 #include <math.h>
24498 main ()
24500 powf(0, 0);
24502 return 0;
24504 _ACEOF
24505 if ac_fn_cxx_try_compile "$LINENO"; then :
24506 glibcxx_cv_func_powf_use=yes
24507 else
24508 glibcxx_cv_func_powf_use=no
24510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511 ac_ext=c
24512 ac_cpp='$CPP $CPPFLAGS'
24513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
24522 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
24524 if test x$glibcxx_cv_func_powf_use = x"yes"; then
24525 for ac_func in powf
24526 do :
24527 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
24528 if test "x$ac_cv_func_powf" = xyes; then :
24529 cat >>confdefs.h <<_ACEOF
24530 #define HAVE_POWF 1
24531 _ACEOF
24534 done
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
24541 $as_echo_n "checking for sqrtf declaration... " >&6; }
24542 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
24543 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24548 ac_ext=cpp
24549 ac_cpp='$CXXCPP $CPPFLAGS'
24550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 /* end confdefs.h. */
24556 #include <math.h>
24557 #ifdef HAVE_IEEEFP_H
24558 #include <ieeefp.h>
24559 #endif
24562 main ()
24564 sqrtf(0);
24566 return 0;
24568 _ACEOF
24569 if ac_fn_cxx_try_compile "$LINENO"; then :
24570 glibcxx_cv_func_sqrtf_use=yes
24571 else
24572 glibcxx_cv_func_sqrtf_use=no
24574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 ac_ext=c
24576 ac_cpp='$CPP $CPPFLAGS'
24577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
24586 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
24588 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
24589 for ac_func in sqrtf
24590 do :
24591 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
24592 if test "x$ac_cv_func_sqrtf" = xyes; then :
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_SQRTF 1
24595 _ACEOF
24598 done
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
24605 $as_echo_n "checking for sincosf declaration... " >&6; }
24606 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
24607 if ${glibcxx_cv_func_sincosf_use+:} false; then :
24608 $as_echo_n "(cached) " >&6
24609 else
24612 ac_ext=cpp
24613 ac_cpp='$CXXCPP $CPPFLAGS'
24614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24620 #include <math.h>
24622 main ()
24624 sincosf(0, 0, 0);
24626 return 0;
24628 _ACEOF
24629 if ac_fn_cxx_try_compile "$LINENO"; then :
24630 glibcxx_cv_func_sincosf_use=yes
24631 else
24632 glibcxx_cv_func_sincosf_use=no
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 ac_ext=c
24636 ac_cpp='$CPP $CPPFLAGS'
24637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
24646 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
24648 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
24649 for ac_func in sincosf
24650 do :
24651 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
24652 if test "x$ac_cv_func_sincosf" = xyes; then :
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_SINCOSF 1
24655 _ACEOF
24658 done
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
24665 $as_echo_n "checking for finitef declaration... " >&6; }
24666 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
24667 if ${glibcxx_cv_func_finitef_use+:} false; then :
24668 $as_echo_n "(cached) " >&6
24669 else
24672 ac_ext=cpp
24673 ac_cpp='$CXXCPP $CPPFLAGS'
24674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24680 #include <math.h>
24681 #ifdef HAVE_IEEEFP_H
24682 #include <ieeefp.h>
24683 #endif
24686 main ()
24688 finitef(0);
24690 return 0;
24692 _ACEOF
24693 if ac_fn_cxx_try_compile "$LINENO"; then :
24694 glibcxx_cv_func_finitef_use=yes
24695 else
24696 glibcxx_cv_func_finitef_use=no
24698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24699 ac_ext=c
24700 ac_cpp='$CPP $CPPFLAGS'
24701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
24710 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
24712 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
24713 for ac_func in finitef
24714 do :
24715 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
24716 if test "x$ac_cv_func_finitef" = xyes; then :
24717 cat >>confdefs.h <<_ACEOF
24718 #define HAVE_FINITEF 1
24719 _ACEOF
24722 done
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
24729 $as_echo_n "checking for long double trig functions... " >&6; }
24730 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
24731 $as_echo_n "(cached) " >&6
24732 else
24735 ac_ext=cpp
24736 ac_cpp='$CXXCPP $CPPFLAGS'
24737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h. */
24743 #include <math.h>
24745 main ()
24747 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
24749 return 0;
24751 _ACEOF
24752 if ac_fn_cxx_try_compile "$LINENO"; then :
24753 glibcxx_cv_func_long_double_trig_use=yes
24754 else
24755 glibcxx_cv_func_long_double_trig_use=no
24757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 ac_ext=c
24759 ac_cpp='$CPP $CPPFLAGS'
24760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
24767 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
24768 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
24769 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
24770 do :
24771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24773 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24774 cat >>confdefs.h <<_ACEOF
24775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24776 _ACEOF
24779 done
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
24786 $as_echo_n "checking for long double round functions... " >&6; }
24787 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24792 ac_ext=cpp
24793 ac_cpp='$CXXCPP $CPPFLAGS'
24794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h. */
24800 #include <math.h>
24802 main ()
24804 ceill (0); floorl (0);
24806 return 0;
24808 _ACEOF
24809 if ac_fn_cxx_try_compile "$LINENO"; then :
24810 glibcxx_cv_func_long_double_round_use=yes
24811 else
24812 glibcxx_cv_func_long_double_round_use=no
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 ac_ext=c
24816 ac_cpp='$CPP $CPPFLAGS'
24817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
24824 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
24825 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
24826 for ac_func in ceill floorl
24827 do :
24828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24831 cat >>confdefs.h <<_ACEOF
24832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24833 _ACEOF
24836 done
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
24844 $as_echo_n "checking for isnanl declaration... " >&6; }
24845 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
24846 if ${glibcxx_cv_func_isnanl_use+:} false; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24851 ac_ext=cpp
24852 ac_cpp='$CXXCPP $CPPFLAGS'
24853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24859 #include <math.h>
24860 #ifdef HAVE_IEEEFP_H
24861 #include <ieeefp.h>
24862 #endif
24865 main ()
24867 isnanl(0);
24869 return 0;
24871 _ACEOF
24872 if ac_fn_cxx_try_compile "$LINENO"; then :
24873 glibcxx_cv_func_isnanl_use=yes
24874 else
24875 glibcxx_cv_func_isnanl_use=no
24877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 ac_ext=c
24879 ac_cpp='$CPP $CPPFLAGS'
24880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
24889 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
24891 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
24892 for ac_func in isnanl
24893 do :
24894 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
24895 if test "x$ac_cv_func_isnanl" = xyes; then :
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_ISNANL 1
24898 _ACEOF
24901 done
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
24908 $as_echo_n "checking for isinfl declaration... " >&6; }
24909 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
24910 if ${glibcxx_cv_func_isinfl_use+:} false; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24915 ac_ext=cpp
24916 ac_cpp='$CXXCPP $CPPFLAGS'
24917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24923 #include <math.h>
24924 #ifdef HAVE_IEEEFP_H
24925 #include <ieeefp.h>
24926 #endif
24929 main ()
24931 isinfl(0);
24933 return 0;
24935 _ACEOF
24936 if ac_fn_cxx_try_compile "$LINENO"; then :
24937 glibcxx_cv_func_isinfl_use=yes
24938 else
24939 glibcxx_cv_func_isinfl_use=no
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942 ac_ext=c
24943 ac_cpp='$CPP $CPPFLAGS'
24944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
24953 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
24955 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
24956 for ac_func in isinfl
24957 do :
24958 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
24959 if test "x$ac_cv_func_isinfl" = xyes; then :
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_ISINFL 1
24962 _ACEOF
24965 done
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
24972 $as_echo_n "checking for atan2l declaration... " >&6; }
24973 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
24974 if ${glibcxx_cv_func_atan2l_use+:} false; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24979 ac_ext=cpp
24980 ac_cpp='$CXXCPP $CPPFLAGS'
24981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h. */
24987 #include <math.h>
24989 main ()
24991 atan2l(0, 0);
24993 return 0;
24995 _ACEOF
24996 if ac_fn_cxx_try_compile "$LINENO"; then :
24997 glibcxx_cv_func_atan2l_use=yes
24998 else
24999 glibcxx_cv_func_atan2l_use=no
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 ac_ext=c
25003 ac_cpp='$CPP $CPPFLAGS'
25004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
25013 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
25015 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
25016 for ac_func in atan2l
25017 do :
25018 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
25019 if test "x$ac_cv_func_atan2l" = xyes; then :
25020 cat >>confdefs.h <<_ACEOF
25021 #define HAVE_ATAN2L 1
25022 _ACEOF
25025 done
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
25032 $as_echo_n "checking for expl declaration... " >&6; }
25033 if test x${glibcxx_cv_func_expl_use+set} != xset; then
25034 if ${glibcxx_cv_func_expl_use+:} false; then :
25035 $as_echo_n "(cached) " >&6
25036 else
25039 ac_ext=cpp
25040 ac_cpp='$CXXCPP $CPPFLAGS'
25041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <math.h>
25048 #ifdef HAVE_IEEEFP_H
25049 #include <ieeefp.h>
25050 #endif
25053 main ()
25055 expl(0);
25057 return 0;
25059 _ACEOF
25060 if ac_fn_cxx_try_compile "$LINENO"; then :
25061 glibcxx_cv_func_expl_use=yes
25062 else
25063 glibcxx_cv_func_expl_use=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 ac_ext=c
25067 ac_cpp='$CPP $CPPFLAGS'
25068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
25077 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
25079 if test x$glibcxx_cv_func_expl_use = x"yes"; then
25080 for ac_func in expl
25081 do :
25082 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
25083 if test "x$ac_cv_func_expl" = xyes; then :
25084 cat >>confdefs.h <<_ACEOF
25085 #define HAVE_EXPL 1
25086 _ACEOF
25089 done
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
25096 $as_echo_n "checking for fabsl declaration... " >&6; }
25097 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
25098 if ${glibcxx_cv_func_fabsl_use+:} false; then :
25099 $as_echo_n "(cached) " >&6
25100 else
25103 ac_ext=cpp
25104 ac_cpp='$CXXCPP $CPPFLAGS'
25105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110 /* end confdefs.h. */
25111 #include <math.h>
25112 #ifdef HAVE_IEEEFP_H
25113 #include <ieeefp.h>
25114 #endif
25117 main ()
25119 fabsl(0);
25121 return 0;
25123 _ACEOF
25124 if ac_fn_cxx_try_compile "$LINENO"; then :
25125 glibcxx_cv_func_fabsl_use=yes
25126 else
25127 glibcxx_cv_func_fabsl_use=no
25129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130 ac_ext=c
25131 ac_cpp='$CPP $CPPFLAGS'
25132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
25141 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
25143 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
25144 for ac_func in fabsl
25145 do :
25146 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
25147 if test "x$ac_cv_func_fabsl" = xyes; then :
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_FABSL 1
25150 _ACEOF
25153 done
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
25160 $as_echo_n "checking for fmodl declaration... " >&6; }
25161 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
25162 if ${glibcxx_cv_func_fmodl_use+:} false; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25167 ac_ext=cpp
25168 ac_cpp='$CXXCPP $CPPFLAGS'
25169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h. */
25175 #include <math.h>
25177 main ()
25179 fmodl(0, 0);
25181 return 0;
25183 _ACEOF
25184 if ac_fn_cxx_try_compile "$LINENO"; then :
25185 glibcxx_cv_func_fmodl_use=yes
25186 else
25187 glibcxx_cv_func_fmodl_use=no
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 ac_ext=c
25191 ac_cpp='$CPP $CPPFLAGS'
25192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
25201 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
25203 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
25204 for ac_func in fmodl
25205 do :
25206 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
25207 if test "x$ac_cv_func_fmodl" = xyes; then :
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_FMODL 1
25210 _ACEOF
25213 done
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
25220 $as_echo_n "checking for frexpl declaration... " >&6; }
25221 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
25222 if ${glibcxx_cv_func_frexpl_use+:} false; then :
25223 $as_echo_n "(cached) " >&6
25224 else
25227 ac_ext=cpp
25228 ac_cpp='$CXXCPP $CPPFLAGS'
25229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25234 /* end confdefs.h. */
25235 #include <math.h>
25237 main ()
25239 frexpl(0, 0);
25241 return 0;
25243 _ACEOF
25244 if ac_fn_cxx_try_compile "$LINENO"; then :
25245 glibcxx_cv_func_frexpl_use=yes
25246 else
25247 glibcxx_cv_func_frexpl_use=no
25249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25250 ac_ext=c
25251 ac_cpp='$CPP $CPPFLAGS'
25252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
25261 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
25263 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
25264 for ac_func in frexpl
25265 do :
25266 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
25267 if test "x$ac_cv_func_frexpl" = xyes; then :
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_FREXPL 1
25270 _ACEOF
25273 done
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
25280 $as_echo_n "checking for hypotl declaration... " >&6; }
25281 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
25282 if ${glibcxx_cv_func_hypotl_use+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25287 ac_ext=cpp
25288 ac_cpp='$CXXCPP $CPPFLAGS'
25289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h. */
25295 #include <math.h>
25297 main ()
25299 hypotl(0, 0);
25301 return 0;
25303 _ACEOF
25304 if ac_fn_cxx_try_compile "$LINENO"; then :
25305 glibcxx_cv_func_hypotl_use=yes
25306 else
25307 glibcxx_cv_func_hypotl_use=no
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310 ac_ext=c
25311 ac_cpp='$CPP $CPPFLAGS'
25312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
25321 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
25323 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
25324 for ac_func in hypotl
25325 do :
25326 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
25327 if test "x$ac_cv_func_hypotl" = xyes; then :
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_HYPOTL 1
25330 _ACEOF
25333 done
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
25340 $as_echo_n "checking for ldexpl declaration... " >&6; }
25341 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
25342 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25347 ac_ext=cpp
25348 ac_cpp='$CXXCPP $CPPFLAGS'
25349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25355 #include <math.h>
25357 main ()
25359 ldexpl(0, 0);
25361 return 0;
25363 _ACEOF
25364 if ac_fn_cxx_try_compile "$LINENO"; then :
25365 glibcxx_cv_func_ldexpl_use=yes
25366 else
25367 glibcxx_cv_func_ldexpl_use=no
25369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25370 ac_ext=c
25371 ac_cpp='$CPP $CPPFLAGS'
25372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
25381 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
25383 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
25384 for ac_func in ldexpl
25385 do :
25386 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
25387 if test "x$ac_cv_func_ldexpl" = xyes; then :
25388 cat >>confdefs.h <<_ACEOF
25389 #define HAVE_LDEXPL 1
25390 _ACEOF
25393 done
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
25400 $as_echo_n "checking for logl declaration... " >&6; }
25401 if test x${glibcxx_cv_func_logl_use+set} != xset; then
25402 if ${glibcxx_cv_func_logl_use+:} false; then :
25403 $as_echo_n "(cached) " >&6
25404 else
25407 ac_ext=cpp
25408 ac_cpp='$CXXCPP $CPPFLAGS'
25409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25415 #include <math.h>
25416 #ifdef HAVE_IEEEFP_H
25417 #include <ieeefp.h>
25418 #endif
25421 main ()
25423 logl(0);
25425 return 0;
25427 _ACEOF
25428 if ac_fn_cxx_try_compile "$LINENO"; then :
25429 glibcxx_cv_func_logl_use=yes
25430 else
25431 glibcxx_cv_func_logl_use=no
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434 ac_ext=c
25435 ac_cpp='$CPP $CPPFLAGS'
25436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
25445 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
25447 if test x$glibcxx_cv_func_logl_use = x"yes"; then
25448 for ac_func in logl
25449 do :
25450 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
25451 if test "x$ac_cv_func_logl" = xyes; then :
25452 cat >>confdefs.h <<_ACEOF
25453 #define HAVE_LOGL 1
25454 _ACEOF
25457 done
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
25464 $as_echo_n "checking for log10l declaration... " >&6; }
25465 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
25466 if ${glibcxx_cv_func_log10l_use+:} false; then :
25467 $as_echo_n "(cached) " >&6
25468 else
25471 ac_ext=cpp
25472 ac_cpp='$CXXCPP $CPPFLAGS'
25473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25479 #include <math.h>
25480 #ifdef HAVE_IEEEFP_H
25481 #include <ieeefp.h>
25482 #endif
25485 main ()
25487 log10l(0);
25489 return 0;
25491 _ACEOF
25492 if ac_fn_cxx_try_compile "$LINENO"; then :
25493 glibcxx_cv_func_log10l_use=yes
25494 else
25495 glibcxx_cv_func_log10l_use=no
25497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 ac_ext=c
25499 ac_cpp='$CPP $CPPFLAGS'
25500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
25509 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
25511 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
25512 for ac_func in log10l
25513 do :
25514 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
25515 if test "x$ac_cv_func_log10l" = xyes; then :
25516 cat >>confdefs.h <<_ACEOF
25517 #define HAVE_LOG10L 1
25518 _ACEOF
25521 done
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
25528 $as_echo_n "checking for modfl declaration... " >&6; }
25529 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
25530 if ${glibcxx_cv_func_modfl_use+:} false; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25535 ac_ext=cpp
25536 ac_cpp='$CXXCPP $CPPFLAGS'
25537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25543 #include <math.h>
25545 main ()
25547 modfl(0, 0);
25549 return 0;
25551 _ACEOF
25552 if ac_fn_cxx_try_compile "$LINENO"; then :
25553 glibcxx_cv_func_modfl_use=yes
25554 else
25555 glibcxx_cv_func_modfl_use=no
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 ac_ext=c
25559 ac_cpp='$CPP $CPPFLAGS'
25560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
25569 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
25571 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
25572 for ac_func in modfl
25573 do :
25574 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
25575 if test "x$ac_cv_func_modfl" = xyes; then :
25576 cat >>confdefs.h <<_ACEOF
25577 #define HAVE_MODFL 1
25578 _ACEOF
25581 done
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
25588 $as_echo_n "checking for powl declaration... " >&6; }
25589 if test x${glibcxx_cv_func_powl_use+set} != xset; then
25590 if ${glibcxx_cv_func_powl_use+:} false; then :
25591 $as_echo_n "(cached) " >&6
25592 else
25595 ac_ext=cpp
25596 ac_cpp='$CXXCPP $CPPFLAGS'
25597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h. */
25603 #include <math.h>
25605 main ()
25607 powl(0, 0);
25609 return 0;
25611 _ACEOF
25612 if ac_fn_cxx_try_compile "$LINENO"; then :
25613 glibcxx_cv_func_powl_use=yes
25614 else
25615 glibcxx_cv_func_powl_use=no
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 ac_ext=c
25619 ac_cpp='$CPP $CPPFLAGS'
25620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
25629 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
25631 if test x$glibcxx_cv_func_powl_use = x"yes"; then
25632 for ac_func in powl
25633 do :
25634 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
25635 if test "x$ac_cv_func_powl" = xyes; then :
25636 cat >>confdefs.h <<_ACEOF
25637 #define HAVE_POWL 1
25638 _ACEOF
25641 done
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
25648 $as_echo_n "checking for sqrtl declaration... " >&6; }
25649 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
25650 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
25651 $as_echo_n "(cached) " >&6
25652 else
25655 ac_ext=cpp
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h. */
25663 #include <math.h>
25664 #ifdef HAVE_IEEEFP_H
25665 #include <ieeefp.h>
25666 #endif
25669 main ()
25671 sqrtl(0);
25673 return 0;
25675 _ACEOF
25676 if ac_fn_cxx_try_compile "$LINENO"; then :
25677 glibcxx_cv_func_sqrtl_use=yes
25678 else
25679 glibcxx_cv_func_sqrtl_use=no
25681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682 ac_ext=c
25683 ac_cpp='$CPP $CPPFLAGS'
25684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
25693 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
25695 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
25696 for ac_func in sqrtl
25697 do :
25698 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
25699 if test "x$ac_cv_func_sqrtl" = xyes; then :
25700 cat >>confdefs.h <<_ACEOF
25701 #define HAVE_SQRTL 1
25702 _ACEOF
25705 done
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
25712 $as_echo_n "checking for sincosl declaration... " >&6; }
25713 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
25714 if ${glibcxx_cv_func_sincosl_use+:} false; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25719 ac_ext=cpp
25720 ac_cpp='$CXXCPP $CPPFLAGS'
25721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726 /* end confdefs.h. */
25727 #include <math.h>
25729 main ()
25731 sincosl(0, 0, 0);
25733 return 0;
25735 _ACEOF
25736 if ac_fn_cxx_try_compile "$LINENO"; then :
25737 glibcxx_cv_func_sincosl_use=yes
25738 else
25739 glibcxx_cv_func_sincosl_use=no
25741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742 ac_ext=c
25743 ac_cpp='$CPP $CPPFLAGS'
25744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
25753 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
25755 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
25756 for ac_func in sincosl
25757 do :
25758 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
25759 if test "x$ac_cv_func_sincosl" = xyes; then :
25760 cat >>confdefs.h <<_ACEOF
25761 #define HAVE_SINCOSL 1
25762 _ACEOF
25765 done
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
25772 $as_echo_n "checking for finitel declaration... " >&6; }
25773 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
25774 if ${glibcxx_cv_func_finitel_use+:} false; then :
25775 $as_echo_n "(cached) " >&6
25776 else
25779 ac_ext=cpp
25780 ac_cpp='$CXXCPP $CPPFLAGS'
25781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h. */
25787 #include <math.h>
25788 #ifdef HAVE_IEEEFP_H
25789 #include <ieeefp.h>
25790 #endif
25793 main ()
25795 finitel(0);
25797 return 0;
25799 _ACEOF
25800 if ac_fn_cxx_try_compile "$LINENO"; then :
25801 glibcxx_cv_func_finitel_use=yes
25802 else
25803 glibcxx_cv_func_finitel_use=no
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 ac_ext=c
25807 ac_cpp='$CPP $CPPFLAGS'
25808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
25817 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
25819 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
25820 for ac_func in finitel
25821 do :
25822 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
25823 if test "x$ac_cv_func_finitel" = xyes; then :
25824 cat >>confdefs.h <<_ACEOF
25825 #define HAVE_FINITEL 1
25826 _ACEOF
25829 done
25834 LIBS="$ac_save_LIBS"
25835 CXXFLAGS="$ac_save_CXXFLAGS"
25838 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25839 ac_save_CXXFLAGS="$CXXFLAGS"
25840 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
25844 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
25845 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
25846 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25851 ac_ext=cpp
25852 ac_cpp='$CXXCPP $CPPFLAGS'
25853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25859 #include <stdlib.h>
25861 main ()
25863 at_quick_exit(0);
25865 return 0;
25867 _ACEOF
25868 if ac_fn_cxx_try_compile "$LINENO"; then :
25869 glibcxx_cv_func_at_quick_exit_use=yes
25870 else
25871 glibcxx_cv_func_at_quick_exit_use=no
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 ac_ext=c
25875 ac_cpp='$CPP $CPPFLAGS'
25876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
25885 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
25886 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
25887 for ac_func in at_quick_exit
25888 do :
25889 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
25890 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
25891 cat >>confdefs.h <<_ACEOF
25892 #define HAVE_AT_QUICK_EXIT 1
25893 _ACEOF
25896 done
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
25902 $as_echo_n "checking for quick_exit declaration... " >&6; }
25903 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
25904 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25909 ac_ext=cpp
25910 ac_cpp='$CXXCPP $CPPFLAGS'
25911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25917 #include <stdlib.h>
25919 main ()
25921 quick_exit(0);
25923 return 0;
25925 _ACEOF
25926 if ac_fn_cxx_try_compile "$LINENO"; then :
25927 glibcxx_cv_func_quick_exit_use=yes
25928 else
25929 glibcxx_cv_func_quick_exit_use=no
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 ac_ext=c
25933 ac_cpp='$CPP $CPPFLAGS'
25934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
25943 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
25944 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
25945 for ac_func in quick_exit
25946 do :
25947 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
25948 if test "x$ac_cv_func_quick_exit" = xyes; then :
25949 cat >>confdefs.h <<_ACEOF
25950 #define HAVE_QUICK_EXIT 1
25951 _ACEOF
25954 done
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
25960 $as_echo_n "checking for strtold declaration... " >&6; }
25961 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25962 if ${glibcxx_cv_func_strtold_use+:} false; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25967 ac_ext=cpp
25968 ac_cpp='$CXXCPP $CPPFLAGS'
25969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h. */
25975 #include <stdlib.h>
25977 main ()
25979 strtold(0, 0);
25981 return 0;
25983 _ACEOF
25984 if ac_fn_cxx_try_compile "$LINENO"; then :
25985 glibcxx_cv_func_strtold_use=yes
25986 else
25987 glibcxx_cv_func_strtold_use=no
25989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25990 ac_ext=c
25991 ac_cpp='$CPP $CPPFLAGS'
25992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
26001 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
26002 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
26003 for ac_func in strtold
26004 do :
26005 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
26006 if test "x$ac_cv_func_strtold" = xyes; then :
26007 cat >>confdefs.h <<_ACEOF
26008 #define HAVE_STRTOLD 1
26009 _ACEOF
26012 done
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
26018 $as_echo_n "checking for strtof declaration... " >&6; }
26019 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
26020 if ${glibcxx_cv_func_strtof_use+:} false; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26025 ac_ext=cpp
26026 ac_cpp='$CXXCPP $CPPFLAGS'
26027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h. */
26033 #include <stdlib.h>
26035 main ()
26037 strtof(0, 0);
26039 return 0;
26041 _ACEOF
26042 if ac_fn_cxx_try_compile "$LINENO"; then :
26043 glibcxx_cv_func_strtof_use=yes
26044 else
26045 glibcxx_cv_func_strtof_use=no
26047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26048 ac_ext=c
26049 ac_cpp='$CPP $CPPFLAGS'
26050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
26059 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
26060 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26061 for ac_func in strtof
26062 do :
26063 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
26064 if test "x$ac_cv_func_strtof" = xyes; then :
26065 cat >>confdefs.h <<_ACEOF
26066 #define HAVE_STRTOF 1
26067 _ACEOF
26070 done
26075 CXXFLAGS="$ac_save_CXXFLAGS"
26078 # For /dev/random and /dev/urandom for std::random_device.
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device" >&5
26082 $as_echo_n "checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device... " >&6; }
26083 if ${glibcxx_cv_dev_random+:} false; then :
26084 $as_echo_n "(cached) " >&6
26085 else
26087 if test -r /dev/random && test -r /dev/urandom; then
26088 ## For MSys environment the test above is detected as false-positive
26089 ## on mingw-targets. So disable it explicitly for them.
26090 case ${target_os} in
26091 *mingw*) glibcxx_cv_dev_random=no ;;
26092 *) glibcxx_cv_dev_random=yes ;;
26093 esac
26094 else
26095 glibcxx_cv_dev_random=no;
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dev_random" >&5
26100 $as_echo "$glibcxx_cv_dev_random" >&6; }
26102 if test x"$glibcxx_cv_dev_random" = x"yes"; then
26104 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
26107 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
26113 # For TLS support.
26116 # Check whether --enable-tls was given.
26117 if test "${enable_tls+set}" = set; then :
26118 enableval=$enable_tls;
26119 case "$enableval" in
26120 yes|no) ;;
26121 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
26122 esac
26124 else
26125 enable_tls=yes
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
26130 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
26131 if ${gcc_cv_have_tls+:} false; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26135 if test "$cross_compiling" = yes; then :
26136 if test x$gcc_no_link = xyes; then
26137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26140 /* end confdefs.h. */
26141 __thread int a; int b; int main() { return a = b; }
26142 _ACEOF
26143 if ac_fn_c_try_link "$LINENO"; then :
26144 chktls_save_LDFLAGS="$LDFLAGS"
26145 case $host in
26146 *-*-linux* | -*-uclinuxfdpic*)
26147 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
26149 esac
26150 chktls_save_CFLAGS="$CFLAGS"
26151 CFLAGS="-fPIC $CFLAGS"
26152 if test x$gcc_no_link = xyes; then
26153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h. */
26157 int f() { return 0; }
26158 _ACEOF
26159 if ac_fn_c_try_link "$LINENO"; then :
26160 if test x$gcc_no_link = xyes; then
26161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h. */
26165 __thread int a; int b; int f() { return a = b; }
26166 _ACEOF
26167 if ac_fn_c_try_link "$LINENO"; then :
26168 gcc_cv_have_tls=yes
26169 else
26170 gcc_cv_have_tls=no
26172 rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174 else
26175 gcc_cv_have_tls=yes
26177 rm -f core conftest.err conftest.$ac_objext \
26178 conftest$ac_exeext conftest.$ac_ext
26179 CFLAGS="$chktls_save_CFLAGS"
26180 LDFLAGS="$chktls_save_LDFLAGS"
26181 else
26182 gcc_cv_have_tls=no
26184 rm -f core conftest.err conftest.$ac_objext \
26185 conftest$ac_exeext conftest.$ac_ext
26188 else
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26191 __thread int a; int b; int main() { return a = b; }
26192 _ACEOF
26193 if ac_fn_c_try_run "$LINENO"; then :
26194 chktls_save_LDFLAGS="$LDFLAGS"
26195 LDFLAGS="-static $LDFLAGS"
26196 if test x$gcc_no_link = xyes; then
26197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h. */
26201 int main() { return 0; }
26202 _ACEOF
26203 if ac_fn_c_try_link "$LINENO"; then :
26204 if test "$cross_compiling" = yes; then :
26205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26207 as_fn_error $? "cannot run test program while cross compiling
26208 See \`config.log' for more details" "$LINENO" 5; }
26209 else
26210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211 /* end confdefs.h. */
26212 __thread int a; int b; int main() { return a = b; }
26213 _ACEOF
26214 if ac_fn_c_try_run "$LINENO"; then :
26215 gcc_cv_have_tls=yes
26216 else
26217 gcc_cv_have_tls=no
26219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26220 conftest.$ac_objext conftest.beam conftest.$ac_ext
26223 else
26224 gcc_cv_have_tls=yes
26226 rm -f core conftest.err conftest.$ac_objext \
26227 conftest$ac_exeext conftest.$ac_ext
26228 LDFLAGS="$chktls_save_LDFLAGS"
26229 if test $gcc_cv_have_tls = yes; then
26230 chktls_save_CFLAGS="$CFLAGS"
26231 thread_CFLAGS=failed
26232 for flag in '' '-pthread' '-lpthread'; do
26233 CFLAGS="$flag $chktls_save_CFLAGS"
26234 if test x$gcc_no_link = xyes; then
26235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26239 #include <pthread.h>
26240 void *g(void *d) { return NULL; }
26242 main ()
26244 pthread_t t; pthread_create(&t,NULL,g,NULL);
26246 return 0;
26248 _ACEOF
26249 if ac_fn_c_try_link "$LINENO"; then :
26250 thread_CFLAGS="$flag"
26252 rm -f core conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
26254 if test "X$thread_CFLAGS" != Xfailed; then
26255 break
26257 done
26258 CFLAGS="$chktls_save_CFLAGS"
26259 if test "X$thread_CFLAGS" != Xfailed; then
26260 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
26261 if test "$cross_compiling" = yes; then :
26262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26264 as_fn_error $? "cannot run test program while cross compiling
26265 See \`config.log' for more details" "$LINENO" 5; }
26266 else
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h. */
26269 #include <pthread.h>
26270 __thread int a;
26271 static int *volatile a_in_other_thread;
26272 static void *
26273 thread_func (void *arg)
26275 a_in_other_thread = &a;
26276 return (void *)0;
26279 main ()
26281 pthread_t thread;
26282 void *thread_retval;
26283 int *volatile a_in_main_thread;
26284 a_in_main_thread = &a;
26285 if (pthread_create (&thread, (pthread_attr_t *)0,
26286 thread_func, (void *)0))
26287 return 0;
26288 if (pthread_join (thread, &thread_retval))
26289 return 0;
26290 return (a_in_other_thread == a_in_main_thread);
26292 return 0;
26294 _ACEOF
26295 if ac_fn_c_try_run "$LINENO"; then :
26296 gcc_cv_have_tls=yes
26297 else
26298 gcc_cv_have_tls=no
26300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26301 conftest.$ac_objext conftest.beam conftest.$ac_ext
26304 CFLAGS="$chktls_save_CFLAGS"
26307 else
26308 gcc_cv_have_tls=no
26310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26311 conftest.$ac_objext conftest.beam conftest.$ac_ext
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
26316 $as_echo "$gcc_cv_have_tls" >&6; }
26317 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
26319 $as_echo "#define HAVE_TLS 1" >>confdefs.h
26323 for ac_func in __cxa_thread_atexit_impl __cxa_thread_atexit
26324 do :
26325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26328 cat >>confdefs.h <<_ACEOF
26329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26330 _ACEOF
26333 done
26335 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
26336 do :
26337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26340 cat >>confdefs.h <<_ACEOF
26341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26342 _ACEOF
26345 done
26347 for ac_func in _wfopen
26348 do :
26349 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
26350 if test "x$ac_cv_func__wfopen" = xyes; then :
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE__WFOPEN 1
26353 _ACEOF
26356 done
26358 for ac_func in secure_getenv
26359 do :
26360 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
26361 if test "x$ac_cv_func_secure_getenv" = xyes; then :
26362 cat >>confdefs.h <<_ACEOF
26363 #define HAVE_SECURE_GETENV 1
26364 _ACEOF
26367 done
26370 # C11 functions for C++17 library
26371 for ac_func in timespec_get
26372 do :
26373 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
26374 if test "x$ac_cv_func_timespec_get" = xyes; then :
26375 cat >>confdefs.h <<_ACEOF
26376 #define HAVE_TIMESPEC_GET 1
26377 _ACEOF
26380 done
26383 # For Networking TS.
26384 for ac_func in sockatmark
26385 do :
26386 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
26387 if test "x$ac_cv_func_sockatmark" = xyes; then :
26388 cat >>confdefs.h <<_ACEOF
26389 #define HAVE_SOCKATMARK 1
26390 _ACEOF
26393 done
26396 # Non-standard functions used by C++17 std::from_chars
26397 for ac_func in uselocale
26398 do :
26399 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
26400 if test "x$ac_cv_func_uselocale" = xyes; then :
26401 cat >>confdefs.h <<_ACEOF
26402 #define HAVE_USELOCALE 1
26403 _ACEOF
26406 done
26409 # For iconv support.
26411 if test "X$prefix" = "XNONE"; then
26412 acl_final_prefix="$ac_default_prefix"
26413 else
26414 acl_final_prefix="$prefix"
26416 if test "X$exec_prefix" = "XNONE"; then
26417 acl_final_exec_prefix='${prefix}'
26418 else
26419 acl_final_exec_prefix="$exec_prefix"
26421 acl_save_prefix="$prefix"
26422 prefix="$acl_final_prefix"
26423 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26424 prefix="$acl_save_prefix"
26427 # Check whether --with-gnu-ld was given.
26428 if test "${with_gnu_ld+set}" = set; then :
26429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
26430 else
26431 with_gnu_ld=no
26434 # Prepare PATH_SEPARATOR.
26435 # The user is always right.
26436 if test "${PATH_SEPARATOR+set}" != set; then
26437 echo "#! /bin/sh" >conf$$.sh
26438 echo "exit 0" >>conf$$.sh
26439 chmod +x conf$$.sh
26440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26441 PATH_SEPARATOR=';'
26442 else
26443 PATH_SEPARATOR=:
26445 rm -f conf$$.sh
26447 ac_prog=ld
26448 if test "$GCC" = yes; then
26449 # Check if gcc -print-prog-name=ld gives a path.
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
26451 $as_echo_n "checking for ld used by GCC... " >&6; }
26452 case $host in
26453 *-*-mingw*)
26454 # gcc leaves a trailing carriage return which upsets mingw
26455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26458 esac
26459 case $ac_prog in
26460 # Accept absolute paths.
26461 [\\/]* | [A-Za-z]:[\\/]*)
26462 re_direlt='/[^/][^/]*/\.\./'
26463 # Canonicalize the path of ld
26464 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26465 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26466 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26467 done
26468 test -z "$LD" && LD="$ac_prog"
26471 # If it fails, then pretend we aren't using GCC.
26472 ac_prog=ld
26475 # If it is relative, then search for the first ld in PATH.
26476 with_gnu_ld=unknown
26478 esac
26479 elif test "$with_gnu_ld" = yes; then
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
26481 $as_echo_n "checking for GNU ld... " >&6; }
26482 else
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
26484 $as_echo_n "checking for non-GNU ld... " >&6; }
26486 if ${acl_cv_path_LD+:} false; then :
26487 $as_echo_n "(cached) " >&6
26488 else
26489 if test -z "$LD"; then
26490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26491 for ac_dir in $PATH; do
26492 test -z "$ac_dir" && ac_dir=.
26493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26494 acl_cv_path_LD="$ac_dir/$ac_prog"
26495 # Check to see if the program is GNU ld. I'd rather use --version,
26496 # but apparently some GNU ld's only accept -v.
26497 # Break only if it was the GNU/non-GNU ld that we prefer.
26498 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
26499 test "$with_gnu_ld" != no && break
26500 else
26501 test "$with_gnu_ld" != yes && break
26504 done
26505 IFS="$ac_save_ifs"
26506 else
26507 acl_cv_path_LD="$LD" # Let the user override the test with a path.
26511 LD="$acl_cv_path_LD"
26512 if test -n "$LD"; then
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
26514 $as_echo "$LD" >&6; }
26515 else
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26517 $as_echo "no" >&6; }
26519 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
26521 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
26522 if ${acl_cv_prog_gnu_ld+:} false; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26526 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
26527 acl_cv_prog_gnu_ld=yes
26528 else
26529 acl_cv_prog_gnu_ld=no
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
26533 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
26534 with_gnu_ld=$acl_cv_prog_gnu_ld
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
26539 $as_echo_n "checking for shared library run path origin... " >&6; }
26540 if ${acl_cv_rpath+:} false; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26544 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26545 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26546 . ./conftest.sh
26547 rm -f ./conftest.sh
26548 acl_cv_rpath=done
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
26552 $as_echo "$acl_cv_rpath" >&6; }
26553 wl="$acl_cv_wl"
26554 libext="$acl_cv_libext"
26555 shlibext="$acl_cv_shlibext"
26556 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26557 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26558 hardcode_direct="$acl_cv_hardcode_direct"
26559 hardcode_minus_L="$acl_cv_hardcode_minus_L"
26560 # Check whether --enable-rpath was given.
26561 if test "${enable_rpath+set}" = set; then :
26562 enableval=$enable_rpath; :
26563 else
26564 enable_rpath=yes
26574 use_additional=yes
26576 acl_save_prefix="$prefix"
26577 prefix="$acl_final_prefix"
26578 acl_save_exec_prefix="$exec_prefix"
26579 exec_prefix="$acl_final_exec_prefix"
26581 eval additional_includedir=\"$includedir\"
26582 eval additional_libdir=\"$libdir\"
26584 exec_prefix="$acl_save_exec_prefix"
26585 prefix="$acl_save_prefix"
26588 # Check whether --with-libiconv-prefix was given.
26589 if test "${with_libiconv_prefix+set}" = set; then :
26590 withval=$with_libiconv_prefix;
26591 if test "X$withval" = "Xno"; then
26592 use_additional=no
26593 else
26594 if test "X$withval" = "X"; then
26596 acl_save_prefix="$prefix"
26597 prefix="$acl_final_prefix"
26598 acl_save_exec_prefix="$exec_prefix"
26599 exec_prefix="$acl_final_exec_prefix"
26601 eval additional_includedir=\"$includedir\"
26602 eval additional_libdir=\"$libdir\"
26604 exec_prefix="$acl_save_exec_prefix"
26605 prefix="$acl_save_prefix"
26607 else
26608 additional_includedir="$withval/include"
26609 additional_libdir="$withval/lib"
26616 # Check whether --with-libiconv-type was given.
26617 if test "${with_libiconv_type+set}" = set; then :
26618 withval=$with_libiconv_type; with_libiconv_type=$withval
26619 else
26620 with_libiconv_type=auto
26623 lib_type=`eval echo \$with_libiconv_type`
26625 LIBICONV=
26626 LTLIBICONV=
26627 INCICONV=
26628 rpathdirs=
26629 ltrpathdirs=
26630 names_already_handled=
26631 names_next_round='iconv '
26632 while test -n "$names_next_round"; do
26633 names_this_round="$names_next_round"
26634 names_next_round=
26635 for name in $names_this_round; do
26636 already_handled=
26637 for n in $names_already_handled; do
26638 if test "$n" = "$name"; then
26639 already_handled=yes
26640 break
26642 done
26643 if test -z "$already_handled"; then
26644 names_already_handled="$names_already_handled $name"
26645 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26646 eval value=\"\$HAVE_LIB$uppername\"
26647 if test -n "$value"; then
26648 if test "$value" = yes; then
26649 eval value=\"\$LIB$uppername\"
26650 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26651 eval value=\"\$LTLIB$uppername\"
26652 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26653 else
26656 else
26657 found_dir=
26658 found_la=
26659 found_so=
26660 found_a=
26661 if test $use_additional = yes; then
26662 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26663 found_dir="$additional_libdir"
26664 found_so="$additional_libdir/lib$name.$shlibext"
26665 if test -f "$additional_libdir/lib$name.la"; then
26666 found_la="$additional_libdir/lib$name.la"
26668 elif test x$lib_type != xshared; then
26669 if test -f "$additional_libdir/lib$name.$libext"; then
26670 found_dir="$additional_libdir"
26671 found_a="$additional_libdir/lib$name.$libext"
26672 if test -f "$additional_libdir/lib$name.la"; then
26673 found_la="$additional_libdir/lib$name.la"
26678 if test "X$found_dir" = "X"; then
26679 for x in $LDFLAGS $LTLIBICONV; do
26681 acl_save_prefix="$prefix"
26682 prefix="$acl_final_prefix"
26683 acl_save_exec_prefix="$exec_prefix"
26684 exec_prefix="$acl_final_exec_prefix"
26685 eval x=\"$x\"
26686 exec_prefix="$acl_save_exec_prefix"
26687 prefix="$acl_save_prefix"
26689 case "$x" in
26690 -L*)
26691 dir=`echo "X$x" | sed -e 's/^X-L//'`
26692 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26693 found_dir="$dir"
26694 found_so="$dir/lib$name.$shlibext"
26695 if test -f "$dir/lib$name.la"; then
26696 found_la="$dir/lib$name.la"
26698 elif test x$lib_type != xshared; then
26699 if test -f "$dir/lib$name.$libext"; then
26700 found_dir="$dir"
26701 found_a="$dir/lib$name.$libext"
26702 if test -f "$dir/lib$name.la"; then
26703 found_la="$dir/lib$name.la"
26708 esac
26709 if test "X$found_dir" != "X"; then
26710 break
26712 done
26714 if test "X$found_dir" != "X"; then
26715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26716 if test "X$found_so" != "X"; then
26717 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26718 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26719 else
26720 haveit=
26721 for x in $ltrpathdirs; do
26722 if test "X$x" = "X$found_dir"; then
26723 haveit=yes
26724 break
26726 done
26727 if test -z "$haveit"; then
26728 ltrpathdirs="$ltrpathdirs $found_dir"
26730 if test "$hardcode_direct" = yes; then
26731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26732 else
26733 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26734 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26735 haveit=
26736 for x in $rpathdirs; do
26737 if test "X$x" = "X$found_dir"; then
26738 haveit=yes
26739 break
26741 done
26742 if test -z "$haveit"; then
26743 rpathdirs="$rpathdirs $found_dir"
26745 else
26746 haveit=
26747 for x in $LDFLAGS $LIBICONV; do
26749 acl_save_prefix="$prefix"
26750 prefix="$acl_final_prefix"
26751 acl_save_exec_prefix="$exec_prefix"
26752 exec_prefix="$acl_final_exec_prefix"
26753 eval x=\"$x\"
26754 exec_prefix="$acl_save_exec_prefix"
26755 prefix="$acl_save_prefix"
26757 if test "X$x" = "X-L$found_dir"; then
26758 haveit=yes
26759 break
26761 done
26762 if test -z "$haveit"; then
26763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26765 if test "$hardcode_minus_L" != no; then
26766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26767 else
26768 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26773 else
26774 if test "X$found_a" != "X"; then
26775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26776 else
26777 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26780 additional_includedir=
26781 case "$found_dir" in
26782 */lib | */lib/)
26783 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26784 additional_includedir="$basedir/include"
26786 esac
26787 if test "X$additional_includedir" != "X"; then
26788 if test "X$additional_includedir" != "X/usr/include"; then
26789 haveit=
26790 if test "X$additional_includedir" = "X/usr/local/include"; then
26791 if test -n "$GCC"; then
26792 case $host_os in
26793 linux*) haveit=yes;;
26794 esac
26797 if test -z "$haveit"; then
26798 for x in $CPPFLAGS $INCICONV; do
26800 acl_save_prefix="$prefix"
26801 prefix="$acl_final_prefix"
26802 acl_save_exec_prefix="$exec_prefix"
26803 exec_prefix="$acl_final_exec_prefix"
26804 eval x=\"$x\"
26805 exec_prefix="$acl_save_exec_prefix"
26806 prefix="$acl_save_prefix"
26808 if test "X$x" = "X-I$additional_includedir"; then
26809 haveit=yes
26810 break
26812 done
26813 if test -z "$haveit"; then
26814 if test -d "$additional_includedir"; then
26815 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26821 if test -n "$found_la"; then
26822 save_libdir="$libdir"
26823 case "$found_la" in
26824 */* | *\\*) . "$found_la" ;;
26825 *) . "./$found_la" ;;
26826 esac
26827 libdir="$save_libdir"
26828 for dep in $dependency_libs; do
26829 case "$dep" in
26830 -L*)
26831 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26832 if test "X$additional_libdir" != "X/usr/lib"; then
26833 haveit=
26834 if test "X$additional_libdir" = "X/usr/local/lib"; then
26835 if test -n "$GCC"; then
26836 case $host_os in
26837 linux*) haveit=yes;;
26838 esac
26841 if test -z "$haveit"; then
26842 haveit=
26843 for x in $LDFLAGS $LIBICONV; do
26845 acl_save_prefix="$prefix"
26846 prefix="$acl_final_prefix"
26847 acl_save_exec_prefix="$exec_prefix"
26848 exec_prefix="$acl_final_exec_prefix"
26849 eval x=\"$x\"
26850 exec_prefix="$acl_save_exec_prefix"
26851 prefix="$acl_save_prefix"
26853 if test "X$x" = "X-L$additional_libdir"; then
26854 haveit=yes
26855 break
26857 done
26858 if test -z "$haveit"; then
26859 if test -d "$additional_libdir"; then
26860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26863 haveit=
26864 for x in $LDFLAGS $LTLIBICONV; do
26866 acl_save_prefix="$prefix"
26867 prefix="$acl_final_prefix"
26868 acl_save_exec_prefix="$exec_prefix"
26869 exec_prefix="$acl_final_exec_prefix"
26870 eval x=\"$x\"
26871 exec_prefix="$acl_save_exec_prefix"
26872 prefix="$acl_save_prefix"
26874 if test "X$x" = "X-L$additional_libdir"; then
26875 haveit=yes
26876 break
26878 done
26879 if test -z "$haveit"; then
26880 if test -d "$additional_libdir"; then
26881 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26887 -R*)
26888 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26889 if test "$enable_rpath" != no; then
26890 haveit=
26891 for x in $rpathdirs; do
26892 if test "X$x" = "X$dir"; then
26893 haveit=yes
26894 break
26896 done
26897 if test -z "$haveit"; then
26898 rpathdirs="$rpathdirs $dir"
26900 haveit=
26901 for x in $ltrpathdirs; do
26902 if test "X$x" = "X$dir"; then
26903 haveit=yes
26904 break
26906 done
26907 if test -z "$haveit"; then
26908 ltrpathdirs="$ltrpathdirs $dir"
26912 -l*)
26913 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26915 *.la)
26916 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26919 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26920 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26922 esac
26923 done
26925 else
26926 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26927 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26929 else
26930 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
26931 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
26936 done
26937 done
26938 if test "X$rpathdirs" != "X"; then
26939 if test -n "$hardcode_libdir_separator"; then
26940 alldirs=
26941 for found_dir in $rpathdirs; do
26942 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26943 done
26944 acl_save_libdir="$libdir"
26945 libdir="$alldirs"
26946 eval flag=\"$hardcode_libdir_flag_spec\"
26947 libdir="$acl_save_libdir"
26948 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26949 else
26950 for found_dir in $rpathdirs; do
26951 acl_save_libdir="$libdir"
26952 libdir="$found_dir"
26953 eval flag=\"$hardcode_libdir_flag_spec\"
26954 libdir="$acl_save_libdir"
26955 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26956 done
26959 if test "X$ltrpathdirs" != "X"; then
26960 for found_dir in $ltrpathdirs; do
26961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26962 done
26971 am_save_CPPFLAGS="$CPPFLAGS"
26973 for element in $INCICONV; do
26974 haveit=
26975 for x in $CPPFLAGS; do
26977 acl_save_prefix="$prefix"
26978 prefix="$acl_final_prefix"
26979 acl_save_exec_prefix="$exec_prefix"
26980 exec_prefix="$acl_final_exec_prefix"
26981 eval x=\"$x\"
26982 exec_prefix="$acl_save_exec_prefix"
26983 prefix="$acl_save_prefix"
26985 if test "X$x" = "X$element"; then
26986 haveit=yes
26987 break
26989 done
26990 if test -z "$haveit"; then
26991 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26993 done
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26997 $as_echo_n "checking for iconv... " >&6; }
26998 if ${am_cv_func_iconv+:} false; then :
26999 $as_echo_n "(cached) " >&6
27000 else
27002 am_cv_func_iconv="no, consider installing GNU libiconv"
27003 am_cv_lib_iconv=no
27004 if test x$gcc_no_link = xyes; then
27005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h. */
27010 #include <stdlib.h>
27011 #include <iconv.h>
27014 main ()
27016 iconv_t cd = iconv_open("","");
27017 iconv(cd,NULL,NULL,NULL,NULL);
27018 iconv_close(cd);
27020 return 0;
27022 _ACEOF
27023 if ac_fn_c_try_link "$LINENO"; then :
27024 am_cv_func_iconv=yes
27026 rm -f core conftest.err conftest.$ac_objext \
27027 conftest$ac_exeext conftest.$ac_ext
27028 if test "$am_cv_func_iconv" != yes; then
27029 am_save_LIBS="$LIBS"
27030 LIBS="$LIBS $LIBICONV"
27031 if test x$gcc_no_link = xyes; then
27032 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h. */
27037 #include <stdlib.h>
27038 #include <iconv.h>
27041 main ()
27043 iconv_t cd = iconv_open("","");
27044 iconv(cd,NULL,NULL,NULL,NULL);
27045 iconv_close(cd);
27047 return 0;
27049 _ACEOF
27050 if ac_fn_c_try_link "$LINENO"; then :
27051 am_cv_lib_iconv=yes
27052 am_cv_func_iconv=yes
27054 rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
27056 LIBS="$am_save_LIBS"
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
27061 $as_echo "$am_cv_func_iconv" >&6; }
27062 if test "$am_cv_func_iconv" = yes; then
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
27064 $as_echo_n "checking for working iconv... " >&6; }
27065 if ${am_cv_func_iconv_works+:} false; then :
27066 $as_echo_n "(cached) " >&6
27067 else
27069 am_save_LIBS="$LIBS"
27070 if test $am_cv_lib_iconv = yes; then
27071 LIBS="$LIBS $LIBICONV"
27073 am_cv_func_iconv_works=no
27074 for ac_iconv_const in '' 'const'; do
27075 if test "$cross_compiling" = yes; then :
27076 case "$host_os" in
27077 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
27078 *) am_cv_func_iconv_works="guessing yes" ;;
27079 esac
27080 else
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27084 #include <iconv.h>
27085 #include <string.h>
27087 #ifndef ICONV_CONST
27088 # define ICONV_CONST $ac_iconv_const
27089 #endif
27092 main ()
27094 int result = 0;
27095 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
27096 successful returns. This is even documented in
27097 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
27099 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
27100 if (cd_utf8_to_88591 != (iconv_t)(-1))
27102 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
27103 char buf[10];
27104 ICONV_CONST char *inptr = input;
27105 size_t inbytesleft = strlen (input);
27106 char *outptr = buf;
27107 size_t outbytesleft = sizeof (buf);
27108 size_t res = iconv (cd_utf8_to_88591,
27109 &inptr, &inbytesleft,
27110 &outptr, &outbytesleft);
27111 if (res == 0)
27112 result |= 1;
27113 iconv_close (cd_utf8_to_88591);
27116 /* Test against Solaris 10 bug: Failures are not distinguishable from
27117 successful returns. */
27119 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
27120 if (cd_ascii_to_88591 != (iconv_t)(-1))
27122 static ICONV_CONST char input[] = "\263";
27123 char buf[10];
27124 ICONV_CONST char *inptr = input;
27125 size_t inbytesleft = strlen (input);
27126 char *outptr = buf;
27127 size_t outbytesleft = sizeof (buf);
27128 size_t res = iconv (cd_ascii_to_88591,
27129 &inptr, &inbytesleft,
27130 &outptr, &outbytesleft);
27131 if (res == 0)
27132 result |= 2;
27133 iconv_close (cd_ascii_to_88591);
27136 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
27138 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
27139 if (cd_88591_to_utf8 != (iconv_t)(-1))
27141 static ICONV_CONST char input[] = "\304";
27142 static char buf[2] = { (char)0xDE, (char)0xAD };
27143 ICONV_CONST char *inptr = input;
27144 size_t inbytesleft = 1;
27145 char *outptr = buf;
27146 size_t outbytesleft = 1;
27147 size_t res = iconv (cd_88591_to_utf8,
27148 &inptr, &inbytesleft,
27149 &outptr, &outbytesleft);
27150 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
27151 result |= 4;
27152 iconv_close (cd_88591_to_utf8);
27155 #if 0 /* This bug could be worked around by the caller. */
27156 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
27158 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
27159 if (cd_88591_to_utf8 != (iconv_t)(-1))
27161 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
27162 char buf[50];
27163 ICONV_CONST char *inptr = input;
27164 size_t inbytesleft = strlen (input);
27165 char *outptr = buf;
27166 size_t outbytesleft = sizeof (buf);
27167 size_t res = iconv (cd_88591_to_utf8,
27168 &inptr, &inbytesleft,
27169 &outptr, &outbytesleft);
27170 if ((int)res > 0)
27171 result |= 8;
27172 iconv_close (cd_88591_to_utf8);
27175 #endif
27176 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
27177 provided. */
27179 /* Try standardized names. */
27180 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
27181 /* Try IRIX, OSF/1 names. */
27182 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
27183 /* Try AIX names. */
27184 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
27185 /* Try HP-UX names. */
27186 iconv_t cd4 = iconv_open ("utf8", "eucJP");
27187 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
27188 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
27189 result |= 16;
27190 if (cd1 != (iconv_t)(-1))
27191 iconv_close (cd1);
27192 if (cd2 != (iconv_t)(-1))
27193 iconv_close (cd2);
27194 if (cd3 != (iconv_t)(-1))
27195 iconv_close (cd3);
27196 if (cd4 != (iconv_t)(-1))
27197 iconv_close (cd4);
27199 return result;
27202 return 0;
27204 _ACEOF
27205 if ac_fn_c_try_run "$LINENO"; then :
27206 am_cv_func_iconv_works=yes
27208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27209 conftest.$ac_objext conftest.beam conftest.$ac_ext
27212 test "$am_cv_func_iconv_works" = no || break
27213 done
27214 LIBS="$am_save_LIBS"
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
27218 $as_echo "$am_cv_func_iconv_works" >&6; }
27219 case "$am_cv_func_iconv_works" in
27220 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
27221 *) am_func_iconv=yes ;;
27222 esac
27223 else
27224 am_func_iconv=no am_cv_lib_iconv=no
27226 if test "$am_func_iconv" = yes; then
27228 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
27231 if test "$am_cv_lib_iconv" = yes; then
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
27233 $as_echo_n "checking how to link with libiconv... " >&6; }
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
27235 $as_echo "$LIBICONV" >&6; }
27236 else
27237 CPPFLAGS="$am_save_CPPFLAGS"
27238 LIBICONV=
27239 LTLIBICONV=
27244 if test "$am_cv_func_iconv" = yes; then
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
27246 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
27247 if ${gl_cv_iconv_nonconst+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27253 #include <stdlib.h>
27254 #include <iconv.h>
27255 extern
27256 #ifdef __cplusplus
27258 #endif
27259 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27262 main ()
27266 return 0;
27268 _ACEOF
27269 if ac_fn_c_try_compile "$LINENO"; then :
27270 gl_cv_iconv_nonconst=yes
27271 else
27272 gl_cv_iconv_nonconst=no
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
27278 $as_echo "$gl_cv_iconv_nonconst" >&6; }
27279 else
27280 gl_cv_iconv_nonconst=yes
27282 if test $gl_cv_iconv_nonconst = yes; then
27283 iconv_arg1=""
27284 else
27285 iconv_arg1="const"
27288 cat >>confdefs.h <<_ACEOF
27289 #define ICONV_CONST $iconv_arg1
27290 _ACEOF
27294 if test "$am_func_iconv" = yes; then
27295 if test -n "$LIBICONV"; then
27296 am_cv_func_iconv_summary='yes, in libiconv'
27297 else
27298 am_cv_func_iconv_summary='yes, in libc'
27300 else
27301 if test "$am_cv_func_iconv" = yes; then
27302 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
27303 else
27304 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
27309 else
27311 # This lets us hard-code the functionality we know we'll have in the cross
27312 # target environment. "Let" is a sugar-coated word placed on an especially
27313 # dull and tedious hack, actually.
27315 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27316 # that involve linking, can't be used:
27317 # "cannot open sim-crt0.o"
27318 # "cannot open crt0.o"
27319 # etc. All this is because there currently exists no unified, consistent
27320 # way for top level CC information to be passed down to target directories:
27321 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27322 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27323 # crosses can be removed.
27325 # If Canadian cross, then don't pick up tools from the build directory.
27326 # Used only in GLIBCXX_EXPORT_INCLUDES.
27327 if test -n "$with_cross_host" &&
27328 test x"$build_alias" != x"$with_cross_host" &&
27329 test x"$build" != x"$target";
27330 then
27331 CANADIAN=yes
27332 else
27333 CANADIAN=no
27336 # Construct crosses by hand, eliminating bits that need ld...
27337 # GLIBCXX_CHECK_MATH_SUPPORT
27339 # First, test for "known" system libraries. We may be using newlib even
27340 # on a hosted environment.
27341 if test "x${with_newlib}" = "xyes"; then
27342 os_include_dir="os/newlib"
27343 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
27346 # GLIBCXX_CHECK_STDLIB_SUPPORT
27347 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
27350 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
27352 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
27354 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
27356 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
27358 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
27360 $as_echo "#define HAVE_COSF 1" >>confdefs.h
27362 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
27364 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
27366 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
27368 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
27370 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
27372 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
27374 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
27376 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
27378 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
27380 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
27382 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
27384 $as_echo "#define HAVE_POWF 1" >>confdefs.h
27386 $as_echo "#define HAVE_SINF 1" >>confdefs.h
27388 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
27390 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
27392 $as_echo "#define HAVE_TANF 1" >>confdefs.h
27394 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
27401 $as_echo_n "checking for acosl declaration... " >&6; }
27402 if ${glibcxx_cv_func_acosl_use+:} false; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27407 ac_ext=c
27408 ac_cpp='$CPP $CPPFLAGS'
27409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h. */
27416 #include <math.h>
27417 #ifdef HAVE_IEEEFP_H
27418 # include <ieeefp.h>
27419 #endif
27420 #undef acosl
27423 main ()
27426 void (*f)(void) = (void (*)(void))acosl;
27429 return 0;
27431 _ACEOF
27432 if ac_fn_c_try_compile "$LINENO"; then :
27433 glibcxx_cv_func_acosl_use=yes
27435 else
27436 glibcxx_cv_func_acosl_use=no
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
27441 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
27442 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
27443 cat >>confdefs.h <<_ACEOF
27444 #define HAVE_ACOSL 1
27445 _ACEOF
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
27452 $as_echo_n "checking for asinl declaration... " >&6; }
27453 if ${glibcxx_cv_func_asinl_use+:} false; then :
27454 $as_echo_n "(cached) " >&6
27455 else
27458 ac_ext=c
27459 ac_cpp='$CPP $CPPFLAGS'
27460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h. */
27467 #include <math.h>
27468 #ifdef HAVE_IEEEFP_H
27469 # include <ieeefp.h>
27470 #endif
27471 #undef asinl
27474 main ()
27477 void (*f)(void) = (void (*)(void))asinl;
27480 return 0;
27482 _ACEOF
27483 if ac_fn_c_try_compile "$LINENO"; then :
27484 glibcxx_cv_func_asinl_use=yes
27486 else
27487 glibcxx_cv_func_asinl_use=no
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
27492 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
27493 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
27494 cat >>confdefs.h <<_ACEOF
27495 #define HAVE_ASINL 1
27496 _ACEOF
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
27503 $as_echo_n "checking for atan2l declaration... " >&6; }
27504 if ${glibcxx_cv_func_atan2l_use+:} false; then :
27505 $as_echo_n "(cached) " >&6
27506 else
27509 ac_ext=c
27510 ac_cpp='$CPP $CPPFLAGS'
27511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27516 /* end confdefs.h. */
27518 #include <math.h>
27519 #ifdef HAVE_IEEEFP_H
27520 # include <ieeefp.h>
27521 #endif
27522 #undef atan2l
27525 main ()
27528 void (*f)(void) = (void (*)(void))atan2l;
27531 return 0;
27533 _ACEOF
27534 if ac_fn_c_try_compile "$LINENO"; then :
27535 glibcxx_cv_func_atan2l_use=yes
27537 else
27538 glibcxx_cv_func_atan2l_use=no
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
27543 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
27544 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define HAVE_ATAN2L 1
27547 _ACEOF
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
27554 $as_echo_n "checking for atanl declaration... " >&6; }
27555 if ${glibcxx_cv_func_atanl_use+:} false; then :
27556 $as_echo_n "(cached) " >&6
27557 else
27560 ac_ext=c
27561 ac_cpp='$CPP $CPPFLAGS'
27562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27569 #include <math.h>
27570 #ifdef HAVE_IEEEFP_H
27571 # include <ieeefp.h>
27572 #endif
27573 #undef atanl
27576 main ()
27579 void (*f)(void) = (void (*)(void))atanl;
27582 return 0;
27584 _ACEOF
27585 if ac_fn_c_try_compile "$LINENO"; then :
27586 glibcxx_cv_func_atanl_use=yes
27588 else
27589 glibcxx_cv_func_atanl_use=no
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
27594 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
27595 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
27596 cat >>confdefs.h <<_ACEOF
27597 #define HAVE_ATANL 1
27598 _ACEOF
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
27605 $as_echo_n "checking for ceill declaration... " >&6; }
27606 if ${glibcxx_cv_func_ceill_use+:} false; then :
27607 $as_echo_n "(cached) " >&6
27608 else
27611 ac_ext=c
27612 ac_cpp='$CPP $CPPFLAGS'
27613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618 /* end confdefs.h. */
27620 #include <math.h>
27621 #ifdef HAVE_IEEEFP_H
27622 # include <ieeefp.h>
27623 #endif
27624 #undef ceill
27627 main ()
27630 void (*f)(void) = (void (*)(void))ceill;
27633 return 0;
27635 _ACEOF
27636 if ac_fn_c_try_compile "$LINENO"; then :
27637 glibcxx_cv_func_ceill_use=yes
27639 else
27640 glibcxx_cv_func_ceill_use=no
27642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
27645 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
27646 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
27647 cat >>confdefs.h <<_ACEOF
27648 #define HAVE_CEILL 1
27649 _ACEOF
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
27656 $as_echo_n "checking for coshl declaration... " >&6; }
27657 if ${glibcxx_cv_func_coshl_use+:} false; then :
27658 $as_echo_n "(cached) " >&6
27659 else
27662 ac_ext=c
27663 ac_cpp='$CPP $CPPFLAGS'
27664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669 /* end confdefs.h. */
27671 #include <math.h>
27672 #ifdef HAVE_IEEEFP_H
27673 # include <ieeefp.h>
27674 #endif
27675 #undef coshl
27678 main ()
27681 void (*f)(void) = (void (*)(void))coshl;
27684 return 0;
27686 _ACEOF
27687 if ac_fn_c_try_compile "$LINENO"; then :
27688 glibcxx_cv_func_coshl_use=yes
27690 else
27691 glibcxx_cv_func_coshl_use=no
27693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
27696 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
27697 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_COSHL 1
27700 _ACEOF
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
27707 $as_echo_n "checking for cosl declaration... " >&6; }
27708 if ${glibcxx_cv_func_cosl_use+:} false; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27713 ac_ext=c
27714 ac_cpp='$CPP $CPPFLAGS'
27715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27720 /* end confdefs.h. */
27722 #include <math.h>
27723 #ifdef HAVE_IEEEFP_H
27724 # include <ieeefp.h>
27725 #endif
27726 #undef cosl
27729 main ()
27732 void (*f)(void) = (void (*)(void))cosl;
27735 return 0;
27737 _ACEOF
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739 glibcxx_cv_func_cosl_use=yes
27741 else
27742 glibcxx_cv_func_cosl_use=no
27744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
27747 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
27748 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_COSL 1
27751 _ACEOF
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
27758 $as_echo_n "checking for expl declaration... " >&6; }
27759 if ${glibcxx_cv_func_expl_use+:} false; then :
27760 $as_echo_n "(cached) " >&6
27761 else
27764 ac_ext=c
27765 ac_cpp='$CPP $CPPFLAGS'
27766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h. */
27773 #include <math.h>
27774 #ifdef HAVE_IEEEFP_H
27775 # include <ieeefp.h>
27776 #endif
27777 #undef expl
27780 main ()
27783 void (*f)(void) = (void (*)(void))expl;
27786 return 0;
27788 _ACEOF
27789 if ac_fn_c_try_compile "$LINENO"; then :
27790 glibcxx_cv_func_expl_use=yes
27792 else
27793 glibcxx_cv_func_expl_use=no
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
27798 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
27799 if test "x$glibcxx_cv_func_expl_use" = xyes; then
27800 cat >>confdefs.h <<_ACEOF
27801 #define HAVE_EXPL 1
27802 _ACEOF
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
27809 $as_echo_n "checking for fabsl declaration... " >&6; }
27810 if ${glibcxx_cv_func_fabsl_use+:} false; then :
27811 $as_echo_n "(cached) " >&6
27812 else
27815 ac_ext=c
27816 ac_cpp='$CPP $CPPFLAGS'
27817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27822 /* end confdefs.h. */
27824 #include <math.h>
27825 #ifdef HAVE_IEEEFP_H
27826 # include <ieeefp.h>
27827 #endif
27828 #undef fabsl
27831 main ()
27834 void (*f)(void) = (void (*)(void))fabsl;
27837 return 0;
27839 _ACEOF
27840 if ac_fn_c_try_compile "$LINENO"; then :
27841 glibcxx_cv_func_fabsl_use=yes
27843 else
27844 glibcxx_cv_func_fabsl_use=no
27846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
27849 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
27850 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
27851 cat >>confdefs.h <<_ACEOF
27852 #define HAVE_FABSL 1
27853 _ACEOF
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
27860 $as_echo_n "checking for floorl declaration... " >&6; }
27861 if ${glibcxx_cv_func_floorl_use+:} false; then :
27862 $as_echo_n "(cached) " >&6
27863 else
27866 ac_ext=c
27867 ac_cpp='$CPP $CPPFLAGS'
27868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27873 /* end confdefs.h. */
27875 #include <math.h>
27876 #ifdef HAVE_IEEEFP_H
27877 # include <ieeefp.h>
27878 #endif
27879 #undef floorl
27882 main ()
27885 void (*f)(void) = (void (*)(void))floorl;
27888 return 0;
27890 _ACEOF
27891 if ac_fn_c_try_compile "$LINENO"; then :
27892 glibcxx_cv_func_floorl_use=yes
27894 else
27895 glibcxx_cv_func_floorl_use=no
27897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
27900 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
27901 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
27902 cat >>confdefs.h <<_ACEOF
27903 #define HAVE_FLOORL 1
27904 _ACEOF
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
27911 $as_echo_n "checking for fmodl declaration... " >&6; }
27912 if ${glibcxx_cv_func_fmodl_use+:} false; then :
27913 $as_echo_n "(cached) " >&6
27914 else
27917 ac_ext=c
27918 ac_cpp='$CPP $CPPFLAGS'
27919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924 /* end confdefs.h. */
27926 #include <math.h>
27927 #ifdef HAVE_IEEEFP_H
27928 # include <ieeefp.h>
27929 #endif
27930 #undef fmodl
27933 main ()
27936 void (*f)(void) = (void (*)(void))fmodl;
27939 return 0;
27941 _ACEOF
27942 if ac_fn_c_try_compile "$LINENO"; then :
27943 glibcxx_cv_func_fmodl_use=yes
27945 else
27946 glibcxx_cv_func_fmodl_use=no
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
27951 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
27952 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
27953 cat >>confdefs.h <<_ACEOF
27954 #define HAVE_FMODL 1
27955 _ACEOF
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
27962 $as_echo_n "checking for frexpl declaration... " >&6; }
27963 if ${glibcxx_cv_func_frexpl_use+:} false; then :
27964 $as_echo_n "(cached) " >&6
27965 else
27968 ac_ext=c
27969 ac_cpp='$CPP $CPPFLAGS'
27970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27977 #include <math.h>
27978 #ifdef HAVE_IEEEFP_H
27979 # include <ieeefp.h>
27980 #endif
27981 #undef frexpl
27984 main ()
27987 void (*f)(void) = (void (*)(void))frexpl;
27990 return 0;
27992 _ACEOF
27993 if ac_fn_c_try_compile "$LINENO"; then :
27994 glibcxx_cv_func_frexpl_use=yes
27996 else
27997 glibcxx_cv_func_frexpl_use=no
27999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
28002 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
28003 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
28004 cat >>confdefs.h <<_ACEOF
28005 #define HAVE_FREXPL 1
28006 _ACEOF
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
28013 $as_echo_n "checking for hypotl declaration... " >&6; }
28014 if ${glibcxx_cv_func_hypotl_use+:} false; then :
28015 $as_echo_n "(cached) " >&6
28016 else
28019 ac_ext=c
28020 ac_cpp='$CPP $CPPFLAGS'
28021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28026 /* end confdefs.h. */
28028 #include <math.h>
28029 #ifdef HAVE_IEEEFP_H
28030 # include <ieeefp.h>
28031 #endif
28032 #undef hypotl
28035 main ()
28038 void (*f)(void) = (void (*)(void))hypotl;
28041 return 0;
28043 _ACEOF
28044 if ac_fn_c_try_compile "$LINENO"; then :
28045 glibcxx_cv_func_hypotl_use=yes
28047 else
28048 glibcxx_cv_func_hypotl_use=no
28050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
28053 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
28054 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
28055 cat >>confdefs.h <<_ACEOF
28056 #define HAVE_HYPOTL 1
28057 _ACEOF
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
28064 $as_echo_n "checking for ldexpl declaration... " >&6; }
28065 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
28066 $as_echo_n "(cached) " >&6
28067 else
28070 ac_ext=c
28071 ac_cpp='$CPP $CPPFLAGS'
28072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28079 #include <math.h>
28080 #ifdef HAVE_IEEEFP_H
28081 # include <ieeefp.h>
28082 #endif
28083 #undef ldexpl
28086 main ()
28089 void (*f)(void) = (void (*)(void))ldexpl;
28092 return 0;
28094 _ACEOF
28095 if ac_fn_c_try_compile "$LINENO"; then :
28096 glibcxx_cv_func_ldexpl_use=yes
28098 else
28099 glibcxx_cv_func_ldexpl_use=no
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
28104 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
28105 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
28106 cat >>confdefs.h <<_ACEOF
28107 #define HAVE_LDEXPL 1
28108 _ACEOF
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
28115 $as_echo_n "checking for log10l declaration... " >&6; }
28116 if ${glibcxx_cv_func_log10l_use+:} false; then :
28117 $as_echo_n "(cached) " >&6
28118 else
28121 ac_ext=c
28122 ac_cpp='$CPP $CPPFLAGS'
28123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28128 /* end confdefs.h. */
28130 #include <math.h>
28131 #ifdef HAVE_IEEEFP_H
28132 # include <ieeefp.h>
28133 #endif
28134 #undef log10l
28137 main ()
28140 void (*f)(void) = (void (*)(void))log10l;
28143 return 0;
28145 _ACEOF
28146 if ac_fn_c_try_compile "$LINENO"; then :
28147 glibcxx_cv_func_log10l_use=yes
28149 else
28150 glibcxx_cv_func_log10l_use=no
28152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
28155 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
28156 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
28157 cat >>confdefs.h <<_ACEOF
28158 #define HAVE_LOG10L 1
28159 _ACEOF
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
28166 $as_echo_n "checking for logl declaration... " >&6; }
28167 if ${glibcxx_cv_func_logl_use+:} false; then :
28168 $as_echo_n "(cached) " >&6
28169 else
28172 ac_ext=c
28173 ac_cpp='$CPP $CPPFLAGS'
28174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28179 /* end confdefs.h. */
28181 #include <math.h>
28182 #ifdef HAVE_IEEEFP_H
28183 # include <ieeefp.h>
28184 #endif
28185 #undef logl
28188 main ()
28191 void (*f)(void) = (void (*)(void))logl;
28194 return 0;
28196 _ACEOF
28197 if ac_fn_c_try_compile "$LINENO"; then :
28198 glibcxx_cv_func_logl_use=yes
28200 else
28201 glibcxx_cv_func_logl_use=no
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
28206 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
28207 if test "x$glibcxx_cv_func_logl_use" = xyes; then
28208 cat >>confdefs.h <<_ACEOF
28209 #define HAVE_LOGL 1
28210 _ACEOF
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
28217 $as_echo_n "checking for modfl declaration... " >&6; }
28218 if ${glibcxx_cv_func_modfl_use+:} false; then :
28219 $as_echo_n "(cached) " >&6
28220 else
28223 ac_ext=c
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28230 /* end confdefs.h. */
28232 #include <math.h>
28233 #ifdef HAVE_IEEEFP_H
28234 # include <ieeefp.h>
28235 #endif
28236 #undef modfl
28239 main ()
28242 void (*f)(void) = (void (*)(void))modfl;
28245 return 0;
28247 _ACEOF
28248 if ac_fn_c_try_compile "$LINENO"; then :
28249 glibcxx_cv_func_modfl_use=yes
28251 else
28252 glibcxx_cv_func_modfl_use=no
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
28257 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
28258 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define HAVE_MODFL 1
28261 _ACEOF
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
28268 $as_echo_n "checking for powl declaration... " >&6; }
28269 if ${glibcxx_cv_func_powl_use+:} false; then :
28270 $as_echo_n "(cached) " >&6
28271 else
28274 ac_ext=c
28275 ac_cpp='$CPP $CPPFLAGS'
28276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28281 /* end confdefs.h. */
28283 #include <math.h>
28284 #ifdef HAVE_IEEEFP_H
28285 # include <ieeefp.h>
28286 #endif
28287 #undef powl
28290 main ()
28293 void (*f)(void) = (void (*)(void))powl;
28296 return 0;
28298 _ACEOF
28299 if ac_fn_c_try_compile "$LINENO"; then :
28300 glibcxx_cv_func_powl_use=yes
28302 else
28303 glibcxx_cv_func_powl_use=no
28305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
28308 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
28309 if test "x$glibcxx_cv_func_powl_use" = xyes; then
28310 cat >>confdefs.h <<_ACEOF
28311 #define HAVE_POWL 1
28312 _ACEOF
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
28319 $as_echo_n "checking for sinhl declaration... " >&6; }
28320 if ${glibcxx_cv_func_sinhl_use+:} false; then :
28321 $as_echo_n "(cached) " >&6
28322 else
28325 ac_ext=c
28326 ac_cpp='$CPP $CPPFLAGS'
28327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28332 /* end confdefs.h. */
28334 #include <math.h>
28335 #ifdef HAVE_IEEEFP_H
28336 # include <ieeefp.h>
28337 #endif
28338 #undef sinhl
28341 main ()
28344 void (*f)(void) = (void (*)(void))sinhl;
28347 return 0;
28349 _ACEOF
28350 if ac_fn_c_try_compile "$LINENO"; then :
28351 glibcxx_cv_func_sinhl_use=yes
28353 else
28354 glibcxx_cv_func_sinhl_use=no
28356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
28359 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
28360 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
28361 cat >>confdefs.h <<_ACEOF
28362 #define HAVE_SINHL 1
28363 _ACEOF
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
28370 $as_echo_n "checking for sinl declaration... " >&6; }
28371 if ${glibcxx_cv_func_sinl_use+:} false; then :
28372 $as_echo_n "(cached) " >&6
28373 else
28376 ac_ext=c
28377 ac_cpp='$CPP $CPPFLAGS'
28378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h. */
28385 #include <math.h>
28386 #ifdef HAVE_IEEEFP_H
28387 # include <ieeefp.h>
28388 #endif
28389 #undef sinl
28392 main ()
28395 void (*f)(void) = (void (*)(void))sinl;
28398 return 0;
28400 _ACEOF
28401 if ac_fn_c_try_compile "$LINENO"; then :
28402 glibcxx_cv_func_sinl_use=yes
28404 else
28405 glibcxx_cv_func_sinl_use=no
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
28410 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
28411 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
28412 cat >>confdefs.h <<_ACEOF
28413 #define HAVE_SINL 1
28414 _ACEOF
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
28421 $as_echo_n "checking for sqrtl declaration... " >&6; }
28422 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
28423 $as_echo_n "(cached) " >&6
28424 else
28427 ac_ext=c
28428 ac_cpp='$CPP $CPPFLAGS'
28429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28434 /* end confdefs.h. */
28436 #include <math.h>
28437 #ifdef HAVE_IEEEFP_H
28438 # include <ieeefp.h>
28439 #endif
28440 #undef sqrtl
28443 main ()
28446 void (*f)(void) = (void (*)(void))sqrtl;
28449 return 0;
28451 _ACEOF
28452 if ac_fn_c_try_compile "$LINENO"; then :
28453 glibcxx_cv_func_sqrtl_use=yes
28455 else
28456 glibcxx_cv_func_sqrtl_use=no
28458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
28461 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
28462 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_SQRTL 1
28465 _ACEOF
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
28472 $as_echo_n "checking for tanhl declaration... " >&6; }
28473 if ${glibcxx_cv_func_tanhl_use+:} false; then :
28474 $as_echo_n "(cached) " >&6
28475 else
28478 ac_ext=c
28479 ac_cpp='$CPP $CPPFLAGS'
28480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485 /* end confdefs.h. */
28487 #include <math.h>
28488 #ifdef HAVE_IEEEFP_H
28489 # include <ieeefp.h>
28490 #endif
28491 #undef tanhl
28494 main ()
28497 void (*f)(void) = (void (*)(void))tanhl;
28500 return 0;
28502 _ACEOF
28503 if ac_fn_c_try_compile "$LINENO"; then :
28504 glibcxx_cv_func_tanhl_use=yes
28506 else
28507 glibcxx_cv_func_tanhl_use=no
28509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
28512 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
28513 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_TANHL 1
28516 _ACEOF
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
28523 $as_echo_n "checking for tanl declaration... " >&6; }
28524 if ${glibcxx_cv_func_tanl_use+:} false; then :
28525 $as_echo_n "(cached) " >&6
28526 else
28529 ac_ext=c
28530 ac_cpp='$CPP $CPPFLAGS'
28531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h. */
28538 #include <math.h>
28539 #ifdef HAVE_IEEEFP_H
28540 # include <ieeefp.h>
28541 #endif
28542 #undef tanl
28545 main ()
28548 void (*f)(void) = (void (*)(void))tanl;
28551 return 0;
28553 _ACEOF
28554 if ac_fn_c_try_compile "$LINENO"; then :
28555 glibcxx_cv_func_tanl_use=yes
28557 else
28558 glibcxx_cv_func_tanl_use=no
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
28563 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
28564 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
28565 cat >>confdefs.h <<_ACEOF
28566 #define HAVE_TANL 1
28567 _ACEOF
28574 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
28576 $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h
28579 case "${target}" in
28580 *-rtems*)
28581 case "${target}" in
28582 bfin* | lm32* | mips* | moxie* | or1k* | v850*)
28585 $as_echo "#define HAVE_TLS 1" >>confdefs.h
28588 esac
28589 $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h
28591 $as_echo "#define HAVE_AT_QUICK_EXIT 1" >>confdefs.h
28593 $as_echo "#define HAVE_LINK 1" >>confdefs.h
28595 $as_echo "#define HAVE_QUICK_EXIT 1" >>confdefs.h
28597 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
28599 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
28601 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
28603 $as_echo "#define HAVE_SOCKATMARK 1" >>confdefs.h
28605 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
28607 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
28609 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
28611 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
28614 esac
28615 elif test "x$with_headers" != "xno"; then
28617 # Base decisions on target environment.
28618 case "${host}" in
28619 arm*-*-symbianelf*)
28620 # This is a freestanding configuration; there is nothing to do here.
28623 avr*-*-*)
28624 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
28626 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
28628 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
28630 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
28632 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
28634 $as_echo "#define HAVE_COSF 1" >>confdefs.h
28636 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
28638 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
28640 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
28642 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
28644 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
28646 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
28648 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
28650 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
28652 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
28654 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
28656 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
28658 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
28660 $as_echo "#define HAVE_POWF 1" >>confdefs.h
28662 $as_echo "#define HAVE_SINF 1" >>confdefs.h
28664 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
28666 $as_echo "#define HAVE_TANF 1" >>confdefs.h
28668 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
28672 mips*-sde-elf*)
28673 # These definitions are for the SDE C library rather than newlib.
28674 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28677 # All these tests are for C++; save the language and the compiler flags.
28678 # The CXXFLAGS thing is suspicious, but based on similar bits previously
28679 # found in GLIBCXX_CONFIGURE.
28681 ac_ext=cpp
28682 ac_cpp='$CXXCPP $CPPFLAGS'
28683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28687 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28688 ac_save_CXXFLAGS="$CXXFLAGS"
28690 # Check for -ffunction-sections -fdata-sections
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
28692 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
28693 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
28694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28695 /* end confdefs.h. */
28696 int foo; void bar() { };
28698 main ()
28702 return 0;
28704 _ACEOF
28705 if ac_fn_cxx_try_compile "$LINENO"; then :
28706 ac_fdsections=yes
28707 else
28708 ac_fdsections=no
28710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28711 if test "$ac_test_CXXFLAGS" = set; then
28712 CXXFLAGS="$ac_save_CXXFLAGS"
28713 else
28714 # this is the suspicious part
28715 CXXFLAGS=''
28717 if test x"$ac_fdsections" = x"yes"; then
28718 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
28721 $as_echo "$ac_fdsections" >&6; }
28723 ac_ext=c
28724 ac_cpp='$CPP $CPPFLAGS'
28725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28732 # If we're not using GNU ld, then there's no point in even trying these
28733 # tests. Check for that first. We should have already tested for gld
28734 # by now (in libtool), but require it now just to be safe...
28735 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
28736 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
28740 # The name set by libtool depends on the version of libtool. Shame on us
28741 # for depending on an impl detail, but c'est la vie. Older versions used
28742 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
28743 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
28744 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
28745 # set (hence we're using an older libtool), then set it.
28746 if test x${with_gnu_ld+set} != xset; then
28747 if test x${ac_cv_prog_gnu_ld+set} != xset; then
28748 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
28749 with_gnu_ld=no
28750 else
28751 with_gnu_ld=$ac_cv_prog_gnu_ld
28755 # Start by getting the version number. I think the libtool test already
28756 # does some of this, but throws away the result.
28757 glibcxx_ld_is_gold=no
28758 glibcxx_ld_is_mold=no
28759 if test x"$with_gnu_ld" = x"yes"; then
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
28761 $as_echo_n "checking for ld version... " >&6; }
28763 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
28764 glibcxx_ld_is_gold=yes
28765 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
28766 glibcxx_ld_is_mold=yes
28768 ldver=`$LD --version 2>/dev/null |
28769 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
28771 glibcxx_gnu_ld_version=`echo $ldver | \
28772 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
28774 $as_echo "$glibcxx_gnu_ld_version" >&6; }
28777 # Set --gc-sections.
28778 glibcxx_have_gc_sections=no
28779 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
28780 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
28781 glibcxx_have_gc_sections=yes
28783 else
28784 glibcxx_gcsections_min_ld=21602
28785 if test x"$with_gnu_ld" = x"yes" &&
28786 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
28787 glibcxx_have_gc_sections=yes
28790 if test "$glibcxx_have_gc_sections" = "yes"; then
28791 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
28792 # NB: This flag only works reliably after 2.16.1. Configure tests
28793 # for this are difficult, so hard wire a value that should work.
28795 ac_test_CFLAGS="${CFLAGS+set}"
28796 ac_save_CFLAGS="$CFLAGS"
28797 CFLAGS='-Wl,--gc-sections'
28799 # Check for -Wl,--gc-sections
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
28801 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
28802 if test x$gcc_no_link = xyes; then
28803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28806 /* end confdefs.h. */
28807 int one(void) { return 1; }
28808 int two(void) { return 2; }
28811 main ()
28813 two();
28815 return 0;
28817 _ACEOF
28818 if ac_fn_c_try_link "$LINENO"; then :
28819 ac_gcsections=yes
28820 else
28821 ac_gcsections=no
28823 rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825 if test "$ac_gcsections" = "yes"; then
28826 rm -f conftest.c
28827 touch conftest.c
28828 if $CC -c conftest.c; then
28829 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
28830 grep "Warning: gc-sections option ignored" > /dev/null; then
28831 ac_gcsections=no
28834 rm -f conftest.c conftest.o conftest
28836 if test "$ac_gcsections" = "yes"; then
28837 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
28840 $as_echo "$ac_gcsections" >&6; }
28842 if test "$ac_test_CFLAGS" = set; then
28843 CFLAGS="$ac_save_CFLAGS"
28844 else
28845 # this is the suspicious part
28846 CFLAGS=''
28850 # Set -z,relro.
28851 # Note this is only for shared objects.
28852 ac_ld_relro=no
28853 if test x"$with_gnu_ld" = x"yes"; then
28854 # cygwin and mingw uses PE, which has no ELF relro support,
28855 # multi target ld may confuse configure machinery
28856 case "$host" in
28857 *-*-cygwin*)
28859 *-*-mingw*)
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
28863 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
28864 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
28865 if test -n "$cxx_z_relo"; then
28866 OPT_LDFLAGS="-Wl,-z,relro"
28867 ac_ld_relro=yes
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
28870 $as_echo "$ac_ld_relro" >&6; }
28871 esac
28874 # Set linker optimization flags.
28875 if test x"$with_gnu_ld" = x"yes"; then
28876 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
28883 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28884 ac_save_CXXFLAGS="$CXXFLAGS"
28885 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
28888 $as_echo_n "checking for sin in -lm... " >&6; }
28889 if ${ac_cv_lib_m_sin+:} false; then :
28890 $as_echo_n "(cached) " >&6
28891 else
28892 ac_check_lib_save_LIBS=$LIBS
28893 LIBS="-lm $LIBS"
28894 if test x$gcc_no_link = xyes; then
28895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28898 /* end confdefs.h. */
28900 /* Override any GCC internal prototype to avoid an error.
28901 Use char because int might match the return type of a GCC
28902 builtin and then its argument prototype would still apply. */
28903 #ifdef __cplusplus
28904 extern "C"
28905 #endif
28906 char sin ();
28908 main ()
28910 return sin ();
28912 return 0;
28914 _ACEOF
28915 if ac_fn_c_try_link "$LINENO"; then :
28916 ac_cv_lib_m_sin=yes
28917 else
28918 ac_cv_lib_m_sin=no
28920 rm -f core conftest.err conftest.$ac_objext \
28921 conftest$ac_exeext conftest.$ac_ext
28922 LIBS=$ac_check_lib_save_LIBS
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
28925 $as_echo "$ac_cv_lib_m_sin" >&6; }
28926 if test "x$ac_cv_lib_m_sin" = xyes; then :
28927 libm="-lm"
28930 ac_save_LIBS="$LIBS"
28931 LIBS="$LIBS $libm"
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
28936 $as_echo_n "checking for isinf declaration... " >&6; }
28937 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
28938 if ${glibcxx_cv_func_isinf_use+:} false; then :
28939 $as_echo_n "(cached) " >&6
28940 else
28943 ac_ext=cpp
28944 ac_cpp='$CXXCPP $CPPFLAGS'
28945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28950 /* end confdefs.h. */
28951 #include <math.h>
28952 #ifdef HAVE_IEEEFP_H
28953 #include <ieeefp.h>
28954 #endif
28957 main ()
28959 isinf(0);
28961 return 0;
28963 _ACEOF
28964 if ac_fn_cxx_try_compile "$LINENO"; then :
28965 glibcxx_cv_func_isinf_use=yes
28966 else
28967 glibcxx_cv_func_isinf_use=no
28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28970 ac_ext=c
28971 ac_cpp='$CPP $CPPFLAGS'
28972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
28981 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
28983 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
28984 for ac_func in isinf
28985 do :
28986 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
28987 if test "x$ac_cv_func_isinf" = xyes; then :
28988 cat >>confdefs.h <<_ACEOF
28989 #define HAVE_ISINF 1
28990 _ACEOF
28993 done
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
29000 $as_echo_n "checking for isnan declaration... " >&6; }
29001 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
29002 if ${glibcxx_cv_func_isnan_use+:} false; then :
29003 $as_echo_n "(cached) " >&6
29004 else
29007 ac_ext=cpp
29008 ac_cpp='$CXXCPP $CPPFLAGS'
29009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h. */
29015 #include <math.h>
29016 #ifdef HAVE_IEEEFP_H
29017 #include <ieeefp.h>
29018 #endif
29021 main ()
29023 isnan(0);
29025 return 0;
29027 _ACEOF
29028 if ac_fn_cxx_try_compile "$LINENO"; then :
29029 glibcxx_cv_func_isnan_use=yes
29030 else
29031 glibcxx_cv_func_isnan_use=no
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 ac_ext=c
29035 ac_cpp='$CPP $CPPFLAGS'
29036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
29045 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
29047 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
29048 for ac_func in isnan
29049 do :
29050 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
29051 if test "x$ac_cv_func_isnan" = xyes; then :
29052 cat >>confdefs.h <<_ACEOF
29053 #define HAVE_ISNAN 1
29054 _ACEOF
29057 done
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
29064 $as_echo_n "checking for finite declaration... " >&6; }
29065 if test x${glibcxx_cv_func_finite_use+set} != xset; then
29066 if ${glibcxx_cv_func_finite_use+:} false; then :
29067 $as_echo_n "(cached) " >&6
29068 else
29071 ac_ext=cpp
29072 ac_cpp='$CXXCPP $CPPFLAGS'
29073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29078 /* end confdefs.h. */
29079 #include <math.h>
29080 #ifdef HAVE_IEEEFP_H
29081 #include <ieeefp.h>
29082 #endif
29085 main ()
29087 finite(0);
29089 return 0;
29091 _ACEOF
29092 if ac_fn_cxx_try_compile "$LINENO"; then :
29093 glibcxx_cv_func_finite_use=yes
29094 else
29095 glibcxx_cv_func_finite_use=no
29097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29098 ac_ext=c
29099 ac_cpp='$CPP $CPPFLAGS'
29100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
29109 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
29111 if test x$glibcxx_cv_func_finite_use = x"yes"; then
29112 for ac_func in finite
29113 do :
29114 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
29115 if test "x$ac_cv_func_finite" = xyes; then :
29116 cat >>confdefs.h <<_ACEOF
29117 #define HAVE_FINITE 1
29118 _ACEOF
29121 done
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
29128 $as_echo_n "checking for sincos declaration... " >&6; }
29129 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29130 if ${glibcxx_cv_func_sincos_use+:} false; then :
29131 $as_echo_n "(cached) " >&6
29132 else
29135 ac_ext=cpp
29136 ac_cpp='$CXXCPP $CPPFLAGS'
29137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29142 /* end confdefs.h. */
29143 #include <math.h>
29145 main ()
29147 sincos(0, 0, 0);
29149 return 0;
29151 _ACEOF
29152 if ac_fn_cxx_try_compile "$LINENO"; then :
29153 glibcxx_cv_func_sincos_use=yes
29154 else
29155 glibcxx_cv_func_sincos_use=no
29157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158 ac_ext=c
29159 ac_cpp='$CPP $CPPFLAGS'
29160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
29169 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
29171 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29172 for ac_func in sincos
29173 do :
29174 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
29175 if test "x$ac_cv_func_sincos" = xyes; then :
29176 cat >>confdefs.h <<_ACEOF
29177 #define HAVE_SINCOS 1
29178 _ACEOF
29181 done
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
29188 $as_echo_n "checking for fpclass declaration... " >&6; }
29189 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29190 if ${glibcxx_cv_func_fpclass_use+:} false; then :
29191 $as_echo_n "(cached) " >&6
29192 else
29195 ac_ext=cpp
29196 ac_cpp='$CXXCPP $CPPFLAGS'
29197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29202 /* end confdefs.h. */
29203 #include <math.h>
29204 #ifdef HAVE_IEEEFP_H
29205 #include <ieeefp.h>
29206 #endif
29209 main ()
29211 fpclass(0);
29213 return 0;
29215 _ACEOF
29216 if ac_fn_cxx_try_compile "$LINENO"; then :
29217 glibcxx_cv_func_fpclass_use=yes
29218 else
29219 glibcxx_cv_func_fpclass_use=no
29221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29222 ac_ext=c
29223 ac_cpp='$CPP $CPPFLAGS'
29224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
29233 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
29235 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29236 for ac_func in fpclass
29237 do :
29238 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
29239 if test "x$ac_cv_func_fpclass" = xyes; then :
29240 cat >>confdefs.h <<_ACEOF
29241 #define HAVE_FPCLASS 1
29242 _ACEOF
29245 done
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
29252 $as_echo_n "checking for qfpclass declaration... " >&6; }
29253 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29254 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
29255 $as_echo_n "(cached) " >&6
29256 else
29259 ac_ext=cpp
29260 ac_cpp='$CXXCPP $CPPFLAGS'
29261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h. */
29267 #include <math.h>
29268 #ifdef HAVE_IEEEFP_H
29269 #include <ieeefp.h>
29270 #endif
29273 main ()
29275 qfpclass(0);
29277 return 0;
29279 _ACEOF
29280 if ac_fn_cxx_try_compile "$LINENO"; then :
29281 glibcxx_cv_func_qfpclass_use=yes
29282 else
29283 glibcxx_cv_func_qfpclass_use=no
29285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29286 ac_ext=c
29287 ac_cpp='$CPP $CPPFLAGS'
29288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
29297 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
29299 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29300 for ac_func in qfpclass
29301 do :
29302 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
29303 if test "x$ac_cv_func_qfpclass" = xyes; then :
29304 cat >>confdefs.h <<_ACEOF
29305 #define HAVE_QFPCLASS 1
29306 _ACEOF
29309 done
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
29316 $as_echo_n "checking for hypot declaration... " >&6; }
29317 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
29318 if ${glibcxx_cv_func_hypot_use+:} false; then :
29319 $as_echo_n "(cached) " >&6
29320 else
29323 ac_ext=cpp
29324 ac_cpp='$CXXCPP $CPPFLAGS'
29325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29330 /* end confdefs.h. */
29331 #include <math.h>
29333 main ()
29335 hypot(0, 0);
29337 return 0;
29339 _ACEOF
29340 if ac_fn_cxx_try_compile "$LINENO"; then :
29341 glibcxx_cv_func_hypot_use=yes
29342 else
29343 glibcxx_cv_func_hypot_use=no
29345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29346 ac_ext=c
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
29357 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
29359 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
29360 for ac_func in hypot
29361 do :
29362 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
29363 if test "x$ac_cv_func_hypot" = xyes; then :
29364 cat >>confdefs.h <<_ACEOF
29365 #define HAVE_HYPOT 1
29366 _ACEOF
29369 done
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
29376 $as_echo_n "checking for float trig functions... " >&6; }
29377 if ${glibcxx_cv_func_float_trig_use+:} false; then :
29378 $as_echo_n "(cached) " >&6
29379 else
29382 ac_ext=cpp
29383 ac_cpp='$CXXCPP $CPPFLAGS'
29384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29389 /* end confdefs.h. */
29390 #include <math.h>
29392 main ()
29394 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
29396 return 0;
29398 _ACEOF
29399 if ac_fn_cxx_try_compile "$LINENO"; then :
29400 glibcxx_cv_func_float_trig_use=yes
29401 else
29402 glibcxx_cv_func_float_trig_use=no
29404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29405 ac_ext=c
29406 ac_cpp='$CPP $CPPFLAGS'
29407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
29414 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
29415 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
29416 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
29417 do :
29418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29421 cat >>confdefs.h <<_ACEOF
29422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29423 _ACEOF
29426 done
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
29433 $as_echo_n "checking for float round functions... " >&6; }
29434 if ${glibcxx_cv_func_float_round_use+:} false; then :
29435 $as_echo_n "(cached) " >&6
29436 else
29439 ac_ext=cpp
29440 ac_cpp='$CXXCPP $CPPFLAGS'
29441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29446 /* end confdefs.h. */
29447 #include <math.h>
29449 main ()
29451 ceilf (0); floorf (0);
29453 return 0;
29455 _ACEOF
29456 if ac_fn_cxx_try_compile "$LINENO"; then :
29457 glibcxx_cv_func_float_round_use=yes
29458 else
29459 glibcxx_cv_func_float_round_use=no
29461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29462 ac_ext=c
29463 ac_cpp='$CPP $CPPFLAGS'
29464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
29471 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
29472 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
29473 for ac_func in ceilf floorf
29474 do :
29475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29478 cat >>confdefs.h <<_ACEOF
29479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29480 _ACEOF
29483 done
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
29491 $as_echo_n "checking for expf declaration... " >&6; }
29492 if test x${glibcxx_cv_func_expf_use+set} != xset; then
29493 if ${glibcxx_cv_func_expf_use+:} false; then :
29494 $as_echo_n "(cached) " >&6
29495 else
29498 ac_ext=cpp
29499 ac_cpp='$CXXCPP $CPPFLAGS'
29500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29505 /* end confdefs.h. */
29506 #include <math.h>
29507 #ifdef HAVE_IEEEFP_H
29508 #include <ieeefp.h>
29509 #endif
29512 main ()
29514 expf(0);
29516 return 0;
29518 _ACEOF
29519 if ac_fn_cxx_try_compile "$LINENO"; then :
29520 glibcxx_cv_func_expf_use=yes
29521 else
29522 glibcxx_cv_func_expf_use=no
29524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29525 ac_ext=c
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
29536 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
29538 if test x$glibcxx_cv_func_expf_use = x"yes"; then
29539 for ac_func in expf
29540 do :
29541 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
29542 if test "x$ac_cv_func_expf" = xyes; then :
29543 cat >>confdefs.h <<_ACEOF
29544 #define HAVE_EXPF 1
29545 _ACEOF
29548 done
29554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
29555 $as_echo_n "checking for isnanf declaration... " >&6; }
29556 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
29557 if ${glibcxx_cv_func_isnanf_use+:} false; then :
29558 $as_echo_n "(cached) " >&6
29559 else
29562 ac_ext=cpp
29563 ac_cpp='$CXXCPP $CPPFLAGS'
29564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29570 #include <math.h>
29571 #ifdef HAVE_IEEEFP_H
29572 #include <ieeefp.h>
29573 #endif
29576 main ()
29578 isnanf(0);
29580 return 0;
29582 _ACEOF
29583 if ac_fn_cxx_try_compile "$LINENO"; then :
29584 glibcxx_cv_func_isnanf_use=yes
29585 else
29586 glibcxx_cv_func_isnanf_use=no
29588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29589 ac_ext=c
29590 ac_cpp='$CPP $CPPFLAGS'
29591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
29600 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
29602 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
29603 for ac_func in isnanf
29604 do :
29605 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
29606 if test "x$ac_cv_func_isnanf" = xyes; then :
29607 cat >>confdefs.h <<_ACEOF
29608 #define HAVE_ISNANF 1
29609 _ACEOF
29612 done
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
29619 $as_echo_n "checking for isinff declaration... " >&6; }
29620 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
29621 if ${glibcxx_cv_func_isinff_use+:} false; then :
29622 $as_echo_n "(cached) " >&6
29623 else
29626 ac_ext=cpp
29627 ac_cpp='$CXXCPP $CPPFLAGS'
29628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29633 /* end confdefs.h. */
29634 #include <math.h>
29635 #ifdef HAVE_IEEEFP_H
29636 #include <ieeefp.h>
29637 #endif
29640 main ()
29642 isinff(0);
29644 return 0;
29646 _ACEOF
29647 if ac_fn_cxx_try_compile "$LINENO"; then :
29648 glibcxx_cv_func_isinff_use=yes
29649 else
29650 glibcxx_cv_func_isinff_use=no
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29653 ac_ext=c
29654 ac_cpp='$CPP $CPPFLAGS'
29655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
29664 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
29666 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
29667 for ac_func in isinff
29668 do :
29669 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
29670 if test "x$ac_cv_func_isinff" = xyes; then :
29671 cat >>confdefs.h <<_ACEOF
29672 #define HAVE_ISINFF 1
29673 _ACEOF
29676 done
29682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
29683 $as_echo_n "checking for atan2f declaration... " >&6; }
29684 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
29685 if ${glibcxx_cv_func_atan2f_use+:} false; then :
29686 $as_echo_n "(cached) " >&6
29687 else
29690 ac_ext=cpp
29691 ac_cpp='$CXXCPP $CPPFLAGS'
29692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29698 #include <math.h>
29700 main ()
29702 atan2f(0, 0);
29704 return 0;
29706 _ACEOF
29707 if ac_fn_cxx_try_compile "$LINENO"; then :
29708 glibcxx_cv_func_atan2f_use=yes
29709 else
29710 glibcxx_cv_func_atan2f_use=no
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713 ac_ext=c
29714 ac_cpp='$CPP $CPPFLAGS'
29715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
29724 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
29726 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
29727 for ac_func in atan2f
29728 do :
29729 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
29730 if test "x$ac_cv_func_atan2f" = xyes; then :
29731 cat >>confdefs.h <<_ACEOF
29732 #define HAVE_ATAN2F 1
29733 _ACEOF
29736 done
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
29743 $as_echo_n "checking for fabsf declaration... " >&6; }
29744 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
29745 if ${glibcxx_cv_func_fabsf_use+:} false; then :
29746 $as_echo_n "(cached) " >&6
29747 else
29750 ac_ext=cpp
29751 ac_cpp='$CXXCPP $CPPFLAGS'
29752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29757 /* end confdefs.h. */
29758 #include <math.h>
29759 #ifdef HAVE_IEEEFP_H
29760 #include <ieeefp.h>
29761 #endif
29764 main ()
29766 fabsf(0);
29768 return 0;
29770 _ACEOF
29771 if ac_fn_cxx_try_compile "$LINENO"; then :
29772 glibcxx_cv_func_fabsf_use=yes
29773 else
29774 glibcxx_cv_func_fabsf_use=no
29776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777 ac_ext=c
29778 ac_cpp='$CPP $CPPFLAGS'
29779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
29788 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
29790 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
29791 for ac_func in fabsf
29792 do :
29793 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
29794 if test "x$ac_cv_func_fabsf" = xyes; then :
29795 cat >>confdefs.h <<_ACEOF
29796 #define HAVE_FABSF 1
29797 _ACEOF
29800 done
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
29807 $as_echo_n "checking for fmodf declaration... " >&6; }
29808 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
29809 if ${glibcxx_cv_func_fmodf_use+:} false; then :
29810 $as_echo_n "(cached) " >&6
29811 else
29814 ac_ext=cpp
29815 ac_cpp='$CXXCPP $CPPFLAGS'
29816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29821 /* end confdefs.h. */
29822 #include <math.h>
29824 main ()
29826 fmodf(0, 0);
29828 return 0;
29830 _ACEOF
29831 if ac_fn_cxx_try_compile "$LINENO"; then :
29832 glibcxx_cv_func_fmodf_use=yes
29833 else
29834 glibcxx_cv_func_fmodf_use=no
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837 ac_ext=c
29838 ac_cpp='$CPP $CPPFLAGS'
29839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
29848 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
29850 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
29851 for ac_func in fmodf
29852 do :
29853 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
29854 if test "x$ac_cv_func_fmodf" = xyes; then :
29855 cat >>confdefs.h <<_ACEOF
29856 #define HAVE_FMODF 1
29857 _ACEOF
29860 done
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
29867 $as_echo_n "checking for frexpf declaration... " >&6; }
29868 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
29869 if ${glibcxx_cv_func_frexpf_use+:} false; then :
29870 $as_echo_n "(cached) " >&6
29871 else
29874 ac_ext=cpp
29875 ac_cpp='$CXXCPP $CPPFLAGS'
29876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29881 /* end confdefs.h. */
29882 #include <math.h>
29884 main ()
29886 frexpf(0, 0);
29888 return 0;
29890 _ACEOF
29891 if ac_fn_cxx_try_compile "$LINENO"; then :
29892 glibcxx_cv_func_frexpf_use=yes
29893 else
29894 glibcxx_cv_func_frexpf_use=no
29896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29897 ac_ext=c
29898 ac_cpp='$CPP $CPPFLAGS'
29899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
29908 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
29910 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
29911 for ac_func in frexpf
29912 do :
29913 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
29914 if test "x$ac_cv_func_frexpf" = xyes; then :
29915 cat >>confdefs.h <<_ACEOF
29916 #define HAVE_FREXPF 1
29917 _ACEOF
29920 done
29926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
29927 $as_echo_n "checking for hypotf declaration... " >&6; }
29928 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
29929 if ${glibcxx_cv_func_hypotf_use+:} false; then :
29930 $as_echo_n "(cached) " >&6
29931 else
29934 ac_ext=cpp
29935 ac_cpp='$CXXCPP $CPPFLAGS'
29936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29941 /* end confdefs.h. */
29942 #include <math.h>
29944 main ()
29946 hypotf(0, 0);
29948 return 0;
29950 _ACEOF
29951 if ac_fn_cxx_try_compile "$LINENO"; then :
29952 glibcxx_cv_func_hypotf_use=yes
29953 else
29954 glibcxx_cv_func_hypotf_use=no
29956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29957 ac_ext=c
29958 ac_cpp='$CPP $CPPFLAGS'
29959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
29968 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
29970 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
29971 for ac_func in hypotf
29972 do :
29973 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
29974 if test "x$ac_cv_func_hypotf" = xyes; then :
29975 cat >>confdefs.h <<_ACEOF
29976 #define HAVE_HYPOTF 1
29977 _ACEOF
29980 done
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
29987 $as_echo_n "checking for ldexpf declaration... " >&6; }
29988 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
29989 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
29990 $as_echo_n "(cached) " >&6
29991 else
29994 ac_ext=cpp
29995 ac_cpp='$CXXCPP $CPPFLAGS'
29996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30001 /* end confdefs.h. */
30002 #include <math.h>
30004 main ()
30006 ldexpf(0, 0);
30008 return 0;
30010 _ACEOF
30011 if ac_fn_cxx_try_compile "$LINENO"; then :
30012 glibcxx_cv_func_ldexpf_use=yes
30013 else
30014 glibcxx_cv_func_ldexpf_use=no
30016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30017 ac_ext=c
30018 ac_cpp='$CPP $CPPFLAGS'
30019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
30028 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
30030 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
30031 for ac_func in ldexpf
30032 do :
30033 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
30034 if test "x$ac_cv_func_ldexpf" = xyes; then :
30035 cat >>confdefs.h <<_ACEOF
30036 #define HAVE_LDEXPF 1
30037 _ACEOF
30040 done
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
30047 $as_echo_n "checking for logf declaration... " >&6; }
30048 if test x${glibcxx_cv_func_logf_use+set} != xset; then
30049 if ${glibcxx_cv_func_logf_use+:} false; then :
30050 $as_echo_n "(cached) " >&6
30051 else
30054 ac_ext=cpp
30055 ac_cpp='$CXXCPP $CPPFLAGS'
30056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30061 /* end confdefs.h. */
30062 #include <math.h>
30063 #ifdef HAVE_IEEEFP_H
30064 #include <ieeefp.h>
30065 #endif
30068 main ()
30070 logf(0);
30072 return 0;
30074 _ACEOF
30075 if ac_fn_cxx_try_compile "$LINENO"; then :
30076 glibcxx_cv_func_logf_use=yes
30077 else
30078 glibcxx_cv_func_logf_use=no
30080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30081 ac_ext=c
30082 ac_cpp='$CPP $CPPFLAGS'
30083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
30092 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
30094 if test x$glibcxx_cv_func_logf_use = x"yes"; then
30095 for ac_func in logf
30096 do :
30097 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
30098 if test "x$ac_cv_func_logf" = xyes; then :
30099 cat >>confdefs.h <<_ACEOF
30100 #define HAVE_LOGF 1
30101 _ACEOF
30104 done
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
30111 $as_echo_n "checking for log10f declaration... " >&6; }
30112 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
30113 if ${glibcxx_cv_func_log10f_use+:} false; then :
30114 $as_echo_n "(cached) " >&6
30115 else
30118 ac_ext=cpp
30119 ac_cpp='$CXXCPP $CPPFLAGS'
30120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30125 /* end confdefs.h. */
30126 #include <math.h>
30127 #ifdef HAVE_IEEEFP_H
30128 #include <ieeefp.h>
30129 #endif
30132 main ()
30134 log10f(0);
30136 return 0;
30138 _ACEOF
30139 if ac_fn_cxx_try_compile "$LINENO"; then :
30140 glibcxx_cv_func_log10f_use=yes
30141 else
30142 glibcxx_cv_func_log10f_use=no
30144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30145 ac_ext=c
30146 ac_cpp='$CPP $CPPFLAGS'
30147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
30156 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
30158 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
30159 for ac_func in log10f
30160 do :
30161 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
30162 if test "x$ac_cv_func_log10f" = xyes; then :
30163 cat >>confdefs.h <<_ACEOF
30164 #define HAVE_LOG10F 1
30165 _ACEOF
30168 done
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
30175 $as_echo_n "checking for modff declaration... " >&6; }
30176 if test x${glibcxx_cv_func_modff_use+set} != xset; then
30177 if ${glibcxx_cv_func_modff_use+:} false; then :
30178 $as_echo_n "(cached) " >&6
30179 else
30182 ac_ext=cpp
30183 ac_cpp='$CXXCPP $CPPFLAGS'
30184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30189 /* end confdefs.h. */
30190 #include <math.h>
30192 main ()
30194 modff(0, 0);
30196 return 0;
30198 _ACEOF
30199 if ac_fn_cxx_try_compile "$LINENO"; then :
30200 glibcxx_cv_func_modff_use=yes
30201 else
30202 glibcxx_cv_func_modff_use=no
30204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30205 ac_ext=c
30206 ac_cpp='$CPP $CPPFLAGS'
30207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
30216 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
30218 if test x$glibcxx_cv_func_modff_use = x"yes"; then
30219 for ac_func in modff
30220 do :
30221 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
30222 if test "x$ac_cv_func_modff" = xyes; then :
30223 cat >>confdefs.h <<_ACEOF
30224 #define HAVE_MODFF 1
30225 _ACEOF
30228 done
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
30235 $as_echo_n "checking for modf declaration... " >&6; }
30236 if test x${glibcxx_cv_func_modf_use+set} != xset; then
30237 if ${glibcxx_cv_func_modf_use+:} false; then :
30238 $as_echo_n "(cached) " >&6
30239 else
30242 ac_ext=cpp
30243 ac_cpp='$CXXCPP $CPPFLAGS'
30244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30249 /* end confdefs.h. */
30250 #include <math.h>
30252 main ()
30254 modf(0, 0);
30256 return 0;
30258 _ACEOF
30259 if ac_fn_cxx_try_compile "$LINENO"; then :
30260 glibcxx_cv_func_modf_use=yes
30261 else
30262 glibcxx_cv_func_modf_use=no
30264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265 ac_ext=c
30266 ac_cpp='$CPP $CPPFLAGS'
30267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
30276 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
30278 if test x$glibcxx_cv_func_modf_use = x"yes"; then
30279 for ac_func in modf
30280 do :
30281 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
30282 if test "x$ac_cv_func_modf" = xyes; then :
30283 cat >>confdefs.h <<_ACEOF
30284 #define HAVE_MODF 1
30285 _ACEOF
30288 done
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
30295 $as_echo_n "checking for powf declaration... " >&6; }
30296 if test x${glibcxx_cv_func_powf_use+set} != xset; then
30297 if ${glibcxx_cv_func_powf_use+:} false; then :
30298 $as_echo_n "(cached) " >&6
30299 else
30302 ac_ext=cpp
30303 ac_cpp='$CXXCPP $CPPFLAGS'
30304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30309 /* end confdefs.h. */
30310 #include <math.h>
30312 main ()
30314 powf(0, 0);
30316 return 0;
30318 _ACEOF
30319 if ac_fn_cxx_try_compile "$LINENO"; then :
30320 glibcxx_cv_func_powf_use=yes
30321 else
30322 glibcxx_cv_func_powf_use=no
30324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30325 ac_ext=c
30326 ac_cpp='$CPP $CPPFLAGS'
30327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
30336 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
30338 if test x$glibcxx_cv_func_powf_use = x"yes"; then
30339 for ac_func in powf
30340 do :
30341 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
30342 if test "x$ac_cv_func_powf" = xyes; then :
30343 cat >>confdefs.h <<_ACEOF
30344 #define HAVE_POWF 1
30345 _ACEOF
30348 done
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
30355 $as_echo_n "checking for sqrtf declaration... " >&6; }
30356 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
30357 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
30358 $as_echo_n "(cached) " >&6
30359 else
30362 ac_ext=cpp
30363 ac_cpp='$CXXCPP $CPPFLAGS'
30364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30369 /* end confdefs.h. */
30370 #include <math.h>
30371 #ifdef HAVE_IEEEFP_H
30372 #include <ieeefp.h>
30373 #endif
30376 main ()
30378 sqrtf(0);
30380 return 0;
30382 _ACEOF
30383 if ac_fn_cxx_try_compile "$LINENO"; then :
30384 glibcxx_cv_func_sqrtf_use=yes
30385 else
30386 glibcxx_cv_func_sqrtf_use=no
30388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30389 ac_ext=c
30390 ac_cpp='$CPP $CPPFLAGS'
30391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
30400 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
30402 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
30403 for ac_func in sqrtf
30404 do :
30405 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
30406 if test "x$ac_cv_func_sqrtf" = xyes; then :
30407 cat >>confdefs.h <<_ACEOF
30408 #define HAVE_SQRTF 1
30409 _ACEOF
30412 done
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
30419 $as_echo_n "checking for sincosf declaration... " >&6; }
30420 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
30421 if ${glibcxx_cv_func_sincosf_use+:} false; then :
30422 $as_echo_n "(cached) " >&6
30423 else
30426 ac_ext=cpp
30427 ac_cpp='$CXXCPP $CPPFLAGS'
30428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h. */
30434 #include <math.h>
30436 main ()
30438 sincosf(0, 0, 0);
30440 return 0;
30442 _ACEOF
30443 if ac_fn_cxx_try_compile "$LINENO"; then :
30444 glibcxx_cv_func_sincosf_use=yes
30445 else
30446 glibcxx_cv_func_sincosf_use=no
30448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449 ac_ext=c
30450 ac_cpp='$CPP $CPPFLAGS'
30451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
30460 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
30462 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
30463 for ac_func in sincosf
30464 do :
30465 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
30466 if test "x$ac_cv_func_sincosf" = xyes; then :
30467 cat >>confdefs.h <<_ACEOF
30468 #define HAVE_SINCOSF 1
30469 _ACEOF
30472 done
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
30479 $as_echo_n "checking for finitef declaration... " >&6; }
30480 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
30481 if ${glibcxx_cv_func_finitef_use+:} false; then :
30482 $as_echo_n "(cached) " >&6
30483 else
30486 ac_ext=cpp
30487 ac_cpp='$CXXCPP $CPPFLAGS'
30488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30493 /* end confdefs.h. */
30494 #include <math.h>
30495 #ifdef HAVE_IEEEFP_H
30496 #include <ieeefp.h>
30497 #endif
30500 main ()
30502 finitef(0);
30504 return 0;
30506 _ACEOF
30507 if ac_fn_cxx_try_compile "$LINENO"; then :
30508 glibcxx_cv_func_finitef_use=yes
30509 else
30510 glibcxx_cv_func_finitef_use=no
30512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30513 ac_ext=c
30514 ac_cpp='$CPP $CPPFLAGS'
30515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
30524 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
30526 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
30527 for ac_func in finitef
30528 do :
30529 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
30530 if test "x$ac_cv_func_finitef" = xyes; then :
30531 cat >>confdefs.h <<_ACEOF
30532 #define HAVE_FINITEF 1
30533 _ACEOF
30536 done
30542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
30543 $as_echo_n "checking for long double trig functions... " >&6; }
30544 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
30545 $as_echo_n "(cached) " >&6
30546 else
30549 ac_ext=cpp
30550 ac_cpp='$CXXCPP $CPPFLAGS'
30551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30556 /* end confdefs.h. */
30557 #include <math.h>
30559 main ()
30561 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
30563 return 0;
30565 _ACEOF
30566 if ac_fn_cxx_try_compile "$LINENO"; then :
30567 glibcxx_cv_func_long_double_trig_use=yes
30568 else
30569 glibcxx_cv_func_long_double_trig_use=no
30571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30572 ac_ext=c
30573 ac_cpp='$CPP $CPPFLAGS'
30574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
30581 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
30582 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
30583 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
30584 do :
30585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30588 cat >>confdefs.h <<_ACEOF
30589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30590 _ACEOF
30593 done
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
30600 $as_echo_n "checking for long double round functions... " >&6; }
30601 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
30602 $as_echo_n "(cached) " >&6
30603 else
30606 ac_ext=cpp
30607 ac_cpp='$CXXCPP $CPPFLAGS'
30608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30613 /* end confdefs.h. */
30614 #include <math.h>
30616 main ()
30618 ceill (0); floorl (0);
30620 return 0;
30622 _ACEOF
30623 if ac_fn_cxx_try_compile "$LINENO"; then :
30624 glibcxx_cv_func_long_double_round_use=yes
30625 else
30626 glibcxx_cv_func_long_double_round_use=no
30628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629 ac_ext=c
30630 ac_cpp='$CPP $CPPFLAGS'
30631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
30638 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
30639 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
30640 for ac_func in ceill floorl
30641 do :
30642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30645 cat >>confdefs.h <<_ACEOF
30646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30647 _ACEOF
30650 done
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
30658 $as_echo_n "checking for isnanl declaration... " >&6; }
30659 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
30660 if ${glibcxx_cv_func_isnanl_use+:} false; then :
30661 $as_echo_n "(cached) " >&6
30662 else
30665 ac_ext=cpp
30666 ac_cpp='$CXXCPP $CPPFLAGS'
30667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30672 /* end confdefs.h. */
30673 #include <math.h>
30674 #ifdef HAVE_IEEEFP_H
30675 #include <ieeefp.h>
30676 #endif
30679 main ()
30681 isnanl(0);
30683 return 0;
30685 _ACEOF
30686 if ac_fn_cxx_try_compile "$LINENO"; then :
30687 glibcxx_cv_func_isnanl_use=yes
30688 else
30689 glibcxx_cv_func_isnanl_use=no
30691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30692 ac_ext=c
30693 ac_cpp='$CPP $CPPFLAGS'
30694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
30703 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
30705 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
30706 for ac_func in isnanl
30707 do :
30708 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
30709 if test "x$ac_cv_func_isnanl" = xyes; then :
30710 cat >>confdefs.h <<_ACEOF
30711 #define HAVE_ISNANL 1
30712 _ACEOF
30715 done
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
30722 $as_echo_n "checking for isinfl declaration... " >&6; }
30723 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
30724 if ${glibcxx_cv_func_isinfl_use+:} false; then :
30725 $as_echo_n "(cached) " >&6
30726 else
30729 ac_ext=cpp
30730 ac_cpp='$CXXCPP $CPPFLAGS'
30731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30736 /* end confdefs.h. */
30737 #include <math.h>
30738 #ifdef HAVE_IEEEFP_H
30739 #include <ieeefp.h>
30740 #endif
30743 main ()
30745 isinfl(0);
30747 return 0;
30749 _ACEOF
30750 if ac_fn_cxx_try_compile "$LINENO"; then :
30751 glibcxx_cv_func_isinfl_use=yes
30752 else
30753 glibcxx_cv_func_isinfl_use=no
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756 ac_ext=c
30757 ac_cpp='$CPP $CPPFLAGS'
30758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
30767 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
30769 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
30770 for ac_func in isinfl
30771 do :
30772 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
30773 if test "x$ac_cv_func_isinfl" = xyes; then :
30774 cat >>confdefs.h <<_ACEOF
30775 #define HAVE_ISINFL 1
30776 _ACEOF
30779 done
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
30786 $as_echo_n "checking for atan2l declaration... " >&6; }
30787 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
30788 if ${glibcxx_cv_func_atan2l_use+:} false; then :
30789 $as_echo_n "(cached) " >&6
30790 else
30793 ac_ext=cpp
30794 ac_cpp='$CXXCPP $CPPFLAGS'
30795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30800 /* end confdefs.h. */
30801 #include <math.h>
30803 main ()
30805 atan2l(0, 0);
30807 return 0;
30809 _ACEOF
30810 if ac_fn_cxx_try_compile "$LINENO"; then :
30811 glibcxx_cv_func_atan2l_use=yes
30812 else
30813 glibcxx_cv_func_atan2l_use=no
30815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816 ac_ext=c
30817 ac_cpp='$CPP $CPPFLAGS'
30818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
30827 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
30829 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
30830 for ac_func in atan2l
30831 do :
30832 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
30833 if test "x$ac_cv_func_atan2l" = xyes; then :
30834 cat >>confdefs.h <<_ACEOF
30835 #define HAVE_ATAN2L 1
30836 _ACEOF
30839 done
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
30846 $as_echo_n "checking for expl declaration... " >&6; }
30847 if test x${glibcxx_cv_func_expl_use+set} != xset; then
30848 if ${glibcxx_cv_func_expl_use+:} false; then :
30849 $as_echo_n "(cached) " >&6
30850 else
30853 ac_ext=cpp
30854 ac_cpp='$CXXCPP $CPPFLAGS'
30855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30860 /* end confdefs.h. */
30861 #include <math.h>
30862 #ifdef HAVE_IEEEFP_H
30863 #include <ieeefp.h>
30864 #endif
30867 main ()
30869 expl(0);
30871 return 0;
30873 _ACEOF
30874 if ac_fn_cxx_try_compile "$LINENO"; then :
30875 glibcxx_cv_func_expl_use=yes
30876 else
30877 glibcxx_cv_func_expl_use=no
30879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30880 ac_ext=c
30881 ac_cpp='$CPP $CPPFLAGS'
30882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
30891 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
30893 if test x$glibcxx_cv_func_expl_use = x"yes"; then
30894 for ac_func in expl
30895 do :
30896 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
30897 if test "x$ac_cv_func_expl" = xyes; then :
30898 cat >>confdefs.h <<_ACEOF
30899 #define HAVE_EXPL 1
30900 _ACEOF
30903 done
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
30910 $as_echo_n "checking for fabsl declaration... " >&6; }
30911 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
30912 if ${glibcxx_cv_func_fabsl_use+:} false; then :
30913 $as_echo_n "(cached) " >&6
30914 else
30917 ac_ext=cpp
30918 ac_cpp='$CXXCPP $CPPFLAGS'
30919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30924 /* end confdefs.h. */
30925 #include <math.h>
30926 #ifdef HAVE_IEEEFP_H
30927 #include <ieeefp.h>
30928 #endif
30931 main ()
30933 fabsl(0);
30935 return 0;
30937 _ACEOF
30938 if ac_fn_cxx_try_compile "$LINENO"; then :
30939 glibcxx_cv_func_fabsl_use=yes
30940 else
30941 glibcxx_cv_func_fabsl_use=no
30943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30944 ac_ext=c
30945 ac_cpp='$CPP $CPPFLAGS'
30946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
30955 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
30957 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
30958 for ac_func in fabsl
30959 do :
30960 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
30961 if test "x$ac_cv_func_fabsl" = xyes; then :
30962 cat >>confdefs.h <<_ACEOF
30963 #define HAVE_FABSL 1
30964 _ACEOF
30967 done
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
30974 $as_echo_n "checking for fmodl declaration... " >&6; }
30975 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
30976 if ${glibcxx_cv_func_fmodl_use+:} false; then :
30977 $as_echo_n "(cached) " >&6
30978 else
30981 ac_ext=cpp
30982 ac_cpp='$CXXCPP $CPPFLAGS'
30983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30988 /* end confdefs.h. */
30989 #include <math.h>
30991 main ()
30993 fmodl(0, 0);
30995 return 0;
30997 _ACEOF
30998 if ac_fn_cxx_try_compile "$LINENO"; then :
30999 glibcxx_cv_func_fmodl_use=yes
31000 else
31001 glibcxx_cv_func_fmodl_use=no
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31004 ac_ext=c
31005 ac_cpp='$CPP $CPPFLAGS'
31006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
31015 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
31017 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
31018 for ac_func in fmodl
31019 do :
31020 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
31021 if test "x$ac_cv_func_fmodl" = xyes; then :
31022 cat >>confdefs.h <<_ACEOF
31023 #define HAVE_FMODL 1
31024 _ACEOF
31027 done
31033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
31034 $as_echo_n "checking for frexpl declaration... " >&6; }
31035 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
31036 if ${glibcxx_cv_func_frexpl_use+:} false; then :
31037 $as_echo_n "(cached) " >&6
31038 else
31041 ac_ext=cpp
31042 ac_cpp='$CXXCPP $CPPFLAGS'
31043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31048 /* end confdefs.h. */
31049 #include <math.h>
31051 main ()
31053 frexpl(0, 0);
31055 return 0;
31057 _ACEOF
31058 if ac_fn_cxx_try_compile "$LINENO"; then :
31059 glibcxx_cv_func_frexpl_use=yes
31060 else
31061 glibcxx_cv_func_frexpl_use=no
31063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31064 ac_ext=c
31065 ac_cpp='$CPP $CPPFLAGS'
31066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
31075 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
31077 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
31078 for ac_func in frexpl
31079 do :
31080 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
31081 if test "x$ac_cv_func_frexpl" = xyes; then :
31082 cat >>confdefs.h <<_ACEOF
31083 #define HAVE_FREXPL 1
31084 _ACEOF
31087 done
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
31094 $as_echo_n "checking for hypotl declaration... " >&6; }
31095 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
31096 if ${glibcxx_cv_func_hypotl_use+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098 else
31101 ac_ext=cpp
31102 ac_cpp='$CXXCPP $CPPFLAGS'
31103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31108 /* end confdefs.h. */
31109 #include <math.h>
31111 main ()
31113 hypotl(0, 0);
31115 return 0;
31117 _ACEOF
31118 if ac_fn_cxx_try_compile "$LINENO"; then :
31119 glibcxx_cv_func_hypotl_use=yes
31120 else
31121 glibcxx_cv_func_hypotl_use=no
31123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31124 ac_ext=c
31125 ac_cpp='$CPP $CPPFLAGS'
31126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
31135 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
31137 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
31138 for ac_func in hypotl
31139 do :
31140 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
31141 if test "x$ac_cv_func_hypotl" = xyes; then :
31142 cat >>confdefs.h <<_ACEOF
31143 #define HAVE_HYPOTL 1
31144 _ACEOF
31147 done
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
31154 $as_echo_n "checking for ldexpl declaration... " >&6; }
31155 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
31156 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
31157 $as_echo_n "(cached) " >&6
31158 else
31161 ac_ext=cpp
31162 ac_cpp='$CXXCPP $CPPFLAGS'
31163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31168 /* end confdefs.h. */
31169 #include <math.h>
31171 main ()
31173 ldexpl(0, 0);
31175 return 0;
31177 _ACEOF
31178 if ac_fn_cxx_try_compile "$LINENO"; then :
31179 glibcxx_cv_func_ldexpl_use=yes
31180 else
31181 glibcxx_cv_func_ldexpl_use=no
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184 ac_ext=c
31185 ac_cpp='$CPP $CPPFLAGS'
31186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
31195 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
31197 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
31198 for ac_func in ldexpl
31199 do :
31200 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
31201 if test "x$ac_cv_func_ldexpl" = xyes; then :
31202 cat >>confdefs.h <<_ACEOF
31203 #define HAVE_LDEXPL 1
31204 _ACEOF
31207 done
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
31214 $as_echo_n "checking for logl declaration... " >&6; }
31215 if test x${glibcxx_cv_func_logl_use+set} != xset; then
31216 if ${glibcxx_cv_func_logl_use+:} false; then :
31217 $as_echo_n "(cached) " >&6
31218 else
31221 ac_ext=cpp
31222 ac_cpp='$CXXCPP $CPPFLAGS'
31223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31228 /* end confdefs.h. */
31229 #include <math.h>
31230 #ifdef HAVE_IEEEFP_H
31231 #include <ieeefp.h>
31232 #endif
31235 main ()
31237 logl(0);
31239 return 0;
31241 _ACEOF
31242 if ac_fn_cxx_try_compile "$LINENO"; then :
31243 glibcxx_cv_func_logl_use=yes
31244 else
31245 glibcxx_cv_func_logl_use=no
31247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31248 ac_ext=c
31249 ac_cpp='$CPP $CPPFLAGS'
31250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
31259 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
31261 if test x$glibcxx_cv_func_logl_use = x"yes"; then
31262 for ac_func in logl
31263 do :
31264 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
31265 if test "x$ac_cv_func_logl" = xyes; then :
31266 cat >>confdefs.h <<_ACEOF
31267 #define HAVE_LOGL 1
31268 _ACEOF
31271 done
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
31278 $as_echo_n "checking for log10l declaration... " >&6; }
31279 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
31280 if ${glibcxx_cv_func_log10l_use+:} false; then :
31281 $as_echo_n "(cached) " >&6
31282 else
31285 ac_ext=cpp
31286 ac_cpp='$CXXCPP $CPPFLAGS'
31287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292 /* end confdefs.h. */
31293 #include <math.h>
31294 #ifdef HAVE_IEEEFP_H
31295 #include <ieeefp.h>
31296 #endif
31299 main ()
31301 log10l(0);
31303 return 0;
31305 _ACEOF
31306 if ac_fn_cxx_try_compile "$LINENO"; then :
31307 glibcxx_cv_func_log10l_use=yes
31308 else
31309 glibcxx_cv_func_log10l_use=no
31311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31312 ac_ext=c
31313 ac_cpp='$CPP $CPPFLAGS'
31314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
31323 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
31325 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
31326 for ac_func in log10l
31327 do :
31328 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
31329 if test "x$ac_cv_func_log10l" = xyes; then :
31330 cat >>confdefs.h <<_ACEOF
31331 #define HAVE_LOG10L 1
31332 _ACEOF
31335 done
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
31342 $as_echo_n "checking for modfl declaration... " >&6; }
31343 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
31344 if ${glibcxx_cv_func_modfl_use+:} false; then :
31345 $as_echo_n "(cached) " >&6
31346 else
31349 ac_ext=cpp
31350 ac_cpp='$CXXCPP $CPPFLAGS'
31351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31356 /* end confdefs.h. */
31357 #include <math.h>
31359 main ()
31361 modfl(0, 0);
31363 return 0;
31365 _ACEOF
31366 if ac_fn_cxx_try_compile "$LINENO"; then :
31367 glibcxx_cv_func_modfl_use=yes
31368 else
31369 glibcxx_cv_func_modfl_use=no
31371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31372 ac_ext=c
31373 ac_cpp='$CPP $CPPFLAGS'
31374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
31383 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
31385 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
31386 for ac_func in modfl
31387 do :
31388 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
31389 if test "x$ac_cv_func_modfl" = xyes; then :
31390 cat >>confdefs.h <<_ACEOF
31391 #define HAVE_MODFL 1
31392 _ACEOF
31395 done
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
31402 $as_echo_n "checking for powl declaration... " >&6; }
31403 if test x${glibcxx_cv_func_powl_use+set} != xset; then
31404 if ${glibcxx_cv_func_powl_use+:} false; then :
31405 $as_echo_n "(cached) " >&6
31406 else
31409 ac_ext=cpp
31410 ac_cpp='$CXXCPP $CPPFLAGS'
31411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31416 /* end confdefs.h. */
31417 #include <math.h>
31419 main ()
31421 powl(0, 0);
31423 return 0;
31425 _ACEOF
31426 if ac_fn_cxx_try_compile "$LINENO"; then :
31427 glibcxx_cv_func_powl_use=yes
31428 else
31429 glibcxx_cv_func_powl_use=no
31431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31432 ac_ext=c
31433 ac_cpp='$CPP $CPPFLAGS'
31434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
31443 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
31445 if test x$glibcxx_cv_func_powl_use = x"yes"; then
31446 for ac_func in powl
31447 do :
31448 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
31449 if test "x$ac_cv_func_powl" = xyes; then :
31450 cat >>confdefs.h <<_ACEOF
31451 #define HAVE_POWL 1
31452 _ACEOF
31455 done
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
31462 $as_echo_n "checking for sqrtl declaration... " >&6; }
31463 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
31464 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
31465 $as_echo_n "(cached) " >&6
31466 else
31469 ac_ext=cpp
31470 ac_cpp='$CXXCPP $CPPFLAGS'
31471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31476 /* end confdefs.h. */
31477 #include <math.h>
31478 #ifdef HAVE_IEEEFP_H
31479 #include <ieeefp.h>
31480 #endif
31483 main ()
31485 sqrtl(0);
31487 return 0;
31489 _ACEOF
31490 if ac_fn_cxx_try_compile "$LINENO"; then :
31491 glibcxx_cv_func_sqrtl_use=yes
31492 else
31493 glibcxx_cv_func_sqrtl_use=no
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496 ac_ext=c
31497 ac_cpp='$CPP $CPPFLAGS'
31498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
31507 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
31509 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
31510 for ac_func in sqrtl
31511 do :
31512 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
31513 if test "x$ac_cv_func_sqrtl" = xyes; then :
31514 cat >>confdefs.h <<_ACEOF
31515 #define HAVE_SQRTL 1
31516 _ACEOF
31519 done
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
31526 $as_echo_n "checking for sincosl declaration... " >&6; }
31527 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
31528 if ${glibcxx_cv_func_sincosl_use+:} false; then :
31529 $as_echo_n "(cached) " >&6
31530 else
31533 ac_ext=cpp
31534 ac_cpp='$CXXCPP $CPPFLAGS'
31535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31540 /* end confdefs.h. */
31541 #include <math.h>
31543 main ()
31545 sincosl(0, 0, 0);
31547 return 0;
31549 _ACEOF
31550 if ac_fn_cxx_try_compile "$LINENO"; then :
31551 glibcxx_cv_func_sincosl_use=yes
31552 else
31553 glibcxx_cv_func_sincosl_use=no
31555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31556 ac_ext=c
31557 ac_cpp='$CPP $CPPFLAGS'
31558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
31567 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
31569 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
31570 for ac_func in sincosl
31571 do :
31572 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
31573 if test "x$ac_cv_func_sincosl" = xyes; then :
31574 cat >>confdefs.h <<_ACEOF
31575 #define HAVE_SINCOSL 1
31576 _ACEOF
31579 done
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
31586 $as_echo_n "checking for finitel declaration... " >&6; }
31587 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
31588 if ${glibcxx_cv_func_finitel_use+:} false; then :
31589 $as_echo_n "(cached) " >&6
31590 else
31593 ac_ext=cpp
31594 ac_cpp='$CXXCPP $CPPFLAGS'
31595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600 /* end confdefs.h. */
31601 #include <math.h>
31602 #ifdef HAVE_IEEEFP_H
31603 #include <ieeefp.h>
31604 #endif
31607 main ()
31609 finitel(0);
31611 return 0;
31613 _ACEOF
31614 if ac_fn_cxx_try_compile "$LINENO"; then :
31615 glibcxx_cv_func_finitel_use=yes
31616 else
31617 glibcxx_cv_func_finitel_use=no
31619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31620 ac_ext=c
31621 ac_cpp='$CPP $CPPFLAGS'
31622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
31631 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
31633 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
31634 for ac_func in finitel
31635 do :
31636 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
31637 if test "x$ac_cv_func_finitel" = xyes; then :
31638 cat >>confdefs.h <<_ACEOF
31639 #define HAVE_FINITEL 1
31640 _ACEOF
31643 done
31648 LIBS="$ac_save_LIBS"
31649 CXXFLAGS="$ac_save_CXXFLAGS"
31652 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31653 ac_save_CXXFLAGS="$CXXFLAGS"
31654 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
31658 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
31659 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
31660 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
31661 $as_echo_n "(cached) " >&6
31662 else
31665 ac_ext=cpp
31666 ac_cpp='$CXXCPP $CPPFLAGS'
31667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31672 /* end confdefs.h. */
31673 #include <stdlib.h>
31675 main ()
31677 at_quick_exit(0);
31679 return 0;
31681 _ACEOF
31682 if ac_fn_cxx_try_compile "$LINENO"; then :
31683 glibcxx_cv_func_at_quick_exit_use=yes
31684 else
31685 glibcxx_cv_func_at_quick_exit_use=no
31687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31688 ac_ext=c
31689 ac_cpp='$CPP $CPPFLAGS'
31690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
31699 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
31700 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
31701 for ac_func in at_quick_exit
31702 do :
31703 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
31704 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
31705 cat >>confdefs.h <<_ACEOF
31706 #define HAVE_AT_QUICK_EXIT 1
31707 _ACEOF
31710 done
31715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
31716 $as_echo_n "checking for quick_exit declaration... " >&6; }
31717 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
31718 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
31719 $as_echo_n "(cached) " >&6
31720 else
31723 ac_ext=cpp
31724 ac_cpp='$CXXCPP $CPPFLAGS'
31725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31730 /* end confdefs.h. */
31731 #include <stdlib.h>
31733 main ()
31735 quick_exit(0);
31737 return 0;
31739 _ACEOF
31740 if ac_fn_cxx_try_compile "$LINENO"; then :
31741 glibcxx_cv_func_quick_exit_use=yes
31742 else
31743 glibcxx_cv_func_quick_exit_use=no
31745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31746 ac_ext=c
31747 ac_cpp='$CPP $CPPFLAGS'
31748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
31757 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
31758 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
31759 for ac_func in quick_exit
31760 do :
31761 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
31762 if test "x$ac_cv_func_quick_exit" = xyes; then :
31763 cat >>confdefs.h <<_ACEOF
31764 #define HAVE_QUICK_EXIT 1
31765 _ACEOF
31768 done
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
31774 $as_echo_n "checking for strtold declaration... " >&6; }
31775 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
31776 if ${glibcxx_cv_func_strtold_use+:} false; then :
31777 $as_echo_n "(cached) " >&6
31778 else
31781 ac_ext=cpp
31782 ac_cpp='$CXXCPP $CPPFLAGS'
31783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31788 /* end confdefs.h. */
31789 #include <stdlib.h>
31791 main ()
31793 strtold(0, 0);
31795 return 0;
31797 _ACEOF
31798 if ac_fn_cxx_try_compile "$LINENO"; then :
31799 glibcxx_cv_func_strtold_use=yes
31800 else
31801 glibcxx_cv_func_strtold_use=no
31803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31804 ac_ext=c
31805 ac_cpp='$CPP $CPPFLAGS'
31806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
31815 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
31816 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
31817 for ac_func in strtold
31818 do :
31819 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
31820 if test "x$ac_cv_func_strtold" = xyes; then :
31821 cat >>confdefs.h <<_ACEOF
31822 #define HAVE_STRTOLD 1
31823 _ACEOF
31826 done
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
31832 $as_echo_n "checking for strtof declaration... " >&6; }
31833 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
31834 if ${glibcxx_cv_func_strtof_use+:} false; then :
31835 $as_echo_n "(cached) " >&6
31836 else
31839 ac_ext=cpp
31840 ac_cpp='$CXXCPP $CPPFLAGS'
31841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31846 /* end confdefs.h. */
31847 #include <stdlib.h>
31849 main ()
31851 strtof(0, 0);
31853 return 0;
31855 _ACEOF
31856 if ac_fn_cxx_try_compile "$LINENO"; then :
31857 glibcxx_cv_func_strtof_use=yes
31858 else
31859 glibcxx_cv_func_strtof_use=no
31861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31862 ac_ext=c
31863 ac_cpp='$CPP $CPPFLAGS'
31864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
31873 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
31874 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
31875 for ac_func in strtof
31876 do :
31877 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
31878 if test "x$ac_cv_func_strtof" = xyes; then :
31879 cat >>confdefs.h <<_ACEOF
31880 #define HAVE_STRTOF 1
31881 _ACEOF
31884 done
31889 CXXFLAGS="$ac_save_CXXFLAGS"
31892 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
31894 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
31896 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
31898 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
31901 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
31903 $as_echo "#define HAVE_MODF 1" >>confdefs.h
31905 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
31909 *-aix*)
31911 # If we're not using GNU ld, then there's no point in even trying these
31912 # tests. Check for that first. We should have already tested for gld
31913 # by now (in libtool), but require it now just to be safe...
31914 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
31915 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
31919 # The name set by libtool depends on the version of libtool. Shame on us
31920 # for depending on an impl detail, but c'est la vie. Older versions used
31921 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
31922 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
31923 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
31924 # set (hence we're using an older libtool), then set it.
31925 if test x${with_gnu_ld+set} != xset; then
31926 if test x${ac_cv_prog_gnu_ld+set} != xset; then
31927 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
31928 with_gnu_ld=no
31929 else
31930 with_gnu_ld=$ac_cv_prog_gnu_ld
31934 # Start by getting the version number. I think the libtool test already
31935 # does some of this, but throws away the result.
31936 glibcxx_ld_is_gold=no
31937 glibcxx_ld_is_mold=no
31938 if test x"$with_gnu_ld" = x"yes"; then
31939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
31940 $as_echo_n "checking for ld version... " >&6; }
31942 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
31943 glibcxx_ld_is_gold=yes
31944 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
31945 glibcxx_ld_is_mold=yes
31947 ldver=`$LD --version 2>/dev/null |
31948 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
31950 glibcxx_gnu_ld_version=`echo $ldver | \
31951 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
31953 $as_echo "$glibcxx_gnu_ld_version" >&6; }
31956 # Set --gc-sections.
31957 glibcxx_have_gc_sections=no
31958 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
31959 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
31960 glibcxx_have_gc_sections=yes
31962 else
31963 glibcxx_gcsections_min_ld=21602
31964 if test x"$with_gnu_ld" = x"yes" &&
31965 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
31966 glibcxx_have_gc_sections=yes
31969 if test "$glibcxx_have_gc_sections" = "yes"; then
31970 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
31971 # NB: This flag only works reliably after 2.16.1. Configure tests
31972 # for this are difficult, so hard wire a value that should work.
31974 ac_test_CFLAGS="${CFLAGS+set}"
31975 ac_save_CFLAGS="$CFLAGS"
31976 CFLAGS='-Wl,--gc-sections'
31978 # Check for -Wl,--gc-sections
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
31980 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
31981 if test x$gcc_no_link = xyes; then
31982 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
31984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31985 /* end confdefs.h. */
31986 int one(void) { return 1; }
31987 int two(void) { return 2; }
31990 main ()
31992 two();
31994 return 0;
31996 _ACEOF
31997 if ac_fn_c_try_link "$LINENO"; then :
31998 ac_gcsections=yes
31999 else
32000 ac_gcsections=no
32002 rm -f core conftest.err conftest.$ac_objext \
32003 conftest$ac_exeext conftest.$ac_ext
32004 if test "$ac_gcsections" = "yes"; then
32005 rm -f conftest.c
32006 touch conftest.c
32007 if $CC -c conftest.c; then
32008 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
32009 grep "Warning: gc-sections option ignored" > /dev/null; then
32010 ac_gcsections=no
32013 rm -f conftest.c conftest.o conftest
32015 if test "$ac_gcsections" = "yes"; then
32016 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
32019 $as_echo "$ac_gcsections" >&6; }
32021 if test "$ac_test_CFLAGS" = set; then
32022 CFLAGS="$ac_save_CFLAGS"
32023 else
32024 # this is the suspicious part
32025 CFLAGS=''
32029 # Set -z,relro.
32030 # Note this is only for shared objects.
32031 ac_ld_relro=no
32032 if test x"$with_gnu_ld" = x"yes"; then
32033 # cygwin and mingw uses PE, which has no ELF relro support,
32034 # multi target ld may confuse configure machinery
32035 case "$host" in
32036 *-*-cygwin*)
32038 *-*-mingw*)
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
32042 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
32043 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
32044 if test -n "$cxx_z_relo"; then
32045 OPT_LDFLAGS="-Wl,-z,relro"
32046 ac_ld_relro=yes
32048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
32049 $as_echo "$ac_ld_relro" >&6; }
32050 esac
32053 # Set linker optimization flags.
32054 if test x"$with_gnu_ld" = x"yes"; then
32055 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
32062 ac_test_CXXFLAGS="${CXXFLAGS+set}"
32063 ac_save_CXXFLAGS="$CXXFLAGS"
32064 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
32067 $as_echo_n "checking for sin in -lm... " >&6; }
32068 if ${ac_cv_lib_m_sin+:} false; then :
32069 $as_echo_n "(cached) " >&6
32070 else
32071 ac_check_lib_save_LIBS=$LIBS
32072 LIBS="-lm $LIBS"
32073 if test x$gcc_no_link = xyes; then
32074 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
32076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077 /* end confdefs.h. */
32079 /* Override any GCC internal prototype to avoid an error.
32080 Use char because int might match the return type of a GCC
32081 builtin and then its argument prototype would still apply. */
32082 #ifdef __cplusplus
32083 extern "C"
32084 #endif
32085 char sin ();
32087 main ()
32089 return sin ();
32091 return 0;
32093 _ACEOF
32094 if ac_fn_c_try_link "$LINENO"; then :
32095 ac_cv_lib_m_sin=yes
32096 else
32097 ac_cv_lib_m_sin=no
32099 rm -f core conftest.err conftest.$ac_objext \
32100 conftest$ac_exeext conftest.$ac_ext
32101 LIBS=$ac_check_lib_save_LIBS
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
32104 $as_echo "$ac_cv_lib_m_sin" >&6; }
32105 if test "x$ac_cv_lib_m_sin" = xyes; then :
32106 libm="-lm"
32109 ac_save_LIBS="$LIBS"
32110 LIBS="$LIBS $libm"
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
32115 $as_echo_n "checking for isinf declaration... " >&6; }
32116 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
32117 if ${glibcxx_cv_func_isinf_use+:} false; then :
32118 $as_echo_n "(cached) " >&6
32119 else
32122 ac_ext=cpp
32123 ac_cpp='$CXXCPP $CPPFLAGS'
32124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32129 /* end confdefs.h. */
32130 #include <math.h>
32131 #ifdef HAVE_IEEEFP_H
32132 #include <ieeefp.h>
32133 #endif
32136 main ()
32138 isinf(0);
32140 return 0;
32142 _ACEOF
32143 if ac_fn_cxx_try_compile "$LINENO"; then :
32144 glibcxx_cv_func_isinf_use=yes
32145 else
32146 glibcxx_cv_func_isinf_use=no
32148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32149 ac_ext=c
32150 ac_cpp='$CPP $CPPFLAGS'
32151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
32160 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
32162 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
32163 for ac_func in isinf
32164 do :
32165 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
32166 if test "x$ac_cv_func_isinf" = xyes; then :
32167 cat >>confdefs.h <<_ACEOF
32168 #define HAVE_ISINF 1
32169 _ACEOF
32172 done
32178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
32179 $as_echo_n "checking for isnan declaration... " >&6; }
32180 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
32181 if ${glibcxx_cv_func_isnan_use+:} false; then :
32182 $as_echo_n "(cached) " >&6
32183 else
32186 ac_ext=cpp
32187 ac_cpp='$CXXCPP $CPPFLAGS'
32188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193 /* end confdefs.h. */
32194 #include <math.h>
32195 #ifdef HAVE_IEEEFP_H
32196 #include <ieeefp.h>
32197 #endif
32200 main ()
32202 isnan(0);
32204 return 0;
32206 _ACEOF
32207 if ac_fn_cxx_try_compile "$LINENO"; then :
32208 glibcxx_cv_func_isnan_use=yes
32209 else
32210 glibcxx_cv_func_isnan_use=no
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 ac_ext=c
32214 ac_cpp='$CPP $CPPFLAGS'
32215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
32224 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
32226 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32227 for ac_func in isnan
32228 do :
32229 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
32230 if test "x$ac_cv_func_isnan" = xyes; then :
32231 cat >>confdefs.h <<_ACEOF
32232 #define HAVE_ISNAN 1
32233 _ACEOF
32236 done
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
32243 $as_echo_n "checking for finite declaration... " >&6; }
32244 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32245 if ${glibcxx_cv_func_finite_use+:} false; then :
32246 $as_echo_n "(cached) " >&6
32247 else
32250 ac_ext=cpp
32251 ac_cpp='$CXXCPP $CPPFLAGS'
32252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32257 /* end confdefs.h. */
32258 #include <math.h>
32259 #ifdef HAVE_IEEEFP_H
32260 #include <ieeefp.h>
32261 #endif
32264 main ()
32266 finite(0);
32268 return 0;
32270 _ACEOF
32271 if ac_fn_cxx_try_compile "$LINENO"; then :
32272 glibcxx_cv_func_finite_use=yes
32273 else
32274 glibcxx_cv_func_finite_use=no
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32277 ac_ext=c
32278 ac_cpp='$CPP $CPPFLAGS'
32279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
32288 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
32290 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32291 for ac_func in finite
32292 do :
32293 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
32294 if test "x$ac_cv_func_finite" = xyes; then :
32295 cat >>confdefs.h <<_ACEOF
32296 #define HAVE_FINITE 1
32297 _ACEOF
32300 done
32306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
32307 $as_echo_n "checking for sincos declaration... " >&6; }
32308 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
32309 if ${glibcxx_cv_func_sincos_use+:} false; then :
32310 $as_echo_n "(cached) " >&6
32311 else
32314 ac_ext=cpp
32315 ac_cpp='$CXXCPP $CPPFLAGS'
32316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32321 /* end confdefs.h. */
32322 #include <math.h>
32324 main ()
32326 sincos(0, 0, 0);
32328 return 0;
32330 _ACEOF
32331 if ac_fn_cxx_try_compile "$LINENO"; then :
32332 glibcxx_cv_func_sincos_use=yes
32333 else
32334 glibcxx_cv_func_sincos_use=no
32336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32337 ac_ext=c
32338 ac_cpp='$CPP $CPPFLAGS'
32339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
32348 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
32350 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
32351 for ac_func in sincos
32352 do :
32353 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
32354 if test "x$ac_cv_func_sincos" = xyes; then :
32355 cat >>confdefs.h <<_ACEOF
32356 #define HAVE_SINCOS 1
32357 _ACEOF
32360 done
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
32367 $as_echo_n "checking for fpclass declaration... " >&6; }
32368 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
32369 if ${glibcxx_cv_func_fpclass_use+:} false; then :
32370 $as_echo_n "(cached) " >&6
32371 else
32374 ac_ext=cpp
32375 ac_cpp='$CXXCPP $CPPFLAGS'
32376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381 /* end confdefs.h. */
32382 #include <math.h>
32383 #ifdef HAVE_IEEEFP_H
32384 #include <ieeefp.h>
32385 #endif
32388 main ()
32390 fpclass(0);
32392 return 0;
32394 _ACEOF
32395 if ac_fn_cxx_try_compile "$LINENO"; then :
32396 glibcxx_cv_func_fpclass_use=yes
32397 else
32398 glibcxx_cv_func_fpclass_use=no
32400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401 ac_ext=c
32402 ac_cpp='$CPP $CPPFLAGS'
32403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
32412 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
32414 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
32415 for ac_func in fpclass
32416 do :
32417 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
32418 if test "x$ac_cv_func_fpclass" = xyes; then :
32419 cat >>confdefs.h <<_ACEOF
32420 #define HAVE_FPCLASS 1
32421 _ACEOF
32424 done
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
32431 $as_echo_n "checking for qfpclass declaration... " >&6; }
32432 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
32433 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
32434 $as_echo_n "(cached) " >&6
32435 else
32438 ac_ext=cpp
32439 ac_cpp='$CXXCPP $CPPFLAGS'
32440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32445 /* end confdefs.h. */
32446 #include <math.h>
32447 #ifdef HAVE_IEEEFP_H
32448 #include <ieeefp.h>
32449 #endif
32452 main ()
32454 qfpclass(0);
32456 return 0;
32458 _ACEOF
32459 if ac_fn_cxx_try_compile "$LINENO"; then :
32460 glibcxx_cv_func_qfpclass_use=yes
32461 else
32462 glibcxx_cv_func_qfpclass_use=no
32464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32465 ac_ext=c
32466 ac_cpp='$CPP $CPPFLAGS'
32467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
32476 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
32478 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
32479 for ac_func in qfpclass
32480 do :
32481 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
32482 if test "x$ac_cv_func_qfpclass" = xyes; then :
32483 cat >>confdefs.h <<_ACEOF
32484 #define HAVE_QFPCLASS 1
32485 _ACEOF
32488 done
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
32495 $as_echo_n "checking for hypot declaration... " >&6; }
32496 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
32497 if ${glibcxx_cv_func_hypot_use+:} false; then :
32498 $as_echo_n "(cached) " >&6
32499 else
32502 ac_ext=cpp
32503 ac_cpp='$CXXCPP $CPPFLAGS'
32504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32509 /* end confdefs.h. */
32510 #include <math.h>
32512 main ()
32514 hypot(0, 0);
32516 return 0;
32518 _ACEOF
32519 if ac_fn_cxx_try_compile "$LINENO"; then :
32520 glibcxx_cv_func_hypot_use=yes
32521 else
32522 glibcxx_cv_func_hypot_use=no
32524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32525 ac_ext=c
32526 ac_cpp='$CPP $CPPFLAGS'
32527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
32536 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
32538 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
32539 for ac_func in hypot
32540 do :
32541 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
32542 if test "x$ac_cv_func_hypot" = xyes; then :
32543 cat >>confdefs.h <<_ACEOF
32544 #define HAVE_HYPOT 1
32545 _ACEOF
32548 done
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
32555 $as_echo_n "checking for float trig functions... " >&6; }
32556 if ${glibcxx_cv_func_float_trig_use+:} false; then :
32557 $as_echo_n "(cached) " >&6
32558 else
32561 ac_ext=cpp
32562 ac_cpp='$CXXCPP $CPPFLAGS'
32563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32568 /* end confdefs.h. */
32569 #include <math.h>
32571 main ()
32573 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
32575 return 0;
32577 _ACEOF
32578 if ac_fn_cxx_try_compile "$LINENO"; then :
32579 glibcxx_cv_func_float_trig_use=yes
32580 else
32581 glibcxx_cv_func_float_trig_use=no
32583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584 ac_ext=c
32585 ac_cpp='$CPP $CPPFLAGS'
32586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
32593 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
32594 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
32595 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
32596 do :
32597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32600 cat >>confdefs.h <<_ACEOF
32601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32602 _ACEOF
32605 done
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
32612 $as_echo_n "checking for float round functions... " >&6; }
32613 if ${glibcxx_cv_func_float_round_use+:} false; then :
32614 $as_echo_n "(cached) " >&6
32615 else
32618 ac_ext=cpp
32619 ac_cpp='$CXXCPP $CPPFLAGS'
32620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32625 /* end confdefs.h. */
32626 #include <math.h>
32628 main ()
32630 ceilf (0); floorf (0);
32632 return 0;
32634 _ACEOF
32635 if ac_fn_cxx_try_compile "$LINENO"; then :
32636 glibcxx_cv_func_float_round_use=yes
32637 else
32638 glibcxx_cv_func_float_round_use=no
32640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32641 ac_ext=c
32642 ac_cpp='$CPP $CPPFLAGS'
32643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
32650 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
32651 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
32652 for ac_func in ceilf floorf
32653 do :
32654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32657 cat >>confdefs.h <<_ACEOF
32658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32659 _ACEOF
32662 done
32669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
32670 $as_echo_n "checking for expf declaration... " >&6; }
32671 if test x${glibcxx_cv_func_expf_use+set} != xset; then
32672 if ${glibcxx_cv_func_expf_use+:} false; then :
32673 $as_echo_n "(cached) " >&6
32674 else
32677 ac_ext=cpp
32678 ac_cpp='$CXXCPP $CPPFLAGS'
32679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32684 /* end confdefs.h. */
32685 #include <math.h>
32686 #ifdef HAVE_IEEEFP_H
32687 #include <ieeefp.h>
32688 #endif
32691 main ()
32693 expf(0);
32695 return 0;
32697 _ACEOF
32698 if ac_fn_cxx_try_compile "$LINENO"; then :
32699 glibcxx_cv_func_expf_use=yes
32700 else
32701 glibcxx_cv_func_expf_use=no
32703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32704 ac_ext=c
32705 ac_cpp='$CPP $CPPFLAGS'
32706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
32715 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
32717 if test x$glibcxx_cv_func_expf_use = x"yes"; then
32718 for ac_func in expf
32719 do :
32720 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
32721 if test "x$ac_cv_func_expf" = xyes; then :
32722 cat >>confdefs.h <<_ACEOF
32723 #define HAVE_EXPF 1
32724 _ACEOF
32727 done
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
32734 $as_echo_n "checking for isnanf declaration... " >&6; }
32735 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
32736 if ${glibcxx_cv_func_isnanf_use+:} false; then :
32737 $as_echo_n "(cached) " >&6
32738 else
32741 ac_ext=cpp
32742 ac_cpp='$CXXCPP $CPPFLAGS'
32743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32748 /* end confdefs.h. */
32749 #include <math.h>
32750 #ifdef HAVE_IEEEFP_H
32751 #include <ieeefp.h>
32752 #endif
32755 main ()
32757 isnanf(0);
32759 return 0;
32761 _ACEOF
32762 if ac_fn_cxx_try_compile "$LINENO"; then :
32763 glibcxx_cv_func_isnanf_use=yes
32764 else
32765 glibcxx_cv_func_isnanf_use=no
32767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32768 ac_ext=c
32769 ac_cpp='$CPP $CPPFLAGS'
32770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
32779 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
32781 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
32782 for ac_func in isnanf
32783 do :
32784 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
32785 if test "x$ac_cv_func_isnanf" = xyes; then :
32786 cat >>confdefs.h <<_ACEOF
32787 #define HAVE_ISNANF 1
32788 _ACEOF
32791 done
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
32798 $as_echo_n "checking for isinff declaration... " >&6; }
32799 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
32800 if ${glibcxx_cv_func_isinff_use+:} false; then :
32801 $as_echo_n "(cached) " >&6
32802 else
32805 ac_ext=cpp
32806 ac_cpp='$CXXCPP $CPPFLAGS'
32807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32812 /* end confdefs.h. */
32813 #include <math.h>
32814 #ifdef HAVE_IEEEFP_H
32815 #include <ieeefp.h>
32816 #endif
32819 main ()
32821 isinff(0);
32823 return 0;
32825 _ACEOF
32826 if ac_fn_cxx_try_compile "$LINENO"; then :
32827 glibcxx_cv_func_isinff_use=yes
32828 else
32829 glibcxx_cv_func_isinff_use=no
32831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32832 ac_ext=c
32833 ac_cpp='$CPP $CPPFLAGS'
32834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
32843 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
32845 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
32846 for ac_func in isinff
32847 do :
32848 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
32849 if test "x$ac_cv_func_isinff" = xyes; then :
32850 cat >>confdefs.h <<_ACEOF
32851 #define HAVE_ISINFF 1
32852 _ACEOF
32855 done
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
32862 $as_echo_n "checking for atan2f declaration... " >&6; }
32863 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
32864 if ${glibcxx_cv_func_atan2f_use+:} false; then :
32865 $as_echo_n "(cached) " >&6
32866 else
32869 ac_ext=cpp
32870 ac_cpp='$CXXCPP $CPPFLAGS'
32871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32876 /* end confdefs.h. */
32877 #include <math.h>
32879 main ()
32881 atan2f(0, 0);
32883 return 0;
32885 _ACEOF
32886 if ac_fn_cxx_try_compile "$LINENO"; then :
32887 glibcxx_cv_func_atan2f_use=yes
32888 else
32889 glibcxx_cv_func_atan2f_use=no
32891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32892 ac_ext=c
32893 ac_cpp='$CPP $CPPFLAGS'
32894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
32903 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
32905 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
32906 for ac_func in atan2f
32907 do :
32908 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
32909 if test "x$ac_cv_func_atan2f" = xyes; then :
32910 cat >>confdefs.h <<_ACEOF
32911 #define HAVE_ATAN2F 1
32912 _ACEOF
32915 done
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
32922 $as_echo_n "checking for fabsf declaration... " >&6; }
32923 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32924 if ${glibcxx_cv_func_fabsf_use+:} false; then :
32925 $as_echo_n "(cached) " >&6
32926 else
32929 ac_ext=cpp
32930 ac_cpp='$CXXCPP $CPPFLAGS'
32931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32936 /* end confdefs.h. */
32937 #include <math.h>
32938 #ifdef HAVE_IEEEFP_H
32939 #include <ieeefp.h>
32940 #endif
32943 main ()
32945 fabsf(0);
32947 return 0;
32949 _ACEOF
32950 if ac_fn_cxx_try_compile "$LINENO"; then :
32951 glibcxx_cv_func_fabsf_use=yes
32952 else
32953 glibcxx_cv_func_fabsf_use=no
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956 ac_ext=c
32957 ac_cpp='$CPP $CPPFLAGS'
32958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
32967 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
32969 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32970 for ac_func in fabsf
32971 do :
32972 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
32973 if test "x$ac_cv_func_fabsf" = xyes; then :
32974 cat >>confdefs.h <<_ACEOF
32975 #define HAVE_FABSF 1
32976 _ACEOF
32979 done
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
32986 $as_echo_n "checking for fmodf declaration... " >&6; }
32987 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32988 if ${glibcxx_cv_func_fmodf_use+:} false; then :
32989 $as_echo_n "(cached) " >&6
32990 else
32993 ac_ext=cpp
32994 ac_cpp='$CXXCPP $CPPFLAGS'
32995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33000 /* end confdefs.h. */
33001 #include <math.h>
33003 main ()
33005 fmodf(0, 0);
33007 return 0;
33009 _ACEOF
33010 if ac_fn_cxx_try_compile "$LINENO"; then :
33011 glibcxx_cv_func_fmodf_use=yes
33012 else
33013 glibcxx_cv_func_fmodf_use=no
33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33016 ac_ext=c
33017 ac_cpp='$CPP $CPPFLAGS'
33018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
33027 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
33029 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
33030 for ac_func in fmodf
33031 do :
33032 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
33033 if test "x$ac_cv_func_fmodf" = xyes; then :
33034 cat >>confdefs.h <<_ACEOF
33035 #define HAVE_FMODF 1
33036 _ACEOF
33039 done
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
33046 $as_echo_n "checking for frexpf declaration... " >&6; }
33047 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
33048 if ${glibcxx_cv_func_frexpf_use+:} false; then :
33049 $as_echo_n "(cached) " >&6
33050 else
33053 ac_ext=cpp
33054 ac_cpp='$CXXCPP $CPPFLAGS'
33055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h. */
33061 #include <math.h>
33063 main ()
33065 frexpf(0, 0);
33067 return 0;
33069 _ACEOF
33070 if ac_fn_cxx_try_compile "$LINENO"; then :
33071 glibcxx_cv_func_frexpf_use=yes
33072 else
33073 glibcxx_cv_func_frexpf_use=no
33075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33076 ac_ext=c
33077 ac_cpp='$CPP $CPPFLAGS'
33078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
33087 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
33089 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
33090 for ac_func in frexpf
33091 do :
33092 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
33093 if test "x$ac_cv_func_frexpf" = xyes; then :
33094 cat >>confdefs.h <<_ACEOF
33095 #define HAVE_FREXPF 1
33096 _ACEOF
33099 done
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
33106 $as_echo_n "checking for hypotf declaration... " >&6; }
33107 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33108 if ${glibcxx_cv_func_hypotf_use+:} false; then :
33109 $as_echo_n "(cached) " >&6
33110 else
33113 ac_ext=cpp
33114 ac_cpp='$CXXCPP $CPPFLAGS'
33115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33120 /* end confdefs.h. */
33121 #include <math.h>
33123 main ()
33125 hypotf(0, 0);
33127 return 0;
33129 _ACEOF
33130 if ac_fn_cxx_try_compile "$LINENO"; then :
33131 glibcxx_cv_func_hypotf_use=yes
33132 else
33133 glibcxx_cv_func_hypotf_use=no
33135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136 ac_ext=c
33137 ac_cpp='$CPP $CPPFLAGS'
33138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
33147 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
33149 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33150 for ac_func in hypotf
33151 do :
33152 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
33153 if test "x$ac_cv_func_hypotf" = xyes; then :
33154 cat >>confdefs.h <<_ACEOF
33155 #define HAVE_HYPOTF 1
33156 _ACEOF
33159 done
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
33166 $as_echo_n "checking for ldexpf declaration... " >&6; }
33167 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33168 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
33169 $as_echo_n "(cached) " >&6
33170 else
33173 ac_ext=cpp
33174 ac_cpp='$CXXCPP $CPPFLAGS'
33175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33180 /* end confdefs.h. */
33181 #include <math.h>
33183 main ()
33185 ldexpf(0, 0);
33187 return 0;
33189 _ACEOF
33190 if ac_fn_cxx_try_compile "$LINENO"; then :
33191 glibcxx_cv_func_ldexpf_use=yes
33192 else
33193 glibcxx_cv_func_ldexpf_use=no
33195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33196 ac_ext=c
33197 ac_cpp='$CPP $CPPFLAGS'
33198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
33207 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
33209 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33210 for ac_func in ldexpf
33211 do :
33212 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
33213 if test "x$ac_cv_func_ldexpf" = xyes; then :
33214 cat >>confdefs.h <<_ACEOF
33215 #define HAVE_LDEXPF 1
33216 _ACEOF
33219 done
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
33226 $as_echo_n "checking for logf declaration... " >&6; }
33227 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33228 if ${glibcxx_cv_func_logf_use+:} false; then :
33229 $as_echo_n "(cached) " >&6
33230 else
33233 ac_ext=cpp
33234 ac_cpp='$CXXCPP $CPPFLAGS'
33235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33240 /* end confdefs.h. */
33241 #include <math.h>
33242 #ifdef HAVE_IEEEFP_H
33243 #include <ieeefp.h>
33244 #endif
33247 main ()
33249 logf(0);
33251 return 0;
33253 _ACEOF
33254 if ac_fn_cxx_try_compile "$LINENO"; then :
33255 glibcxx_cv_func_logf_use=yes
33256 else
33257 glibcxx_cv_func_logf_use=no
33259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33260 ac_ext=c
33261 ac_cpp='$CPP $CPPFLAGS'
33262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
33271 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
33273 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33274 for ac_func in logf
33275 do :
33276 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
33277 if test "x$ac_cv_func_logf" = xyes; then :
33278 cat >>confdefs.h <<_ACEOF
33279 #define HAVE_LOGF 1
33280 _ACEOF
33283 done
33289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
33290 $as_echo_n "checking for log10f declaration... " >&6; }
33291 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33292 if ${glibcxx_cv_func_log10f_use+:} false; then :
33293 $as_echo_n "(cached) " >&6
33294 else
33297 ac_ext=cpp
33298 ac_cpp='$CXXCPP $CPPFLAGS'
33299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33304 /* end confdefs.h. */
33305 #include <math.h>
33306 #ifdef HAVE_IEEEFP_H
33307 #include <ieeefp.h>
33308 #endif
33311 main ()
33313 log10f(0);
33315 return 0;
33317 _ACEOF
33318 if ac_fn_cxx_try_compile "$LINENO"; then :
33319 glibcxx_cv_func_log10f_use=yes
33320 else
33321 glibcxx_cv_func_log10f_use=no
33323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33324 ac_ext=c
33325 ac_cpp='$CPP $CPPFLAGS'
33326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
33335 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
33337 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33338 for ac_func in log10f
33339 do :
33340 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
33341 if test "x$ac_cv_func_log10f" = xyes; then :
33342 cat >>confdefs.h <<_ACEOF
33343 #define HAVE_LOG10F 1
33344 _ACEOF
33347 done
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
33354 $as_echo_n "checking for modff declaration... " >&6; }
33355 if test x${glibcxx_cv_func_modff_use+set} != xset; then
33356 if ${glibcxx_cv_func_modff_use+:} false; then :
33357 $as_echo_n "(cached) " >&6
33358 else
33361 ac_ext=cpp
33362 ac_cpp='$CXXCPP $CPPFLAGS'
33363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368 /* end confdefs.h. */
33369 #include <math.h>
33371 main ()
33373 modff(0, 0);
33375 return 0;
33377 _ACEOF
33378 if ac_fn_cxx_try_compile "$LINENO"; then :
33379 glibcxx_cv_func_modff_use=yes
33380 else
33381 glibcxx_cv_func_modff_use=no
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33384 ac_ext=c
33385 ac_cpp='$CPP $CPPFLAGS'
33386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
33395 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
33397 if test x$glibcxx_cv_func_modff_use = x"yes"; then
33398 for ac_func in modff
33399 do :
33400 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
33401 if test "x$ac_cv_func_modff" = xyes; then :
33402 cat >>confdefs.h <<_ACEOF
33403 #define HAVE_MODFF 1
33404 _ACEOF
33407 done
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
33414 $as_echo_n "checking for modf declaration... " >&6; }
33415 if test x${glibcxx_cv_func_modf_use+set} != xset; then
33416 if ${glibcxx_cv_func_modf_use+:} false; then :
33417 $as_echo_n "(cached) " >&6
33418 else
33421 ac_ext=cpp
33422 ac_cpp='$CXXCPP $CPPFLAGS'
33423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33428 /* end confdefs.h. */
33429 #include <math.h>
33431 main ()
33433 modf(0, 0);
33435 return 0;
33437 _ACEOF
33438 if ac_fn_cxx_try_compile "$LINENO"; then :
33439 glibcxx_cv_func_modf_use=yes
33440 else
33441 glibcxx_cv_func_modf_use=no
33443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 ac_ext=c
33445 ac_cpp='$CPP $CPPFLAGS'
33446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
33455 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
33457 if test x$glibcxx_cv_func_modf_use = x"yes"; then
33458 for ac_func in modf
33459 do :
33460 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
33461 if test "x$ac_cv_func_modf" = xyes; then :
33462 cat >>confdefs.h <<_ACEOF
33463 #define HAVE_MODF 1
33464 _ACEOF
33467 done
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
33474 $as_echo_n "checking for powf declaration... " >&6; }
33475 if test x${glibcxx_cv_func_powf_use+set} != xset; then
33476 if ${glibcxx_cv_func_powf_use+:} false; then :
33477 $as_echo_n "(cached) " >&6
33478 else
33481 ac_ext=cpp
33482 ac_cpp='$CXXCPP $CPPFLAGS'
33483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33488 /* end confdefs.h. */
33489 #include <math.h>
33491 main ()
33493 powf(0, 0);
33495 return 0;
33497 _ACEOF
33498 if ac_fn_cxx_try_compile "$LINENO"; then :
33499 glibcxx_cv_func_powf_use=yes
33500 else
33501 glibcxx_cv_func_powf_use=no
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504 ac_ext=c
33505 ac_cpp='$CPP $CPPFLAGS'
33506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
33515 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
33517 if test x$glibcxx_cv_func_powf_use = x"yes"; then
33518 for ac_func in powf
33519 do :
33520 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
33521 if test "x$ac_cv_func_powf" = xyes; then :
33522 cat >>confdefs.h <<_ACEOF
33523 #define HAVE_POWF 1
33524 _ACEOF
33527 done
33533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
33534 $as_echo_n "checking for sqrtf declaration... " >&6; }
33535 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
33536 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
33537 $as_echo_n "(cached) " >&6
33538 else
33541 ac_ext=cpp
33542 ac_cpp='$CXXCPP $CPPFLAGS'
33543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33548 /* end confdefs.h. */
33549 #include <math.h>
33550 #ifdef HAVE_IEEEFP_H
33551 #include <ieeefp.h>
33552 #endif
33555 main ()
33557 sqrtf(0);
33559 return 0;
33561 _ACEOF
33562 if ac_fn_cxx_try_compile "$LINENO"; then :
33563 glibcxx_cv_func_sqrtf_use=yes
33564 else
33565 glibcxx_cv_func_sqrtf_use=no
33567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33568 ac_ext=c
33569 ac_cpp='$CPP $CPPFLAGS'
33570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
33579 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
33581 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
33582 for ac_func in sqrtf
33583 do :
33584 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
33585 if test "x$ac_cv_func_sqrtf" = xyes; then :
33586 cat >>confdefs.h <<_ACEOF
33587 #define HAVE_SQRTF 1
33588 _ACEOF
33591 done
33597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
33598 $as_echo_n "checking for sincosf declaration... " >&6; }
33599 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
33600 if ${glibcxx_cv_func_sincosf_use+:} false; then :
33601 $as_echo_n "(cached) " >&6
33602 else
33605 ac_ext=cpp
33606 ac_cpp='$CXXCPP $CPPFLAGS'
33607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33612 /* end confdefs.h. */
33613 #include <math.h>
33615 main ()
33617 sincosf(0, 0, 0);
33619 return 0;
33621 _ACEOF
33622 if ac_fn_cxx_try_compile "$LINENO"; then :
33623 glibcxx_cv_func_sincosf_use=yes
33624 else
33625 glibcxx_cv_func_sincosf_use=no
33627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33628 ac_ext=c
33629 ac_cpp='$CPP $CPPFLAGS'
33630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
33639 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
33641 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
33642 for ac_func in sincosf
33643 do :
33644 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
33645 if test "x$ac_cv_func_sincosf" = xyes; then :
33646 cat >>confdefs.h <<_ACEOF
33647 #define HAVE_SINCOSF 1
33648 _ACEOF
33651 done
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
33658 $as_echo_n "checking for finitef declaration... " >&6; }
33659 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
33660 if ${glibcxx_cv_func_finitef_use+:} false; then :
33661 $as_echo_n "(cached) " >&6
33662 else
33665 ac_ext=cpp
33666 ac_cpp='$CXXCPP $CPPFLAGS'
33667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33672 /* end confdefs.h. */
33673 #include <math.h>
33674 #ifdef HAVE_IEEEFP_H
33675 #include <ieeefp.h>
33676 #endif
33679 main ()
33681 finitef(0);
33683 return 0;
33685 _ACEOF
33686 if ac_fn_cxx_try_compile "$LINENO"; then :
33687 glibcxx_cv_func_finitef_use=yes
33688 else
33689 glibcxx_cv_func_finitef_use=no
33691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33692 ac_ext=c
33693 ac_cpp='$CPP $CPPFLAGS'
33694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
33703 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
33705 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
33706 for ac_func in finitef
33707 do :
33708 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
33709 if test "x$ac_cv_func_finitef" = xyes; then :
33710 cat >>confdefs.h <<_ACEOF
33711 #define HAVE_FINITEF 1
33712 _ACEOF
33715 done
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
33722 $as_echo_n "checking for long double trig functions... " >&6; }
33723 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
33724 $as_echo_n "(cached) " >&6
33725 else
33728 ac_ext=cpp
33729 ac_cpp='$CXXCPP $CPPFLAGS'
33730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33735 /* end confdefs.h. */
33736 #include <math.h>
33738 main ()
33740 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
33742 return 0;
33744 _ACEOF
33745 if ac_fn_cxx_try_compile "$LINENO"; then :
33746 glibcxx_cv_func_long_double_trig_use=yes
33747 else
33748 glibcxx_cv_func_long_double_trig_use=no
33750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33751 ac_ext=c
33752 ac_cpp='$CPP $CPPFLAGS'
33753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
33760 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
33761 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
33762 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
33763 do :
33764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33767 cat >>confdefs.h <<_ACEOF
33768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33769 _ACEOF
33772 done
33778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
33779 $as_echo_n "checking for long double round functions... " >&6; }
33780 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
33781 $as_echo_n "(cached) " >&6
33782 else
33785 ac_ext=cpp
33786 ac_cpp='$CXXCPP $CPPFLAGS'
33787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33792 /* end confdefs.h. */
33793 #include <math.h>
33795 main ()
33797 ceill (0); floorl (0);
33799 return 0;
33801 _ACEOF
33802 if ac_fn_cxx_try_compile "$LINENO"; then :
33803 glibcxx_cv_func_long_double_round_use=yes
33804 else
33805 glibcxx_cv_func_long_double_round_use=no
33807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33808 ac_ext=c
33809 ac_cpp='$CPP $CPPFLAGS'
33810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
33817 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
33818 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
33819 for ac_func in ceill floorl
33820 do :
33821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33823 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33824 cat >>confdefs.h <<_ACEOF
33825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33826 _ACEOF
33829 done
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
33837 $as_echo_n "checking for isnanl declaration... " >&6; }
33838 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
33839 if ${glibcxx_cv_func_isnanl_use+:} false; then :
33840 $as_echo_n "(cached) " >&6
33841 else
33844 ac_ext=cpp
33845 ac_cpp='$CXXCPP $CPPFLAGS'
33846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33851 /* end confdefs.h. */
33852 #include <math.h>
33853 #ifdef HAVE_IEEEFP_H
33854 #include <ieeefp.h>
33855 #endif
33858 main ()
33860 isnanl(0);
33862 return 0;
33864 _ACEOF
33865 if ac_fn_cxx_try_compile "$LINENO"; then :
33866 glibcxx_cv_func_isnanl_use=yes
33867 else
33868 glibcxx_cv_func_isnanl_use=no
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 ac_ext=c
33872 ac_cpp='$CPP $CPPFLAGS'
33873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
33882 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
33884 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
33885 for ac_func in isnanl
33886 do :
33887 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
33888 if test "x$ac_cv_func_isnanl" = xyes; then :
33889 cat >>confdefs.h <<_ACEOF
33890 #define HAVE_ISNANL 1
33891 _ACEOF
33894 done
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
33901 $as_echo_n "checking for isinfl declaration... " >&6; }
33902 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
33903 if ${glibcxx_cv_func_isinfl_use+:} false; then :
33904 $as_echo_n "(cached) " >&6
33905 else
33908 ac_ext=cpp
33909 ac_cpp='$CXXCPP $CPPFLAGS'
33910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33915 /* end confdefs.h. */
33916 #include <math.h>
33917 #ifdef HAVE_IEEEFP_H
33918 #include <ieeefp.h>
33919 #endif
33922 main ()
33924 isinfl(0);
33926 return 0;
33928 _ACEOF
33929 if ac_fn_cxx_try_compile "$LINENO"; then :
33930 glibcxx_cv_func_isinfl_use=yes
33931 else
33932 glibcxx_cv_func_isinfl_use=no
33934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33935 ac_ext=c
33936 ac_cpp='$CPP $CPPFLAGS'
33937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
33946 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
33948 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
33949 for ac_func in isinfl
33950 do :
33951 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
33952 if test "x$ac_cv_func_isinfl" = xyes; then :
33953 cat >>confdefs.h <<_ACEOF
33954 #define HAVE_ISINFL 1
33955 _ACEOF
33958 done
33964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
33965 $as_echo_n "checking for atan2l declaration... " >&6; }
33966 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
33967 if ${glibcxx_cv_func_atan2l_use+:} false; then :
33968 $as_echo_n "(cached) " >&6
33969 else
33972 ac_ext=cpp
33973 ac_cpp='$CXXCPP $CPPFLAGS'
33974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33979 /* end confdefs.h. */
33980 #include <math.h>
33982 main ()
33984 atan2l(0, 0);
33986 return 0;
33988 _ACEOF
33989 if ac_fn_cxx_try_compile "$LINENO"; then :
33990 glibcxx_cv_func_atan2l_use=yes
33991 else
33992 glibcxx_cv_func_atan2l_use=no
33994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33995 ac_ext=c
33996 ac_cpp='$CPP $CPPFLAGS'
33997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
34006 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
34008 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
34009 for ac_func in atan2l
34010 do :
34011 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
34012 if test "x$ac_cv_func_atan2l" = xyes; then :
34013 cat >>confdefs.h <<_ACEOF
34014 #define HAVE_ATAN2L 1
34015 _ACEOF
34018 done
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
34025 $as_echo_n "checking for expl declaration... " >&6; }
34026 if test x${glibcxx_cv_func_expl_use+set} != xset; then
34027 if ${glibcxx_cv_func_expl_use+:} false; then :
34028 $as_echo_n "(cached) " >&6
34029 else
34032 ac_ext=cpp
34033 ac_cpp='$CXXCPP $CPPFLAGS'
34034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34039 /* end confdefs.h. */
34040 #include <math.h>
34041 #ifdef HAVE_IEEEFP_H
34042 #include <ieeefp.h>
34043 #endif
34046 main ()
34048 expl(0);
34050 return 0;
34052 _ACEOF
34053 if ac_fn_cxx_try_compile "$LINENO"; then :
34054 glibcxx_cv_func_expl_use=yes
34055 else
34056 glibcxx_cv_func_expl_use=no
34058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34059 ac_ext=c
34060 ac_cpp='$CPP $CPPFLAGS'
34061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
34070 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
34072 if test x$glibcxx_cv_func_expl_use = x"yes"; then
34073 for ac_func in expl
34074 do :
34075 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
34076 if test "x$ac_cv_func_expl" = xyes; then :
34077 cat >>confdefs.h <<_ACEOF
34078 #define HAVE_EXPL 1
34079 _ACEOF
34082 done
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
34089 $as_echo_n "checking for fabsl declaration... " >&6; }
34090 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
34091 if ${glibcxx_cv_func_fabsl_use+:} false; then :
34092 $as_echo_n "(cached) " >&6
34093 else
34096 ac_ext=cpp
34097 ac_cpp='$CXXCPP $CPPFLAGS'
34098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34103 /* end confdefs.h. */
34104 #include <math.h>
34105 #ifdef HAVE_IEEEFP_H
34106 #include <ieeefp.h>
34107 #endif
34110 main ()
34112 fabsl(0);
34114 return 0;
34116 _ACEOF
34117 if ac_fn_cxx_try_compile "$LINENO"; then :
34118 glibcxx_cv_func_fabsl_use=yes
34119 else
34120 glibcxx_cv_func_fabsl_use=no
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123 ac_ext=c
34124 ac_cpp='$CPP $CPPFLAGS'
34125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
34134 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
34136 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
34137 for ac_func in fabsl
34138 do :
34139 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
34140 if test "x$ac_cv_func_fabsl" = xyes; then :
34141 cat >>confdefs.h <<_ACEOF
34142 #define HAVE_FABSL 1
34143 _ACEOF
34146 done
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
34153 $as_echo_n "checking for fmodl declaration... " >&6; }
34154 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
34155 if ${glibcxx_cv_func_fmodl_use+:} false; then :
34156 $as_echo_n "(cached) " >&6
34157 else
34160 ac_ext=cpp
34161 ac_cpp='$CXXCPP $CPPFLAGS'
34162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34167 /* end confdefs.h. */
34168 #include <math.h>
34170 main ()
34172 fmodl(0, 0);
34174 return 0;
34176 _ACEOF
34177 if ac_fn_cxx_try_compile "$LINENO"; then :
34178 glibcxx_cv_func_fmodl_use=yes
34179 else
34180 glibcxx_cv_func_fmodl_use=no
34182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34183 ac_ext=c
34184 ac_cpp='$CPP $CPPFLAGS'
34185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
34194 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
34196 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
34197 for ac_func in fmodl
34198 do :
34199 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
34200 if test "x$ac_cv_func_fmodl" = xyes; then :
34201 cat >>confdefs.h <<_ACEOF
34202 #define HAVE_FMODL 1
34203 _ACEOF
34206 done
34212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
34213 $as_echo_n "checking for frexpl declaration... " >&6; }
34214 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
34215 if ${glibcxx_cv_func_frexpl_use+:} false; then :
34216 $as_echo_n "(cached) " >&6
34217 else
34220 ac_ext=cpp
34221 ac_cpp='$CXXCPP $CPPFLAGS'
34222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34227 /* end confdefs.h. */
34228 #include <math.h>
34230 main ()
34232 frexpl(0, 0);
34234 return 0;
34236 _ACEOF
34237 if ac_fn_cxx_try_compile "$LINENO"; then :
34238 glibcxx_cv_func_frexpl_use=yes
34239 else
34240 glibcxx_cv_func_frexpl_use=no
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 ac_ext=c
34244 ac_cpp='$CPP $CPPFLAGS'
34245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
34254 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
34256 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
34257 for ac_func in frexpl
34258 do :
34259 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
34260 if test "x$ac_cv_func_frexpl" = xyes; then :
34261 cat >>confdefs.h <<_ACEOF
34262 #define HAVE_FREXPL 1
34263 _ACEOF
34266 done
34272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
34273 $as_echo_n "checking for hypotl declaration... " >&6; }
34274 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
34275 if ${glibcxx_cv_func_hypotl_use+:} false; then :
34276 $as_echo_n "(cached) " >&6
34277 else
34280 ac_ext=cpp
34281 ac_cpp='$CXXCPP $CPPFLAGS'
34282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34287 /* end confdefs.h. */
34288 #include <math.h>
34290 main ()
34292 hypotl(0, 0);
34294 return 0;
34296 _ACEOF
34297 if ac_fn_cxx_try_compile "$LINENO"; then :
34298 glibcxx_cv_func_hypotl_use=yes
34299 else
34300 glibcxx_cv_func_hypotl_use=no
34302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34303 ac_ext=c
34304 ac_cpp='$CPP $CPPFLAGS'
34305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
34314 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
34316 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
34317 for ac_func in hypotl
34318 do :
34319 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
34320 if test "x$ac_cv_func_hypotl" = xyes; then :
34321 cat >>confdefs.h <<_ACEOF
34322 #define HAVE_HYPOTL 1
34323 _ACEOF
34326 done
34332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
34333 $as_echo_n "checking for ldexpl declaration... " >&6; }
34334 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
34335 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
34336 $as_echo_n "(cached) " >&6
34337 else
34340 ac_ext=cpp
34341 ac_cpp='$CXXCPP $CPPFLAGS'
34342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34347 /* end confdefs.h. */
34348 #include <math.h>
34350 main ()
34352 ldexpl(0, 0);
34354 return 0;
34356 _ACEOF
34357 if ac_fn_cxx_try_compile "$LINENO"; then :
34358 glibcxx_cv_func_ldexpl_use=yes
34359 else
34360 glibcxx_cv_func_ldexpl_use=no
34362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34363 ac_ext=c
34364 ac_cpp='$CPP $CPPFLAGS'
34365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
34374 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
34376 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
34377 for ac_func in ldexpl
34378 do :
34379 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
34380 if test "x$ac_cv_func_ldexpl" = xyes; then :
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_LDEXPL 1
34383 _ACEOF
34386 done
34392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
34393 $as_echo_n "checking for logl declaration... " >&6; }
34394 if test x${glibcxx_cv_func_logl_use+set} != xset; then
34395 if ${glibcxx_cv_func_logl_use+:} false; then :
34396 $as_echo_n "(cached) " >&6
34397 else
34400 ac_ext=cpp
34401 ac_cpp='$CXXCPP $CPPFLAGS'
34402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34407 /* end confdefs.h. */
34408 #include <math.h>
34409 #ifdef HAVE_IEEEFP_H
34410 #include <ieeefp.h>
34411 #endif
34414 main ()
34416 logl(0);
34418 return 0;
34420 _ACEOF
34421 if ac_fn_cxx_try_compile "$LINENO"; then :
34422 glibcxx_cv_func_logl_use=yes
34423 else
34424 glibcxx_cv_func_logl_use=no
34426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34427 ac_ext=c
34428 ac_cpp='$CPP $CPPFLAGS'
34429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
34438 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
34440 if test x$glibcxx_cv_func_logl_use = x"yes"; then
34441 for ac_func in logl
34442 do :
34443 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
34444 if test "x$ac_cv_func_logl" = xyes; then :
34445 cat >>confdefs.h <<_ACEOF
34446 #define HAVE_LOGL 1
34447 _ACEOF
34450 done
34456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
34457 $as_echo_n "checking for log10l declaration... " >&6; }
34458 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
34459 if ${glibcxx_cv_func_log10l_use+:} false; then :
34460 $as_echo_n "(cached) " >&6
34461 else
34464 ac_ext=cpp
34465 ac_cpp='$CXXCPP $CPPFLAGS'
34466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34471 /* end confdefs.h. */
34472 #include <math.h>
34473 #ifdef HAVE_IEEEFP_H
34474 #include <ieeefp.h>
34475 #endif
34478 main ()
34480 log10l(0);
34482 return 0;
34484 _ACEOF
34485 if ac_fn_cxx_try_compile "$LINENO"; then :
34486 glibcxx_cv_func_log10l_use=yes
34487 else
34488 glibcxx_cv_func_log10l_use=no
34490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34491 ac_ext=c
34492 ac_cpp='$CPP $CPPFLAGS'
34493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
34502 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
34504 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
34505 for ac_func in log10l
34506 do :
34507 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
34508 if test "x$ac_cv_func_log10l" = xyes; then :
34509 cat >>confdefs.h <<_ACEOF
34510 #define HAVE_LOG10L 1
34511 _ACEOF
34514 done
34520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
34521 $as_echo_n "checking for modfl declaration... " >&6; }
34522 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
34523 if ${glibcxx_cv_func_modfl_use+:} false; then :
34524 $as_echo_n "(cached) " >&6
34525 else
34528 ac_ext=cpp
34529 ac_cpp='$CXXCPP $CPPFLAGS'
34530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34535 /* end confdefs.h. */
34536 #include <math.h>
34538 main ()
34540 modfl(0, 0);
34542 return 0;
34544 _ACEOF
34545 if ac_fn_cxx_try_compile "$LINENO"; then :
34546 glibcxx_cv_func_modfl_use=yes
34547 else
34548 glibcxx_cv_func_modfl_use=no
34550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34551 ac_ext=c
34552 ac_cpp='$CPP $CPPFLAGS'
34553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
34562 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
34564 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
34565 for ac_func in modfl
34566 do :
34567 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
34568 if test "x$ac_cv_func_modfl" = xyes; then :
34569 cat >>confdefs.h <<_ACEOF
34570 #define HAVE_MODFL 1
34571 _ACEOF
34574 done
34580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
34581 $as_echo_n "checking for powl declaration... " >&6; }
34582 if test x${glibcxx_cv_func_powl_use+set} != xset; then
34583 if ${glibcxx_cv_func_powl_use+:} false; then :
34584 $as_echo_n "(cached) " >&6
34585 else
34588 ac_ext=cpp
34589 ac_cpp='$CXXCPP $CPPFLAGS'
34590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34595 /* end confdefs.h. */
34596 #include <math.h>
34598 main ()
34600 powl(0, 0);
34602 return 0;
34604 _ACEOF
34605 if ac_fn_cxx_try_compile "$LINENO"; then :
34606 glibcxx_cv_func_powl_use=yes
34607 else
34608 glibcxx_cv_func_powl_use=no
34610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611 ac_ext=c
34612 ac_cpp='$CPP $CPPFLAGS'
34613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
34622 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
34624 if test x$glibcxx_cv_func_powl_use = x"yes"; then
34625 for ac_func in powl
34626 do :
34627 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
34628 if test "x$ac_cv_func_powl" = xyes; then :
34629 cat >>confdefs.h <<_ACEOF
34630 #define HAVE_POWL 1
34631 _ACEOF
34634 done
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
34641 $as_echo_n "checking for sqrtl declaration... " >&6; }
34642 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
34643 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
34644 $as_echo_n "(cached) " >&6
34645 else
34648 ac_ext=cpp
34649 ac_cpp='$CXXCPP $CPPFLAGS'
34650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34655 /* end confdefs.h. */
34656 #include <math.h>
34657 #ifdef HAVE_IEEEFP_H
34658 #include <ieeefp.h>
34659 #endif
34662 main ()
34664 sqrtl(0);
34666 return 0;
34668 _ACEOF
34669 if ac_fn_cxx_try_compile "$LINENO"; then :
34670 glibcxx_cv_func_sqrtl_use=yes
34671 else
34672 glibcxx_cv_func_sqrtl_use=no
34674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34675 ac_ext=c
34676 ac_cpp='$CPP $CPPFLAGS'
34677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
34686 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
34688 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
34689 for ac_func in sqrtl
34690 do :
34691 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
34692 if test "x$ac_cv_func_sqrtl" = xyes; then :
34693 cat >>confdefs.h <<_ACEOF
34694 #define HAVE_SQRTL 1
34695 _ACEOF
34698 done
34704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
34705 $as_echo_n "checking for sincosl declaration... " >&6; }
34706 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
34707 if ${glibcxx_cv_func_sincosl_use+:} false; then :
34708 $as_echo_n "(cached) " >&6
34709 else
34712 ac_ext=cpp
34713 ac_cpp='$CXXCPP $CPPFLAGS'
34714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34719 /* end confdefs.h. */
34720 #include <math.h>
34722 main ()
34724 sincosl(0, 0, 0);
34726 return 0;
34728 _ACEOF
34729 if ac_fn_cxx_try_compile "$LINENO"; then :
34730 glibcxx_cv_func_sincosl_use=yes
34731 else
34732 glibcxx_cv_func_sincosl_use=no
34734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34735 ac_ext=c
34736 ac_cpp='$CPP $CPPFLAGS'
34737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
34746 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
34748 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
34749 for ac_func in sincosl
34750 do :
34751 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
34752 if test "x$ac_cv_func_sincosl" = xyes; then :
34753 cat >>confdefs.h <<_ACEOF
34754 #define HAVE_SINCOSL 1
34755 _ACEOF
34758 done
34764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
34765 $as_echo_n "checking for finitel declaration... " >&6; }
34766 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
34767 if ${glibcxx_cv_func_finitel_use+:} false; then :
34768 $as_echo_n "(cached) " >&6
34769 else
34772 ac_ext=cpp
34773 ac_cpp='$CXXCPP $CPPFLAGS'
34774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34779 /* end confdefs.h. */
34780 #include <math.h>
34781 #ifdef HAVE_IEEEFP_H
34782 #include <ieeefp.h>
34783 #endif
34786 main ()
34788 finitel(0);
34790 return 0;
34792 _ACEOF
34793 if ac_fn_cxx_try_compile "$LINENO"; then :
34794 glibcxx_cv_func_finitel_use=yes
34795 else
34796 glibcxx_cv_func_finitel_use=no
34798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34799 ac_ext=c
34800 ac_cpp='$CPP $CPPFLAGS'
34801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
34810 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
34812 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
34813 for ac_func in finitel
34814 do :
34815 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
34816 if test "x$ac_cv_func_finitel" = xyes; then :
34817 cat >>confdefs.h <<_ACEOF
34818 #define HAVE_FINITEL 1
34819 _ACEOF
34822 done
34827 LIBS="$ac_save_LIBS"
34828 CXXFLAGS="$ac_save_CXXFLAGS"
34831 ac_test_CXXFLAGS="${CXXFLAGS+set}"
34832 ac_save_CXXFLAGS="$CXXFLAGS"
34833 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
34837 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
34838 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
34839 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
34840 $as_echo_n "(cached) " >&6
34841 else
34844 ac_ext=cpp
34845 ac_cpp='$CXXCPP $CPPFLAGS'
34846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34851 /* end confdefs.h. */
34852 #include <stdlib.h>
34854 main ()
34856 at_quick_exit(0);
34858 return 0;
34860 _ACEOF
34861 if ac_fn_cxx_try_compile "$LINENO"; then :
34862 glibcxx_cv_func_at_quick_exit_use=yes
34863 else
34864 glibcxx_cv_func_at_quick_exit_use=no
34866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34867 ac_ext=c
34868 ac_cpp='$CPP $CPPFLAGS'
34869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
34878 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
34879 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
34880 for ac_func in at_quick_exit
34881 do :
34882 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
34883 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
34884 cat >>confdefs.h <<_ACEOF
34885 #define HAVE_AT_QUICK_EXIT 1
34886 _ACEOF
34889 done
34894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
34895 $as_echo_n "checking for quick_exit declaration... " >&6; }
34896 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
34897 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
34898 $as_echo_n "(cached) " >&6
34899 else
34902 ac_ext=cpp
34903 ac_cpp='$CXXCPP $CPPFLAGS'
34904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34909 /* end confdefs.h. */
34910 #include <stdlib.h>
34912 main ()
34914 quick_exit(0);
34916 return 0;
34918 _ACEOF
34919 if ac_fn_cxx_try_compile "$LINENO"; then :
34920 glibcxx_cv_func_quick_exit_use=yes
34921 else
34922 glibcxx_cv_func_quick_exit_use=no
34924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34925 ac_ext=c
34926 ac_cpp='$CPP $CPPFLAGS'
34927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
34936 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
34937 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
34938 for ac_func in quick_exit
34939 do :
34940 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
34941 if test "x$ac_cv_func_quick_exit" = xyes; then :
34942 cat >>confdefs.h <<_ACEOF
34943 #define HAVE_QUICK_EXIT 1
34944 _ACEOF
34947 done
34952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
34953 $as_echo_n "checking for strtold declaration... " >&6; }
34954 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
34955 if ${glibcxx_cv_func_strtold_use+:} false; then :
34956 $as_echo_n "(cached) " >&6
34957 else
34960 ac_ext=cpp
34961 ac_cpp='$CXXCPP $CPPFLAGS'
34962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34967 /* end confdefs.h. */
34968 #include <stdlib.h>
34970 main ()
34972 strtold(0, 0);
34974 return 0;
34976 _ACEOF
34977 if ac_fn_cxx_try_compile "$LINENO"; then :
34978 glibcxx_cv_func_strtold_use=yes
34979 else
34980 glibcxx_cv_func_strtold_use=no
34982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34983 ac_ext=c
34984 ac_cpp='$CPP $CPPFLAGS'
34985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
34994 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
34995 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
34996 for ac_func in strtold
34997 do :
34998 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
34999 if test "x$ac_cv_func_strtold" = xyes; then :
35000 cat >>confdefs.h <<_ACEOF
35001 #define HAVE_STRTOLD 1
35002 _ACEOF
35005 done
35010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
35011 $as_echo_n "checking for strtof declaration... " >&6; }
35012 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
35013 if ${glibcxx_cv_func_strtof_use+:} false; then :
35014 $as_echo_n "(cached) " >&6
35015 else
35018 ac_ext=cpp
35019 ac_cpp='$CXXCPP $CPPFLAGS'
35020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35025 /* end confdefs.h. */
35026 #include <stdlib.h>
35028 main ()
35030 strtof(0, 0);
35032 return 0;
35034 _ACEOF
35035 if ac_fn_cxx_try_compile "$LINENO"; then :
35036 glibcxx_cv_func_strtof_use=yes
35037 else
35038 glibcxx_cv_func_strtof_use=no
35040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35041 ac_ext=c
35042 ac_cpp='$CPP $CPPFLAGS'
35043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
35052 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
35053 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
35054 for ac_func in strtof
35055 do :
35056 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
35057 if test "x$ac_cv_func_strtof" = xyes; then :
35058 cat >>confdefs.h <<_ACEOF
35059 #define HAVE_STRTOF 1
35060 _ACEOF
35063 done
35068 CXXFLAGS="$ac_save_CXXFLAGS"
35070 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
35072 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
35074 # We don't yet support AIX's TLS ABI.
35075 #GCC_CHECK_TLS
35078 $as_echo "#define HAVE_USELOCALE 1" >>confdefs.h
35082 *-darwin*)
35083 # Darwin versions vary, but the linker should work in a cross environment,
35084 # so we just check for all the features here.
35085 # Check for available headers.
35087 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
35089 ac_test_CXXFLAGS="${CXXFLAGS+set}"
35090 ac_save_CXXFLAGS="$CXXFLAGS"
35091 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
35094 $as_echo_n "checking for sin in -lm... " >&6; }
35095 if ${ac_cv_lib_m_sin+:} false; then :
35096 $as_echo_n "(cached) " >&6
35097 else
35098 ac_check_lib_save_LIBS=$LIBS
35099 LIBS="-lm $LIBS"
35100 if test x$gcc_no_link = xyes; then
35101 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
35103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35104 /* end confdefs.h. */
35106 /* Override any GCC internal prototype to avoid an error.
35107 Use char because int might match the return type of a GCC
35108 builtin and then its argument prototype would still apply. */
35109 #ifdef __cplusplus
35110 extern "C"
35111 #endif
35112 char sin ();
35114 main ()
35116 return sin ();
35118 return 0;
35120 _ACEOF
35121 if ac_fn_c_try_link "$LINENO"; then :
35122 ac_cv_lib_m_sin=yes
35123 else
35124 ac_cv_lib_m_sin=no
35126 rm -f core conftest.err conftest.$ac_objext \
35127 conftest$ac_exeext conftest.$ac_ext
35128 LIBS=$ac_check_lib_save_LIBS
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
35131 $as_echo "$ac_cv_lib_m_sin" >&6; }
35132 if test "x$ac_cv_lib_m_sin" = xyes; then :
35133 libm="-lm"
35136 ac_save_LIBS="$LIBS"
35137 LIBS="$LIBS $libm"
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
35142 $as_echo_n "checking for isinf declaration... " >&6; }
35143 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
35144 if ${glibcxx_cv_func_isinf_use+:} false; then :
35145 $as_echo_n "(cached) " >&6
35146 else
35149 ac_ext=cpp
35150 ac_cpp='$CXXCPP $CPPFLAGS'
35151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35156 /* end confdefs.h. */
35157 #include <math.h>
35158 #ifdef HAVE_IEEEFP_H
35159 #include <ieeefp.h>
35160 #endif
35163 main ()
35165 isinf(0);
35167 return 0;
35169 _ACEOF
35170 if ac_fn_cxx_try_compile "$LINENO"; then :
35171 glibcxx_cv_func_isinf_use=yes
35172 else
35173 glibcxx_cv_func_isinf_use=no
35175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35176 ac_ext=c
35177 ac_cpp='$CPP $CPPFLAGS'
35178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
35187 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
35189 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
35190 for ac_func in isinf
35191 do :
35192 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
35193 if test "x$ac_cv_func_isinf" = xyes; then :
35194 cat >>confdefs.h <<_ACEOF
35195 #define HAVE_ISINF 1
35196 _ACEOF
35199 done
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
35206 $as_echo_n "checking for isnan declaration... " >&6; }
35207 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
35208 if ${glibcxx_cv_func_isnan_use+:} false; then :
35209 $as_echo_n "(cached) " >&6
35210 else
35213 ac_ext=cpp
35214 ac_cpp='$CXXCPP $CPPFLAGS'
35215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35220 /* end confdefs.h. */
35221 #include <math.h>
35222 #ifdef HAVE_IEEEFP_H
35223 #include <ieeefp.h>
35224 #endif
35227 main ()
35229 isnan(0);
35231 return 0;
35233 _ACEOF
35234 if ac_fn_cxx_try_compile "$LINENO"; then :
35235 glibcxx_cv_func_isnan_use=yes
35236 else
35237 glibcxx_cv_func_isnan_use=no
35239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35240 ac_ext=c
35241 ac_cpp='$CPP $CPPFLAGS'
35242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
35251 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
35253 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
35254 for ac_func in isnan
35255 do :
35256 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
35257 if test "x$ac_cv_func_isnan" = xyes; then :
35258 cat >>confdefs.h <<_ACEOF
35259 #define HAVE_ISNAN 1
35260 _ACEOF
35263 done
35269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
35270 $as_echo_n "checking for finite declaration... " >&6; }
35271 if test x${glibcxx_cv_func_finite_use+set} != xset; then
35272 if ${glibcxx_cv_func_finite_use+:} false; then :
35273 $as_echo_n "(cached) " >&6
35274 else
35277 ac_ext=cpp
35278 ac_cpp='$CXXCPP $CPPFLAGS'
35279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35284 /* end confdefs.h. */
35285 #include <math.h>
35286 #ifdef HAVE_IEEEFP_H
35287 #include <ieeefp.h>
35288 #endif
35291 main ()
35293 finite(0);
35295 return 0;
35297 _ACEOF
35298 if ac_fn_cxx_try_compile "$LINENO"; then :
35299 glibcxx_cv_func_finite_use=yes
35300 else
35301 glibcxx_cv_func_finite_use=no
35303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35304 ac_ext=c
35305 ac_cpp='$CPP $CPPFLAGS'
35306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
35315 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
35317 if test x$glibcxx_cv_func_finite_use = x"yes"; then
35318 for ac_func in finite
35319 do :
35320 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
35321 if test "x$ac_cv_func_finite" = xyes; then :
35322 cat >>confdefs.h <<_ACEOF
35323 #define HAVE_FINITE 1
35324 _ACEOF
35327 done
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
35334 $as_echo_n "checking for sincos declaration... " >&6; }
35335 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
35336 if ${glibcxx_cv_func_sincos_use+:} false; then :
35337 $as_echo_n "(cached) " >&6
35338 else
35341 ac_ext=cpp
35342 ac_cpp='$CXXCPP $CPPFLAGS'
35343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35348 /* end confdefs.h. */
35349 #include <math.h>
35351 main ()
35353 sincos(0, 0, 0);
35355 return 0;
35357 _ACEOF
35358 if ac_fn_cxx_try_compile "$LINENO"; then :
35359 glibcxx_cv_func_sincos_use=yes
35360 else
35361 glibcxx_cv_func_sincos_use=no
35363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35364 ac_ext=c
35365 ac_cpp='$CPP $CPPFLAGS'
35366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
35375 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
35377 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
35378 for ac_func in sincos
35379 do :
35380 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
35381 if test "x$ac_cv_func_sincos" = xyes; then :
35382 cat >>confdefs.h <<_ACEOF
35383 #define HAVE_SINCOS 1
35384 _ACEOF
35387 done
35393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
35394 $as_echo_n "checking for fpclass declaration... " >&6; }
35395 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
35396 if ${glibcxx_cv_func_fpclass_use+:} false; then :
35397 $as_echo_n "(cached) " >&6
35398 else
35401 ac_ext=cpp
35402 ac_cpp='$CXXCPP $CPPFLAGS'
35403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35408 /* end confdefs.h. */
35409 #include <math.h>
35410 #ifdef HAVE_IEEEFP_H
35411 #include <ieeefp.h>
35412 #endif
35415 main ()
35417 fpclass(0);
35419 return 0;
35421 _ACEOF
35422 if ac_fn_cxx_try_compile "$LINENO"; then :
35423 glibcxx_cv_func_fpclass_use=yes
35424 else
35425 glibcxx_cv_func_fpclass_use=no
35427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35428 ac_ext=c
35429 ac_cpp='$CPP $CPPFLAGS'
35430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
35439 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
35441 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
35442 for ac_func in fpclass
35443 do :
35444 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
35445 if test "x$ac_cv_func_fpclass" = xyes; then :
35446 cat >>confdefs.h <<_ACEOF
35447 #define HAVE_FPCLASS 1
35448 _ACEOF
35451 done
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
35458 $as_echo_n "checking for qfpclass declaration... " >&6; }
35459 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
35460 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
35461 $as_echo_n "(cached) " >&6
35462 else
35465 ac_ext=cpp
35466 ac_cpp='$CXXCPP $CPPFLAGS'
35467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35472 /* end confdefs.h. */
35473 #include <math.h>
35474 #ifdef HAVE_IEEEFP_H
35475 #include <ieeefp.h>
35476 #endif
35479 main ()
35481 qfpclass(0);
35483 return 0;
35485 _ACEOF
35486 if ac_fn_cxx_try_compile "$LINENO"; then :
35487 glibcxx_cv_func_qfpclass_use=yes
35488 else
35489 glibcxx_cv_func_qfpclass_use=no
35491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 ac_ext=c
35493 ac_cpp='$CPP $CPPFLAGS'
35494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
35503 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
35505 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
35506 for ac_func in qfpclass
35507 do :
35508 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
35509 if test "x$ac_cv_func_qfpclass" = xyes; then :
35510 cat >>confdefs.h <<_ACEOF
35511 #define HAVE_QFPCLASS 1
35512 _ACEOF
35515 done
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
35522 $as_echo_n "checking for hypot declaration... " >&6; }
35523 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
35524 if ${glibcxx_cv_func_hypot_use+:} false; then :
35525 $as_echo_n "(cached) " >&6
35526 else
35529 ac_ext=cpp
35530 ac_cpp='$CXXCPP $CPPFLAGS'
35531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35536 /* end confdefs.h. */
35537 #include <math.h>
35539 main ()
35541 hypot(0, 0);
35543 return 0;
35545 _ACEOF
35546 if ac_fn_cxx_try_compile "$LINENO"; then :
35547 glibcxx_cv_func_hypot_use=yes
35548 else
35549 glibcxx_cv_func_hypot_use=no
35551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35552 ac_ext=c
35553 ac_cpp='$CPP $CPPFLAGS'
35554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
35563 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
35565 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
35566 for ac_func in hypot
35567 do :
35568 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
35569 if test "x$ac_cv_func_hypot" = xyes; then :
35570 cat >>confdefs.h <<_ACEOF
35571 #define HAVE_HYPOT 1
35572 _ACEOF
35575 done
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
35582 $as_echo_n "checking for float trig functions... " >&6; }
35583 if ${glibcxx_cv_func_float_trig_use+:} false; then :
35584 $as_echo_n "(cached) " >&6
35585 else
35588 ac_ext=cpp
35589 ac_cpp='$CXXCPP $CPPFLAGS'
35590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35595 /* end confdefs.h. */
35596 #include <math.h>
35598 main ()
35600 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
35602 return 0;
35604 _ACEOF
35605 if ac_fn_cxx_try_compile "$LINENO"; then :
35606 glibcxx_cv_func_float_trig_use=yes
35607 else
35608 glibcxx_cv_func_float_trig_use=no
35610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35611 ac_ext=c
35612 ac_cpp='$CPP $CPPFLAGS'
35613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
35620 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
35621 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
35622 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
35623 do :
35624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35627 cat >>confdefs.h <<_ACEOF
35628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35629 _ACEOF
35632 done
35638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
35639 $as_echo_n "checking for float round functions... " >&6; }
35640 if ${glibcxx_cv_func_float_round_use+:} false; then :
35641 $as_echo_n "(cached) " >&6
35642 else
35645 ac_ext=cpp
35646 ac_cpp='$CXXCPP $CPPFLAGS'
35647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35652 /* end confdefs.h. */
35653 #include <math.h>
35655 main ()
35657 ceilf (0); floorf (0);
35659 return 0;
35661 _ACEOF
35662 if ac_fn_cxx_try_compile "$LINENO"; then :
35663 glibcxx_cv_func_float_round_use=yes
35664 else
35665 glibcxx_cv_func_float_round_use=no
35667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35668 ac_ext=c
35669 ac_cpp='$CPP $CPPFLAGS'
35670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
35677 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
35678 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
35679 for ac_func in ceilf floorf
35680 do :
35681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35684 cat >>confdefs.h <<_ACEOF
35685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35686 _ACEOF
35689 done
35696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
35697 $as_echo_n "checking for expf declaration... " >&6; }
35698 if test x${glibcxx_cv_func_expf_use+set} != xset; then
35699 if ${glibcxx_cv_func_expf_use+:} false; then :
35700 $as_echo_n "(cached) " >&6
35701 else
35704 ac_ext=cpp
35705 ac_cpp='$CXXCPP $CPPFLAGS'
35706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35711 /* end confdefs.h. */
35712 #include <math.h>
35713 #ifdef HAVE_IEEEFP_H
35714 #include <ieeefp.h>
35715 #endif
35718 main ()
35720 expf(0);
35722 return 0;
35724 _ACEOF
35725 if ac_fn_cxx_try_compile "$LINENO"; then :
35726 glibcxx_cv_func_expf_use=yes
35727 else
35728 glibcxx_cv_func_expf_use=no
35730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35731 ac_ext=c
35732 ac_cpp='$CPP $CPPFLAGS'
35733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
35742 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
35744 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35745 for ac_func in expf
35746 do :
35747 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
35748 if test "x$ac_cv_func_expf" = xyes; then :
35749 cat >>confdefs.h <<_ACEOF
35750 #define HAVE_EXPF 1
35751 _ACEOF
35754 done
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
35761 $as_echo_n "checking for isnanf declaration... " >&6; }
35762 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35763 if ${glibcxx_cv_func_isnanf_use+:} false; then :
35764 $as_echo_n "(cached) " >&6
35765 else
35768 ac_ext=cpp
35769 ac_cpp='$CXXCPP $CPPFLAGS'
35770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35775 /* end confdefs.h. */
35776 #include <math.h>
35777 #ifdef HAVE_IEEEFP_H
35778 #include <ieeefp.h>
35779 #endif
35782 main ()
35784 isnanf(0);
35786 return 0;
35788 _ACEOF
35789 if ac_fn_cxx_try_compile "$LINENO"; then :
35790 glibcxx_cv_func_isnanf_use=yes
35791 else
35792 glibcxx_cv_func_isnanf_use=no
35794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35795 ac_ext=c
35796 ac_cpp='$CPP $CPPFLAGS'
35797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
35806 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
35808 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35809 for ac_func in isnanf
35810 do :
35811 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
35812 if test "x$ac_cv_func_isnanf" = xyes; then :
35813 cat >>confdefs.h <<_ACEOF
35814 #define HAVE_ISNANF 1
35815 _ACEOF
35818 done
35824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
35825 $as_echo_n "checking for isinff declaration... " >&6; }
35826 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35827 if ${glibcxx_cv_func_isinff_use+:} false; then :
35828 $as_echo_n "(cached) " >&6
35829 else
35832 ac_ext=cpp
35833 ac_cpp='$CXXCPP $CPPFLAGS'
35834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35839 /* end confdefs.h. */
35840 #include <math.h>
35841 #ifdef HAVE_IEEEFP_H
35842 #include <ieeefp.h>
35843 #endif
35846 main ()
35848 isinff(0);
35850 return 0;
35852 _ACEOF
35853 if ac_fn_cxx_try_compile "$LINENO"; then :
35854 glibcxx_cv_func_isinff_use=yes
35855 else
35856 glibcxx_cv_func_isinff_use=no
35858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35859 ac_ext=c
35860 ac_cpp='$CPP $CPPFLAGS'
35861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
35870 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
35872 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35873 for ac_func in isinff
35874 do :
35875 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
35876 if test "x$ac_cv_func_isinff" = xyes; then :
35877 cat >>confdefs.h <<_ACEOF
35878 #define HAVE_ISINFF 1
35879 _ACEOF
35882 done
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
35889 $as_echo_n "checking for atan2f declaration... " >&6; }
35890 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
35891 if ${glibcxx_cv_func_atan2f_use+:} false; then :
35892 $as_echo_n "(cached) " >&6
35893 else
35896 ac_ext=cpp
35897 ac_cpp='$CXXCPP $CPPFLAGS'
35898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35903 /* end confdefs.h. */
35904 #include <math.h>
35906 main ()
35908 atan2f(0, 0);
35910 return 0;
35912 _ACEOF
35913 if ac_fn_cxx_try_compile "$LINENO"; then :
35914 glibcxx_cv_func_atan2f_use=yes
35915 else
35916 glibcxx_cv_func_atan2f_use=no
35918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35919 ac_ext=c
35920 ac_cpp='$CPP $CPPFLAGS'
35921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
35930 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
35932 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
35933 for ac_func in atan2f
35934 do :
35935 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
35936 if test "x$ac_cv_func_atan2f" = xyes; then :
35937 cat >>confdefs.h <<_ACEOF
35938 #define HAVE_ATAN2F 1
35939 _ACEOF
35942 done
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
35949 $as_echo_n "checking for fabsf declaration... " >&6; }
35950 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
35951 if ${glibcxx_cv_func_fabsf_use+:} false; then :
35952 $as_echo_n "(cached) " >&6
35953 else
35956 ac_ext=cpp
35957 ac_cpp='$CXXCPP $CPPFLAGS'
35958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35963 /* end confdefs.h. */
35964 #include <math.h>
35965 #ifdef HAVE_IEEEFP_H
35966 #include <ieeefp.h>
35967 #endif
35970 main ()
35972 fabsf(0);
35974 return 0;
35976 _ACEOF
35977 if ac_fn_cxx_try_compile "$LINENO"; then :
35978 glibcxx_cv_func_fabsf_use=yes
35979 else
35980 glibcxx_cv_func_fabsf_use=no
35982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35983 ac_ext=c
35984 ac_cpp='$CPP $CPPFLAGS'
35985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
35994 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
35996 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
35997 for ac_func in fabsf
35998 do :
35999 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
36000 if test "x$ac_cv_func_fabsf" = xyes; then :
36001 cat >>confdefs.h <<_ACEOF
36002 #define HAVE_FABSF 1
36003 _ACEOF
36006 done
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
36013 $as_echo_n "checking for fmodf declaration... " >&6; }
36014 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36015 if ${glibcxx_cv_func_fmodf_use+:} false; then :
36016 $as_echo_n "(cached) " >&6
36017 else
36020 ac_ext=cpp
36021 ac_cpp='$CXXCPP $CPPFLAGS'
36022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36027 /* end confdefs.h. */
36028 #include <math.h>
36030 main ()
36032 fmodf(0, 0);
36034 return 0;
36036 _ACEOF
36037 if ac_fn_cxx_try_compile "$LINENO"; then :
36038 glibcxx_cv_func_fmodf_use=yes
36039 else
36040 glibcxx_cv_func_fmodf_use=no
36042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36043 ac_ext=c
36044 ac_cpp='$CPP $CPPFLAGS'
36045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
36054 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
36056 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36057 for ac_func in fmodf
36058 do :
36059 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
36060 if test "x$ac_cv_func_fmodf" = xyes; then :
36061 cat >>confdefs.h <<_ACEOF
36062 #define HAVE_FMODF 1
36063 _ACEOF
36066 done
36072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
36073 $as_echo_n "checking for frexpf declaration... " >&6; }
36074 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
36075 if ${glibcxx_cv_func_frexpf_use+:} false; then :
36076 $as_echo_n "(cached) " >&6
36077 else
36080 ac_ext=cpp
36081 ac_cpp='$CXXCPP $CPPFLAGS'
36082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36087 /* end confdefs.h. */
36088 #include <math.h>
36090 main ()
36092 frexpf(0, 0);
36094 return 0;
36096 _ACEOF
36097 if ac_fn_cxx_try_compile "$LINENO"; then :
36098 glibcxx_cv_func_frexpf_use=yes
36099 else
36100 glibcxx_cv_func_frexpf_use=no
36102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36103 ac_ext=c
36104 ac_cpp='$CPP $CPPFLAGS'
36105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
36114 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
36116 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
36117 for ac_func in frexpf
36118 do :
36119 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
36120 if test "x$ac_cv_func_frexpf" = xyes; then :
36121 cat >>confdefs.h <<_ACEOF
36122 #define HAVE_FREXPF 1
36123 _ACEOF
36126 done
36132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
36133 $as_echo_n "checking for hypotf declaration... " >&6; }
36134 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
36135 if ${glibcxx_cv_func_hypotf_use+:} false; then :
36136 $as_echo_n "(cached) " >&6
36137 else
36140 ac_ext=cpp
36141 ac_cpp='$CXXCPP $CPPFLAGS'
36142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36147 /* end confdefs.h. */
36148 #include <math.h>
36150 main ()
36152 hypotf(0, 0);
36154 return 0;
36156 _ACEOF
36157 if ac_fn_cxx_try_compile "$LINENO"; then :
36158 glibcxx_cv_func_hypotf_use=yes
36159 else
36160 glibcxx_cv_func_hypotf_use=no
36162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36163 ac_ext=c
36164 ac_cpp='$CPP $CPPFLAGS'
36165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
36174 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
36176 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
36177 for ac_func in hypotf
36178 do :
36179 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
36180 if test "x$ac_cv_func_hypotf" = xyes; then :
36181 cat >>confdefs.h <<_ACEOF
36182 #define HAVE_HYPOTF 1
36183 _ACEOF
36186 done
36192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
36193 $as_echo_n "checking for ldexpf declaration... " >&6; }
36194 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
36195 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
36196 $as_echo_n "(cached) " >&6
36197 else
36200 ac_ext=cpp
36201 ac_cpp='$CXXCPP $CPPFLAGS'
36202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36207 /* end confdefs.h. */
36208 #include <math.h>
36210 main ()
36212 ldexpf(0, 0);
36214 return 0;
36216 _ACEOF
36217 if ac_fn_cxx_try_compile "$LINENO"; then :
36218 glibcxx_cv_func_ldexpf_use=yes
36219 else
36220 glibcxx_cv_func_ldexpf_use=no
36222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36223 ac_ext=c
36224 ac_cpp='$CPP $CPPFLAGS'
36225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
36234 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
36236 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
36237 for ac_func in ldexpf
36238 do :
36239 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
36240 if test "x$ac_cv_func_ldexpf" = xyes; then :
36241 cat >>confdefs.h <<_ACEOF
36242 #define HAVE_LDEXPF 1
36243 _ACEOF
36246 done
36252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
36253 $as_echo_n "checking for logf declaration... " >&6; }
36254 if test x${glibcxx_cv_func_logf_use+set} != xset; then
36255 if ${glibcxx_cv_func_logf_use+:} false; then :
36256 $as_echo_n "(cached) " >&6
36257 else
36260 ac_ext=cpp
36261 ac_cpp='$CXXCPP $CPPFLAGS'
36262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36267 /* end confdefs.h. */
36268 #include <math.h>
36269 #ifdef HAVE_IEEEFP_H
36270 #include <ieeefp.h>
36271 #endif
36274 main ()
36276 logf(0);
36278 return 0;
36280 _ACEOF
36281 if ac_fn_cxx_try_compile "$LINENO"; then :
36282 glibcxx_cv_func_logf_use=yes
36283 else
36284 glibcxx_cv_func_logf_use=no
36286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36287 ac_ext=c
36288 ac_cpp='$CPP $CPPFLAGS'
36289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
36298 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
36300 if test x$glibcxx_cv_func_logf_use = x"yes"; then
36301 for ac_func in logf
36302 do :
36303 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
36304 if test "x$ac_cv_func_logf" = xyes; then :
36305 cat >>confdefs.h <<_ACEOF
36306 #define HAVE_LOGF 1
36307 _ACEOF
36310 done
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
36317 $as_echo_n "checking for log10f declaration... " >&6; }
36318 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
36319 if ${glibcxx_cv_func_log10f_use+:} false; then :
36320 $as_echo_n "(cached) " >&6
36321 else
36324 ac_ext=cpp
36325 ac_cpp='$CXXCPP $CPPFLAGS'
36326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36331 /* end confdefs.h. */
36332 #include <math.h>
36333 #ifdef HAVE_IEEEFP_H
36334 #include <ieeefp.h>
36335 #endif
36338 main ()
36340 log10f(0);
36342 return 0;
36344 _ACEOF
36345 if ac_fn_cxx_try_compile "$LINENO"; then :
36346 glibcxx_cv_func_log10f_use=yes
36347 else
36348 glibcxx_cv_func_log10f_use=no
36350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351 ac_ext=c
36352 ac_cpp='$CPP $CPPFLAGS'
36353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
36362 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
36364 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
36365 for ac_func in log10f
36366 do :
36367 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
36368 if test "x$ac_cv_func_log10f" = xyes; then :
36369 cat >>confdefs.h <<_ACEOF
36370 #define HAVE_LOG10F 1
36371 _ACEOF
36374 done
36380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
36381 $as_echo_n "checking for modff declaration... " >&6; }
36382 if test x${glibcxx_cv_func_modff_use+set} != xset; then
36383 if ${glibcxx_cv_func_modff_use+:} false; then :
36384 $as_echo_n "(cached) " >&6
36385 else
36388 ac_ext=cpp
36389 ac_cpp='$CXXCPP $CPPFLAGS'
36390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36395 /* end confdefs.h. */
36396 #include <math.h>
36398 main ()
36400 modff(0, 0);
36402 return 0;
36404 _ACEOF
36405 if ac_fn_cxx_try_compile "$LINENO"; then :
36406 glibcxx_cv_func_modff_use=yes
36407 else
36408 glibcxx_cv_func_modff_use=no
36410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36411 ac_ext=c
36412 ac_cpp='$CPP $CPPFLAGS'
36413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
36422 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
36424 if test x$glibcxx_cv_func_modff_use = x"yes"; then
36425 for ac_func in modff
36426 do :
36427 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
36428 if test "x$ac_cv_func_modff" = xyes; then :
36429 cat >>confdefs.h <<_ACEOF
36430 #define HAVE_MODFF 1
36431 _ACEOF
36434 done
36440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
36441 $as_echo_n "checking for modf declaration... " >&6; }
36442 if test x${glibcxx_cv_func_modf_use+set} != xset; then
36443 if ${glibcxx_cv_func_modf_use+:} false; then :
36444 $as_echo_n "(cached) " >&6
36445 else
36448 ac_ext=cpp
36449 ac_cpp='$CXXCPP $CPPFLAGS'
36450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36455 /* end confdefs.h. */
36456 #include <math.h>
36458 main ()
36460 modf(0, 0);
36462 return 0;
36464 _ACEOF
36465 if ac_fn_cxx_try_compile "$LINENO"; then :
36466 glibcxx_cv_func_modf_use=yes
36467 else
36468 glibcxx_cv_func_modf_use=no
36470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36471 ac_ext=c
36472 ac_cpp='$CPP $CPPFLAGS'
36473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
36482 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
36484 if test x$glibcxx_cv_func_modf_use = x"yes"; then
36485 for ac_func in modf
36486 do :
36487 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
36488 if test "x$ac_cv_func_modf" = xyes; then :
36489 cat >>confdefs.h <<_ACEOF
36490 #define HAVE_MODF 1
36491 _ACEOF
36494 done
36500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
36501 $as_echo_n "checking for powf declaration... " >&6; }
36502 if test x${glibcxx_cv_func_powf_use+set} != xset; then
36503 if ${glibcxx_cv_func_powf_use+:} false; then :
36504 $as_echo_n "(cached) " >&6
36505 else
36508 ac_ext=cpp
36509 ac_cpp='$CXXCPP $CPPFLAGS'
36510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36515 /* end confdefs.h. */
36516 #include <math.h>
36518 main ()
36520 powf(0, 0);
36522 return 0;
36524 _ACEOF
36525 if ac_fn_cxx_try_compile "$LINENO"; then :
36526 glibcxx_cv_func_powf_use=yes
36527 else
36528 glibcxx_cv_func_powf_use=no
36530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36531 ac_ext=c
36532 ac_cpp='$CPP $CPPFLAGS'
36533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
36542 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
36544 if test x$glibcxx_cv_func_powf_use = x"yes"; then
36545 for ac_func in powf
36546 do :
36547 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
36548 if test "x$ac_cv_func_powf" = xyes; then :
36549 cat >>confdefs.h <<_ACEOF
36550 #define HAVE_POWF 1
36551 _ACEOF
36554 done
36560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
36561 $as_echo_n "checking for sqrtf declaration... " >&6; }
36562 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
36563 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
36564 $as_echo_n "(cached) " >&6
36565 else
36568 ac_ext=cpp
36569 ac_cpp='$CXXCPP $CPPFLAGS'
36570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36575 /* end confdefs.h. */
36576 #include <math.h>
36577 #ifdef HAVE_IEEEFP_H
36578 #include <ieeefp.h>
36579 #endif
36582 main ()
36584 sqrtf(0);
36586 return 0;
36588 _ACEOF
36589 if ac_fn_cxx_try_compile "$LINENO"; then :
36590 glibcxx_cv_func_sqrtf_use=yes
36591 else
36592 glibcxx_cv_func_sqrtf_use=no
36594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36595 ac_ext=c
36596 ac_cpp='$CPP $CPPFLAGS'
36597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
36606 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
36608 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
36609 for ac_func in sqrtf
36610 do :
36611 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
36612 if test "x$ac_cv_func_sqrtf" = xyes; then :
36613 cat >>confdefs.h <<_ACEOF
36614 #define HAVE_SQRTF 1
36615 _ACEOF
36618 done
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
36625 $as_echo_n "checking for sincosf declaration... " >&6; }
36626 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
36627 if ${glibcxx_cv_func_sincosf_use+:} false; then :
36628 $as_echo_n "(cached) " >&6
36629 else
36632 ac_ext=cpp
36633 ac_cpp='$CXXCPP $CPPFLAGS'
36634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36639 /* end confdefs.h. */
36640 #include <math.h>
36642 main ()
36644 sincosf(0, 0, 0);
36646 return 0;
36648 _ACEOF
36649 if ac_fn_cxx_try_compile "$LINENO"; then :
36650 glibcxx_cv_func_sincosf_use=yes
36651 else
36652 glibcxx_cv_func_sincosf_use=no
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655 ac_ext=c
36656 ac_cpp='$CPP $CPPFLAGS'
36657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
36666 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
36668 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
36669 for ac_func in sincosf
36670 do :
36671 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
36672 if test "x$ac_cv_func_sincosf" = xyes; then :
36673 cat >>confdefs.h <<_ACEOF
36674 #define HAVE_SINCOSF 1
36675 _ACEOF
36678 done
36684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
36685 $as_echo_n "checking for finitef declaration... " >&6; }
36686 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
36687 if ${glibcxx_cv_func_finitef_use+:} false; then :
36688 $as_echo_n "(cached) " >&6
36689 else
36692 ac_ext=cpp
36693 ac_cpp='$CXXCPP $CPPFLAGS'
36694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h. */
36700 #include <math.h>
36701 #ifdef HAVE_IEEEFP_H
36702 #include <ieeefp.h>
36703 #endif
36706 main ()
36708 finitef(0);
36710 return 0;
36712 _ACEOF
36713 if ac_fn_cxx_try_compile "$LINENO"; then :
36714 glibcxx_cv_func_finitef_use=yes
36715 else
36716 glibcxx_cv_func_finitef_use=no
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36719 ac_ext=c
36720 ac_cpp='$CPP $CPPFLAGS'
36721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
36730 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
36732 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
36733 for ac_func in finitef
36734 do :
36735 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
36736 if test "x$ac_cv_func_finitef" = xyes; then :
36737 cat >>confdefs.h <<_ACEOF
36738 #define HAVE_FINITEF 1
36739 _ACEOF
36742 done
36748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
36749 $as_echo_n "checking for long double trig functions... " >&6; }
36750 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
36751 $as_echo_n "(cached) " >&6
36752 else
36755 ac_ext=cpp
36756 ac_cpp='$CXXCPP $CPPFLAGS'
36757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36762 /* end confdefs.h. */
36763 #include <math.h>
36765 main ()
36767 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
36769 return 0;
36771 _ACEOF
36772 if ac_fn_cxx_try_compile "$LINENO"; then :
36773 glibcxx_cv_func_long_double_trig_use=yes
36774 else
36775 glibcxx_cv_func_long_double_trig_use=no
36777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36778 ac_ext=c
36779 ac_cpp='$CPP $CPPFLAGS'
36780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
36787 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
36788 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
36789 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
36790 do :
36791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36794 cat >>confdefs.h <<_ACEOF
36795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36796 _ACEOF
36799 done
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
36806 $as_echo_n "checking for long double round functions... " >&6; }
36807 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
36808 $as_echo_n "(cached) " >&6
36809 else
36812 ac_ext=cpp
36813 ac_cpp='$CXXCPP $CPPFLAGS'
36814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36819 /* end confdefs.h. */
36820 #include <math.h>
36822 main ()
36824 ceill (0); floorl (0);
36826 return 0;
36828 _ACEOF
36829 if ac_fn_cxx_try_compile "$LINENO"; then :
36830 glibcxx_cv_func_long_double_round_use=yes
36831 else
36832 glibcxx_cv_func_long_double_round_use=no
36834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36835 ac_ext=c
36836 ac_cpp='$CPP $CPPFLAGS'
36837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
36844 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
36845 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36846 for ac_func in ceill floorl
36847 do :
36848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36851 cat >>confdefs.h <<_ACEOF
36852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36853 _ACEOF
36856 done
36863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
36864 $as_echo_n "checking for isnanl declaration... " >&6; }
36865 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36866 if ${glibcxx_cv_func_isnanl_use+:} false; then :
36867 $as_echo_n "(cached) " >&6
36868 else
36871 ac_ext=cpp
36872 ac_cpp='$CXXCPP $CPPFLAGS'
36873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36878 /* end confdefs.h. */
36879 #include <math.h>
36880 #ifdef HAVE_IEEEFP_H
36881 #include <ieeefp.h>
36882 #endif
36885 main ()
36887 isnanl(0);
36889 return 0;
36891 _ACEOF
36892 if ac_fn_cxx_try_compile "$LINENO"; then :
36893 glibcxx_cv_func_isnanl_use=yes
36894 else
36895 glibcxx_cv_func_isnanl_use=no
36897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36898 ac_ext=c
36899 ac_cpp='$CPP $CPPFLAGS'
36900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
36909 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
36911 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36912 for ac_func in isnanl
36913 do :
36914 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
36915 if test "x$ac_cv_func_isnanl" = xyes; then :
36916 cat >>confdefs.h <<_ACEOF
36917 #define HAVE_ISNANL 1
36918 _ACEOF
36921 done
36927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
36928 $as_echo_n "checking for isinfl declaration... " >&6; }
36929 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36930 if ${glibcxx_cv_func_isinfl_use+:} false; then :
36931 $as_echo_n "(cached) " >&6
36932 else
36935 ac_ext=cpp
36936 ac_cpp='$CXXCPP $CPPFLAGS'
36937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36942 /* end confdefs.h. */
36943 #include <math.h>
36944 #ifdef HAVE_IEEEFP_H
36945 #include <ieeefp.h>
36946 #endif
36949 main ()
36951 isinfl(0);
36953 return 0;
36955 _ACEOF
36956 if ac_fn_cxx_try_compile "$LINENO"; then :
36957 glibcxx_cv_func_isinfl_use=yes
36958 else
36959 glibcxx_cv_func_isinfl_use=no
36961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36962 ac_ext=c
36963 ac_cpp='$CPP $CPPFLAGS'
36964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
36973 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
36975 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36976 for ac_func in isinfl
36977 do :
36978 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
36979 if test "x$ac_cv_func_isinfl" = xyes; then :
36980 cat >>confdefs.h <<_ACEOF
36981 #define HAVE_ISINFL 1
36982 _ACEOF
36985 done
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
36992 $as_echo_n "checking for atan2l declaration... " >&6; }
36993 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
36994 if ${glibcxx_cv_func_atan2l_use+:} false; then :
36995 $as_echo_n "(cached) " >&6
36996 else
36999 ac_ext=cpp
37000 ac_cpp='$CXXCPP $CPPFLAGS'
37001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37006 /* end confdefs.h. */
37007 #include <math.h>
37009 main ()
37011 atan2l(0, 0);
37013 return 0;
37015 _ACEOF
37016 if ac_fn_cxx_try_compile "$LINENO"; then :
37017 glibcxx_cv_func_atan2l_use=yes
37018 else
37019 glibcxx_cv_func_atan2l_use=no
37021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37022 ac_ext=c
37023 ac_cpp='$CPP $CPPFLAGS'
37024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
37033 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
37035 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37036 for ac_func in atan2l
37037 do :
37038 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
37039 if test "x$ac_cv_func_atan2l" = xyes; then :
37040 cat >>confdefs.h <<_ACEOF
37041 #define HAVE_ATAN2L 1
37042 _ACEOF
37045 done
37051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
37052 $as_echo_n "checking for expl declaration... " >&6; }
37053 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37054 if ${glibcxx_cv_func_expl_use+:} false; then :
37055 $as_echo_n "(cached) " >&6
37056 else
37059 ac_ext=cpp
37060 ac_cpp='$CXXCPP $CPPFLAGS'
37061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37066 /* end confdefs.h. */
37067 #include <math.h>
37068 #ifdef HAVE_IEEEFP_H
37069 #include <ieeefp.h>
37070 #endif
37073 main ()
37075 expl(0);
37077 return 0;
37079 _ACEOF
37080 if ac_fn_cxx_try_compile "$LINENO"; then :
37081 glibcxx_cv_func_expl_use=yes
37082 else
37083 glibcxx_cv_func_expl_use=no
37085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37086 ac_ext=c
37087 ac_cpp='$CPP $CPPFLAGS'
37088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
37097 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
37099 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37100 for ac_func in expl
37101 do :
37102 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
37103 if test "x$ac_cv_func_expl" = xyes; then :
37104 cat >>confdefs.h <<_ACEOF
37105 #define HAVE_EXPL 1
37106 _ACEOF
37109 done
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
37116 $as_echo_n "checking for fabsl declaration... " >&6; }
37117 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37118 if ${glibcxx_cv_func_fabsl_use+:} false; then :
37119 $as_echo_n "(cached) " >&6
37120 else
37123 ac_ext=cpp
37124 ac_cpp='$CXXCPP $CPPFLAGS'
37125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37130 /* end confdefs.h. */
37131 #include <math.h>
37132 #ifdef HAVE_IEEEFP_H
37133 #include <ieeefp.h>
37134 #endif
37137 main ()
37139 fabsl(0);
37141 return 0;
37143 _ACEOF
37144 if ac_fn_cxx_try_compile "$LINENO"; then :
37145 glibcxx_cv_func_fabsl_use=yes
37146 else
37147 glibcxx_cv_func_fabsl_use=no
37149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37150 ac_ext=c
37151 ac_cpp='$CPP $CPPFLAGS'
37152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
37161 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
37163 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37164 for ac_func in fabsl
37165 do :
37166 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
37167 if test "x$ac_cv_func_fabsl" = xyes; then :
37168 cat >>confdefs.h <<_ACEOF
37169 #define HAVE_FABSL 1
37170 _ACEOF
37173 done
37179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
37180 $as_echo_n "checking for fmodl declaration... " >&6; }
37181 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
37182 if ${glibcxx_cv_func_fmodl_use+:} false; then :
37183 $as_echo_n "(cached) " >&6
37184 else
37187 ac_ext=cpp
37188 ac_cpp='$CXXCPP $CPPFLAGS'
37189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37194 /* end confdefs.h. */
37195 #include <math.h>
37197 main ()
37199 fmodl(0, 0);
37201 return 0;
37203 _ACEOF
37204 if ac_fn_cxx_try_compile "$LINENO"; then :
37205 glibcxx_cv_func_fmodl_use=yes
37206 else
37207 glibcxx_cv_func_fmodl_use=no
37209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37210 ac_ext=c
37211 ac_cpp='$CPP $CPPFLAGS'
37212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
37221 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
37223 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
37224 for ac_func in fmodl
37225 do :
37226 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
37227 if test "x$ac_cv_func_fmodl" = xyes; then :
37228 cat >>confdefs.h <<_ACEOF
37229 #define HAVE_FMODL 1
37230 _ACEOF
37233 done
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
37240 $as_echo_n "checking for frexpl declaration... " >&6; }
37241 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
37242 if ${glibcxx_cv_func_frexpl_use+:} false; then :
37243 $as_echo_n "(cached) " >&6
37244 else
37247 ac_ext=cpp
37248 ac_cpp='$CXXCPP $CPPFLAGS'
37249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37254 /* end confdefs.h. */
37255 #include <math.h>
37257 main ()
37259 frexpl(0, 0);
37261 return 0;
37263 _ACEOF
37264 if ac_fn_cxx_try_compile "$LINENO"; then :
37265 glibcxx_cv_func_frexpl_use=yes
37266 else
37267 glibcxx_cv_func_frexpl_use=no
37269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37270 ac_ext=c
37271 ac_cpp='$CPP $CPPFLAGS'
37272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
37281 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
37283 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
37284 for ac_func in frexpl
37285 do :
37286 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
37287 if test "x$ac_cv_func_frexpl" = xyes; then :
37288 cat >>confdefs.h <<_ACEOF
37289 #define HAVE_FREXPL 1
37290 _ACEOF
37293 done
37299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
37300 $as_echo_n "checking for hypotl declaration... " >&6; }
37301 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
37302 if ${glibcxx_cv_func_hypotl_use+:} false; then :
37303 $as_echo_n "(cached) " >&6
37304 else
37307 ac_ext=cpp
37308 ac_cpp='$CXXCPP $CPPFLAGS'
37309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37314 /* end confdefs.h. */
37315 #include <math.h>
37317 main ()
37319 hypotl(0, 0);
37321 return 0;
37323 _ACEOF
37324 if ac_fn_cxx_try_compile "$LINENO"; then :
37325 glibcxx_cv_func_hypotl_use=yes
37326 else
37327 glibcxx_cv_func_hypotl_use=no
37329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37330 ac_ext=c
37331 ac_cpp='$CPP $CPPFLAGS'
37332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
37341 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
37343 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
37344 for ac_func in hypotl
37345 do :
37346 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
37347 if test "x$ac_cv_func_hypotl" = xyes; then :
37348 cat >>confdefs.h <<_ACEOF
37349 #define HAVE_HYPOTL 1
37350 _ACEOF
37353 done
37359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
37360 $as_echo_n "checking for ldexpl declaration... " >&6; }
37361 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
37362 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
37363 $as_echo_n "(cached) " >&6
37364 else
37367 ac_ext=cpp
37368 ac_cpp='$CXXCPP $CPPFLAGS'
37369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37374 /* end confdefs.h. */
37375 #include <math.h>
37377 main ()
37379 ldexpl(0, 0);
37381 return 0;
37383 _ACEOF
37384 if ac_fn_cxx_try_compile "$LINENO"; then :
37385 glibcxx_cv_func_ldexpl_use=yes
37386 else
37387 glibcxx_cv_func_ldexpl_use=no
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37390 ac_ext=c
37391 ac_cpp='$CPP $CPPFLAGS'
37392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
37401 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
37403 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
37404 for ac_func in ldexpl
37405 do :
37406 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
37407 if test "x$ac_cv_func_ldexpl" = xyes; then :
37408 cat >>confdefs.h <<_ACEOF
37409 #define HAVE_LDEXPL 1
37410 _ACEOF
37413 done
37419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
37420 $as_echo_n "checking for logl declaration... " >&6; }
37421 if test x${glibcxx_cv_func_logl_use+set} != xset; then
37422 if ${glibcxx_cv_func_logl_use+:} false; then :
37423 $as_echo_n "(cached) " >&6
37424 else
37427 ac_ext=cpp
37428 ac_cpp='$CXXCPP $CPPFLAGS'
37429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37434 /* end confdefs.h. */
37435 #include <math.h>
37436 #ifdef HAVE_IEEEFP_H
37437 #include <ieeefp.h>
37438 #endif
37441 main ()
37443 logl(0);
37445 return 0;
37447 _ACEOF
37448 if ac_fn_cxx_try_compile "$LINENO"; then :
37449 glibcxx_cv_func_logl_use=yes
37450 else
37451 glibcxx_cv_func_logl_use=no
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454 ac_ext=c
37455 ac_cpp='$CPP $CPPFLAGS'
37456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
37465 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
37467 if test x$glibcxx_cv_func_logl_use = x"yes"; then
37468 for ac_func in logl
37469 do :
37470 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
37471 if test "x$ac_cv_func_logl" = xyes; then :
37472 cat >>confdefs.h <<_ACEOF
37473 #define HAVE_LOGL 1
37474 _ACEOF
37477 done
37483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
37484 $as_echo_n "checking for log10l declaration... " >&6; }
37485 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
37486 if ${glibcxx_cv_func_log10l_use+:} false; then :
37487 $as_echo_n "(cached) " >&6
37488 else
37491 ac_ext=cpp
37492 ac_cpp='$CXXCPP $CPPFLAGS'
37493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37498 /* end confdefs.h. */
37499 #include <math.h>
37500 #ifdef HAVE_IEEEFP_H
37501 #include <ieeefp.h>
37502 #endif
37505 main ()
37507 log10l(0);
37509 return 0;
37511 _ACEOF
37512 if ac_fn_cxx_try_compile "$LINENO"; then :
37513 glibcxx_cv_func_log10l_use=yes
37514 else
37515 glibcxx_cv_func_log10l_use=no
37517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37518 ac_ext=c
37519 ac_cpp='$CPP $CPPFLAGS'
37520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
37529 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
37531 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
37532 for ac_func in log10l
37533 do :
37534 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
37535 if test "x$ac_cv_func_log10l" = xyes; then :
37536 cat >>confdefs.h <<_ACEOF
37537 #define HAVE_LOG10L 1
37538 _ACEOF
37541 done
37547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
37548 $as_echo_n "checking for modfl declaration... " >&6; }
37549 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
37550 if ${glibcxx_cv_func_modfl_use+:} false; then :
37551 $as_echo_n "(cached) " >&6
37552 else
37555 ac_ext=cpp
37556 ac_cpp='$CXXCPP $CPPFLAGS'
37557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37562 /* end confdefs.h. */
37563 #include <math.h>
37565 main ()
37567 modfl(0, 0);
37569 return 0;
37571 _ACEOF
37572 if ac_fn_cxx_try_compile "$LINENO"; then :
37573 glibcxx_cv_func_modfl_use=yes
37574 else
37575 glibcxx_cv_func_modfl_use=no
37577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37578 ac_ext=c
37579 ac_cpp='$CPP $CPPFLAGS'
37580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
37589 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
37591 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
37592 for ac_func in modfl
37593 do :
37594 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
37595 if test "x$ac_cv_func_modfl" = xyes; then :
37596 cat >>confdefs.h <<_ACEOF
37597 #define HAVE_MODFL 1
37598 _ACEOF
37601 done
37607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
37608 $as_echo_n "checking for powl declaration... " >&6; }
37609 if test x${glibcxx_cv_func_powl_use+set} != xset; then
37610 if ${glibcxx_cv_func_powl_use+:} false; then :
37611 $as_echo_n "(cached) " >&6
37612 else
37615 ac_ext=cpp
37616 ac_cpp='$CXXCPP $CPPFLAGS'
37617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37622 /* end confdefs.h. */
37623 #include <math.h>
37625 main ()
37627 powl(0, 0);
37629 return 0;
37631 _ACEOF
37632 if ac_fn_cxx_try_compile "$LINENO"; then :
37633 glibcxx_cv_func_powl_use=yes
37634 else
37635 glibcxx_cv_func_powl_use=no
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 ac_ext=c
37639 ac_cpp='$CPP $CPPFLAGS'
37640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
37649 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
37651 if test x$glibcxx_cv_func_powl_use = x"yes"; then
37652 for ac_func in powl
37653 do :
37654 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
37655 if test "x$ac_cv_func_powl" = xyes; then :
37656 cat >>confdefs.h <<_ACEOF
37657 #define HAVE_POWL 1
37658 _ACEOF
37661 done
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
37668 $as_echo_n "checking for sqrtl declaration... " >&6; }
37669 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
37670 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
37671 $as_echo_n "(cached) " >&6
37672 else
37675 ac_ext=cpp
37676 ac_cpp='$CXXCPP $CPPFLAGS'
37677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37682 /* end confdefs.h. */
37683 #include <math.h>
37684 #ifdef HAVE_IEEEFP_H
37685 #include <ieeefp.h>
37686 #endif
37689 main ()
37691 sqrtl(0);
37693 return 0;
37695 _ACEOF
37696 if ac_fn_cxx_try_compile "$LINENO"; then :
37697 glibcxx_cv_func_sqrtl_use=yes
37698 else
37699 glibcxx_cv_func_sqrtl_use=no
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37702 ac_ext=c
37703 ac_cpp='$CPP $CPPFLAGS'
37704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
37713 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
37715 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
37716 for ac_func in sqrtl
37717 do :
37718 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
37719 if test "x$ac_cv_func_sqrtl" = xyes; then :
37720 cat >>confdefs.h <<_ACEOF
37721 #define HAVE_SQRTL 1
37722 _ACEOF
37725 done
37731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
37732 $as_echo_n "checking for sincosl declaration... " >&6; }
37733 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
37734 if ${glibcxx_cv_func_sincosl_use+:} false; then :
37735 $as_echo_n "(cached) " >&6
37736 else
37739 ac_ext=cpp
37740 ac_cpp='$CXXCPP $CPPFLAGS'
37741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37746 /* end confdefs.h. */
37747 #include <math.h>
37749 main ()
37751 sincosl(0, 0, 0);
37753 return 0;
37755 _ACEOF
37756 if ac_fn_cxx_try_compile "$LINENO"; then :
37757 glibcxx_cv_func_sincosl_use=yes
37758 else
37759 glibcxx_cv_func_sincosl_use=no
37761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37762 ac_ext=c
37763 ac_cpp='$CPP $CPPFLAGS'
37764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
37773 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
37775 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
37776 for ac_func in sincosl
37777 do :
37778 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
37779 if test "x$ac_cv_func_sincosl" = xyes; then :
37780 cat >>confdefs.h <<_ACEOF
37781 #define HAVE_SINCOSL 1
37782 _ACEOF
37785 done
37791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
37792 $as_echo_n "checking for finitel declaration... " >&6; }
37793 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
37794 if ${glibcxx_cv_func_finitel_use+:} false; then :
37795 $as_echo_n "(cached) " >&6
37796 else
37799 ac_ext=cpp
37800 ac_cpp='$CXXCPP $CPPFLAGS'
37801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37806 /* end confdefs.h. */
37807 #include <math.h>
37808 #ifdef HAVE_IEEEFP_H
37809 #include <ieeefp.h>
37810 #endif
37813 main ()
37815 finitel(0);
37817 return 0;
37819 _ACEOF
37820 if ac_fn_cxx_try_compile "$LINENO"; then :
37821 glibcxx_cv_func_finitel_use=yes
37822 else
37823 glibcxx_cv_func_finitel_use=no
37825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37826 ac_ext=c
37827 ac_cpp='$CPP $CPPFLAGS'
37828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
37837 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
37839 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
37840 for ac_func in finitel
37841 do :
37842 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
37843 if test "x$ac_cv_func_finitel" = xyes; then :
37844 cat >>confdefs.h <<_ACEOF
37845 #define HAVE_FINITEL 1
37846 _ACEOF
37849 done
37854 LIBS="$ac_save_LIBS"
37855 CXXFLAGS="$ac_save_CXXFLAGS"
37858 ac_test_CXXFLAGS="${CXXFLAGS+set}"
37859 ac_save_CXXFLAGS="$CXXFLAGS"
37860 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
37863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
37864 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
37865 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
37866 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
37867 $as_echo_n "(cached) " >&6
37868 else
37871 ac_ext=cpp
37872 ac_cpp='$CXXCPP $CPPFLAGS'
37873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37878 /* end confdefs.h. */
37879 #include <stdlib.h>
37881 main ()
37883 at_quick_exit(0);
37885 return 0;
37887 _ACEOF
37888 if ac_fn_cxx_try_compile "$LINENO"; then :
37889 glibcxx_cv_func_at_quick_exit_use=yes
37890 else
37891 glibcxx_cv_func_at_quick_exit_use=no
37893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37894 ac_ext=c
37895 ac_cpp='$CPP $CPPFLAGS'
37896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
37905 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
37906 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
37907 for ac_func in at_quick_exit
37908 do :
37909 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
37910 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
37911 cat >>confdefs.h <<_ACEOF
37912 #define HAVE_AT_QUICK_EXIT 1
37913 _ACEOF
37916 done
37921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
37922 $as_echo_n "checking for quick_exit declaration... " >&6; }
37923 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
37924 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
37925 $as_echo_n "(cached) " >&6
37926 else
37929 ac_ext=cpp
37930 ac_cpp='$CXXCPP $CPPFLAGS'
37931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37936 /* end confdefs.h. */
37937 #include <stdlib.h>
37939 main ()
37941 quick_exit(0);
37943 return 0;
37945 _ACEOF
37946 if ac_fn_cxx_try_compile "$LINENO"; then :
37947 glibcxx_cv_func_quick_exit_use=yes
37948 else
37949 glibcxx_cv_func_quick_exit_use=no
37951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37952 ac_ext=c
37953 ac_cpp='$CPP $CPPFLAGS'
37954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
37963 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
37964 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
37965 for ac_func in quick_exit
37966 do :
37967 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
37968 if test "x$ac_cv_func_quick_exit" = xyes; then :
37969 cat >>confdefs.h <<_ACEOF
37970 #define HAVE_QUICK_EXIT 1
37971 _ACEOF
37974 done
37979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
37980 $as_echo_n "checking for strtold declaration... " >&6; }
37981 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
37982 if ${glibcxx_cv_func_strtold_use+:} false; then :
37983 $as_echo_n "(cached) " >&6
37984 else
37987 ac_ext=cpp
37988 ac_cpp='$CXXCPP $CPPFLAGS'
37989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37994 /* end confdefs.h. */
37995 #include <stdlib.h>
37997 main ()
37999 strtold(0, 0);
38001 return 0;
38003 _ACEOF
38004 if ac_fn_cxx_try_compile "$LINENO"; then :
38005 glibcxx_cv_func_strtold_use=yes
38006 else
38007 glibcxx_cv_func_strtold_use=no
38009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38010 ac_ext=c
38011 ac_cpp='$CPP $CPPFLAGS'
38012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
38021 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
38022 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
38023 for ac_func in strtold
38024 do :
38025 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
38026 if test "x$ac_cv_func_strtold" = xyes; then :
38027 cat >>confdefs.h <<_ACEOF
38028 #define HAVE_STRTOLD 1
38029 _ACEOF
38032 done
38037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
38038 $as_echo_n "checking for strtof declaration... " >&6; }
38039 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
38040 if ${glibcxx_cv_func_strtof_use+:} false; then :
38041 $as_echo_n "(cached) " >&6
38042 else
38045 ac_ext=cpp
38046 ac_cpp='$CXXCPP $CPPFLAGS'
38047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38052 /* end confdefs.h. */
38053 #include <stdlib.h>
38055 main ()
38057 strtof(0, 0);
38059 return 0;
38061 _ACEOF
38062 if ac_fn_cxx_try_compile "$LINENO"; then :
38063 glibcxx_cv_func_strtof_use=yes
38064 else
38065 glibcxx_cv_func_strtof_use=no
38067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38068 ac_ext=c
38069 ac_cpp='$CPP $CPPFLAGS'
38070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
38079 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
38080 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
38081 for ac_func in strtof
38082 do :
38083 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
38084 if test "x$ac_cv_func_strtof" = xyes; then :
38085 cat >>confdefs.h <<_ACEOF
38086 #define HAVE_STRTOF 1
38087 _ACEOF
38090 done
38095 CXXFLAGS="$ac_save_CXXFLAGS"
38098 for ac_func in uselocale
38099 do :
38100 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38101 if test "x$ac_cv_func_uselocale" = xyes; then :
38102 cat >>confdefs.h <<_ACEOF
38103 #define HAVE_USELOCALE 1
38104 _ACEOF
38107 done
38111 *djgpp)
38112 # GLIBCXX_CHECK_MATH_SUPPORT
38113 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38115 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38117 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38119 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
38121 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38125 *-freebsd*)
38126 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38129 # If we're not using GNU ld, then there's no point in even trying these
38130 # tests. Check for that first. We should have already tested for gld
38131 # by now (in libtool), but require it now just to be safe...
38132 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38133 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38137 # The name set by libtool depends on the version of libtool. Shame on us
38138 # for depending on an impl detail, but c'est la vie. Older versions used
38139 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38140 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38141 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38142 # set (hence we're using an older libtool), then set it.
38143 if test x${with_gnu_ld+set} != xset; then
38144 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38145 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38146 with_gnu_ld=no
38147 else
38148 with_gnu_ld=$ac_cv_prog_gnu_ld
38152 # Start by getting the version number. I think the libtool test already
38153 # does some of this, but throws away the result.
38154 glibcxx_ld_is_gold=no
38155 glibcxx_ld_is_mold=no
38156 if test x"$with_gnu_ld" = x"yes"; then
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38158 $as_echo_n "checking for ld version... " >&6; }
38160 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38161 glibcxx_ld_is_gold=yes
38162 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38163 glibcxx_ld_is_mold=yes
38165 ldver=`$LD --version 2>/dev/null |
38166 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38168 glibcxx_gnu_ld_version=`echo $ldver | \
38169 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38171 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38174 # Set --gc-sections.
38175 glibcxx_have_gc_sections=no
38176 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38177 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38178 glibcxx_have_gc_sections=yes
38180 else
38181 glibcxx_gcsections_min_ld=21602
38182 if test x"$with_gnu_ld" = x"yes" &&
38183 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38184 glibcxx_have_gc_sections=yes
38187 if test "$glibcxx_have_gc_sections" = "yes"; then
38188 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38189 # NB: This flag only works reliably after 2.16.1. Configure tests
38190 # for this are difficult, so hard wire a value that should work.
38192 ac_test_CFLAGS="${CFLAGS+set}"
38193 ac_save_CFLAGS="$CFLAGS"
38194 CFLAGS='-Wl,--gc-sections'
38196 # Check for -Wl,--gc-sections
38197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38198 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38199 if test x$gcc_no_link = xyes; then
38200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38203 /* end confdefs.h. */
38204 int one(void) { return 1; }
38205 int two(void) { return 2; }
38208 main ()
38210 two();
38212 return 0;
38214 _ACEOF
38215 if ac_fn_c_try_link "$LINENO"; then :
38216 ac_gcsections=yes
38217 else
38218 ac_gcsections=no
38220 rm -f core conftest.err conftest.$ac_objext \
38221 conftest$ac_exeext conftest.$ac_ext
38222 if test "$ac_gcsections" = "yes"; then
38223 rm -f conftest.c
38224 touch conftest.c
38225 if $CC -c conftest.c; then
38226 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38227 grep "Warning: gc-sections option ignored" > /dev/null; then
38228 ac_gcsections=no
38231 rm -f conftest.c conftest.o conftest
38233 if test "$ac_gcsections" = "yes"; then
38234 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38237 $as_echo "$ac_gcsections" >&6; }
38239 if test "$ac_test_CFLAGS" = set; then
38240 CFLAGS="$ac_save_CFLAGS"
38241 else
38242 # this is the suspicious part
38243 CFLAGS=''
38247 # Set -z,relro.
38248 # Note this is only for shared objects.
38249 ac_ld_relro=no
38250 if test x"$with_gnu_ld" = x"yes"; then
38251 # cygwin and mingw uses PE, which has no ELF relro support,
38252 # multi target ld may confuse configure machinery
38253 case "$host" in
38254 *-*-cygwin*)
38256 *-*-mingw*)
38259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38260 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38261 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38262 if test -n "$cxx_z_relo"; then
38263 OPT_LDFLAGS="-Wl,-z,relro"
38264 ac_ld_relro=yes
38266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38267 $as_echo "$ac_ld_relro" >&6; }
38268 esac
38271 # Set linker optimization flags.
38272 if test x"$with_gnu_ld" = x"yes"; then
38273 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38279 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
38281 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
38283 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38285 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38287 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38289 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
38291 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38293 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38295 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
38298 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38300 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38302 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38304 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38306 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
38308 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38310 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38312 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38314 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38316 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
38318 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38320 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38322 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
38324 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38326 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38328 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
38330 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38332 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38334 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38336 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38338 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38340 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38342 if test x"long_double_math_on_this_cpu" = x"yes"; then
38343 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
38345 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
38347 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
38350 for ac_func in __cxa_thread_atexit
38351 do :
38352 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit" "ac_cv_func___cxa_thread_atexit"
38353 if test "x$ac_cv_func___cxa_thread_atexit" = xyes; then :
38354 cat >>confdefs.h <<_ACEOF
38355 #define HAVE___CXA_THREAD_ATEXIT 1
38356 _ACEOF
38359 done
38361 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
38362 do :
38363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38365 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38366 cat >>confdefs.h <<_ACEOF
38367 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38368 _ACEOF
38371 done
38373 for ac_func in timespec_get
38374 do :
38375 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
38376 if test "x$ac_cv_func_timespec_get" = xyes; then :
38377 cat >>confdefs.h <<_ACEOF
38378 #define HAVE_TIMESPEC_GET 1
38379 _ACEOF
38382 done
38384 for ac_func in sockatmark
38385 do :
38386 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
38387 if test "x$ac_cv_func_sockatmark" = xyes; then :
38388 cat >>confdefs.h <<_ACEOF
38389 #define HAVE_SOCKATMARK 1
38390 _ACEOF
38393 done
38395 for ac_func in uselocale
38396 do :
38397 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38398 if test "x$ac_cv_func_uselocale" = xyes; then :
38399 cat >>confdefs.h <<_ACEOF
38400 #define HAVE_USELOCALE 1
38401 _ACEOF
38404 done
38408 *-fuchsia*)
38409 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38413 *-hpux*)
38414 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38417 # If we're not using GNU ld, then there's no point in even trying these
38418 # tests. Check for that first. We should have already tested for gld
38419 # by now (in libtool), but require it now just to be safe...
38420 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38421 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38425 # The name set by libtool depends on the version of libtool. Shame on us
38426 # for depending on an impl detail, but c'est la vie. Older versions used
38427 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38428 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38429 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38430 # set (hence we're using an older libtool), then set it.
38431 if test x${with_gnu_ld+set} != xset; then
38432 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38433 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38434 with_gnu_ld=no
38435 else
38436 with_gnu_ld=$ac_cv_prog_gnu_ld
38440 # Start by getting the version number. I think the libtool test already
38441 # does some of this, but throws away the result.
38442 glibcxx_ld_is_gold=no
38443 glibcxx_ld_is_mold=no
38444 if test x"$with_gnu_ld" = x"yes"; then
38445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38446 $as_echo_n "checking for ld version... " >&6; }
38448 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38449 glibcxx_ld_is_gold=yes
38450 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38451 glibcxx_ld_is_mold=yes
38453 ldver=`$LD --version 2>/dev/null |
38454 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38456 glibcxx_gnu_ld_version=`echo $ldver | \
38457 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38459 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38462 # Set --gc-sections.
38463 glibcxx_have_gc_sections=no
38464 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38465 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38466 glibcxx_have_gc_sections=yes
38468 else
38469 glibcxx_gcsections_min_ld=21602
38470 if test x"$with_gnu_ld" = x"yes" &&
38471 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38472 glibcxx_have_gc_sections=yes
38475 if test "$glibcxx_have_gc_sections" = "yes"; then
38476 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38477 # NB: This flag only works reliably after 2.16.1. Configure tests
38478 # for this are difficult, so hard wire a value that should work.
38480 ac_test_CFLAGS="${CFLAGS+set}"
38481 ac_save_CFLAGS="$CFLAGS"
38482 CFLAGS='-Wl,--gc-sections'
38484 # Check for -Wl,--gc-sections
38485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38486 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38487 if test x$gcc_no_link = xyes; then
38488 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38491 /* end confdefs.h. */
38492 int one(void) { return 1; }
38493 int two(void) { return 2; }
38496 main ()
38498 two();
38500 return 0;
38502 _ACEOF
38503 if ac_fn_c_try_link "$LINENO"; then :
38504 ac_gcsections=yes
38505 else
38506 ac_gcsections=no
38508 rm -f core conftest.err conftest.$ac_objext \
38509 conftest$ac_exeext conftest.$ac_ext
38510 if test "$ac_gcsections" = "yes"; then
38511 rm -f conftest.c
38512 touch conftest.c
38513 if $CC -c conftest.c; then
38514 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38515 grep "Warning: gc-sections option ignored" > /dev/null; then
38516 ac_gcsections=no
38519 rm -f conftest.c conftest.o conftest
38521 if test "$ac_gcsections" = "yes"; then
38522 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38525 $as_echo "$ac_gcsections" >&6; }
38527 if test "$ac_test_CFLAGS" = set; then
38528 CFLAGS="$ac_save_CFLAGS"
38529 else
38530 # this is the suspicious part
38531 CFLAGS=''
38535 # Set -z,relro.
38536 # Note this is only for shared objects.
38537 ac_ld_relro=no
38538 if test x"$with_gnu_ld" = x"yes"; then
38539 # cygwin and mingw uses PE, which has no ELF relro support,
38540 # multi target ld may confuse configure machinery
38541 case "$host" in
38542 *-*-cygwin*)
38544 *-*-mingw*)
38547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38548 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38549 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38550 if test -n "$cxx_z_relo"; then
38551 OPT_LDFLAGS="-Wl,-z,relro"
38552 ac_ld_relro=yes
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38555 $as_echo "$ac_ld_relro" >&6; }
38556 esac
38559 # Set linker optimization flags.
38560 if test x"$with_gnu_ld" = x"yes"; then
38561 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38568 # GLIBCXX_CHECK_MATH_SUPPORT
38569 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38571 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38573 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38575 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38577 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38579 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38581 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38583 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38585 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38587 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38589 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38591 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38593 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38595 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38597 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38599 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38601 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38603 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38605 $as_echo "#define HAVE_MODF 1" >>confdefs.h
38607 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38609 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38612 # GLIBCXX_CHECK_STDLIB_SUPPORT
38613 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
38618 # Check whether --enable-tls was given.
38619 if test "${enable_tls+set}" = set; then :
38620 enableval=$enable_tls;
38621 case "$enableval" in
38622 yes|no) ;;
38623 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
38624 esac
38626 else
38627 enable_tls=yes
38631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
38632 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
38633 if ${gcc_cv_have_tls+:} false; then :
38634 $as_echo_n "(cached) " >&6
38635 else
38637 if test "$cross_compiling" = yes; then :
38638 if test x$gcc_no_link = xyes; then
38639 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38642 /* end confdefs.h. */
38643 __thread int a; int b; int main() { return a = b; }
38644 _ACEOF
38645 if ac_fn_c_try_link "$LINENO"; then :
38646 chktls_save_LDFLAGS="$LDFLAGS"
38647 case $host in
38648 *-*-linux* | -*-uclinuxfdpic*)
38649 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
38651 esac
38652 chktls_save_CFLAGS="$CFLAGS"
38653 CFLAGS="-fPIC $CFLAGS"
38654 if test x$gcc_no_link = xyes; then
38655 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38658 /* end confdefs.h. */
38659 int f() { return 0; }
38660 _ACEOF
38661 if ac_fn_c_try_link "$LINENO"; then :
38662 if test x$gcc_no_link = xyes; then
38663 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38666 /* end confdefs.h. */
38667 __thread int a; int b; int f() { return a = b; }
38668 _ACEOF
38669 if ac_fn_c_try_link "$LINENO"; then :
38670 gcc_cv_have_tls=yes
38671 else
38672 gcc_cv_have_tls=no
38674 rm -f core conftest.err conftest.$ac_objext \
38675 conftest$ac_exeext conftest.$ac_ext
38676 else
38677 gcc_cv_have_tls=yes
38679 rm -f core conftest.err conftest.$ac_objext \
38680 conftest$ac_exeext conftest.$ac_ext
38681 CFLAGS="$chktls_save_CFLAGS"
38682 LDFLAGS="$chktls_save_LDFLAGS"
38683 else
38684 gcc_cv_have_tls=no
38686 rm -f core conftest.err conftest.$ac_objext \
38687 conftest$ac_exeext conftest.$ac_ext
38690 else
38691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38692 /* end confdefs.h. */
38693 __thread int a; int b; int main() { return a = b; }
38694 _ACEOF
38695 if ac_fn_c_try_run "$LINENO"; then :
38696 chktls_save_LDFLAGS="$LDFLAGS"
38697 LDFLAGS="-static $LDFLAGS"
38698 if test x$gcc_no_link = xyes; then
38699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38702 /* end confdefs.h. */
38703 int main() { return 0; }
38704 _ACEOF
38705 if ac_fn_c_try_link "$LINENO"; then :
38706 if test "$cross_compiling" = yes; then :
38707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38709 as_fn_error $? "cannot run test program while cross compiling
38710 See \`config.log' for more details" "$LINENO" 5; }
38711 else
38712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38713 /* end confdefs.h. */
38714 __thread int a; int b; int main() { return a = b; }
38715 _ACEOF
38716 if ac_fn_c_try_run "$LINENO"; then :
38717 gcc_cv_have_tls=yes
38718 else
38719 gcc_cv_have_tls=no
38721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38722 conftest.$ac_objext conftest.beam conftest.$ac_ext
38725 else
38726 gcc_cv_have_tls=yes
38728 rm -f core conftest.err conftest.$ac_objext \
38729 conftest$ac_exeext conftest.$ac_ext
38730 LDFLAGS="$chktls_save_LDFLAGS"
38731 if test $gcc_cv_have_tls = yes; then
38732 chktls_save_CFLAGS="$CFLAGS"
38733 thread_CFLAGS=failed
38734 for flag in '' '-pthread' '-lpthread'; do
38735 CFLAGS="$flag $chktls_save_CFLAGS"
38736 if test x$gcc_no_link = xyes; then
38737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38740 /* end confdefs.h. */
38741 #include <pthread.h>
38742 void *g(void *d) { return NULL; }
38744 main ()
38746 pthread_t t; pthread_create(&t,NULL,g,NULL);
38748 return 0;
38750 _ACEOF
38751 if ac_fn_c_try_link "$LINENO"; then :
38752 thread_CFLAGS="$flag"
38754 rm -f core conftest.err conftest.$ac_objext \
38755 conftest$ac_exeext conftest.$ac_ext
38756 if test "X$thread_CFLAGS" != Xfailed; then
38757 break
38759 done
38760 CFLAGS="$chktls_save_CFLAGS"
38761 if test "X$thread_CFLAGS" != Xfailed; then
38762 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
38763 if test "$cross_compiling" = yes; then :
38764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38766 as_fn_error $? "cannot run test program while cross compiling
38767 See \`config.log' for more details" "$LINENO" 5; }
38768 else
38769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38770 /* end confdefs.h. */
38771 #include <pthread.h>
38772 __thread int a;
38773 static int *volatile a_in_other_thread;
38774 static void *
38775 thread_func (void *arg)
38777 a_in_other_thread = &a;
38778 return (void *)0;
38781 main ()
38783 pthread_t thread;
38784 void *thread_retval;
38785 int *volatile a_in_main_thread;
38786 a_in_main_thread = &a;
38787 if (pthread_create (&thread, (pthread_attr_t *)0,
38788 thread_func, (void *)0))
38789 return 0;
38790 if (pthread_join (thread, &thread_retval))
38791 return 0;
38792 return (a_in_other_thread == a_in_main_thread);
38794 return 0;
38796 _ACEOF
38797 if ac_fn_c_try_run "$LINENO"; then :
38798 gcc_cv_have_tls=yes
38799 else
38800 gcc_cv_have_tls=no
38802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38803 conftest.$ac_objext conftest.beam conftest.$ac_ext
38806 CFLAGS="$chktls_save_CFLAGS"
38809 else
38810 gcc_cv_have_tls=no
38812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38813 conftest.$ac_objext conftest.beam conftest.$ac_ext
38817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
38818 $as_echo "$gcc_cv_have_tls" >&6; }
38819 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
38821 $as_echo "#define HAVE_TLS 1" >>confdefs.h
38825 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*)
38827 # All these tests are for C++; save the language and the compiler flags.
38828 # The CXXFLAGS thing is suspicious, but based on similar bits previously
38829 # found in GLIBCXX_CONFIGURE.
38831 ac_ext=cpp
38832 ac_cpp='$CXXCPP $CPPFLAGS'
38833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38837 ac_test_CXXFLAGS="${CXXFLAGS+set}"
38838 ac_save_CXXFLAGS="$CXXFLAGS"
38840 # Check for -ffunction-sections -fdata-sections
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
38842 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
38843 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
38844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38845 /* end confdefs.h. */
38846 int foo; void bar() { };
38848 main ()
38852 return 0;
38854 _ACEOF
38855 if ac_fn_cxx_try_compile "$LINENO"; then :
38856 ac_fdsections=yes
38857 else
38858 ac_fdsections=no
38860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38861 if test "$ac_test_CXXFLAGS" = set; then
38862 CXXFLAGS="$ac_save_CXXFLAGS"
38863 else
38864 # this is the suspicious part
38865 CXXFLAGS=''
38867 if test x"$ac_fdsections" = x"yes"; then
38868 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
38871 $as_echo "$ac_fdsections" >&6; }
38873 ac_ext=c
38874 ac_cpp='$CPP $CPPFLAGS'
38875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38882 # If we're not using GNU ld, then there's no point in even trying these
38883 # tests. Check for that first. We should have already tested for gld
38884 # by now (in libtool), but require it now just to be safe...
38885 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38886 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38890 # The name set by libtool depends on the version of libtool. Shame on us
38891 # for depending on an impl detail, but c'est la vie. Older versions used
38892 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38893 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38894 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38895 # set (hence we're using an older libtool), then set it.
38896 if test x${with_gnu_ld+set} != xset; then
38897 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38898 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38899 with_gnu_ld=no
38900 else
38901 with_gnu_ld=$ac_cv_prog_gnu_ld
38905 # Start by getting the version number. I think the libtool test already
38906 # does some of this, but throws away the result.
38907 glibcxx_ld_is_gold=no
38908 glibcxx_ld_is_mold=no
38909 if test x"$with_gnu_ld" = x"yes"; then
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38911 $as_echo_n "checking for ld version... " >&6; }
38913 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38914 glibcxx_ld_is_gold=yes
38915 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38916 glibcxx_ld_is_mold=yes
38918 ldver=`$LD --version 2>/dev/null |
38919 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38921 glibcxx_gnu_ld_version=`echo $ldver | \
38922 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38924 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38927 # Set --gc-sections.
38928 glibcxx_have_gc_sections=no
38929 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38930 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38931 glibcxx_have_gc_sections=yes
38933 else
38934 glibcxx_gcsections_min_ld=21602
38935 if test x"$with_gnu_ld" = x"yes" &&
38936 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38937 glibcxx_have_gc_sections=yes
38940 if test "$glibcxx_have_gc_sections" = "yes"; then
38941 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38942 # NB: This flag only works reliably after 2.16.1. Configure tests
38943 # for this are difficult, so hard wire a value that should work.
38945 ac_test_CFLAGS="${CFLAGS+set}"
38946 ac_save_CFLAGS="$CFLAGS"
38947 CFLAGS='-Wl,--gc-sections'
38949 # Check for -Wl,--gc-sections
38950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38951 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38952 if test x$gcc_no_link = xyes; then
38953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38956 /* end confdefs.h. */
38957 int one(void) { return 1; }
38958 int two(void) { return 2; }
38961 main ()
38963 two();
38965 return 0;
38967 _ACEOF
38968 if ac_fn_c_try_link "$LINENO"; then :
38969 ac_gcsections=yes
38970 else
38971 ac_gcsections=no
38973 rm -f core conftest.err conftest.$ac_objext \
38974 conftest$ac_exeext conftest.$ac_ext
38975 if test "$ac_gcsections" = "yes"; then
38976 rm -f conftest.c
38977 touch conftest.c
38978 if $CC -c conftest.c; then
38979 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38980 grep "Warning: gc-sections option ignored" > /dev/null; then
38981 ac_gcsections=no
38984 rm -f conftest.c conftest.o conftest
38986 if test "$ac_gcsections" = "yes"; then
38987 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38990 $as_echo "$ac_gcsections" >&6; }
38992 if test "$ac_test_CFLAGS" = set; then
38993 CFLAGS="$ac_save_CFLAGS"
38994 else
38995 # this is the suspicious part
38996 CFLAGS=''
39000 # Set -z,relro.
39001 # Note this is only for shared objects.
39002 ac_ld_relro=no
39003 if test x"$with_gnu_ld" = x"yes"; then
39004 # cygwin and mingw uses PE, which has no ELF relro support,
39005 # multi target ld may confuse configure machinery
39006 case "$host" in
39007 *-*-cygwin*)
39009 *-*-mingw*)
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
39013 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
39014 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
39015 if test -n "$cxx_z_relo"; then
39016 OPT_LDFLAGS="-Wl,-z,relro"
39017 ac_ld_relro=yes
39019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
39020 $as_echo "$ac_ld_relro" >&6; }
39021 esac
39024 # Set linker optimization flags.
39025 if test x"$with_gnu_ld" = x"yes"; then
39026 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
39033 ac_test_CXXFLAGS="${CXXFLAGS+set}"
39034 ac_save_CXXFLAGS="$CXXFLAGS"
39035 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
39037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
39038 $as_echo_n "checking for sin in -lm... " >&6; }
39039 if ${ac_cv_lib_m_sin+:} false; then :
39040 $as_echo_n "(cached) " >&6
39041 else
39042 ac_check_lib_save_LIBS=$LIBS
39043 LIBS="-lm $LIBS"
39044 if test x$gcc_no_link = xyes; then
39045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
39047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39048 /* end confdefs.h. */
39050 /* Override any GCC internal prototype to avoid an error.
39051 Use char because int might match the return type of a GCC
39052 builtin and then its argument prototype would still apply. */
39053 #ifdef __cplusplus
39054 extern "C"
39055 #endif
39056 char sin ();
39058 main ()
39060 return sin ();
39062 return 0;
39064 _ACEOF
39065 if ac_fn_c_try_link "$LINENO"; then :
39066 ac_cv_lib_m_sin=yes
39067 else
39068 ac_cv_lib_m_sin=no
39070 rm -f core conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
39072 LIBS=$ac_check_lib_save_LIBS
39074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
39075 $as_echo "$ac_cv_lib_m_sin" >&6; }
39076 if test "x$ac_cv_lib_m_sin" = xyes; then :
39077 libm="-lm"
39080 ac_save_LIBS="$LIBS"
39081 LIBS="$LIBS $libm"
39085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
39086 $as_echo_n "checking for isinf declaration... " >&6; }
39087 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
39088 if ${glibcxx_cv_func_isinf_use+:} false; then :
39089 $as_echo_n "(cached) " >&6
39090 else
39093 ac_ext=cpp
39094 ac_cpp='$CXXCPP $CPPFLAGS'
39095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39100 /* end confdefs.h. */
39101 #include <math.h>
39102 #ifdef HAVE_IEEEFP_H
39103 #include <ieeefp.h>
39104 #endif
39107 main ()
39109 isinf(0);
39111 return 0;
39113 _ACEOF
39114 if ac_fn_cxx_try_compile "$LINENO"; then :
39115 glibcxx_cv_func_isinf_use=yes
39116 else
39117 glibcxx_cv_func_isinf_use=no
39119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39120 ac_ext=c
39121 ac_cpp='$CPP $CPPFLAGS'
39122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
39131 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
39133 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
39134 for ac_func in isinf
39135 do :
39136 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
39137 if test "x$ac_cv_func_isinf" = xyes; then :
39138 cat >>confdefs.h <<_ACEOF
39139 #define HAVE_ISINF 1
39140 _ACEOF
39143 done
39149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
39150 $as_echo_n "checking for isnan declaration... " >&6; }
39151 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
39152 if ${glibcxx_cv_func_isnan_use+:} false; then :
39153 $as_echo_n "(cached) " >&6
39154 else
39157 ac_ext=cpp
39158 ac_cpp='$CXXCPP $CPPFLAGS'
39159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39164 /* end confdefs.h. */
39165 #include <math.h>
39166 #ifdef HAVE_IEEEFP_H
39167 #include <ieeefp.h>
39168 #endif
39171 main ()
39173 isnan(0);
39175 return 0;
39177 _ACEOF
39178 if ac_fn_cxx_try_compile "$LINENO"; then :
39179 glibcxx_cv_func_isnan_use=yes
39180 else
39181 glibcxx_cv_func_isnan_use=no
39183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39184 ac_ext=c
39185 ac_cpp='$CPP $CPPFLAGS'
39186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
39195 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
39197 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
39198 for ac_func in isnan
39199 do :
39200 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
39201 if test "x$ac_cv_func_isnan" = xyes; then :
39202 cat >>confdefs.h <<_ACEOF
39203 #define HAVE_ISNAN 1
39204 _ACEOF
39207 done
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
39214 $as_echo_n "checking for finite declaration... " >&6; }
39215 if test x${glibcxx_cv_func_finite_use+set} != xset; then
39216 if ${glibcxx_cv_func_finite_use+:} false; then :
39217 $as_echo_n "(cached) " >&6
39218 else
39221 ac_ext=cpp
39222 ac_cpp='$CXXCPP $CPPFLAGS'
39223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39228 /* end confdefs.h. */
39229 #include <math.h>
39230 #ifdef HAVE_IEEEFP_H
39231 #include <ieeefp.h>
39232 #endif
39235 main ()
39237 finite(0);
39239 return 0;
39241 _ACEOF
39242 if ac_fn_cxx_try_compile "$LINENO"; then :
39243 glibcxx_cv_func_finite_use=yes
39244 else
39245 glibcxx_cv_func_finite_use=no
39247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39248 ac_ext=c
39249 ac_cpp='$CPP $CPPFLAGS'
39250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
39259 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
39261 if test x$glibcxx_cv_func_finite_use = x"yes"; then
39262 for ac_func in finite
39263 do :
39264 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
39265 if test "x$ac_cv_func_finite" = xyes; then :
39266 cat >>confdefs.h <<_ACEOF
39267 #define HAVE_FINITE 1
39268 _ACEOF
39271 done
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
39278 $as_echo_n "checking for sincos declaration... " >&6; }
39279 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
39280 if ${glibcxx_cv_func_sincos_use+:} false; then :
39281 $as_echo_n "(cached) " >&6
39282 else
39285 ac_ext=cpp
39286 ac_cpp='$CXXCPP $CPPFLAGS'
39287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39292 /* end confdefs.h. */
39293 #include <math.h>
39295 main ()
39297 sincos(0, 0, 0);
39299 return 0;
39301 _ACEOF
39302 if ac_fn_cxx_try_compile "$LINENO"; then :
39303 glibcxx_cv_func_sincos_use=yes
39304 else
39305 glibcxx_cv_func_sincos_use=no
39307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39308 ac_ext=c
39309 ac_cpp='$CPP $CPPFLAGS'
39310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
39319 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
39321 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
39322 for ac_func in sincos
39323 do :
39324 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
39325 if test "x$ac_cv_func_sincos" = xyes; then :
39326 cat >>confdefs.h <<_ACEOF
39327 #define HAVE_SINCOS 1
39328 _ACEOF
39331 done
39337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
39338 $as_echo_n "checking for fpclass declaration... " >&6; }
39339 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
39340 if ${glibcxx_cv_func_fpclass_use+:} false; then :
39341 $as_echo_n "(cached) " >&6
39342 else
39345 ac_ext=cpp
39346 ac_cpp='$CXXCPP $CPPFLAGS'
39347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39352 /* end confdefs.h. */
39353 #include <math.h>
39354 #ifdef HAVE_IEEEFP_H
39355 #include <ieeefp.h>
39356 #endif
39359 main ()
39361 fpclass(0);
39363 return 0;
39365 _ACEOF
39366 if ac_fn_cxx_try_compile "$LINENO"; then :
39367 glibcxx_cv_func_fpclass_use=yes
39368 else
39369 glibcxx_cv_func_fpclass_use=no
39371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39372 ac_ext=c
39373 ac_cpp='$CPP $CPPFLAGS'
39374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
39383 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
39385 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
39386 for ac_func in fpclass
39387 do :
39388 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
39389 if test "x$ac_cv_func_fpclass" = xyes; then :
39390 cat >>confdefs.h <<_ACEOF
39391 #define HAVE_FPCLASS 1
39392 _ACEOF
39395 done
39401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
39402 $as_echo_n "checking for qfpclass declaration... " >&6; }
39403 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
39404 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
39405 $as_echo_n "(cached) " >&6
39406 else
39409 ac_ext=cpp
39410 ac_cpp='$CXXCPP $CPPFLAGS'
39411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39416 /* end confdefs.h. */
39417 #include <math.h>
39418 #ifdef HAVE_IEEEFP_H
39419 #include <ieeefp.h>
39420 #endif
39423 main ()
39425 qfpclass(0);
39427 return 0;
39429 _ACEOF
39430 if ac_fn_cxx_try_compile "$LINENO"; then :
39431 glibcxx_cv_func_qfpclass_use=yes
39432 else
39433 glibcxx_cv_func_qfpclass_use=no
39435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39436 ac_ext=c
39437 ac_cpp='$CPP $CPPFLAGS'
39438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
39447 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
39449 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
39450 for ac_func in qfpclass
39451 do :
39452 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
39453 if test "x$ac_cv_func_qfpclass" = xyes; then :
39454 cat >>confdefs.h <<_ACEOF
39455 #define HAVE_QFPCLASS 1
39456 _ACEOF
39459 done
39465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
39466 $as_echo_n "checking for hypot declaration... " >&6; }
39467 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
39468 if ${glibcxx_cv_func_hypot_use+:} false; then :
39469 $as_echo_n "(cached) " >&6
39470 else
39473 ac_ext=cpp
39474 ac_cpp='$CXXCPP $CPPFLAGS'
39475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39480 /* end confdefs.h. */
39481 #include <math.h>
39483 main ()
39485 hypot(0, 0);
39487 return 0;
39489 _ACEOF
39490 if ac_fn_cxx_try_compile "$LINENO"; then :
39491 glibcxx_cv_func_hypot_use=yes
39492 else
39493 glibcxx_cv_func_hypot_use=no
39495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39496 ac_ext=c
39497 ac_cpp='$CPP $CPPFLAGS'
39498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
39507 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
39509 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
39510 for ac_func in hypot
39511 do :
39512 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
39513 if test "x$ac_cv_func_hypot" = xyes; then :
39514 cat >>confdefs.h <<_ACEOF
39515 #define HAVE_HYPOT 1
39516 _ACEOF
39519 done
39525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
39526 $as_echo_n "checking for float trig functions... " >&6; }
39527 if ${glibcxx_cv_func_float_trig_use+:} false; then :
39528 $as_echo_n "(cached) " >&6
39529 else
39532 ac_ext=cpp
39533 ac_cpp='$CXXCPP $CPPFLAGS'
39534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39539 /* end confdefs.h. */
39540 #include <math.h>
39542 main ()
39544 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
39546 return 0;
39548 _ACEOF
39549 if ac_fn_cxx_try_compile "$LINENO"; then :
39550 glibcxx_cv_func_float_trig_use=yes
39551 else
39552 glibcxx_cv_func_float_trig_use=no
39554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39555 ac_ext=c
39556 ac_cpp='$CPP $CPPFLAGS'
39557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
39564 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
39565 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
39566 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
39567 do :
39568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39570 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39571 cat >>confdefs.h <<_ACEOF
39572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39573 _ACEOF
39576 done
39582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
39583 $as_echo_n "checking for float round functions... " >&6; }
39584 if ${glibcxx_cv_func_float_round_use+:} false; then :
39585 $as_echo_n "(cached) " >&6
39586 else
39589 ac_ext=cpp
39590 ac_cpp='$CXXCPP $CPPFLAGS'
39591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39596 /* end confdefs.h. */
39597 #include <math.h>
39599 main ()
39601 ceilf (0); floorf (0);
39603 return 0;
39605 _ACEOF
39606 if ac_fn_cxx_try_compile "$LINENO"; then :
39607 glibcxx_cv_func_float_round_use=yes
39608 else
39609 glibcxx_cv_func_float_round_use=no
39611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39612 ac_ext=c
39613 ac_cpp='$CPP $CPPFLAGS'
39614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
39621 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
39622 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
39623 for ac_func in ceilf floorf
39624 do :
39625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39628 cat >>confdefs.h <<_ACEOF
39629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39630 _ACEOF
39633 done
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
39641 $as_echo_n "checking for expf declaration... " >&6; }
39642 if test x${glibcxx_cv_func_expf_use+set} != xset; then
39643 if ${glibcxx_cv_func_expf_use+:} false; then :
39644 $as_echo_n "(cached) " >&6
39645 else
39648 ac_ext=cpp
39649 ac_cpp='$CXXCPP $CPPFLAGS'
39650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39655 /* end confdefs.h. */
39656 #include <math.h>
39657 #ifdef HAVE_IEEEFP_H
39658 #include <ieeefp.h>
39659 #endif
39662 main ()
39664 expf(0);
39666 return 0;
39668 _ACEOF
39669 if ac_fn_cxx_try_compile "$LINENO"; then :
39670 glibcxx_cv_func_expf_use=yes
39671 else
39672 glibcxx_cv_func_expf_use=no
39674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39675 ac_ext=c
39676 ac_cpp='$CPP $CPPFLAGS'
39677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
39686 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
39688 if test x$glibcxx_cv_func_expf_use = x"yes"; then
39689 for ac_func in expf
39690 do :
39691 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
39692 if test "x$ac_cv_func_expf" = xyes; then :
39693 cat >>confdefs.h <<_ACEOF
39694 #define HAVE_EXPF 1
39695 _ACEOF
39698 done
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
39705 $as_echo_n "checking for isnanf declaration... " >&6; }
39706 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
39707 if ${glibcxx_cv_func_isnanf_use+:} false; then :
39708 $as_echo_n "(cached) " >&6
39709 else
39712 ac_ext=cpp
39713 ac_cpp='$CXXCPP $CPPFLAGS'
39714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39719 /* end confdefs.h. */
39720 #include <math.h>
39721 #ifdef HAVE_IEEEFP_H
39722 #include <ieeefp.h>
39723 #endif
39726 main ()
39728 isnanf(0);
39730 return 0;
39732 _ACEOF
39733 if ac_fn_cxx_try_compile "$LINENO"; then :
39734 glibcxx_cv_func_isnanf_use=yes
39735 else
39736 glibcxx_cv_func_isnanf_use=no
39738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39739 ac_ext=c
39740 ac_cpp='$CPP $CPPFLAGS'
39741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
39750 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
39752 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
39753 for ac_func in isnanf
39754 do :
39755 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
39756 if test "x$ac_cv_func_isnanf" = xyes; then :
39757 cat >>confdefs.h <<_ACEOF
39758 #define HAVE_ISNANF 1
39759 _ACEOF
39762 done
39768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
39769 $as_echo_n "checking for isinff declaration... " >&6; }
39770 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
39771 if ${glibcxx_cv_func_isinff_use+:} false; then :
39772 $as_echo_n "(cached) " >&6
39773 else
39776 ac_ext=cpp
39777 ac_cpp='$CXXCPP $CPPFLAGS'
39778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39783 /* end confdefs.h. */
39784 #include <math.h>
39785 #ifdef HAVE_IEEEFP_H
39786 #include <ieeefp.h>
39787 #endif
39790 main ()
39792 isinff(0);
39794 return 0;
39796 _ACEOF
39797 if ac_fn_cxx_try_compile "$LINENO"; then :
39798 glibcxx_cv_func_isinff_use=yes
39799 else
39800 glibcxx_cv_func_isinff_use=no
39802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39803 ac_ext=c
39804 ac_cpp='$CPP $CPPFLAGS'
39805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
39814 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
39816 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
39817 for ac_func in isinff
39818 do :
39819 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
39820 if test "x$ac_cv_func_isinff" = xyes; then :
39821 cat >>confdefs.h <<_ACEOF
39822 #define HAVE_ISINFF 1
39823 _ACEOF
39826 done
39832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
39833 $as_echo_n "checking for atan2f declaration... " >&6; }
39834 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
39835 if ${glibcxx_cv_func_atan2f_use+:} false; then :
39836 $as_echo_n "(cached) " >&6
39837 else
39840 ac_ext=cpp
39841 ac_cpp='$CXXCPP $CPPFLAGS'
39842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39847 /* end confdefs.h. */
39848 #include <math.h>
39850 main ()
39852 atan2f(0, 0);
39854 return 0;
39856 _ACEOF
39857 if ac_fn_cxx_try_compile "$LINENO"; then :
39858 glibcxx_cv_func_atan2f_use=yes
39859 else
39860 glibcxx_cv_func_atan2f_use=no
39862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39863 ac_ext=c
39864 ac_cpp='$CPP $CPPFLAGS'
39865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
39874 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
39876 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
39877 for ac_func in atan2f
39878 do :
39879 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
39880 if test "x$ac_cv_func_atan2f" = xyes; then :
39881 cat >>confdefs.h <<_ACEOF
39882 #define HAVE_ATAN2F 1
39883 _ACEOF
39886 done
39892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
39893 $as_echo_n "checking for fabsf declaration... " >&6; }
39894 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
39895 if ${glibcxx_cv_func_fabsf_use+:} false; then :
39896 $as_echo_n "(cached) " >&6
39897 else
39900 ac_ext=cpp
39901 ac_cpp='$CXXCPP $CPPFLAGS'
39902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39907 /* end confdefs.h. */
39908 #include <math.h>
39909 #ifdef HAVE_IEEEFP_H
39910 #include <ieeefp.h>
39911 #endif
39914 main ()
39916 fabsf(0);
39918 return 0;
39920 _ACEOF
39921 if ac_fn_cxx_try_compile "$LINENO"; then :
39922 glibcxx_cv_func_fabsf_use=yes
39923 else
39924 glibcxx_cv_func_fabsf_use=no
39926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39927 ac_ext=c
39928 ac_cpp='$CPP $CPPFLAGS'
39929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
39938 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
39940 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
39941 for ac_func in fabsf
39942 do :
39943 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
39944 if test "x$ac_cv_func_fabsf" = xyes; then :
39945 cat >>confdefs.h <<_ACEOF
39946 #define HAVE_FABSF 1
39947 _ACEOF
39950 done
39956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
39957 $as_echo_n "checking for fmodf declaration... " >&6; }
39958 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
39959 if ${glibcxx_cv_func_fmodf_use+:} false; then :
39960 $as_echo_n "(cached) " >&6
39961 else
39964 ac_ext=cpp
39965 ac_cpp='$CXXCPP $CPPFLAGS'
39966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39971 /* end confdefs.h. */
39972 #include <math.h>
39974 main ()
39976 fmodf(0, 0);
39978 return 0;
39980 _ACEOF
39981 if ac_fn_cxx_try_compile "$LINENO"; then :
39982 glibcxx_cv_func_fmodf_use=yes
39983 else
39984 glibcxx_cv_func_fmodf_use=no
39986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39987 ac_ext=c
39988 ac_cpp='$CPP $CPPFLAGS'
39989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
39998 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
40000 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
40001 for ac_func in fmodf
40002 do :
40003 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
40004 if test "x$ac_cv_func_fmodf" = xyes; then :
40005 cat >>confdefs.h <<_ACEOF
40006 #define HAVE_FMODF 1
40007 _ACEOF
40010 done
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
40017 $as_echo_n "checking for frexpf declaration... " >&6; }
40018 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
40019 if ${glibcxx_cv_func_frexpf_use+:} false; then :
40020 $as_echo_n "(cached) " >&6
40021 else
40024 ac_ext=cpp
40025 ac_cpp='$CXXCPP $CPPFLAGS'
40026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40031 /* end confdefs.h. */
40032 #include <math.h>
40034 main ()
40036 frexpf(0, 0);
40038 return 0;
40040 _ACEOF
40041 if ac_fn_cxx_try_compile "$LINENO"; then :
40042 glibcxx_cv_func_frexpf_use=yes
40043 else
40044 glibcxx_cv_func_frexpf_use=no
40046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40047 ac_ext=c
40048 ac_cpp='$CPP $CPPFLAGS'
40049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
40058 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
40060 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
40061 for ac_func in frexpf
40062 do :
40063 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
40064 if test "x$ac_cv_func_frexpf" = xyes; then :
40065 cat >>confdefs.h <<_ACEOF
40066 #define HAVE_FREXPF 1
40067 _ACEOF
40070 done
40076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
40077 $as_echo_n "checking for hypotf declaration... " >&6; }
40078 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
40079 if ${glibcxx_cv_func_hypotf_use+:} false; then :
40080 $as_echo_n "(cached) " >&6
40081 else
40084 ac_ext=cpp
40085 ac_cpp='$CXXCPP $CPPFLAGS'
40086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40091 /* end confdefs.h. */
40092 #include <math.h>
40094 main ()
40096 hypotf(0, 0);
40098 return 0;
40100 _ACEOF
40101 if ac_fn_cxx_try_compile "$LINENO"; then :
40102 glibcxx_cv_func_hypotf_use=yes
40103 else
40104 glibcxx_cv_func_hypotf_use=no
40106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40107 ac_ext=c
40108 ac_cpp='$CPP $CPPFLAGS'
40109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
40118 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
40120 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
40121 for ac_func in hypotf
40122 do :
40123 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
40124 if test "x$ac_cv_func_hypotf" = xyes; then :
40125 cat >>confdefs.h <<_ACEOF
40126 #define HAVE_HYPOTF 1
40127 _ACEOF
40130 done
40136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
40137 $as_echo_n "checking for ldexpf declaration... " >&6; }
40138 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
40139 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
40140 $as_echo_n "(cached) " >&6
40141 else
40144 ac_ext=cpp
40145 ac_cpp='$CXXCPP $CPPFLAGS'
40146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40151 /* end confdefs.h. */
40152 #include <math.h>
40154 main ()
40156 ldexpf(0, 0);
40158 return 0;
40160 _ACEOF
40161 if ac_fn_cxx_try_compile "$LINENO"; then :
40162 glibcxx_cv_func_ldexpf_use=yes
40163 else
40164 glibcxx_cv_func_ldexpf_use=no
40166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40167 ac_ext=c
40168 ac_cpp='$CPP $CPPFLAGS'
40169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
40178 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
40180 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
40181 for ac_func in ldexpf
40182 do :
40183 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
40184 if test "x$ac_cv_func_ldexpf" = xyes; then :
40185 cat >>confdefs.h <<_ACEOF
40186 #define HAVE_LDEXPF 1
40187 _ACEOF
40190 done
40196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
40197 $as_echo_n "checking for logf declaration... " >&6; }
40198 if test x${glibcxx_cv_func_logf_use+set} != xset; then
40199 if ${glibcxx_cv_func_logf_use+:} false; then :
40200 $as_echo_n "(cached) " >&6
40201 else
40204 ac_ext=cpp
40205 ac_cpp='$CXXCPP $CPPFLAGS'
40206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40211 /* end confdefs.h. */
40212 #include <math.h>
40213 #ifdef HAVE_IEEEFP_H
40214 #include <ieeefp.h>
40215 #endif
40218 main ()
40220 logf(0);
40222 return 0;
40224 _ACEOF
40225 if ac_fn_cxx_try_compile "$LINENO"; then :
40226 glibcxx_cv_func_logf_use=yes
40227 else
40228 glibcxx_cv_func_logf_use=no
40230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40231 ac_ext=c
40232 ac_cpp='$CPP $CPPFLAGS'
40233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
40242 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
40244 if test x$glibcxx_cv_func_logf_use = x"yes"; then
40245 for ac_func in logf
40246 do :
40247 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
40248 if test "x$ac_cv_func_logf" = xyes; then :
40249 cat >>confdefs.h <<_ACEOF
40250 #define HAVE_LOGF 1
40251 _ACEOF
40254 done
40260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
40261 $as_echo_n "checking for log10f declaration... " >&6; }
40262 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
40263 if ${glibcxx_cv_func_log10f_use+:} false; then :
40264 $as_echo_n "(cached) " >&6
40265 else
40268 ac_ext=cpp
40269 ac_cpp='$CXXCPP $CPPFLAGS'
40270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40275 /* end confdefs.h. */
40276 #include <math.h>
40277 #ifdef HAVE_IEEEFP_H
40278 #include <ieeefp.h>
40279 #endif
40282 main ()
40284 log10f(0);
40286 return 0;
40288 _ACEOF
40289 if ac_fn_cxx_try_compile "$LINENO"; then :
40290 glibcxx_cv_func_log10f_use=yes
40291 else
40292 glibcxx_cv_func_log10f_use=no
40294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40295 ac_ext=c
40296 ac_cpp='$CPP $CPPFLAGS'
40297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
40306 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
40308 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
40309 for ac_func in log10f
40310 do :
40311 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
40312 if test "x$ac_cv_func_log10f" = xyes; then :
40313 cat >>confdefs.h <<_ACEOF
40314 #define HAVE_LOG10F 1
40315 _ACEOF
40318 done
40324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
40325 $as_echo_n "checking for modff declaration... " >&6; }
40326 if test x${glibcxx_cv_func_modff_use+set} != xset; then
40327 if ${glibcxx_cv_func_modff_use+:} false; then :
40328 $as_echo_n "(cached) " >&6
40329 else
40332 ac_ext=cpp
40333 ac_cpp='$CXXCPP $CPPFLAGS'
40334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40339 /* end confdefs.h. */
40340 #include <math.h>
40342 main ()
40344 modff(0, 0);
40346 return 0;
40348 _ACEOF
40349 if ac_fn_cxx_try_compile "$LINENO"; then :
40350 glibcxx_cv_func_modff_use=yes
40351 else
40352 glibcxx_cv_func_modff_use=no
40354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40355 ac_ext=c
40356 ac_cpp='$CPP $CPPFLAGS'
40357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
40366 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
40368 if test x$glibcxx_cv_func_modff_use = x"yes"; then
40369 for ac_func in modff
40370 do :
40371 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
40372 if test "x$ac_cv_func_modff" = xyes; then :
40373 cat >>confdefs.h <<_ACEOF
40374 #define HAVE_MODFF 1
40375 _ACEOF
40378 done
40384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
40385 $as_echo_n "checking for modf declaration... " >&6; }
40386 if test x${glibcxx_cv_func_modf_use+set} != xset; then
40387 if ${glibcxx_cv_func_modf_use+:} false; then :
40388 $as_echo_n "(cached) " >&6
40389 else
40392 ac_ext=cpp
40393 ac_cpp='$CXXCPP $CPPFLAGS'
40394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40399 /* end confdefs.h. */
40400 #include <math.h>
40402 main ()
40404 modf(0, 0);
40406 return 0;
40408 _ACEOF
40409 if ac_fn_cxx_try_compile "$LINENO"; then :
40410 glibcxx_cv_func_modf_use=yes
40411 else
40412 glibcxx_cv_func_modf_use=no
40414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40415 ac_ext=c
40416 ac_cpp='$CPP $CPPFLAGS'
40417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
40426 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
40428 if test x$glibcxx_cv_func_modf_use = x"yes"; then
40429 for ac_func in modf
40430 do :
40431 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
40432 if test "x$ac_cv_func_modf" = xyes; then :
40433 cat >>confdefs.h <<_ACEOF
40434 #define HAVE_MODF 1
40435 _ACEOF
40438 done
40444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
40445 $as_echo_n "checking for powf declaration... " >&6; }
40446 if test x${glibcxx_cv_func_powf_use+set} != xset; then
40447 if ${glibcxx_cv_func_powf_use+:} false; then :
40448 $as_echo_n "(cached) " >&6
40449 else
40452 ac_ext=cpp
40453 ac_cpp='$CXXCPP $CPPFLAGS'
40454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40459 /* end confdefs.h. */
40460 #include <math.h>
40462 main ()
40464 powf(0, 0);
40466 return 0;
40468 _ACEOF
40469 if ac_fn_cxx_try_compile "$LINENO"; then :
40470 glibcxx_cv_func_powf_use=yes
40471 else
40472 glibcxx_cv_func_powf_use=no
40474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40475 ac_ext=c
40476 ac_cpp='$CPP $CPPFLAGS'
40477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
40486 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
40488 if test x$glibcxx_cv_func_powf_use = x"yes"; then
40489 for ac_func in powf
40490 do :
40491 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
40492 if test "x$ac_cv_func_powf" = xyes; then :
40493 cat >>confdefs.h <<_ACEOF
40494 #define HAVE_POWF 1
40495 _ACEOF
40498 done
40504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
40505 $as_echo_n "checking for sqrtf declaration... " >&6; }
40506 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
40507 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
40508 $as_echo_n "(cached) " >&6
40509 else
40512 ac_ext=cpp
40513 ac_cpp='$CXXCPP $CPPFLAGS'
40514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40519 /* end confdefs.h. */
40520 #include <math.h>
40521 #ifdef HAVE_IEEEFP_H
40522 #include <ieeefp.h>
40523 #endif
40526 main ()
40528 sqrtf(0);
40530 return 0;
40532 _ACEOF
40533 if ac_fn_cxx_try_compile "$LINENO"; then :
40534 glibcxx_cv_func_sqrtf_use=yes
40535 else
40536 glibcxx_cv_func_sqrtf_use=no
40538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40539 ac_ext=c
40540 ac_cpp='$CPP $CPPFLAGS'
40541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
40550 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
40552 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
40553 for ac_func in sqrtf
40554 do :
40555 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
40556 if test "x$ac_cv_func_sqrtf" = xyes; then :
40557 cat >>confdefs.h <<_ACEOF
40558 #define HAVE_SQRTF 1
40559 _ACEOF
40562 done
40568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
40569 $as_echo_n "checking for sincosf declaration... " >&6; }
40570 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40571 if ${glibcxx_cv_func_sincosf_use+:} false; then :
40572 $as_echo_n "(cached) " >&6
40573 else
40576 ac_ext=cpp
40577 ac_cpp='$CXXCPP $CPPFLAGS'
40578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40583 /* end confdefs.h. */
40584 #include <math.h>
40586 main ()
40588 sincosf(0, 0, 0);
40590 return 0;
40592 _ACEOF
40593 if ac_fn_cxx_try_compile "$LINENO"; then :
40594 glibcxx_cv_func_sincosf_use=yes
40595 else
40596 glibcxx_cv_func_sincosf_use=no
40598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40599 ac_ext=c
40600 ac_cpp='$CPP $CPPFLAGS'
40601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
40610 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
40612 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40613 for ac_func in sincosf
40614 do :
40615 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
40616 if test "x$ac_cv_func_sincosf" = xyes; then :
40617 cat >>confdefs.h <<_ACEOF
40618 #define HAVE_SINCOSF 1
40619 _ACEOF
40622 done
40628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
40629 $as_echo_n "checking for finitef declaration... " >&6; }
40630 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40631 if ${glibcxx_cv_func_finitef_use+:} false; then :
40632 $as_echo_n "(cached) " >&6
40633 else
40636 ac_ext=cpp
40637 ac_cpp='$CXXCPP $CPPFLAGS'
40638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40643 /* end confdefs.h. */
40644 #include <math.h>
40645 #ifdef HAVE_IEEEFP_H
40646 #include <ieeefp.h>
40647 #endif
40650 main ()
40652 finitef(0);
40654 return 0;
40656 _ACEOF
40657 if ac_fn_cxx_try_compile "$LINENO"; then :
40658 glibcxx_cv_func_finitef_use=yes
40659 else
40660 glibcxx_cv_func_finitef_use=no
40662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40663 ac_ext=c
40664 ac_cpp='$CPP $CPPFLAGS'
40665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
40674 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
40676 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40677 for ac_func in finitef
40678 do :
40679 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
40680 if test "x$ac_cv_func_finitef" = xyes; then :
40681 cat >>confdefs.h <<_ACEOF
40682 #define HAVE_FINITEF 1
40683 _ACEOF
40686 done
40692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
40693 $as_echo_n "checking for long double trig functions... " >&6; }
40694 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
40695 $as_echo_n "(cached) " >&6
40696 else
40699 ac_ext=cpp
40700 ac_cpp='$CXXCPP $CPPFLAGS'
40701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40706 /* end confdefs.h. */
40707 #include <math.h>
40709 main ()
40711 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
40713 return 0;
40715 _ACEOF
40716 if ac_fn_cxx_try_compile "$LINENO"; then :
40717 glibcxx_cv_func_long_double_trig_use=yes
40718 else
40719 glibcxx_cv_func_long_double_trig_use=no
40721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40722 ac_ext=c
40723 ac_cpp='$CPP $CPPFLAGS'
40724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
40731 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
40732 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40733 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
40734 do :
40735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40738 cat >>confdefs.h <<_ACEOF
40739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40740 _ACEOF
40743 done
40749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
40750 $as_echo_n "checking for long double round functions... " >&6; }
40751 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
40752 $as_echo_n "(cached) " >&6
40753 else
40756 ac_ext=cpp
40757 ac_cpp='$CXXCPP $CPPFLAGS'
40758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40763 /* end confdefs.h. */
40764 #include <math.h>
40766 main ()
40768 ceill (0); floorl (0);
40770 return 0;
40772 _ACEOF
40773 if ac_fn_cxx_try_compile "$LINENO"; then :
40774 glibcxx_cv_func_long_double_round_use=yes
40775 else
40776 glibcxx_cv_func_long_double_round_use=no
40778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40779 ac_ext=c
40780 ac_cpp='$CPP $CPPFLAGS'
40781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
40788 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
40789 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
40790 for ac_func in ceill floorl
40791 do :
40792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40794 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40795 cat >>confdefs.h <<_ACEOF
40796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40797 _ACEOF
40800 done
40807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
40808 $as_echo_n "checking for isnanl declaration... " >&6; }
40809 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
40810 if ${glibcxx_cv_func_isnanl_use+:} false; then :
40811 $as_echo_n "(cached) " >&6
40812 else
40815 ac_ext=cpp
40816 ac_cpp='$CXXCPP $CPPFLAGS'
40817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40822 /* end confdefs.h. */
40823 #include <math.h>
40824 #ifdef HAVE_IEEEFP_H
40825 #include <ieeefp.h>
40826 #endif
40829 main ()
40831 isnanl(0);
40833 return 0;
40835 _ACEOF
40836 if ac_fn_cxx_try_compile "$LINENO"; then :
40837 glibcxx_cv_func_isnanl_use=yes
40838 else
40839 glibcxx_cv_func_isnanl_use=no
40841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40842 ac_ext=c
40843 ac_cpp='$CPP $CPPFLAGS'
40844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
40853 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
40855 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
40856 for ac_func in isnanl
40857 do :
40858 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
40859 if test "x$ac_cv_func_isnanl" = xyes; then :
40860 cat >>confdefs.h <<_ACEOF
40861 #define HAVE_ISNANL 1
40862 _ACEOF
40865 done
40871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
40872 $as_echo_n "checking for isinfl declaration... " >&6; }
40873 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
40874 if ${glibcxx_cv_func_isinfl_use+:} false; then :
40875 $as_echo_n "(cached) " >&6
40876 else
40879 ac_ext=cpp
40880 ac_cpp='$CXXCPP $CPPFLAGS'
40881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40886 /* end confdefs.h. */
40887 #include <math.h>
40888 #ifdef HAVE_IEEEFP_H
40889 #include <ieeefp.h>
40890 #endif
40893 main ()
40895 isinfl(0);
40897 return 0;
40899 _ACEOF
40900 if ac_fn_cxx_try_compile "$LINENO"; then :
40901 glibcxx_cv_func_isinfl_use=yes
40902 else
40903 glibcxx_cv_func_isinfl_use=no
40905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40906 ac_ext=c
40907 ac_cpp='$CPP $CPPFLAGS'
40908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
40917 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
40919 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
40920 for ac_func in isinfl
40921 do :
40922 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
40923 if test "x$ac_cv_func_isinfl" = xyes; then :
40924 cat >>confdefs.h <<_ACEOF
40925 #define HAVE_ISINFL 1
40926 _ACEOF
40929 done
40935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
40936 $as_echo_n "checking for atan2l declaration... " >&6; }
40937 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
40938 if ${glibcxx_cv_func_atan2l_use+:} false; then :
40939 $as_echo_n "(cached) " >&6
40940 else
40943 ac_ext=cpp
40944 ac_cpp='$CXXCPP $CPPFLAGS'
40945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40950 /* end confdefs.h. */
40951 #include <math.h>
40953 main ()
40955 atan2l(0, 0);
40957 return 0;
40959 _ACEOF
40960 if ac_fn_cxx_try_compile "$LINENO"; then :
40961 glibcxx_cv_func_atan2l_use=yes
40962 else
40963 glibcxx_cv_func_atan2l_use=no
40965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40966 ac_ext=c
40967 ac_cpp='$CPP $CPPFLAGS'
40968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
40977 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
40979 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
40980 for ac_func in atan2l
40981 do :
40982 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
40983 if test "x$ac_cv_func_atan2l" = xyes; then :
40984 cat >>confdefs.h <<_ACEOF
40985 #define HAVE_ATAN2L 1
40986 _ACEOF
40989 done
40995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
40996 $as_echo_n "checking for expl declaration... " >&6; }
40997 if test x${glibcxx_cv_func_expl_use+set} != xset; then
40998 if ${glibcxx_cv_func_expl_use+:} false; then :
40999 $as_echo_n "(cached) " >&6
41000 else
41003 ac_ext=cpp
41004 ac_cpp='$CXXCPP $CPPFLAGS'
41005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41010 /* end confdefs.h. */
41011 #include <math.h>
41012 #ifdef HAVE_IEEEFP_H
41013 #include <ieeefp.h>
41014 #endif
41017 main ()
41019 expl(0);
41021 return 0;
41023 _ACEOF
41024 if ac_fn_cxx_try_compile "$LINENO"; then :
41025 glibcxx_cv_func_expl_use=yes
41026 else
41027 glibcxx_cv_func_expl_use=no
41029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41030 ac_ext=c
41031 ac_cpp='$CPP $CPPFLAGS'
41032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
41041 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
41043 if test x$glibcxx_cv_func_expl_use = x"yes"; then
41044 for ac_func in expl
41045 do :
41046 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
41047 if test "x$ac_cv_func_expl" = xyes; then :
41048 cat >>confdefs.h <<_ACEOF
41049 #define HAVE_EXPL 1
41050 _ACEOF
41053 done
41059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
41060 $as_echo_n "checking for fabsl declaration... " >&6; }
41061 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
41062 if ${glibcxx_cv_func_fabsl_use+:} false; then :
41063 $as_echo_n "(cached) " >&6
41064 else
41067 ac_ext=cpp
41068 ac_cpp='$CXXCPP $CPPFLAGS'
41069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41074 /* end confdefs.h. */
41075 #include <math.h>
41076 #ifdef HAVE_IEEEFP_H
41077 #include <ieeefp.h>
41078 #endif
41081 main ()
41083 fabsl(0);
41085 return 0;
41087 _ACEOF
41088 if ac_fn_cxx_try_compile "$LINENO"; then :
41089 glibcxx_cv_func_fabsl_use=yes
41090 else
41091 glibcxx_cv_func_fabsl_use=no
41093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41094 ac_ext=c
41095 ac_cpp='$CPP $CPPFLAGS'
41096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
41105 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
41107 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
41108 for ac_func in fabsl
41109 do :
41110 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
41111 if test "x$ac_cv_func_fabsl" = xyes; then :
41112 cat >>confdefs.h <<_ACEOF
41113 #define HAVE_FABSL 1
41114 _ACEOF
41117 done
41123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
41124 $as_echo_n "checking for fmodl declaration... " >&6; }
41125 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
41126 if ${glibcxx_cv_func_fmodl_use+:} false; then :
41127 $as_echo_n "(cached) " >&6
41128 else
41131 ac_ext=cpp
41132 ac_cpp='$CXXCPP $CPPFLAGS'
41133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41138 /* end confdefs.h. */
41139 #include <math.h>
41141 main ()
41143 fmodl(0, 0);
41145 return 0;
41147 _ACEOF
41148 if ac_fn_cxx_try_compile "$LINENO"; then :
41149 glibcxx_cv_func_fmodl_use=yes
41150 else
41151 glibcxx_cv_func_fmodl_use=no
41153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41154 ac_ext=c
41155 ac_cpp='$CPP $CPPFLAGS'
41156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
41165 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
41167 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
41168 for ac_func in fmodl
41169 do :
41170 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
41171 if test "x$ac_cv_func_fmodl" = xyes; then :
41172 cat >>confdefs.h <<_ACEOF
41173 #define HAVE_FMODL 1
41174 _ACEOF
41177 done
41183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
41184 $as_echo_n "checking for frexpl declaration... " >&6; }
41185 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
41186 if ${glibcxx_cv_func_frexpl_use+:} false; then :
41187 $as_echo_n "(cached) " >&6
41188 else
41191 ac_ext=cpp
41192 ac_cpp='$CXXCPP $CPPFLAGS'
41193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41198 /* end confdefs.h. */
41199 #include <math.h>
41201 main ()
41203 frexpl(0, 0);
41205 return 0;
41207 _ACEOF
41208 if ac_fn_cxx_try_compile "$LINENO"; then :
41209 glibcxx_cv_func_frexpl_use=yes
41210 else
41211 glibcxx_cv_func_frexpl_use=no
41213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41214 ac_ext=c
41215 ac_cpp='$CPP $CPPFLAGS'
41216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
41225 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
41227 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
41228 for ac_func in frexpl
41229 do :
41230 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
41231 if test "x$ac_cv_func_frexpl" = xyes; then :
41232 cat >>confdefs.h <<_ACEOF
41233 #define HAVE_FREXPL 1
41234 _ACEOF
41237 done
41243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
41244 $as_echo_n "checking for hypotl declaration... " >&6; }
41245 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
41246 if ${glibcxx_cv_func_hypotl_use+:} false; then :
41247 $as_echo_n "(cached) " >&6
41248 else
41251 ac_ext=cpp
41252 ac_cpp='$CXXCPP $CPPFLAGS'
41253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41258 /* end confdefs.h. */
41259 #include <math.h>
41261 main ()
41263 hypotl(0, 0);
41265 return 0;
41267 _ACEOF
41268 if ac_fn_cxx_try_compile "$LINENO"; then :
41269 glibcxx_cv_func_hypotl_use=yes
41270 else
41271 glibcxx_cv_func_hypotl_use=no
41273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41274 ac_ext=c
41275 ac_cpp='$CPP $CPPFLAGS'
41276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
41285 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
41287 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
41288 for ac_func in hypotl
41289 do :
41290 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
41291 if test "x$ac_cv_func_hypotl" = xyes; then :
41292 cat >>confdefs.h <<_ACEOF
41293 #define HAVE_HYPOTL 1
41294 _ACEOF
41297 done
41303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
41304 $as_echo_n "checking for ldexpl declaration... " >&6; }
41305 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
41306 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
41307 $as_echo_n "(cached) " >&6
41308 else
41311 ac_ext=cpp
41312 ac_cpp='$CXXCPP $CPPFLAGS'
41313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41318 /* end confdefs.h. */
41319 #include <math.h>
41321 main ()
41323 ldexpl(0, 0);
41325 return 0;
41327 _ACEOF
41328 if ac_fn_cxx_try_compile "$LINENO"; then :
41329 glibcxx_cv_func_ldexpl_use=yes
41330 else
41331 glibcxx_cv_func_ldexpl_use=no
41333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41334 ac_ext=c
41335 ac_cpp='$CPP $CPPFLAGS'
41336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
41345 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
41347 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
41348 for ac_func in ldexpl
41349 do :
41350 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
41351 if test "x$ac_cv_func_ldexpl" = xyes; then :
41352 cat >>confdefs.h <<_ACEOF
41353 #define HAVE_LDEXPL 1
41354 _ACEOF
41357 done
41363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
41364 $as_echo_n "checking for logl declaration... " >&6; }
41365 if test x${glibcxx_cv_func_logl_use+set} != xset; then
41366 if ${glibcxx_cv_func_logl_use+:} false; then :
41367 $as_echo_n "(cached) " >&6
41368 else
41371 ac_ext=cpp
41372 ac_cpp='$CXXCPP $CPPFLAGS'
41373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41378 /* end confdefs.h. */
41379 #include <math.h>
41380 #ifdef HAVE_IEEEFP_H
41381 #include <ieeefp.h>
41382 #endif
41385 main ()
41387 logl(0);
41389 return 0;
41391 _ACEOF
41392 if ac_fn_cxx_try_compile "$LINENO"; then :
41393 glibcxx_cv_func_logl_use=yes
41394 else
41395 glibcxx_cv_func_logl_use=no
41397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41398 ac_ext=c
41399 ac_cpp='$CPP $CPPFLAGS'
41400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
41409 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
41411 if test x$glibcxx_cv_func_logl_use = x"yes"; then
41412 for ac_func in logl
41413 do :
41414 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
41415 if test "x$ac_cv_func_logl" = xyes; then :
41416 cat >>confdefs.h <<_ACEOF
41417 #define HAVE_LOGL 1
41418 _ACEOF
41421 done
41427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
41428 $as_echo_n "checking for log10l declaration... " >&6; }
41429 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
41430 if ${glibcxx_cv_func_log10l_use+:} false; then :
41431 $as_echo_n "(cached) " >&6
41432 else
41435 ac_ext=cpp
41436 ac_cpp='$CXXCPP $CPPFLAGS'
41437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41442 /* end confdefs.h. */
41443 #include <math.h>
41444 #ifdef HAVE_IEEEFP_H
41445 #include <ieeefp.h>
41446 #endif
41449 main ()
41451 log10l(0);
41453 return 0;
41455 _ACEOF
41456 if ac_fn_cxx_try_compile "$LINENO"; then :
41457 glibcxx_cv_func_log10l_use=yes
41458 else
41459 glibcxx_cv_func_log10l_use=no
41461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41462 ac_ext=c
41463 ac_cpp='$CPP $CPPFLAGS'
41464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
41473 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
41475 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
41476 for ac_func in log10l
41477 do :
41478 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
41479 if test "x$ac_cv_func_log10l" = xyes; then :
41480 cat >>confdefs.h <<_ACEOF
41481 #define HAVE_LOG10L 1
41482 _ACEOF
41485 done
41491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
41492 $as_echo_n "checking for modfl declaration... " >&6; }
41493 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
41494 if ${glibcxx_cv_func_modfl_use+:} false; then :
41495 $as_echo_n "(cached) " >&6
41496 else
41499 ac_ext=cpp
41500 ac_cpp='$CXXCPP $CPPFLAGS'
41501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41506 /* end confdefs.h. */
41507 #include <math.h>
41509 main ()
41511 modfl(0, 0);
41513 return 0;
41515 _ACEOF
41516 if ac_fn_cxx_try_compile "$LINENO"; then :
41517 glibcxx_cv_func_modfl_use=yes
41518 else
41519 glibcxx_cv_func_modfl_use=no
41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41522 ac_ext=c
41523 ac_cpp='$CPP $CPPFLAGS'
41524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
41533 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
41535 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
41536 for ac_func in modfl
41537 do :
41538 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
41539 if test "x$ac_cv_func_modfl" = xyes; then :
41540 cat >>confdefs.h <<_ACEOF
41541 #define HAVE_MODFL 1
41542 _ACEOF
41545 done
41551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
41552 $as_echo_n "checking for powl declaration... " >&6; }
41553 if test x${glibcxx_cv_func_powl_use+set} != xset; then
41554 if ${glibcxx_cv_func_powl_use+:} false; then :
41555 $as_echo_n "(cached) " >&6
41556 else
41559 ac_ext=cpp
41560 ac_cpp='$CXXCPP $CPPFLAGS'
41561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41566 /* end confdefs.h. */
41567 #include <math.h>
41569 main ()
41571 powl(0, 0);
41573 return 0;
41575 _ACEOF
41576 if ac_fn_cxx_try_compile "$LINENO"; then :
41577 glibcxx_cv_func_powl_use=yes
41578 else
41579 glibcxx_cv_func_powl_use=no
41581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41582 ac_ext=c
41583 ac_cpp='$CPP $CPPFLAGS'
41584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
41593 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
41595 if test x$glibcxx_cv_func_powl_use = x"yes"; then
41596 for ac_func in powl
41597 do :
41598 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
41599 if test "x$ac_cv_func_powl" = xyes; then :
41600 cat >>confdefs.h <<_ACEOF
41601 #define HAVE_POWL 1
41602 _ACEOF
41605 done
41611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
41612 $as_echo_n "checking for sqrtl declaration... " >&6; }
41613 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
41614 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
41615 $as_echo_n "(cached) " >&6
41616 else
41619 ac_ext=cpp
41620 ac_cpp='$CXXCPP $CPPFLAGS'
41621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41626 /* end confdefs.h. */
41627 #include <math.h>
41628 #ifdef HAVE_IEEEFP_H
41629 #include <ieeefp.h>
41630 #endif
41633 main ()
41635 sqrtl(0);
41637 return 0;
41639 _ACEOF
41640 if ac_fn_cxx_try_compile "$LINENO"; then :
41641 glibcxx_cv_func_sqrtl_use=yes
41642 else
41643 glibcxx_cv_func_sqrtl_use=no
41645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41646 ac_ext=c
41647 ac_cpp='$CPP $CPPFLAGS'
41648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
41657 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
41659 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
41660 for ac_func in sqrtl
41661 do :
41662 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
41663 if test "x$ac_cv_func_sqrtl" = xyes; then :
41664 cat >>confdefs.h <<_ACEOF
41665 #define HAVE_SQRTL 1
41666 _ACEOF
41669 done
41675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
41676 $as_echo_n "checking for sincosl declaration... " >&6; }
41677 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41678 if ${glibcxx_cv_func_sincosl_use+:} false; then :
41679 $as_echo_n "(cached) " >&6
41680 else
41683 ac_ext=cpp
41684 ac_cpp='$CXXCPP $CPPFLAGS'
41685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41690 /* end confdefs.h. */
41691 #include <math.h>
41693 main ()
41695 sincosl(0, 0, 0);
41697 return 0;
41699 _ACEOF
41700 if ac_fn_cxx_try_compile "$LINENO"; then :
41701 glibcxx_cv_func_sincosl_use=yes
41702 else
41703 glibcxx_cv_func_sincosl_use=no
41705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41706 ac_ext=c
41707 ac_cpp='$CPP $CPPFLAGS'
41708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
41717 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
41719 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41720 for ac_func in sincosl
41721 do :
41722 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
41723 if test "x$ac_cv_func_sincosl" = xyes; then :
41724 cat >>confdefs.h <<_ACEOF
41725 #define HAVE_SINCOSL 1
41726 _ACEOF
41729 done
41735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
41736 $as_echo_n "checking for finitel declaration... " >&6; }
41737 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41738 if ${glibcxx_cv_func_finitel_use+:} false; then :
41739 $as_echo_n "(cached) " >&6
41740 else
41743 ac_ext=cpp
41744 ac_cpp='$CXXCPP $CPPFLAGS'
41745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750 /* end confdefs.h. */
41751 #include <math.h>
41752 #ifdef HAVE_IEEEFP_H
41753 #include <ieeefp.h>
41754 #endif
41757 main ()
41759 finitel(0);
41761 return 0;
41763 _ACEOF
41764 if ac_fn_cxx_try_compile "$LINENO"; then :
41765 glibcxx_cv_func_finitel_use=yes
41766 else
41767 glibcxx_cv_func_finitel_use=no
41769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41770 ac_ext=c
41771 ac_cpp='$CPP $CPPFLAGS'
41772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
41781 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
41783 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41784 for ac_func in finitel
41785 do :
41786 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
41787 if test "x$ac_cv_func_finitel" = xyes; then :
41788 cat >>confdefs.h <<_ACEOF
41789 #define HAVE_FINITEL 1
41790 _ACEOF
41793 done
41798 LIBS="$ac_save_LIBS"
41799 CXXFLAGS="$ac_save_CXXFLAGS"
41802 ac_test_CXXFLAGS="${CXXFLAGS+set}"
41803 ac_save_CXXFLAGS="$CXXFLAGS"
41804 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
41807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
41808 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
41809 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
41810 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
41811 $as_echo_n "(cached) " >&6
41812 else
41815 ac_ext=cpp
41816 ac_cpp='$CXXCPP $CPPFLAGS'
41817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41822 /* end confdefs.h. */
41823 #include <stdlib.h>
41825 main ()
41827 at_quick_exit(0);
41829 return 0;
41831 _ACEOF
41832 if ac_fn_cxx_try_compile "$LINENO"; then :
41833 glibcxx_cv_func_at_quick_exit_use=yes
41834 else
41835 glibcxx_cv_func_at_quick_exit_use=no
41837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41838 ac_ext=c
41839 ac_cpp='$CPP $CPPFLAGS'
41840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
41849 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
41850 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
41851 for ac_func in at_quick_exit
41852 do :
41853 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
41854 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
41855 cat >>confdefs.h <<_ACEOF
41856 #define HAVE_AT_QUICK_EXIT 1
41857 _ACEOF
41860 done
41865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
41866 $as_echo_n "checking for quick_exit declaration... " >&6; }
41867 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
41868 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
41869 $as_echo_n "(cached) " >&6
41870 else
41873 ac_ext=cpp
41874 ac_cpp='$CXXCPP $CPPFLAGS'
41875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41880 /* end confdefs.h. */
41881 #include <stdlib.h>
41883 main ()
41885 quick_exit(0);
41887 return 0;
41889 _ACEOF
41890 if ac_fn_cxx_try_compile "$LINENO"; then :
41891 glibcxx_cv_func_quick_exit_use=yes
41892 else
41893 glibcxx_cv_func_quick_exit_use=no
41895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41896 ac_ext=c
41897 ac_cpp='$CPP $CPPFLAGS'
41898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
41907 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
41908 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
41909 for ac_func in quick_exit
41910 do :
41911 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
41912 if test "x$ac_cv_func_quick_exit" = xyes; then :
41913 cat >>confdefs.h <<_ACEOF
41914 #define HAVE_QUICK_EXIT 1
41915 _ACEOF
41918 done
41923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
41924 $as_echo_n "checking for strtold declaration... " >&6; }
41925 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
41926 if ${glibcxx_cv_func_strtold_use+:} false; then :
41927 $as_echo_n "(cached) " >&6
41928 else
41931 ac_ext=cpp
41932 ac_cpp='$CXXCPP $CPPFLAGS'
41933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41938 /* end confdefs.h. */
41939 #include <stdlib.h>
41941 main ()
41943 strtold(0, 0);
41945 return 0;
41947 _ACEOF
41948 if ac_fn_cxx_try_compile "$LINENO"; then :
41949 glibcxx_cv_func_strtold_use=yes
41950 else
41951 glibcxx_cv_func_strtold_use=no
41953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41954 ac_ext=c
41955 ac_cpp='$CPP $CPPFLAGS'
41956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
41965 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
41966 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
41967 for ac_func in strtold
41968 do :
41969 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
41970 if test "x$ac_cv_func_strtold" = xyes; then :
41971 cat >>confdefs.h <<_ACEOF
41972 #define HAVE_STRTOLD 1
41973 _ACEOF
41976 done
41981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
41982 $as_echo_n "checking for strtof declaration... " >&6; }
41983 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
41984 if ${glibcxx_cv_func_strtof_use+:} false; then :
41985 $as_echo_n "(cached) " >&6
41986 else
41989 ac_ext=cpp
41990 ac_cpp='$CXXCPP $CPPFLAGS'
41991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41996 /* end confdefs.h. */
41997 #include <stdlib.h>
41999 main ()
42001 strtof(0, 0);
42003 return 0;
42005 _ACEOF
42006 if ac_fn_cxx_try_compile "$LINENO"; then :
42007 glibcxx_cv_func_strtof_use=yes
42008 else
42009 glibcxx_cv_func_strtof_use=no
42011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42012 ac_ext=c
42013 ac_cpp='$CPP $CPPFLAGS'
42014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
42023 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
42024 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
42025 for ac_func in strtof
42026 do :
42027 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
42028 if test "x$ac_cv_func_strtof" = xyes; then :
42029 cat >>confdefs.h <<_ACEOF
42030 #define HAVE_STRTOF 1
42031 _ACEOF
42034 done
42039 CXXFLAGS="$ac_save_CXXFLAGS"
42041 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
42043 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
42047 # Check whether --enable-tls was given.
42048 if test "${enable_tls+set}" = set; then :
42049 enableval=$enable_tls;
42050 case "$enableval" in
42051 yes|no) ;;
42052 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
42053 esac
42055 else
42056 enable_tls=yes
42060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
42061 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
42062 if ${gcc_cv_have_tls+:} false; then :
42063 $as_echo_n "(cached) " >&6
42064 else
42066 if test "$cross_compiling" = yes; then :
42067 if test x$gcc_no_link = xyes; then
42068 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42071 /* end confdefs.h. */
42072 __thread int a; int b; int main() { return a = b; }
42073 _ACEOF
42074 if ac_fn_c_try_link "$LINENO"; then :
42075 chktls_save_LDFLAGS="$LDFLAGS"
42076 case $host in
42077 *-*-linux* | -*-uclinuxfdpic*)
42078 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
42080 esac
42081 chktls_save_CFLAGS="$CFLAGS"
42082 CFLAGS="-fPIC $CFLAGS"
42083 if test x$gcc_no_link = xyes; then
42084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42087 /* end confdefs.h. */
42088 int f() { return 0; }
42089 _ACEOF
42090 if ac_fn_c_try_link "$LINENO"; then :
42091 if test x$gcc_no_link = xyes; then
42092 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42095 /* end confdefs.h. */
42096 __thread int a; int b; int f() { return a = b; }
42097 _ACEOF
42098 if ac_fn_c_try_link "$LINENO"; then :
42099 gcc_cv_have_tls=yes
42100 else
42101 gcc_cv_have_tls=no
42103 rm -f core conftest.err conftest.$ac_objext \
42104 conftest$ac_exeext conftest.$ac_ext
42105 else
42106 gcc_cv_have_tls=yes
42108 rm -f core conftest.err conftest.$ac_objext \
42109 conftest$ac_exeext conftest.$ac_ext
42110 CFLAGS="$chktls_save_CFLAGS"
42111 LDFLAGS="$chktls_save_LDFLAGS"
42112 else
42113 gcc_cv_have_tls=no
42115 rm -f core conftest.err conftest.$ac_objext \
42116 conftest$ac_exeext conftest.$ac_ext
42119 else
42120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42121 /* end confdefs.h. */
42122 __thread int a; int b; int main() { return a = b; }
42123 _ACEOF
42124 if ac_fn_c_try_run "$LINENO"; then :
42125 chktls_save_LDFLAGS="$LDFLAGS"
42126 LDFLAGS="-static $LDFLAGS"
42127 if test x$gcc_no_link = xyes; then
42128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42131 /* end confdefs.h. */
42132 int main() { return 0; }
42133 _ACEOF
42134 if ac_fn_c_try_link "$LINENO"; then :
42135 if test "$cross_compiling" = yes; then :
42136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42138 as_fn_error $? "cannot run test program while cross compiling
42139 See \`config.log' for more details" "$LINENO" 5; }
42140 else
42141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42142 /* end confdefs.h. */
42143 __thread int a; int b; int main() { return a = b; }
42144 _ACEOF
42145 if ac_fn_c_try_run "$LINENO"; then :
42146 gcc_cv_have_tls=yes
42147 else
42148 gcc_cv_have_tls=no
42150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42151 conftest.$ac_objext conftest.beam conftest.$ac_ext
42154 else
42155 gcc_cv_have_tls=yes
42157 rm -f core conftest.err conftest.$ac_objext \
42158 conftest$ac_exeext conftest.$ac_ext
42159 LDFLAGS="$chktls_save_LDFLAGS"
42160 if test $gcc_cv_have_tls = yes; then
42161 chktls_save_CFLAGS="$CFLAGS"
42162 thread_CFLAGS=failed
42163 for flag in '' '-pthread' '-lpthread'; do
42164 CFLAGS="$flag $chktls_save_CFLAGS"
42165 if test x$gcc_no_link = xyes; then
42166 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42169 /* end confdefs.h. */
42170 #include <pthread.h>
42171 void *g(void *d) { return NULL; }
42173 main ()
42175 pthread_t t; pthread_create(&t,NULL,g,NULL);
42177 return 0;
42179 _ACEOF
42180 if ac_fn_c_try_link "$LINENO"; then :
42181 thread_CFLAGS="$flag"
42183 rm -f core conftest.err conftest.$ac_objext \
42184 conftest$ac_exeext conftest.$ac_ext
42185 if test "X$thread_CFLAGS" != Xfailed; then
42186 break
42188 done
42189 CFLAGS="$chktls_save_CFLAGS"
42190 if test "X$thread_CFLAGS" != Xfailed; then
42191 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
42192 if test "$cross_compiling" = yes; then :
42193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42195 as_fn_error $? "cannot run test program while cross compiling
42196 See \`config.log' for more details" "$LINENO" 5; }
42197 else
42198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42199 /* end confdefs.h. */
42200 #include <pthread.h>
42201 __thread int a;
42202 static int *volatile a_in_other_thread;
42203 static void *
42204 thread_func (void *arg)
42206 a_in_other_thread = &a;
42207 return (void *)0;
42210 main ()
42212 pthread_t thread;
42213 void *thread_retval;
42214 int *volatile a_in_main_thread;
42215 a_in_main_thread = &a;
42216 if (pthread_create (&thread, (pthread_attr_t *)0,
42217 thread_func, (void *)0))
42218 return 0;
42219 if (pthread_join (thread, &thread_retval))
42220 return 0;
42221 return (a_in_other_thread == a_in_main_thread);
42223 return 0;
42225 _ACEOF
42226 if ac_fn_c_try_run "$LINENO"; then :
42227 gcc_cv_have_tls=yes
42228 else
42229 gcc_cv_have_tls=no
42231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42232 conftest.$ac_objext conftest.beam conftest.$ac_ext
42235 CFLAGS="$chktls_save_CFLAGS"
42238 else
42239 gcc_cv_have_tls=no
42241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42242 conftest.$ac_objext conftest.beam conftest.$ac_ext
42246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
42247 $as_echo "$gcc_cv_have_tls" >&6; }
42248 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
42250 $as_echo "#define HAVE_TLS 1" >>confdefs.h
42253 for ac_func in __cxa_thread_atexit_impl
42254 do :
42255 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit_impl" "ac_cv_func___cxa_thread_atexit_impl"
42256 if test "x$ac_cv_func___cxa_thread_atexit_impl" = xyes; then :
42257 cat >>confdefs.h <<_ACEOF
42258 #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
42259 _ACEOF
42262 done
42264 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
42265 do :
42266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42269 cat >>confdefs.h <<_ACEOF
42270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42271 _ACEOF
42274 done
42276 for ac_func in timespec_get
42277 do :
42278 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
42279 if test "x$ac_cv_func_timespec_get" = xyes; then :
42280 cat >>confdefs.h <<_ACEOF
42281 #define HAVE_TIMESPEC_GET 1
42282 _ACEOF
42285 done
42287 for ac_func in sockatmark
42288 do :
42289 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
42290 if test "x$ac_cv_func_sockatmark" = xyes; then :
42291 cat >>confdefs.h <<_ACEOF
42292 #define HAVE_SOCKATMARK 1
42293 _ACEOF
42296 done
42298 for ac_func in uselocale
42299 do :
42300 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
42301 if test "x$ac_cv_func_uselocale" = xyes; then :
42302 cat >>confdefs.h <<_ACEOF
42303 #define HAVE_USELOCALE 1
42304 _ACEOF
42307 done
42309 for ac_func in secure_getenv
42310 do :
42311 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
42312 if test "x$ac_cv_func_secure_getenv" = xyes; then :
42313 cat >>confdefs.h <<_ACEOF
42314 #define HAVE_SECURE_GETENV 1
42315 _ACEOF
42318 done
42322 *-mingw32*)
42324 # If we're not using GNU ld, then there's no point in even trying these
42325 # tests. Check for that first. We should have already tested for gld
42326 # by now (in libtool), but require it now just to be safe...
42327 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
42328 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
42332 # The name set by libtool depends on the version of libtool. Shame on us
42333 # for depending on an impl detail, but c'est la vie. Older versions used
42334 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
42335 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
42336 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
42337 # set (hence we're using an older libtool), then set it.
42338 if test x${with_gnu_ld+set} != xset; then
42339 if test x${ac_cv_prog_gnu_ld+set} != xset; then
42340 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
42341 with_gnu_ld=no
42342 else
42343 with_gnu_ld=$ac_cv_prog_gnu_ld
42347 # Start by getting the version number. I think the libtool test already
42348 # does some of this, but throws away the result.
42349 glibcxx_ld_is_gold=no
42350 glibcxx_ld_is_mold=no
42351 if test x"$with_gnu_ld" = x"yes"; then
42352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
42353 $as_echo_n "checking for ld version... " >&6; }
42355 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
42356 glibcxx_ld_is_gold=yes
42357 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
42358 glibcxx_ld_is_mold=yes
42360 ldver=`$LD --version 2>/dev/null |
42361 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
42363 glibcxx_gnu_ld_version=`echo $ldver | \
42364 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
42365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
42366 $as_echo "$glibcxx_gnu_ld_version" >&6; }
42369 # Set --gc-sections.
42370 glibcxx_have_gc_sections=no
42371 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
42372 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
42373 glibcxx_have_gc_sections=yes
42375 else
42376 glibcxx_gcsections_min_ld=21602
42377 if test x"$with_gnu_ld" = x"yes" &&
42378 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
42379 glibcxx_have_gc_sections=yes
42382 if test "$glibcxx_have_gc_sections" = "yes"; then
42383 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
42384 # NB: This flag only works reliably after 2.16.1. Configure tests
42385 # for this are difficult, so hard wire a value that should work.
42387 ac_test_CFLAGS="${CFLAGS+set}"
42388 ac_save_CFLAGS="$CFLAGS"
42389 CFLAGS='-Wl,--gc-sections'
42391 # Check for -Wl,--gc-sections
42392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
42393 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
42394 if test x$gcc_no_link = xyes; then
42395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42398 /* end confdefs.h. */
42399 int one(void) { return 1; }
42400 int two(void) { return 2; }
42403 main ()
42405 two();
42407 return 0;
42409 _ACEOF
42410 if ac_fn_c_try_link "$LINENO"; then :
42411 ac_gcsections=yes
42412 else
42413 ac_gcsections=no
42415 rm -f core conftest.err conftest.$ac_objext \
42416 conftest$ac_exeext conftest.$ac_ext
42417 if test "$ac_gcsections" = "yes"; then
42418 rm -f conftest.c
42419 touch conftest.c
42420 if $CC -c conftest.c; then
42421 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
42422 grep "Warning: gc-sections option ignored" > /dev/null; then
42423 ac_gcsections=no
42426 rm -f conftest.c conftest.o conftest
42428 if test "$ac_gcsections" = "yes"; then
42429 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
42431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
42432 $as_echo "$ac_gcsections" >&6; }
42434 if test "$ac_test_CFLAGS" = set; then
42435 CFLAGS="$ac_save_CFLAGS"
42436 else
42437 # this is the suspicious part
42438 CFLAGS=''
42442 # Set -z,relro.
42443 # Note this is only for shared objects.
42444 ac_ld_relro=no
42445 if test x"$with_gnu_ld" = x"yes"; then
42446 # cygwin and mingw uses PE, which has no ELF relro support,
42447 # multi target ld may confuse configure machinery
42448 case "$host" in
42449 *-*-cygwin*)
42451 *-*-mingw*)
42454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
42455 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
42456 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
42457 if test -n "$cxx_z_relo"; then
42458 OPT_LDFLAGS="-Wl,-z,relro"
42459 ac_ld_relro=yes
42461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
42462 $as_echo "$ac_ld_relro" >&6; }
42463 esac
42466 # Set linker optimization flags.
42467 if test x"$with_gnu_ld" = x"yes"; then
42468 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
42475 ac_test_CXXFLAGS="${CXXFLAGS+set}"
42476 ac_save_CXXFLAGS="$CXXFLAGS"
42477 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
42479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
42480 $as_echo_n "checking for sin in -lm... " >&6; }
42481 if ${ac_cv_lib_m_sin+:} false; then :
42482 $as_echo_n "(cached) " >&6
42483 else
42484 ac_check_lib_save_LIBS=$LIBS
42485 LIBS="-lm $LIBS"
42486 if test x$gcc_no_link = xyes; then
42487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42490 /* end confdefs.h. */
42492 /* Override any GCC internal prototype to avoid an error.
42493 Use char because int might match the return type of a GCC
42494 builtin and then its argument prototype would still apply. */
42495 #ifdef __cplusplus
42496 extern "C"
42497 #endif
42498 char sin ();
42500 main ()
42502 return sin ();
42504 return 0;
42506 _ACEOF
42507 if ac_fn_c_try_link "$LINENO"; then :
42508 ac_cv_lib_m_sin=yes
42509 else
42510 ac_cv_lib_m_sin=no
42512 rm -f core conftest.err conftest.$ac_objext \
42513 conftest$ac_exeext conftest.$ac_ext
42514 LIBS=$ac_check_lib_save_LIBS
42516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
42517 $as_echo "$ac_cv_lib_m_sin" >&6; }
42518 if test "x$ac_cv_lib_m_sin" = xyes; then :
42519 libm="-lm"
42522 ac_save_LIBS="$LIBS"
42523 LIBS="$LIBS $libm"
42527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
42528 $as_echo_n "checking for isinf declaration... " >&6; }
42529 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
42530 if ${glibcxx_cv_func_isinf_use+:} false; then :
42531 $as_echo_n "(cached) " >&6
42532 else
42535 ac_ext=cpp
42536 ac_cpp='$CXXCPP $CPPFLAGS'
42537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42542 /* end confdefs.h. */
42543 #include <math.h>
42544 #ifdef HAVE_IEEEFP_H
42545 #include <ieeefp.h>
42546 #endif
42549 main ()
42551 isinf(0);
42553 return 0;
42555 _ACEOF
42556 if ac_fn_cxx_try_compile "$LINENO"; then :
42557 glibcxx_cv_func_isinf_use=yes
42558 else
42559 glibcxx_cv_func_isinf_use=no
42561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42562 ac_ext=c
42563 ac_cpp='$CPP $CPPFLAGS'
42564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
42573 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
42575 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
42576 for ac_func in isinf
42577 do :
42578 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
42579 if test "x$ac_cv_func_isinf" = xyes; then :
42580 cat >>confdefs.h <<_ACEOF
42581 #define HAVE_ISINF 1
42582 _ACEOF
42585 done
42591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
42592 $as_echo_n "checking for isnan declaration... " >&6; }
42593 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
42594 if ${glibcxx_cv_func_isnan_use+:} false; then :
42595 $as_echo_n "(cached) " >&6
42596 else
42599 ac_ext=cpp
42600 ac_cpp='$CXXCPP $CPPFLAGS'
42601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42606 /* end confdefs.h. */
42607 #include <math.h>
42608 #ifdef HAVE_IEEEFP_H
42609 #include <ieeefp.h>
42610 #endif
42613 main ()
42615 isnan(0);
42617 return 0;
42619 _ACEOF
42620 if ac_fn_cxx_try_compile "$LINENO"; then :
42621 glibcxx_cv_func_isnan_use=yes
42622 else
42623 glibcxx_cv_func_isnan_use=no
42625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42626 ac_ext=c
42627 ac_cpp='$CPP $CPPFLAGS'
42628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
42637 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
42639 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
42640 for ac_func in isnan
42641 do :
42642 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
42643 if test "x$ac_cv_func_isnan" = xyes; then :
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_ISNAN 1
42646 _ACEOF
42649 done
42655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
42656 $as_echo_n "checking for finite declaration... " >&6; }
42657 if test x${glibcxx_cv_func_finite_use+set} != xset; then
42658 if ${glibcxx_cv_func_finite_use+:} false; then :
42659 $as_echo_n "(cached) " >&6
42660 else
42663 ac_ext=cpp
42664 ac_cpp='$CXXCPP $CPPFLAGS'
42665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42670 /* end confdefs.h. */
42671 #include <math.h>
42672 #ifdef HAVE_IEEEFP_H
42673 #include <ieeefp.h>
42674 #endif
42677 main ()
42679 finite(0);
42681 return 0;
42683 _ACEOF
42684 if ac_fn_cxx_try_compile "$LINENO"; then :
42685 glibcxx_cv_func_finite_use=yes
42686 else
42687 glibcxx_cv_func_finite_use=no
42689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42690 ac_ext=c
42691 ac_cpp='$CPP $CPPFLAGS'
42692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
42701 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
42703 if test x$glibcxx_cv_func_finite_use = x"yes"; then
42704 for ac_func in finite
42705 do :
42706 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
42707 if test "x$ac_cv_func_finite" = xyes; then :
42708 cat >>confdefs.h <<_ACEOF
42709 #define HAVE_FINITE 1
42710 _ACEOF
42713 done
42719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
42720 $as_echo_n "checking for sincos declaration... " >&6; }
42721 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
42722 if ${glibcxx_cv_func_sincos_use+:} false; then :
42723 $as_echo_n "(cached) " >&6
42724 else
42727 ac_ext=cpp
42728 ac_cpp='$CXXCPP $CPPFLAGS'
42729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42734 /* end confdefs.h. */
42735 #include <math.h>
42737 main ()
42739 sincos(0, 0, 0);
42741 return 0;
42743 _ACEOF
42744 if ac_fn_cxx_try_compile "$LINENO"; then :
42745 glibcxx_cv_func_sincos_use=yes
42746 else
42747 glibcxx_cv_func_sincos_use=no
42749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42750 ac_ext=c
42751 ac_cpp='$CPP $CPPFLAGS'
42752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
42761 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
42763 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
42764 for ac_func in sincos
42765 do :
42766 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
42767 if test "x$ac_cv_func_sincos" = xyes; then :
42768 cat >>confdefs.h <<_ACEOF
42769 #define HAVE_SINCOS 1
42770 _ACEOF
42773 done
42779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
42780 $as_echo_n "checking for fpclass declaration... " >&6; }
42781 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
42782 if ${glibcxx_cv_func_fpclass_use+:} false; then :
42783 $as_echo_n "(cached) " >&6
42784 else
42787 ac_ext=cpp
42788 ac_cpp='$CXXCPP $CPPFLAGS'
42789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42794 /* end confdefs.h. */
42795 #include <math.h>
42796 #ifdef HAVE_IEEEFP_H
42797 #include <ieeefp.h>
42798 #endif
42801 main ()
42803 fpclass(0);
42805 return 0;
42807 _ACEOF
42808 if ac_fn_cxx_try_compile "$LINENO"; then :
42809 glibcxx_cv_func_fpclass_use=yes
42810 else
42811 glibcxx_cv_func_fpclass_use=no
42813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42814 ac_ext=c
42815 ac_cpp='$CPP $CPPFLAGS'
42816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
42825 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
42827 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
42828 for ac_func in fpclass
42829 do :
42830 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
42831 if test "x$ac_cv_func_fpclass" = xyes; then :
42832 cat >>confdefs.h <<_ACEOF
42833 #define HAVE_FPCLASS 1
42834 _ACEOF
42837 done
42843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
42844 $as_echo_n "checking for qfpclass declaration... " >&6; }
42845 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
42846 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
42847 $as_echo_n "(cached) " >&6
42848 else
42851 ac_ext=cpp
42852 ac_cpp='$CXXCPP $CPPFLAGS'
42853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42858 /* end confdefs.h. */
42859 #include <math.h>
42860 #ifdef HAVE_IEEEFP_H
42861 #include <ieeefp.h>
42862 #endif
42865 main ()
42867 qfpclass(0);
42869 return 0;
42871 _ACEOF
42872 if ac_fn_cxx_try_compile "$LINENO"; then :
42873 glibcxx_cv_func_qfpclass_use=yes
42874 else
42875 glibcxx_cv_func_qfpclass_use=no
42877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42878 ac_ext=c
42879 ac_cpp='$CPP $CPPFLAGS'
42880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
42889 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
42891 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
42892 for ac_func in qfpclass
42893 do :
42894 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
42895 if test "x$ac_cv_func_qfpclass" = xyes; then :
42896 cat >>confdefs.h <<_ACEOF
42897 #define HAVE_QFPCLASS 1
42898 _ACEOF
42901 done
42907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
42908 $as_echo_n "checking for hypot declaration... " >&6; }
42909 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
42910 if ${glibcxx_cv_func_hypot_use+:} false; then :
42911 $as_echo_n "(cached) " >&6
42912 else
42915 ac_ext=cpp
42916 ac_cpp='$CXXCPP $CPPFLAGS'
42917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42922 /* end confdefs.h. */
42923 #include <math.h>
42925 main ()
42927 hypot(0, 0);
42929 return 0;
42931 _ACEOF
42932 if ac_fn_cxx_try_compile "$LINENO"; then :
42933 glibcxx_cv_func_hypot_use=yes
42934 else
42935 glibcxx_cv_func_hypot_use=no
42937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42938 ac_ext=c
42939 ac_cpp='$CPP $CPPFLAGS'
42940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
42949 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
42951 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
42952 for ac_func in hypot
42953 do :
42954 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
42955 if test "x$ac_cv_func_hypot" = xyes; then :
42956 cat >>confdefs.h <<_ACEOF
42957 #define HAVE_HYPOT 1
42958 _ACEOF
42961 done
42967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
42968 $as_echo_n "checking for float trig functions... " >&6; }
42969 if ${glibcxx_cv_func_float_trig_use+:} false; then :
42970 $as_echo_n "(cached) " >&6
42971 else
42974 ac_ext=cpp
42975 ac_cpp='$CXXCPP $CPPFLAGS'
42976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42981 /* end confdefs.h. */
42982 #include <math.h>
42984 main ()
42986 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
42988 return 0;
42990 _ACEOF
42991 if ac_fn_cxx_try_compile "$LINENO"; then :
42992 glibcxx_cv_func_float_trig_use=yes
42993 else
42994 glibcxx_cv_func_float_trig_use=no
42996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42997 ac_ext=c
42998 ac_cpp='$CPP $CPPFLAGS'
42999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
43006 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
43007 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
43008 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
43009 do :
43010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43013 cat >>confdefs.h <<_ACEOF
43014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43015 _ACEOF
43018 done
43024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
43025 $as_echo_n "checking for float round functions... " >&6; }
43026 if ${glibcxx_cv_func_float_round_use+:} false; then :
43027 $as_echo_n "(cached) " >&6
43028 else
43031 ac_ext=cpp
43032 ac_cpp='$CXXCPP $CPPFLAGS'
43033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43038 /* end confdefs.h. */
43039 #include <math.h>
43041 main ()
43043 ceilf (0); floorf (0);
43045 return 0;
43047 _ACEOF
43048 if ac_fn_cxx_try_compile "$LINENO"; then :
43049 glibcxx_cv_func_float_round_use=yes
43050 else
43051 glibcxx_cv_func_float_round_use=no
43053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43054 ac_ext=c
43055 ac_cpp='$CPP $CPPFLAGS'
43056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
43063 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
43064 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
43065 for ac_func in ceilf floorf
43066 do :
43067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43069 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43070 cat >>confdefs.h <<_ACEOF
43071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43072 _ACEOF
43075 done
43082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
43083 $as_echo_n "checking for expf declaration... " >&6; }
43084 if test x${glibcxx_cv_func_expf_use+set} != xset; then
43085 if ${glibcxx_cv_func_expf_use+:} false; then :
43086 $as_echo_n "(cached) " >&6
43087 else
43090 ac_ext=cpp
43091 ac_cpp='$CXXCPP $CPPFLAGS'
43092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43097 /* end confdefs.h. */
43098 #include <math.h>
43099 #ifdef HAVE_IEEEFP_H
43100 #include <ieeefp.h>
43101 #endif
43104 main ()
43106 expf(0);
43108 return 0;
43110 _ACEOF
43111 if ac_fn_cxx_try_compile "$LINENO"; then :
43112 glibcxx_cv_func_expf_use=yes
43113 else
43114 glibcxx_cv_func_expf_use=no
43116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43117 ac_ext=c
43118 ac_cpp='$CPP $CPPFLAGS'
43119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
43128 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
43130 if test x$glibcxx_cv_func_expf_use = x"yes"; then
43131 for ac_func in expf
43132 do :
43133 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
43134 if test "x$ac_cv_func_expf" = xyes; then :
43135 cat >>confdefs.h <<_ACEOF
43136 #define HAVE_EXPF 1
43137 _ACEOF
43140 done
43146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
43147 $as_echo_n "checking for isnanf declaration... " >&6; }
43148 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
43149 if ${glibcxx_cv_func_isnanf_use+:} false; then :
43150 $as_echo_n "(cached) " >&6
43151 else
43154 ac_ext=cpp
43155 ac_cpp='$CXXCPP $CPPFLAGS'
43156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43161 /* end confdefs.h. */
43162 #include <math.h>
43163 #ifdef HAVE_IEEEFP_H
43164 #include <ieeefp.h>
43165 #endif
43168 main ()
43170 isnanf(0);
43172 return 0;
43174 _ACEOF
43175 if ac_fn_cxx_try_compile "$LINENO"; then :
43176 glibcxx_cv_func_isnanf_use=yes
43177 else
43178 glibcxx_cv_func_isnanf_use=no
43180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43181 ac_ext=c
43182 ac_cpp='$CPP $CPPFLAGS'
43183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
43192 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
43194 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
43195 for ac_func in isnanf
43196 do :
43197 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
43198 if test "x$ac_cv_func_isnanf" = xyes; then :
43199 cat >>confdefs.h <<_ACEOF
43200 #define HAVE_ISNANF 1
43201 _ACEOF
43204 done
43210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
43211 $as_echo_n "checking for isinff declaration... " >&6; }
43212 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
43213 if ${glibcxx_cv_func_isinff_use+:} false; then :
43214 $as_echo_n "(cached) " >&6
43215 else
43218 ac_ext=cpp
43219 ac_cpp='$CXXCPP $CPPFLAGS'
43220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43225 /* end confdefs.h. */
43226 #include <math.h>
43227 #ifdef HAVE_IEEEFP_H
43228 #include <ieeefp.h>
43229 #endif
43232 main ()
43234 isinff(0);
43236 return 0;
43238 _ACEOF
43239 if ac_fn_cxx_try_compile "$LINENO"; then :
43240 glibcxx_cv_func_isinff_use=yes
43241 else
43242 glibcxx_cv_func_isinff_use=no
43244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43245 ac_ext=c
43246 ac_cpp='$CPP $CPPFLAGS'
43247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
43256 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
43258 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
43259 for ac_func in isinff
43260 do :
43261 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
43262 if test "x$ac_cv_func_isinff" = xyes; then :
43263 cat >>confdefs.h <<_ACEOF
43264 #define HAVE_ISINFF 1
43265 _ACEOF
43268 done
43274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
43275 $as_echo_n "checking for atan2f declaration... " >&6; }
43276 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
43277 if ${glibcxx_cv_func_atan2f_use+:} false; then :
43278 $as_echo_n "(cached) " >&6
43279 else
43282 ac_ext=cpp
43283 ac_cpp='$CXXCPP $CPPFLAGS'
43284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43289 /* end confdefs.h. */
43290 #include <math.h>
43292 main ()
43294 atan2f(0, 0);
43296 return 0;
43298 _ACEOF
43299 if ac_fn_cxx_try_compile "$LINENO"; then :
43300 glibcxx_cv_func_atan2f_use=yes
43301 else
43302 glibcxx_cv_func_atan2f_use=no
43304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43305 ac_ext=c
43306 ac_cpp='$CPP $CPPFLAGS'
43307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
43316 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
43318 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
43319 for ac_func in atan2f
43320 do :
43321 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
43322 if test "x$ac_cv_func_atan2f" = xyes; then :
43323 cat >>confdefs.h <<_ACEOF
43324 #define HAVE_ATAN2F 1
43325 _ACEOF
43328 done
43334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
43335 $as_echo_n "checking for fabsf declaration... " >&6; }
43336 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
43337 if ${glibcxx_cv_func_fabsf_use+:} false; then :
43338 $as_echo_n "(cached) " >&6
43339 else
43342 ac_ext=cpp
43343 ac_cpp='$CXXCPP $CPPFLAGS'
43344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43349 /* end confdefs.h. */
43350 #include <math.h>
43351 #ifdef HAVE_IEEEFP_H
43352 #include <ieeefp.h>
43353 #endif
43356 main ()
43358 fabsf(0);
43360 return 0;
43362 _ACEOF
43363 if ac_fn_cxx_try_compile "$LINENO"; then :
43364 glibcxx_cv_func_fabsf_use=yes
43365 else
43366 glibcxx_cv_func_fabsf_use=no
43368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43369 ac_ext=c
43370 ac_cpp='$CPP $CPPFLAGS'
43371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
43380 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
43382 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
43383 for ac_func in fabsf
43384 do :
43385 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
43386 if test "x$ac_cv_func_fabsf" = xyes; then :
43387 cat >>confdefs.h <<_ACEOF
43388 #define HAVE_FABSF 1
43389 _ACEOF
43392 done
43398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
43399 $as_echo_n "checking for fmodf declaration... " >&6; }
43400 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
43401 if ${glibcxx_cv_func_fmodf_use+:} false; then :
43402 $as_echo_n "(cached) " >&6
43403 else
43406 ac_ext=cpp
43407 ac_cpp='$CXXCPP $CPPFLAGS'
43408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43413 /* end confdefs.h. */
43414 #include <math.h>
43416 main ()
43418 fmodf(0, 0);
43420 return 0;
43422 _ACEOF
43423 if ac_fn_cxx_try_compile "$LINENO"; then :
43424 glibcxx_cv_func_fmodf_use=yes
43425 else
43426 glibcxx_cv_func_fmodf_use=no
43428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43429 ac_ext=c
43430 ac_cpp='$CPP $CPPFLAGS'
43431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
43440 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
43442 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
43443 for ac_func in fmodf
43444 do :
43445 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
43446 if test "x$ac_cv_func_fmodf" = xyes; then :
43447 cat >>confdefs.h <<_ACEOF
43448 #define HAVE_FMODF 1
43449 _ACEOF
43452 done
43458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
43459 $as_echo_n "checking for frexpf declaration... " >&6; }
43460 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
43461 if ${glibcxx_cv_func_frexpf_use+:} false; then :
43462 $as_echo_n "(cached) " >&6
43463 else
43466 ac_ext=cpp
43467 ac_cpp='$CXXCPP $CPPFLAGS'
43468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43473 /* end confdefs.h. */
43474 #include <math.h>
43476 main ()
43478 frexpf(0, 0);
43480 return 0;
43482 _ACEOF
43483 if ac_fn_cxx_try_compile "$LINENO"; then :
43484 glibcxx_cv_func_frexpf_use=yes
43485 else
43486 glibcxx_cv_func_frexpf_use=no
43488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43489 ac_ext=c
43490 ac_cpp='$CPP $CPPFLAGS'
43491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
43500 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
43502 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
43503 for ac_func in frexpf
43504 do :
43505 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
43506 if test "x$ac_cv_func_frexpf" = xyes; then :
43507 cat >>confdefs.h <<_ACEOF
43508 #define HAVE_FREXPF 1
43509 _ACEOF
43512 done
43518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
43519 $as_echo_n "checking for hypotf declaration... " >&6; }
43520 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
43521 if ${glibcxx_cv_func_hypotf_use+:} false; then :
43522 $as_echo_n "(cached) " >&6
43523 else
43526 ac_ext=cpp
43527 ac_cpp='$CXXCPP $CPPFLAGS'
43528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43533 /* end confdefs.h. */
43534 #include <math.h>
43536 main ()
43538 hypotf(0, 0);
43540 return 0;
43542 _ACEOF
43543 if ac_fn_cxx_try_compile "$LINENO"; then :
43544 glibcxx_cv_func_hypotf_use=yes
43545 else
43546 glibcxx_cv_func_hypotf_use=no
43548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43549 ac_ext=c
43550 ac_cpp='$CPP $CPPFLAGS'
43551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
43560 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
43562 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
43563 for ac_func in hypotf
43564 do :
43565 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
43566 if test "x$ac_cv_func_hypotf" = xyes; then :
43567 cat >>confdefs.h <<_ACEOF
43568 #define HAVE_HYPOTF 1
43569 _ACEOF
43572 done
43578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
43579 $as_echo_n "checking for ldexpf declaration... " >&6; }
43580 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
43581 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
43582 $as_echo_n "(cached) " >&6
43583 else
43586 ac_ext=cpp
43587 ac_cpp='$CXXCPP $CPPFLAGS'
43588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43593 /* end confdefs.h. */
43594 #include <math.h>
43596 main ()
43598 ldexpf(0, 0);
43600 return 0;
43602 _ACEOF
43603 if ac_fn_cxx_try_compile "$LINENO"; then :
43604 glibcxx_cv_func_ldexpf_use=yes
43605 else
43606 glibcxx_cv_func_ldexpf_use=no
43608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43609 ac_ext=c
43610 ac_cpp='$CPP $CPPFLAGS'
43611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
43620 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
43622 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
43623 for ac_func in ldexpf
43624 do :
43625 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
43626 if test "x$ac_cv_func_ldexpf" = xyes; then :
43627 cat >>confdefs.h <<_ACEOF
43628 #define HAVE_LDEXPF 1
43629 _ACEOF
43632 done
43638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
43639 $as_echo_n "checking for logf declaration... " >&6; }
43640 if test x${glibcxx_cv_func_logf_use+set} != xset; then
43641 if ${glibcxx_cv_func_logf_use+:} false; then :
43642 $as_echo_n "(cached) " >&6
43643 else
43646 ac_ext=cpp
43647 ac_cpp='$CXXCPP $CPPFLAGS'
43648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43653 /* end confdefs.h. */
43654 #include <math.h>
43655 #ifdef HAVE_IEEEFP_H
43656 #include <ieeefp.h>
43657 #endif
43660 main ()
43662 logf(0);
43664 return 0;
43666 _ACEOF
43667 if ac_fn_cxx_try_compile "$LINENO"; then :
43668 glibcxx_cv_func_logf_use=yes
43669 else
43670 glibcxx_cv_func_logf_use=no
43672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43673 ac_ext=c
43674 ac_cpp='$CPP $CPPFLAGS'
43675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
43684 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
43686 if test x$glibcxx_cv_func_logf_use = x"yes"; then
43687 for ac_func in logf
43688 do :
43689 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
43690 if test "x$ac_cv_func_logf" = xyes; then :
43691 cat >>confdefs.h <<_ACEOF
43692 #define HAVE_LOGF 1
43693 _ACEOF
43696 done
43702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
43703 $as_echo_n "checking for log10f declaration... " >&6; }
43704 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
43705 if ${glibcxx_cv_func_log10f_use+:} false; then :
43706 $as_echo_n "(cached) " >&6
43707 else
43710 ac_ext=cpp
43711 ac_cpp='$CXXCPP $CPPFLAGS'
43712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43717 /* end confdefs.h. */
43718 #include <math.h>
43719 #ifdef HAVE_IEEEFP_H
43720 #include <ieeefp.h>
43721 #endif
43724 main ()
43726 log10f(0);
43728 return 0;
43730 _ACEOF
43731 if ac_fn_cxx_try_compile "$LINENO"; then :
43732 glibcxx_cv_func_log10f_use=yes
43733 else
43734 glibcxx_cv_func_log10f_use=no
43736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43737 ac_ext=c
43738 ac_cpp='$CPP $CPPFLAGS'
43739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
43748 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
43750 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
43751 for ac_func in log10f
43752 do :
43753 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
43754 if test "x$ac_cv_func_log10f" = xyes; then :
43755 cat >>confdefs.h <<_ACEOF
43756 #define HAVE_LOG10F 1
43757 _ACEOF
43760 done
43766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
43767 $as_echo_n "checking for modff declaration... " >&6; }
43768 if test x${glibcxx_cv_func_modff_use+set} != xset; then
43769 if ${glibcxx_cv_func_modff_use+:} false; then :
43770 $as_echo_n "(cached) " >&6
43771 else
43774 ac_ext=cpp
43775 ac_cpp='$CXXCPP $CPPFLAGS'
43776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43781 /* end confdefs.h. */
43782 #include <math.h>
43784 main ()
43786 modff(0, 0);
43788 return 0;
43790 _ACEOF
43791 if ac_fn_cxx_try_compile "$LINENO"; then :
43792 glibcxx_cv_func_modff_use=yes
43793 else
43794 glibcxx_cv_func_modff_use=no
43796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43797 ac_ext=c
43798 ac_cpp='$CPP $CPPFLAGS'
43799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
43808 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
43810 if test x$glibcxx_cv_func_modff_use = x"yes"; then
43811 for ac_func in modff
43812 do :
43813 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
43814 if test "x$ac_cv_func_modff" = xyes; then :
43815 cat >>confdefs.h <<_ACEOF
43816 #define HAVE_MODFF 1
43817 _ACEOF
43820 done
43826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
43827 $as_echo_n "checking for modf declaration... " >&6; }
43828 if test x${glibcxx_cv_func_modf_use+set} != xset; then
43829 if ${glibcxx_cv_func_modf_use+:} false; then :
43830 $as_echo_n "(cached) " >&6
43831 else
43834 ac_ext=cpp
43835 ac_cpp='$CXXCPP $CPPFLAGS'
43836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43841 /* end confdefs.h. */
43842 #include <math.h>
43844 main ()
43846 modf(0, 0);
43848 return 0;
43850 _ACEOF
43851 if ac_fn_cxx_try_compile "$LINENO"; then :
43852 glibcxx_cv_func_modf_use=yes
43853 else
43854 glibcxx_cv_func_modf_use=no
43856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43857 ac_ext=c
43858 ac_cpp='$CPP $CPPFLAGS'
43859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
43868 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
43870 if test x$glibcxx_cv_func_modf_use = x"yes"; then
43871 for ac_func in modf
43872 do :
43873 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
43874 if test "x$ac_cv_func_modf" = xyes; then :
43875 cat >>confdefs.h <<_ACEOF
43876 #define HAVE_MODF 1
43877 _ACEOF
43880 done
43886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
43887 $as_echo_n "checking for powf declaration... " >&6; }
43888 if test x${glibcxx_cv_func_powf_use+set} != xset; then
43889 if ${glibcxx_cv_func_powf_use+:} false; then :
43890 $as_echo_n "(cached) " >&6
43891 else
43894 ac_ext=cpp
43895 ac_cpp='$CXXCPP $CPPFLAGS'
43896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43901 /* end confdefs.h. */
43902 #include <math.h>
43904 main ()
43906 powf(0, 0);
43908 return 0;
43910 _ACEOF
43911 if ac_fn_cxx_try_compile "$LINENO"; then :
43912 glibcxx_cv_func_powf_use=yes
43913 else
43914 glibcxx_cv_func_powf_use=no
43916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43917 ac_ext=c
43918 ac_cpp='$CPP $CPPFLAGS'
43919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
43928 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
43930 if test x$glibcxx_cv_func_powf_use = x"yes"; then
43931 for ac_func in powf
43932 do :
43933 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
43934 if test "x$ac_cv_func_powf" = xyes; then :
43935 cat >>confdefs.h <<_ACEOF
43936 #define HAVE_POWF 1
43937 _ACEOF
43940 done
43946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
43947 $as_echo_n "checking for sqrtf declaration... " >&6; }
43948 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
43949 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
43950 $as_echo_n "(cached) " >&6
43951 else
43954 ac_ext=cpp
43955 ac_cpp='$CXXCPP $CPPFLAGS'
43956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43961 /* end confdefs.h. */
43962 #include <math.h>
43963 #ifdef HAVE_IEEEFP_H
43964 #include <ieeefp.h>
43965 #endif
43968 main ()
43970 sqrtf(0);
43972 return 0;
43974 _ACEOF
43975 if ac_fn_cxx_try_compile "$LINENO"; then :
43976 glibcxx_cv_func_sqrtf_use=yes
43977 else
43978 glibcxx_cv_func_sqrtf_use=no
43980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43981 ac_ext=c
43982 ac_cpp='$CPP $CPPFLAGS'
43983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
43992 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
43994 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
43995 for ac_func in sqrtf
43996 do :
43997 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
43998 if test "x$ac_cv_func_sqrtf" = xyes; then :
43999 cat >>confdefs.h <<_ACEOF
44000 #define HAVE_SQRTF 1
44001 _ACEOF
44004 done
44010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
44011 $as_echo_n "checking for sincosf declaration... " >&6; }
44012 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
44013 if ${glibcxx_cv_func_sincosf_use+:} false; then :
44014 $as_echo_n "(cached) " >&6
44015 else
44018 ac_ext=cpp
44019 ac_cpp='$CXXCPP $CPPFLAGS'
44020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44025 /* end confdefs.h. */
44026 #include <math.h>
44028 main ()
44030 sincosf(0, 0, 0);
44032 return 0;
44034 _ACEOF
44035 if ac_fn_cxx_try_compile "$LINENO"; then :
44036 glibcxx_cv_func_sincosf_use=yes
44037 else
44038 glibcxx_cv_func_sincosf_use=no
44040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44041 ac_ext=c
44042 ac_cpp='$CPP $CPPFLAGS'
44043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
44052 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
44054 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
44055 for ac_func in sincosf
44056 do :
44057 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
44058 if test "x$ac_cv_func_sincosf" = xyes; then :
44059 cat >>confdefs.h <<_ACEOF
44060 #define HAVE_SINCOSF 1
44061 _ACEOF
44064 done
44070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
44071 $as_echo_n "checking for finitef declaration... " >&6; }
44072 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
44073 if ${glibcxx_cv_func_finitef_use+:} false; then :
44074 $as_echo_n "(cached) " >&6
44075 else
44078 ac_ext=cpp
44079 ac_cpp='$CXXCPP $CPPFLAGS'
44080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44085 /* end confdefs.h. */
44086 #include <math.h>
44087 #ifdef HAVE_IEEEFP_H
44088 #include <ieeefp.h>
44089 #endif
44092 main ()
44094 finitef(0);
44096 return 0;
44098 _ACEOF
44099 if ac_fn_cxx_try_compile "$LINENO"; then :
44100 glibcxx_cv_func_finitef_use=yes
44101 else
44102 glibcxx_cv_func_finitef_use=no
44104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44105 ac_ext=c
44106 ac_cpp='$CPP $CPPFLAGS'
44107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
44116 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
44118 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
44119 for ac_func in finitef
44120 do :
44121 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
44122 if test "x$ac_cv_func_finitef" = xyes; then :
44123 cat >>confdefs.h <<_ACEOF
44124 #define HAVE_FINITEF 1
44125 _ACEOF
44128 done
44134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
44135 $as_echo_n "checking for long double trig functions... " >&6; }
44136 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
44137 $as_echo_n "(cached) " >&6
44138 else
44141 ac_ext=cpp
44142 ac_cpp='$CXXCPP $CPPFLAGS'
44143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44148 /* end confdefs.h. */
44149 #include <math.h>
44151 main ()
44153 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
44155 return 0;
44157 _ACEOF
44158 if ac_fn_cxx_try_compile "$LINENO"; then :
44159 glibcxx_cv_func_long_double_trig_use=yes
44160 else
44161 glibcxx_cv_func_long_double_trig_use=no
44163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44164 ac_ext=c
44165 ac_cpp='$CPP $CPPFLAGS'
44166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
44173 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
44174 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
44175 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
44176 do :
44177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44180 cat >>confdefs.h <<_ACEOF
44181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44182 _ACEOF
44185 done
44191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
44192 $as_echo_n "checking for long double round functions... " >&6; }
44193 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
44194 $as_echo_n "(cached) " >&6
44195 else
44198 ac_ext=cpp
44199 ac_cpp='$CXXCPP $CPPFLAGS'
44200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44205 /* end confdefs.h. */
44206 #include <math.h>
44208 main ()
44210 ceill (0); floorl (0);
44212 return 0;
44214 _ACEOF
44215 if ac_fn_cxx_try_compile "$LINENO"; then :
44216 glibcxx_cv_func_long_double_round_use=yes
44217 else
44218 glibcxx_cv_func_long_double_round_use=no
44220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44221 ac_ext=c
44222 ac_cpp='$CPP $CPPFLAGS'
44223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
44230 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
44231 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
44232 for ac_func in ceill floorl
44233 do :
44234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44236 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44237 cat >>confdefs.h <<_ACEOF
44238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44239 _ACEOF
44242 done
44249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
44250 $as_echo_n "checking for isnanl declaration... " >&6; }
44251 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
44252 if ${glibcxx_cv_func_isnanl_use+:} false; then :
44253 $as_echo_n "(cached) " >&6
44254 else
44257 ac_ext=cpp
44258 ac_cpp='$CXXCPP $CPPFLAGS'
44259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44264 /* end confdefs.h. */
44265 #include <math.h>
44266 #ifdef HAVE_IEEEFP_H
44267 #include <ieeefp.h>
44268 #endif
44271 main ()
44273 isnanl(0);
44275 return 0;
44277 _ACEOF
44278 if ac_fn_cxx_try_compile "$LINENO"; then :
44279 glibcxx_cv_func_isnanl_use=yes
44280 else
44281 glibcxx_cv_func_isnanl_use=no
44283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44284 ac_ext=c
44285 ac_cpp='$CPP $CPPFLAGS'
44286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
44295 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
44297 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
44298 for ac_func in isnanl
44299 do :
44300 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
44301 if test "x$ac_cv_func_isnanl" = xyes; then :
44302 cat >>confdefs.h <<_ACEOF
44303 #define HAVE_ISNANL 1
44304 _ACEOF
44307 done
44313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
44314 $as_echo_n "checking for isinfl declaration... " >&6; }
44315 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
44316 if ${glibcxx_cv_func_isinfl_use+:} false; then :
44317 $as_echo_n "(cached) " >&6
44318 else
44321 ac_ext=cpp
44322 ac_cpp='$CXXCPP $CPPFLAGS'
44323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44328 /* end confdefs.h. */
44329 #include <math.h>
44330 #ifdef HAVE_IEEEFP_H
44331 #include <ieeefp.h>
44332 #endif
44335 main ()
44337 isinfl(0);
44339 return 0;
44341 _ACEOF
44342 if ac_fn_cxx_try_compile "$LINENO"; then :
44343 glibcxx_cv_func_isinfl_use=yes
44344 else
44345 glibcxx_cv_func_isinfl_use=no
44347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44348 ac_ext=c
44349 ac_cpp='$CPP $CPPFLAGS'
44350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
44359 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
44361 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
44362 for ac_func in isinfl
44363 do :
44364 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
44365 if test "x$ac_cv_func_isinfl" = xyes; then :
44366 cat >>confdefs.h <<_ACEOF
44367 #define HAVE_ISINFL 1
44368 _ACEOF
44371 done
44377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
44378 $as_echo_n "checking for atan2l declaration... " >&6; }
44379 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
44380 if ${glibcxx_cv_func_atan2l_use+:} false; then :
44381 $as_echo_n "(cached) " >&6
44382 else
44385 ac_ext=cpp
44386 ac_cpp='$CXXCPP $CPPFLAGS'
44387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44392 /* end confdefs.h. */
44393 #include <math.h>
44395 main ()
44397 atan2l(0, 0);
44399 return 0;
44401 _ACEOF
44402 if ac_fn_cxx_try_compile "$LINENO"; then :
44403 glibcxx_cv_func_atan2l_use=yes
44404 else
44405 glibcxx_cv_func_atan2l_use=no
44407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44408 ac_ext=c
44409 ac_cpp='$CPP $CPPFLAGS'
44410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
44419 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
44421 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
44422 for ac_func in atan2l
44423 do :
44424 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
44425 if test "x$ac_cv_func_atan2l" = xyes; then :
44426 cat >>confdefs.h <<_ACEOF
44427 #define HAVE_ATAN2L 1
44428 _ACEOF
44431 done
44437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
44438 $as_echo_n "checking for expl declaration... " >&6; }
44439 if test x${glibcxx_cv_func_expl_use+set} != xset; then
44440 if ${glibcxx_cv_func_expl_use+:} false; then :
44441 $as_echo_n "(cached) " >&6
44442 else
44445 ac_ext=cpp
44446 ac_cpp='$CXXCPP $CPPFLAGS'
44447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44452 /* end confdefs.h. */
44453 #include <math.h>
44454 #ifdef HAVE_IEEEFP_H
44455 #include <ieeefp.h>
44456 #endif
44459 main ()
44461 expl(0);
44463 return 0;
44465 _ACEOF
44466 if ac_fn_cxx_try_compile "$LINENO"; then :
44467 glibcxx_cv_func_expl_use=yes
44468 else
44469 glibcxx_cv_func_expl_use=no
44471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44472 ac_ext=c
44473 ac_cpp='$CPP $CPPFLAGS'
44474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
44483 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
44485 if test x$glibcxx_cv_func_expl_use = x"yes"; then
44486 for ac_func in expl
44487 do :
44488 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
44489 if test "x$ac_cv_func_expl" = xyes; then :
44490 cat >>confdefs.h <<_ACEOF
44491 #define HAVE_EXPL 1
44492 _ACEOF
44495 done
44501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
44502 $as_echo_n "checking for fabsl declaration... " >&6; }
44503 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
44504 if ${glibcxx_cv_func_fabsl_use+:} false; then :
44505 $as_echo_n "(cached) " >&6
44506 else
44509 ac_ext=cpp
44510 ac_cpp='$CXXCPP $CPPFLAGS'
44511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44516 /* end confdefs.h. */
44517 #include <math.h>
44518 #ifdef HAVE_IEEEFP_H
44519 #include <ieeefp.h>
44520 #endif
44523 main ()
44525 fabsl(0);
44527 return 0;
44529 _ACEOF
44530 if ac_fn_cxx_try_compile "$LINENO"; then :
44531 glibcxx_cv_func_fabsl_use=yes
44532 else
44533 glibcxx_cv_func_fabsl_use=no
44535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44536 ac_ext=c
44537 ac_cpp='$CPP $CPPFLAGS'
44538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
44547 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
44549 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
44550 for ac_func in fabsl
44551 do :
44552 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
44553 if test "x$ac_cv_func_fabsl" = xyes; then :
44554 cat >>confdefs.h <<_ACEOF
44555 #define HAVE_FABSL 1
44556 _ACEOF
44559 done
44565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
44566 $as_echo_n "checking for fmodl declaration... " >&6; }
44567 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
44568 if ${glibcxx_cv_func_fmodl_use+:} false; then :
44569 $as_echo_n "(cached) " >&6
44570 else
44573 ac_ext=cpp
44574 ac_cpp='$CXXCPP $CPPFLAGS'
44575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44580 /* end confdefs.h. */
44581 #include <math.h>
44583 main ()
44585 fmodl(0, 0);
44587 return 0;
44589 _ACEOF
44590 if ac_fn_cxx_try_compile "$LINENO"; then :
44591 glibcxx_cv_func_fmodl_use=yes
44592 else
44593 glibcxx_cv_func_fmodl_use=no
44595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44596 ac_ext=c
44597 ac_cpp='$CPP $CPPFLAGS'
44598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
44607 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
44609 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
44610 for ac_func in fmodl
44611 do :
44612 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
44613 if test "x$ac_cv_func_fmodl" = xyes; then :
44614 cat >>confdefs.h <<_ACEOF
44615 #define HAVE_FMODL 1
44616 _ACEOF
44619 done
44625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
44626 $as_echo_n "checking for frexpl declaration... " >&6; }
44627 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
44628 if ${glibcxx_cv_func_frexpl_use+:} false; then :
44629 $as_echo_n "(cached) " >&6
44630 else
44633 ac_ext=cpp
44634 ac_cpp='$CXXCPP $CPPFLAGS'
44635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44640 /* end confdefs.h. */
44641 #include <math.h>
44643 main ()
44645 frexpl(0, 0);
44647 return 0;
44649 _ACEOF
44650 if ac_fn_cxx_try_compile "$LINENO"; then :
44651 glibcxx_cv_func_frexpl_use=yes
44652 else
44653 glibcxx_cv_func_frexpl_use=no
44655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44656 ac_ext=c
44657 ac_cpp='$CPP $CPPFLAGS'
44658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
44667 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
44669 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44670 for ac_func in frexpl
44671 do :
44672 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
44673 if test "x$ac_cv_func_frexpl" = xyes; then :
44674 cat >>confdefs.h <<_ACEOF
44675 #define HAVE_FREXPL 1
44676 _ACEOF
44679 done
44685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
44686 $as_echo_n "checking for hypotl declaration... " >&6; }
44687 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44688 if ${glibcxx_cv_func_hypotl_use+:} false; then :
44689 $as_echo_n "(cached) " >&6
44690 else
44693 ac_ext=cpp
44694 ac_cpp='$CXXCPP $CPPFLAGS'
44695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44700 /* end confdefs.h. */
44701 #include <math.h>
44703 main ()
44705 hypotl(0, 0);
44707 return 0;
44709 _ACEOF
44710 if ac_fn_cxx_try_compile "$LINENO"; then :
44711 glibcxx_cv_func_hypotl_use=yes
44712 else
44713 glibcxx_cv_func_hypotl_use=no
44715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44716 ac_ext=c
44717 ac_cpp='$CPP $CPPFLAGS'
44718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
44727 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
44729 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44730 for ac_func in hypotl
44731 do :
44732 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
44733 if test "x$ac_cv_func_hypotl" = xyes; then :
44734 cat >>confdefs.h <<_ACEOF
44735 #define HAVE_HYPOTL 1
44736 _ACEOF
44739 done
44745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
44746 $as_echo_n "checking for ldexpl declaration... " >&6; }
44747 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44748 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
44749 $as_echo_n "(cached) " >&6
44750 else
44753 ac_ext=cpp
44754 ac_cpp='$CXXCPP $CPPFLAGS'
44755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44760 /* end confdefs.h. */
44761 #include <math.h>
44763 main ()
44765 ldexpl(0, 0);
44767 return 0;
44769 _ACEOF
44770 if ac_fn_cxx_try_compile "$LINENO"; then :
44771 glibcxx_cv_func_ldexpl_use=yes
44772 else
44773 glibcxx_cv_func_ldexpl_use=no
44775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44776 ac_ext=c
44777 ac_cpp='$CPP $CPPFLAGS'
44778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
44787 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
44789 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44790 for ac_func in ldexpl
44791 do :
44792 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
44793 if test "x$ac_cv_func_ldexpl" = xyes; then :
44794 cat >>confdefs.h <<_ACEOF
44795 #define HAVE_LDEXPL 1
44796 _ACEOF
44799 done
44805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
44806 $as_echo_n "checking for logl declaration... " >&6; }
44807 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44808 if ${glibcxx_cv_func_logl_use+:} false; then :
44809 $as_echo_n "(cached) " >&6
44810 else
44813 ac_ext=cpp
44814 ac_cpp='$CXXCPP $CPPFLAGS'
44815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44820 /* end confdefs.h. */
44821 #include <math.h>
44822 #ifdef HAVE_IEEEFP_H
44823 #include <ieeefp.h>
44824 #endif
44827 main ()
44829 logl(0);
44831 return 0;
44833 _ACEOF
44834 if ac_fn_cxx_try_compile "$LINENO"; then :
44835 glibcxx_cv_func_logl_use=yes
44836 else
44837 glibcxx_cv_func_logl_use=no
44839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44840 ac_ext=c
44841 ac_cpp='$CPP $CPPFLAGS'
44842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
44851 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
44853 if test x$glibcxx_cv_func_logl_use = x"yes"; then
44854 for ac_func in logl
44855 do :
44856 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
44857 if test "x$ac_cv_func_logl" = xyes; then :
44858 cat >>confdefs.h <<_ACEOF
44859 #define HAVE_LOGL 1
44860 _ACEOF
44863 done
44869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
44870 $as_echo_n "checking for log10l declaration... " >&6; }
44871 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
44872 if ${glibcxx_cv_func_log10l_use+:} false; then :
44873 $as_echo_n "(cached) " >&6
44874 else
44877 ac_ext=cpp
44878 ac_cpp='$CXXCPP $CPPFLAGS'
44879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44884 /* end confdefs.h. */
44885 #include <math.h>
44886 #ifdef HAVE_IEEEFP_H
44887 #include <ieeefp.h>
44888 #endif
44891 main ()
44893 log10l(0);
44895 return 0;
44897 _ACEOF
44898 if ac_fn_cxx_try_compile "$LINENO"; then :
44899 glibcxx_cv_func_log10l_use=yes
44900 else
44901 glibcxx_cv_func_log10l_use=no
44903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44904 ac_ext=c
44905 ac_cpp='$CPP $CPPFLAGS'
44906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
44915 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
44917 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
44918 for ac_func in log10l
44919 do :
44920 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
44921 if test "x$ac_cv_func_log10l" = xyes; then :
44922 cat >>confdefs.h <<_ACEOF
44923 #define HAVE_LOG10L 1
44924 _ACEOF
44927 done
44933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
44934 $as_echo_n "checking for modfl declaration... " >&6; }
44935 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
44936 if ${glibcxx_cv_func_modfl_use+:} false; then :
44937 $as_echo_n "(cached) " >&6
44938 else
44941 ac_ext=cpp
44942 ac_cpp='$CXXCPP $CPPFLAGS'
44943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44948 /* end confdefs.h. */
44949 #include <math.h>
44951 main ()
44953 modfl(0, 0);
44955 return 0;
44957 _ACEOF
44958 if ac_fn_cxx_try_compile "$LINENO"; then :
44959 glibcxx_cv_func_modfl_use=yes
44960 else
44961 glibcxx_cv_func_modfl_use=no
44963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44964 ac_ext=c
44965 ac_cpp='$CPP $CPPFLAGS'
44966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
44975 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
44977 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
44978 for ac_func in modfl
44979 do :
44980 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
44981 if test "x$ac_cv_func_modfl" = xyes; then :
44982 cat >>confdefs.h <<_ACEOF
44983 #define HAVE_MODFL 1
44984 _ACEOF
44987 done
44993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
44994 $as_echo_n "checking for powl declaration... " >&6; }
44995 if test x${glibcxx_cv_func_powl_use+set} != xset; then
44996 if ${glibcxx_cv_func_powl_use+:} false; then :
44997 $as_echo_n "(cached) " >&6
44998 else
45001 ac_ext=cpp
45002 ac_cpp='$CXXCPP $CPPFLAGS'
45003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45008 /* end confdefs.h. */
45009 #include <math.h>
45011 main ()
45013 powl(0, 0);
45015 return 0;
45017 _ACEOF
45018 if ac_fn_cxx_try_compile "$LINENO"; then :
45019 glibcxx_cv_func_powl_use=yes
45020 else
45021 glibcxx_cv_func_powl_use=no
45023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45024 ac_ext=c
45025 ac_cpp='$CPP $CPPFLAGS'
45026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
45035 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
45037 if test x$glibcxx_cv_func_powl_use = x"yes"; then
45038 for ac_func in powl
45039 do :
45040 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
45041 if test "x$ac_cv_func_powl" = xyes; then :
45042 cat >>confdefs.h <<_ACEOF
45043 #define HAVE_POWL 1
45044 _ACEOF
45047 done
45053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
45054 $as_echo_n "checking for sqrtl declaration... " >&6; }
45055 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
45056 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
45057 $as_echo_n "(cached) " >&6
45058 else
45061 ac_ext=cpp
45062 ac_cpp='$CXXCPP $CPPFLAGS'
45063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45068 /* end confdefs.h. */
45069 #include <math.h>
45070 #ifdef HAVE_IEEEFP_H
45071 #include <ieeefp.h>
45072 #endif
45075 main ()
45077 sqrtl(0);
45079 return 0;
45081 _ACEOF
45082 if ac_fn_cxx_try_compile "$LINENO"; then :
45083 glibcxx_cv_func_sqrtl_use=yes
45084 else
45085 glibcxx_cv_func_sqrtl_use=no
45087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45088 ac_ext=c
45089 ac_cpp='$CPP $CPPFLAGS'
45090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
45099 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
45101 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
45102 for ac_func in sqrtl
45103 do :
45104 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
45105 if test "x$ac_cv_func_sqrtl" = xyes; then :
45106 cat >>confdefs.h <<_ACEOF
45107 #define HAVE_SQRTL 1
45108 _ACEOF
45111 done
45117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
45118 $as_echo_n "checking for sincosl declaration... " >&6; }
45119 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
45120 if ${glibcxx_cv_func_sincosl_use+:} false; then :
45121 $as_echo_n "(cached) " >&6
45122 else
45125 ac_ext=cpp
45126 ac_cpp='$CXXCPP $CPPFLAGS'
45127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45132 /* end confdefs.h. */
45133 #include <math.h>
45135 main ()
45137 sincosl(0, 0, 0);
45139 return 0;
45141 _ACEOF
45142 if ac_fn_cxx_try_compile "$LINENO"; then :
45143 glibcxx_cv_func_sincosl_use=yes
45144 else
45145 glibcxx_cv_func_sincosl_use=no
45147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45148 ac_ext=c
45149 ac_cpp='$CPP $CPPFLAGS'
45150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
45159 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
45161 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
45162 for ac_func in sincosl
45163 do :
45164 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
45165 if test "x$ac_cv_func_sincosl" = xyes; then :
45166 cat >>confdefs.h <<_ACEOF
45167 #define HAVE_SINCOSL 1
45168 _ACEOF
45171 done
45177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
45178 $as_echo_n "checking for finitel declaration... " >&6; }
45179 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
45180 if ${glibcxx_cv_func_finitel_use+:} false; then :
45181 $as_echo_n "(cached) " >&6
45182 else
45185 ac_ext=cpp
45186 ac_cpp='$CXXCPP $CPPFLAGS'
45187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45192 /* end confdefs.h. */
45193 #include <math.h>
45194 #ifdef HAVE_IEEEFP_H
45195 #include <ieeefp.h>
45196 #endif
45199 main ()
45201 finitel(0);
45203 return 0;
45205 _ACEOF
45206 if ac_fn_cxx_try_compile "$LINENO"; then :
45207 glibcxx_cv_func_finitel_use=yes
45208 else
45209 glibcxx_cv_func_finitel_use=no
45211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45212 ac_ext=c
45213 ac_cpp='$CPP $CPPFLAGS'
45214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
45223 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
45225 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
45226 for ac_func in finitel
45227 do :
45228 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
45229 if test "x$ac_cv_func_finitel" = xyes; then :
45230 cat >>confdefs.h <<_ACEOF
45231 #define HAVE_FINITEL 1
45232 _ACEOF
45235 done
45240 LIBS="$ac_save_LIBS"
45241 CXXFLAGS="$ac_save_CXXFLAGS"
45244 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45245 ac_save_CXXFLAGS="$CXXFLAGS"
45246 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
45250 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
45251 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
45252 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
45253 $as_echo_n "(cached) " >&6
45254 else
45257 ac_ext=cpp
45258 ac_cpp='$CXXCPP $CPPFLAGS'
45259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45264 /* end confdefs.h. */
45265 #include <stdlib.h>
45267 main ()
45269 at_quick_exit(0);
45271 return 0;
45273 _ACEOF
45274 if ac_fn_cxx_try_compile "$LINENO"; then :
45275 glibcxx_cv_func_at_quick_exit_use=yes
45276 else
45277 glibcxx_cv_func_at_quick_exit_use=no
45279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45280 ac_ext=c
45281 ac_cpp='$CPP $CPPFLAGS'
45282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
45291 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
45292 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
45293 for ac_func in at_quick_exit
45294 do :
45295 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
45296 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
45297 cat >>confdefs.h <<_ACEOF
45298 #define HAVE_AT_QUICK_EXIT 1
45299 _ACEOF
45302 done
45307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
45308 $as_echo_n "checking for quick_exit declaration... " >&6; }
45309 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
45310 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
45311 $as_echo_n "(cached) " >&6
45312 else
45315 ac_ext=cpp
45316 ac_cpp='$CXXCPP $CPPFLAGS'
45317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45322 /* end confdefs.h. */
45323 #include <stdlib.h>
45325 main ()
45327 quick_exit(0);
45329 return 0;
45331 _ACEOF
45332 if ac_fn_cxx_try_compile "$LINENO"; then :
45333 glibcxx_cv_func_quick_exit_use=yes
45334 else
45335 glibcxx_cv_func_quick_exit_use=no
45337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45338 ac_ext=c
45339 ac_cpp='$CPP $CPPFLAGS'
45340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
45349 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
45350 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
45351 for ac_func in quick_exit
45352 do :
45353 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
45354 if test "x$ac_cv_func_quick_exit" = xyes; then :
45355 cat >>confdefs.h <<_ACEOF
45356 #define HAVE_QUICK_EXIT 1
45357 _ACEOF
45360 done
45365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
45366 $as_echo_n "checking for strtold declaration... " >&6; }
45367 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45368 if ${glibcxx_cv_func_strtold_use+:} false; then :
45369 $as_echo_n "(cached) " >&6
45370 else
45373 ac_ext=cpp
45374 ac_cpp='$CXXCPP $CPPFLAGS'
45375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45380 /* end confdefs.h. */
45381 #include <stdlib.h>
45383 main ()
45385 strtold(0, 0);
45387 return 0;
45389 _ACEOF
45390 if ac_fn_cxx_try_compile "$LINENO"; then :
45391 glibcxx_cv_func_strtold_use=yes
45392 else
45393 glibcxx_cv_func_strtold_use=no
45395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45396 ac_ext=c
45397 ac_cpp='$CPP $CPPFLAGS'
45398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
45407 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
45408 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45409 for ac_func in strtold
45410 do :
45411 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
45412 if test "x$ac_cv_func_strtold" = xyes; then :
45413 cat >>confdefs.h <<_ACEOF
45414 #define HAVE_STRTOLD 1
45415 _ACEOF
45418 done
45423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
45424 $as_echo_n "checking for strtof declaration... " >&6; }
45425 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45426 if ${glibcxx_cv_func_strtof_use+:} false; then :
45427 $as_echo_n "(cached) " >&6
45428 else
45431 ac_ext=cpp
45432 ac_cpp='$CXXCPP $CPPFLAGS'
45433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45438 /* end confdefs.h. */
45439 #include <stdlib.h>
45441 main ()
45443 strtof(0, 0);
45445 return 0;
45447 _ACEOF
45448 if ac_fn_cxx_try_compile "$LINENO"; then :
45449 glibcxx_cv_func_strtof_use=yes
45450 else
45451 glibcxx_cv_func_strtof_use=no
45453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45454 ac_ext=c
45455 ac_cpp='$CPP $CPPFLAGS'
45456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
45465 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
45466 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45467 for ac_func in strtof
45468 do :
45469 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
45470 if test "x$ac_cv_func_strtof" = xyes; then :
45471 cat >>confdefs.h <<_ACEOF
45472 #define HAVE_STRTOF 1
45473 _ACEOF
45476 done
45481 CXXFLAGS="$ac_save_CXXFLAGS"
45483 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45484 do :
45485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45488 cat >>confdefs.h <<_ACEOF
45489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45490 _ACEOF
45493 done
45495 for ac_func in _wfopen
45496 do :
45497 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
45498 if test "x$ac_cv_func__wfopen" = xyes; then :
45499 cat >>confdefs.h <<_ACEOF
45500 #define HAVE__WFOPEN 1
45501 _ACEOF
45504 done
45508 # Check whether --enable-tls was given.
45509 if test "${enable_tls+set}" = set; then :
45510 enableval=$enable_tls;
45511 case "$enableval" in
45512 yes|no) ;;
45513 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
45514 esac
45516 else
45517 enable_tls=yes
45521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
45522 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
45523 if ${gcc_cv_have_tls+:} false; then :
45524 $as_echo_n "(cached) " >&6
45525 else
45527 if test "$cross_compiling" = yes; then :
45528 if test x$gcc_no_link = xyes; then
45529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45532 /* end confdefs.h. */
45533 __thread int a; int b; int main() { return a = b; }
45534 _ACEOF
45535 if ac_fn_c_try_link "$LINENO"; then :
45536 chktls_save_LDFLAGS="$LDFLAGS"
45537 case $host in
45538 *-*-linux* | -*-uclinuxfdpic*)
45539 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
45541 esac
45542 chktls_save_CFLAGS="$CFLAGS"
45543 CFLAGS="-fPIC $CFLAGS"
45544 if test x$gcc_no_link = xyes; then
45545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45548 /* end confdefs.h. */
45549 int f() { return 0; }
45550 _ACEOF
45551 if ac_fn_c_try_link "$LINENO"; then :
45552 if test x$gcc_no_link = xyes; then
45553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45556 /* end confdefs.h. */
45557 __thread int a; int b; int f() { return a = b; }
45558 _ACEOF
45559 if ac_fn_c_try_link "$LINENO"; then :
45560 gcc_cv_have_tls=yes
45561 else
45562 gcc_cv_have_tls=no
45564 rm -f core conftest.err conftest.$ac_objext \
45565 conftest$ac_exeext conftest.$ac_ext
45566 else
45567 gcc_cv_have_tls=yes
45569 rm -f core conftest.err conftest.$ac_objext \
45570 conftest$ac_exeext conftest.$ac_ext
45571 CFLAGS="$chktls_save_CFLAGS"
45572 LDFLAGS="$chktls_save_LDFLAGS"
45573 else
45574 gcc_cv_have_tls=no
45576 rm -f core conftest.err conftest.$ac_objext \
45577 conftest$ac_exeext conftest.$ac_ext
45580 else
45581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45582 /* end confdefs.h. */
45583 __thread int a; int b; int main() { return a = b; }
45584 _ACEOF
45585 if ac_fn_c_try_run "$LINENO"; then :
45586 chktls_save_LDFLAGS="$LDFLAGS"
45587 LDFLAGS="-static $LDFLAGS"
45588 if test x$gcc_no_link = xyes; then
45589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45592 /* end confdefs.h. */
45593 int main() { return 0; }
45594 _ACEOF
45595 if ac_fn_c_try_link "$LINENO"; then :
45596 if test "$cross_compiling" = yes; then :
45597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45599 as_fn_error $? "cannot run test program while cross compiling
45600 See \`config.log' for more details" "$LINENO" 5; }
45601 else
45602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45603 /* end confdefs.h. */
45604 __thread int a; int b; int main() { return a = b; }
45605 _ACEOF
45606 if ac_fn_c_try_run "$LINENO"; then :
45607 gcc_cv_have_tls=yes
45608 else
45609 gcc_cv_have_tls=no
45611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45612 conftest.$ac_objext conftest.beam conftest.$ac_ext
45615 else
45616 gcc_cv_have_tls=yes
45618 rm -f core conftest.err conftest.$ac_objext \
45619 conftest$ac_exeext conftest.$ac_ext
45620 LDFLAGS="$chktls_save_LDFLAGS"
45621 if test $gcc_cv_have_tls = yes; then
45622 chktls_save_CFLAGS="$CFLAGS"
45623 thread_CFLAGS=failed
45624 for flag in '' '-pthread' '-lpthread'; do
45625 CFLAGS="$flag $chktls_save_CFLAGS"
45626 if test x$gcc_no_link = xyes; then
45627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45630 /* end confdefs.h. */
45631 #include <pthread.h>
45632 void *g(void *d) { return NULL; }
45634 main ()
45636 pthread_t t; pthread_create(&t,NULL,g,NULL);
45638 return 0;
45640 _ACEOF
45641 if ac_fn_c_try_link "$LINENO"; then :
45642 thread_CFLAGS="$flag"
45644 rm -f core conftest.err conftest.$ac_objext \
45645 conftest$ac_exeext conftest.$ac_ext
45646 if test "X$thread_CFLAGS" != Xfailed; then
45647 break
45649 done
45650 CFLAGS="$chktls_save_CFLAGS"
45651 if test "X$thread_CFLAGS" != Xfailed; then
45652 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
45653 if test "$cross_compiling" = yes; then :
45654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45656 as_fn_error $? "cannot run test program while cross compiling
45657 See \`config.log' for more details" "$LINENO" 5; }
45658 else
45659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45660 /* end confdefs.h. */
45661 #include <pthread.h>
45662 __thread int a;
45663 static int *volatile a_in_other_thread;
45664 static void *
45665 thread_func (void *arg)
45667 a_in_other_thread = &a;
45668 return (void *)0;
45671 main ()
45673 pthread_t thread;
45674 void *thread_retval;
45675 int *volatile a_in_main_thread;
45676 a_in_main_thread = &a;
45677 if (pthread_create (&thread, (pthread_attr_t *)0,
45678 thread_func, (void *)0))
45679 return 0;
45680 if (pthread_join (thread, &thread_retval))
45681 return 0;
45682 return (a_in_other_thread == a_in_main_thread);
45684 return 0;
45686 _ACEOF
45687 if ac_fn_c_try_run "$LINENO"; then :
45688 gcc_cv_have_tls=yes
45689 else
45690 gcc_cv_have_tls=no
45692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45693 conftest.$ac_objext conftest.beam conftest.$ac_ext
45696 CFLAGS="$chktls_save_CFLAGS"
45699 else
45700 gcc_cv_have_tls=no
45702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45703 conftest.$ac_objext conftest.beam conftest.$ac_ext
45707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
45708 $as_echo "$gcc_cv_have_tls" >&6; }
45709 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
45711 $as_echo "#define HAVE_TLS 1" >>confdefs.h
45715 *-netbsd* | *-openbsd*)
45716 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45719 # If we're not using GNU ld, then there's no point in even trying these
45720 # tests. Check for that first. We should have already tested for gld
45721 # by now (in libtool), but require it now just to be safe...
45722 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45723 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45727 # The name set by libtool depends on the version of libtool. Shame on us
45728 # for depending on an impl detail, but c'est la vie. Older versions used
45729 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45730 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45731 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45732 # set (hence we're using an older libtool), then set it.
45733 if test x${with_gnu_ld+set} != xset; then
45734 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45735 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45736 with_gnu_ld=no
45737 else
45738 with_gnu_ld=$ac_cv_prog_gnu_ld
45742 # Start by getting the version number. I think the libtool test already
45743 # does some of this, but throws away the result.
45744 glibcxx_ld_is_gold=no
45745 glibcxx_ld_is_mold=no
45746 if test x"$with_gnu_ld" = x"yes"; then
45747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45748 $as_echo_n "checking for ld version... " >&6; }
45750 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45751 glibcxx_ld_is_gold=yes
45752 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45753 glibcxx_ld_is_mold=yes
45755 ldver=`$LD --version 2>/dev/null |
45756 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45758 glibcxx_gnu_ld_version=`echo $ldver | \
45759 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45761 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45764 # Set --gc-sections.
45765 glibcxx_have_gc_sections=no
45766 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45767 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45768 glibcxx_have_gc_sections=yes
45770 else
45771 glibcxx_gcsections_min_ld=21602
45772 if test x"$with_gnu_ld" = x"yes" &&
45773 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45774 glibcxx_have_gc_sections=yes
45777 if test "$glibcxx_have_gc_sections" = "yes"; then
45778 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45779 # NB: This flag only works reliably after 2.16.1. Configure tests
45780 # for this are difficult, so hard wire a value that should work.
45782 ac_test_CFLAGS="${CFLAGS+set}"
45783 ac_save_CFLAGS="$CFLAGS"
45784 CFLAGS='-Wl,--gc-sections'
45786 # Check for -Wl,--gc-sections
45787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
45788 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
45789 if test x$gcc_no_link = xyes; then
45790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45793 /* end confdefs.h. */
45794 int one(void) { return 1; }
45795 int two(void) { return 2; }
45798 main ()
45800 two();
45802 return 0;
45804 _ACEOF
45805 if ac_fn_c_try_link "$LINENO"; then :
45806 ac_gcsections=yes
45807 else
45808 ac_gcsections=no
45810 rm -f core conftest.err conftest.$ac_objext \
45811 conftest$ac_exeext conftest.$ac_ext
45812 if test "$ac_gcsections" = "yes"; then
45813 rm -f conftest.c
45814 touch conftest.c
45815 if $CC -c conftest.c; then
45816 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
45817 grep "Warning: gc-sections option ignored" > /dev/null; then
45818 ac_gcsections=no
45821 rm -f conftest.c conftest.o conftest
45823 if test "$ac_gcsections" = "yes"; then
45824 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
45826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
45827 $as_echo "$ac_gcsections" >&6; }
45829 if test "$ac_test_CFLAGS" = set; then
45830 CFLAGS="$ac_save_CFLAGS"
45831 else
45832 # this is the suspicious part
45833 CFLAGS=''
45837 # Set -z,relro.
45838 # Note this is only for shared objects.
45839 ac_ld_relro=no
45840 if test x"$with_gnu_ld" = x"yes"; then
45841 # cygwin and mingw uses PE, which has no ELF relro support,
45842 # multi target ld may confuse configure machinery
45843 case "$host" in
45844 *-*-cygwin*)
45846 *-*-mingw*)
45849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
45850 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
45851 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
45852 if test -n "$cxx_z_relo"; then
45853 OPT_LDFLAGS="-Wl,-z,relro"
45854 ac_ld_relro=yes
45856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
45857 $as_echo "$ac_ld_relro" >&6; }
45858 esac
45861 # Set linker optimization flags.
45862 if test x"$with_gnu_ld" = x"yes"; then
45863 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
45869 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
45871 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
45873 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
45875 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
45877 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
45879 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
45881 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
45883 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
45885 if test x"long_double_math_on_this_cpu" = x"yes"; then
45886 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
45888 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
45890 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
45893 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45894 do :
45895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45898 cat >>confdefs.h <<_ACEOF
45899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45900 _ACEOF
45903 done
45905 for ac_func in timespec_get
45906 do :
45907 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
45908 if test "x$ac_cv_func_timespec_get" = xyes; then :
45909 cat >>confdefs.h <<_ACEOF
45910 #define HAVE_TIMESPEC_GET 1
45911 _ACEOF
45914 done
45916 for ac_func in sockatmark
45917 do :
45918 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
45919 if test "x$ac_cv_func_sockatmark" = xyes; then :
45920 cat >>confdefs.h <<_ACEOF
45921 #define HAVE_SOCKATMARK 1
45922 _ACEOF
45925 done
45928 *-qnx6.1* | *-qnx6.2*)
45929 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45932 # If we're not using GNU ld, then there's no point in even trying these
45933 # tests. Check for that first. We should have already tested for gld
45934 # by now (in libtool), but require it now just to be safe...
45935 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45936 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45940 # The name set by libtool depends on the version of libtool. Shame on us
45941 # for depending on an impl detail, but c'est la vie. Older versions used
45942 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45943 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45944 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45945 # set (hence we're using an older libtool), then set it.
45946 if test x${with_gnu_ld+set} != xset; then
45947 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45948 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45949 with_gnu_ld=no
45950 else
45951 with_gnu_ld=$ac_cv_prog_gnu_ld
45955 # Start by getting the version number. I think the libtool test already
45956 # does some of this, but throws away the result.
45957 glibcxx_ld_is_gold=no
45958 glibcxx_ld_is_mold=no
45959 if test x"$with_gnu_ld" = x"yes"; then
45960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45961 $as_echo_n "checking for ld version... " >&6; }
45963 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45964 glibcxx_ld_is_gold=yes
45965 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45966 glibcxx_ld_is_mold=yes
45968 ldver=`$LD --version 2>/dev/null |
45969 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45971 glibcxx_gnu_ld_version=`echo $ldver | \
45972 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45974 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45977 # Set --gc-sections.
45978 glibcxx_have_gc_sections=no
45979 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45980 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45981 glibcxx_have_gc_sections=yes
45983 else
45984 glibcxx_gcsections_min_ld=21602
45985 if test x"$with_gnu_ld" = x"yes" &&
45986 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45987 glibcxx_have_gc_sections=yes
45990 if test "$glibcxx_have_gc_sections" = "yes"; then
45991 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45992 # NB: This flag only works reliably after 2.16.1. Configure tests
45993 # for this are difficult, so hard wire a value that should work.
45995 ac_test_CFLAGS="${CFLAGS+set}"
45996 ac_save_CFLAGS="$CFLAGS"
45997 CFLAGS='-Wl,--gc-sections'
45999 # Check for -Wl,--gc-sections
46000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
46001 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
46002 if test x$gcc_no_link = xyes; then
46003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
46005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46006 /* end confdefs.h. */
46007 int one(void) { return 1; }
46008 int two(void) { return 2; }
46011 main ()
46013 two();
46015 return 0;
46017 _ACEOF
46018 if ac_fn_c_try_link "$LINENO"; then :
46019 ac_gcsections=yes
46020 else
46021 ac_gcsections=no
46023 rm -f core conftest.err conftest.$ac_objext \
46024 conftest$ac_exeext conftest.$ac_ext
46025 if test "$ac_gcsections" = "yes"; then
46026 rm -f conftest.c
46027 touch conftest.c
46028 if $CC -c conftest.c; then
46029 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
46030 grep "Warning: gc-sections option ignored" > /dev/null; then
46031 ac_gcsections=no
46034 rm -f conftest.c conftest.o conftest
46036 if test "$ac_gcsections" = "yes"; then
46037 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
46040 $as_echo "$ac_gcsections" >&6; }
46042 if test "$ac_test_CFLAGS" = set; then
46043 CFLAGS="$ac_save_CFLAGS"
46044 else
46045 # this is the suspicious part
46046 CFLAGS=''
46050 # Set -z,relro.
46051 # Note this is only for shared objects.
46052 ac_ld_relro=no
46053 if test x"$with_gnu_ld" = x"yes"; then
46054 # cygwin and mingw uses PE, which has no ELF relro support,
46055 # multi target ld may confuse configure machinery
46056 case "$host" in
46057 *-*-cygwin*)
46059 *-*-mingw*)
46062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
46063 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
46064 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
46065 if test -n "$cxx_z_relo"; then
46066 OPT_LDFLAGS="-Wl,-z,relro"
46067 ac_ld_relro=yes
46069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
46070 $as_echo "$ac_ld_relro" >&6; }
46071 esac
46074 # Set linker optimization flags.
46075 if test x"$with_gnu_ld" = x"yes"; then
46076 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46082 $as_echo "#define HAVE_COSF 1" >>confdefs.h
46084 $as_echo "#define HAVE_COSL 1" >>confdefs.h
46086 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
46088 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
46090 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
46092 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
46094 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
46096 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
46098 $as_echo "#define HAVE_SINF 1" >>confdefs.h
46100 $as_echo "#define HAVE_SINL 1" >>confdefs.h
46102 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
46104 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
46107 *-tpf)
46108 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46109 SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
46111 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
46113 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
46115 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
46117 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
46119 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
46121 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
46123 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
46125 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
46127 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
46129 $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
46131 if test x"long_double_math_on_this_cpu" = x"yes"; then
46132 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
46134 $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
46136 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
46138 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
46142 *-*vms*)
46143 # Check for available headers.
46144 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
46146 ac_test_CXXFLAGS="${CXXFLAGS+set}"
46147 ac_save_CXXFLAGS="$CXXFLAGS"
46148 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
46150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
46151 $as_echo_n "checking for sin in -lm... " >&6; }
46152 if ${ac_cv_lib_m_sin+:} false; then :
46153 $as_echo_n "(cached) " >&6
46154 else
46155 ac_check_lib_save_LIBS=$LIBS
46156 LIBS="-lm $LIBS"
46157 if test x$gcc_no_link = xyes; then
46158 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
46160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46161 /* end confdefs.h. */
46163 /* Override any GCC internal prototype to avoid an error.
46164 Use char because int might match the return type of a GCC
46165 builtin and then its argument prototype would still apply. */
46166 #ifdef __cplusplus
46167 extern "C"
46168 #endif
46169 char sin ();
46171 main ()
46173 return sin ();
46175 return 0;
46177 _ACEOF
46178 if ac_fn_c_try_link "$LINENO"; then :
46179 ac_cv_lib_m_sin=yes
46180 else
46181 ac_cv_lib_m_sin=no
46183 rm -f core conftest.err conftest.$ac_objext \
46184 conftest$ac_exeext conftest.$ac_ext
46185 LIBS=$ac_check_lib_save_LIBS
46187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
46188 $as_echo "$ac_cv_lib_m_sin" >&6; }
46189 if test "x$ac_cv_lib_m_sin" = xyes; then :
46190 libm="-lm"
46193 ac_save_LIBS="$LIBS"
46194 LIBS="$LIBS $libm"
46198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
46199 $as_echo_n "checking for isinf declaration... " >&6; }
46200 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
46201 if ${glibcxx_cv_func_isinf_use+:} false; then :
46202 $as_echo_n "(cached) " >&6
46203 else
46206 ac_ext=cpp
46207 ac_cpp='$CXXCPP $CPPFLAGS'
46208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46213 /* end confdefs.h. */
46214 #include <math.h>
46215 #ifdef HAVE_IEEEFP_H
46216 #include <ieeefp.h>
46217 #endif
46220 main ()
46222 isinf(0);
46224 return 0;
46226 _ACEOF
46227 if ac_fn_cxx_try_compile "$LINENO"; then :
46228 glibcxx_cv_func_isinf_use=yes
46229 else
46230 glibcxx_cv_func_isinf_use=no
46232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46233 ac_ext=c
46234 ac_cpp='$CPP $CPPFLAGS'
46235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
46244 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
46246 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
46247 for ac_func in isinf
46248 do :
46249 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
46250 if test "x$ac_cv_func_isinf" = xyes; then :
46251 cat >>confdefs.h <<_ACEOF
46252 #define HAVE_ISINF 1
46253 _ACEOF
46256 done
46262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
46263 $as_echo_n "checking for isnan declaration... " >&6; }
46264 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
46265 if ${glibcxx_cv_func_isnan_use+:} false; then :
46266 $as_echo_n "(cached) " >&6
46267 else
46270 ac_ext=cpp
46271 ac_cpp='$CXXCPP $CPPFLAGS'
46272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46277 /* end confdefs.h. */
46278 #include <math.h>
46279 #ifdef HAVE_IEEEFP_H
46280 #include <ieeefp.h>
46281 #endif
46284 main ()
46286 isnan(0);
46288 return 0;
46290 _ACEOF
46291 if ac_fn_cxx_try_compile "$LINENO"; then :
46292 glibcxx_cv_func_isnan_use=yes
46293 else
46294 glibcxx_cv_func_isnan_use=no
46296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46297 ac_ext=c
46298 ac_cpp='$CPP $CPPFLAGS'
46299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
46308 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
46310 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
46311 for ac_func in isnan
46312 do :
46313 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
46314 if test "x$ac_cv_func_isnan" = xyes; then :
46315 cat >>confdefs.h <<_ACEOF
46316 #define HAVE_ISNAN 1
46317 _ACEOF
46320 done
46326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
46327 $as_echo_n "checking for finite declaration... " >&6; }
46328 if test x${glibcxx_cv_func_finite_use+set} != xset; then
46329 if ${glibcxx_cv_func_finite_use+:} false; then :
46330 $as_echo_n "(cached) " >&6
46331 else
46334 ac_ext=cpp
46335 ac_cpp='$CXXCPP $CPPFLAGS'
46336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46341 /* end confdefs.h. */
46342 #include <math.h>
46343 #ifdef HAVE_IEEEFP_H
46344 #include <ieeefp.h>
46345 #endif
46348 main ()
46350 finite(0);
46352 return 0;
46354 _ACEOF
46355 if ac_fn_cxx_try_compile "$LINENO"; then :
46356 glibcxx_cv_func_finite_use=yes
46357 else
46358 glibcxx_cv_func_finite_use=no
46360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46361 ac_ext=c
46362 ac_cpp='$CPP $CPPFLAGS'
46363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
46372 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
46374 if test x$glibcxx_cv_func_finite_use = x"yes"; then
46375 for ac_func in finite
46376 do :
46377 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
46378 if test "x$ac_cv_func_finite" = xyes; then :
46379 cat >>confdefs.h <<_ACEOF
46380 #define HAVE_FINITE 1
46381 _ACEOF
46384 done
46390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
46391 $as_echo_n "checking for sincos declaration... " >&6; }
46392 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
46393 if ${glibcxx_cv_func_sincos_use+:} false; then :
46394 $as_echo_n "(cached) " >&6
46395 else
46398 ac_ext=cpp
46399 ac_cpp='$CXXCPP $CPPFLAGS'
46400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46405 /* end confdefs.h. */
46406 #include <math.h>
46408 main ()
46410 sincos(0, 0, 0);
46412 return 0;
46414 _ACEOF
46415 if ac_fn_cxx_try_compile "$LINENO"; then :
46416 glibcxx_cv_func_sincos_use=yes
46417 else
46418 glibcxx_cv_func_sincos_use=no
46420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46421 ac_ext=c
46422 ac_cpp='$CPP $CPPFLAGS'
46423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
46432 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
46434 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
46435 for ac_func in sincos
46436 do :
46437 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
46438 if test "x$ac_cv_func_sincos" = xyes; then :
46439 cat >>confdefs.h <<_ACEOF
46440 #define HAVE_SINCOS 1
46441 _ACEOF
46444 done
46450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
46451 $as_echo_n "checking for fpclass declaration... " >&6; }
46452 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
46453 if ${glibcxx_cv_func_fpclass_use+:} false; then :
46454 $as_echo_n "(cached) " >&6
46455 else
46458 ac_ext=cpp
46459 ac_cpp='$CXXCPP $CPPFLAGS'
46460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46465 /* end confdefs.h. */
46466 #include <math.h>
46467 #ifdef HAVE_IEEEFP_H
46468 #include <ieeefp.h>
46469 #endif
46472 main ()
46474 fpclass(0);
46476 return 0;
46478 _ACEOF
46479 if ac_fn_cxx_try_compile "$LINENO"; then :
46480 glibcxx_cv_func_fpclass_use=yes
46481 else
46482 glibcxx_cv_func_fpclass_use=no
46484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46485 ac_ext=c
46486 ac_cpp='$CPP $CPPFLAGS'
46487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
46496 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
46498 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
46499 for ac_func in fpclass
46500 do :
46501 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
46502 if test "x$ac_cv_func_fpclass" = xyes; then :
46503 cat >>confdefs.h <<_ACEOF
46504 #define HAVE_FPCLASS 1
46505 _ACEOF
46508 done
46514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
46515 $as_echo_n "checking for qfpclass declaration... " >&6; }
46516 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
46517 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
46518 $as_echo_n "(cached) " >&6
46519 else
46522 ac_ext=cpp
46523 ac_cpp='$CXXCPP $CPPFLAGS'
46524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46529 /* end confdefs.h. */
46530 #include <math.h>
46531 #ifdef HAVE_IEEEFP_H
46532 #include <ieeefp.h>
46533 #endif
46536 main ()
46538 qfpclass(0);
46540 return 0;
46542 _ACEOF
46543 if ac_fn_cxx_try_compile "$LINENO"; then :
46544 glibcxx_cv_func_qfpclass_use=yes
46545 else
46546 glibcxx_cv_func_qfpclass_use=no
46548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46549 ac_ext=c
46550 ac_cpp='$CPP $CPPFLAGS'
46551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
46560 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
46562 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
46563 for ac_func in qfpclass
46564 do :
46565 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
46566 if test "x$ac_cv_func_qfpclass" = xyes; then :
46567 cat >>confdefs.h <<_ACEOF
46568 #define HAVE_QFPCLASS 1
46569 _ACEOF
46572 done
46578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
46579 $as_echo_n "checking for hypot declaration... " >&6; }
46580 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
46581 if ${glibcxx_cv_func_hypot_use+:} false; then :
46582 $as_echo_n "(cached) " >&6
46583 else
46586 ac_ext=cpp
46587 ac_cpp='$CXXCPP $CPPFLAGS'
46588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46593 /* end confdefs.h. */
46594 #include <math.h>
46596 main ()
46598 hypot(0, 0);
46600 return 0;
46602 _ACEOF
46603 if ac_fn_cxx_try_compile "$LINENO"; then :
46604 glibcxx_cv_func_hypot_use=yes
46605 else
46606 glibcxx_cv_func_hypot_use=no
46608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46609 ac_ext=c
46610 ac_cpp='$CPP $CPPFLAGS'
46611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
46620 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
46622 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
46623 for ac_func in hypot
46624 do :
46625 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
46626 if test "x$ac_cv_func_hypot" = xyes; then :
46627 cat >>confdefs.h <<_ACEOF
46628 #define HAVE_HYPOT 1
46629 _ACEOF
46632 done
46638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
46639 $as_echo_n "checking for float trig functions... " >&6; }
46640 if ${glibcxx_cv_func_float_trig_use+:} false; then :
46641 $as_echo_n "(cached) " >&6
46642 else
46645 ac_ext=cpp
46646 ac_cpp='$CXXCPP $CPPFLAGS'
46647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46652 /* end confdefs.h. */
46653 #include <math.h>
46655 main ()
46657 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
46659 return 0;
46661 _ACEOF
46662 if ac_fn_cxx_try_compile "$LINENO"; then :
46663 glibcxx_cv_func_float_trig_use=yes
46664 else
46665 glibcxx_cv_func_float_trig_use=no
46667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46668 ac_ext=c
46669 ac_cpp='$CPP $CPPFLAGS'
46670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
46677 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
46678 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
46679 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
46680 do :
46681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46684 cat >>confdefs.h <<_ACEOF
46685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46686 _ACEOF
46689 done
46695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
46696 $as_echo_n "checking for float round functions... " >&6; }
46697 if ${glibcxx_cv_func_float_round_use+:} false; then :
46698 $as_echo_n "(cached) " >&6
46699 else
46702 ac_ext=cpp
46703 ac_cpp='$CXXCPP $CPPFLAGS'
46704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46709 /* end confdefs.h. */
46710 #include <math.h>
46712 main ()
46714 ceilf (0); floorf (0);
46716 return 0;
46718 _ACEOF
46719 if ac_fn_cxx_try_compile "$LINENO"; then :
46720 glibcxx_cv_func_float_round_use=yes
46721 else
46722 glibcxx_cv_func_float_round_use=no
46724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46725 ac_ext=c
46726 ac_cpp='$CPP $CPPFLAGS'
46727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
46734 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
46735 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
46736 for ac_func in ceilf floorf
46737 do :
46738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46740 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46741 cat >>confdefs.h <<_ACEOF
46742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46743 _ACEOF
46746 done
46753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
46754 $as_echo_n "checking for expf declaration... " >&6; }
46755 if test x${glibcxx_cv_func_expf_use+set} != xset; then
46756 if ${glibcxx_cv_func_expf_use+:} false; then :
46757 $as_echo_n "(cached) " >&6
46758 else
46761 ac_ext=cpp
46762 ac_cpp='$CXXCPP $CPPFLAGS'
46763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46768 /* end confdefs.h. */
46769 #include <math.h>
46770 #ifdef HAVE_IEEEFP_H
46771 #include <ieeefp.h>
46772 #endif
46775 main ()
46777 expf(0);
46779 return 0;
46781 _ACEOF
46782 if ac_fn_cxx_try_compile "$LINENO"; then :
46783 glibcxx_cv_func_expf_use=yes
46784 else
46785 glibcxx_cv_func_expf_use=no
46787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46788 ac_ext=c
46789 ac_cpp='$CPP $CPPFLAGS'
46790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
46799 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
46801 if test x$glibcxx_cv_func_expf_use = x"yes"; then
46802 for ac_func in expf
46803 do :
46804 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
46805 if test "x$ac_cv_func_expf" = xyes; then :
46806 cat >>confdefs.h <<_ACEOF
46807 #define HAVE_EXPF 1
46808 _ACEOF
46811 done
46817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
46818 $as_echo_n "checking for isnanf declaration... " >&6; }
46819 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
46820 if ${glibcxx_cv_func_isnanf_use+:} false; then :
46821 $as_echo_n "(cached) " >&6
46822 else
46825 ac_ext=cpp
46826 ac_cpp='$CXXCPP $CPPFLAGS'
46827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46832 /* end confdefs.h. */
46833 #include <math.h>
46834 #ifdef HAVE_IEEEFP_H
46835 #include <ieeefp.h>
46836 #endif
46839 main ()
46841 isnanf(0);
46843 return 0;
46845 _ACEOF
46846 if ac_fn_cxx_try_compile "$LINENO"; then :
46847 glibcxx_cv_func_isnanf_use=yes
46848 else
46849 glibcxx_cv_func_isnanf_use=no
46851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46852 ac_ext=c
46853 ac_cpp='$CPP $CPPFLAGS'
46854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
46863 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
46865 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
46866 for ac_func in isnanf
46867 do :
46868 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
46869 if test "x$ac_cv_func_isnanf" = xyes; then :
46870 cat >>confdefs.h <<_ACEOF
46871 #define HAVE_ISNANF 1
46872 _ACEOF
46875 done
46881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
46882 $as_echo_n "checking for isinff declaration... " >&6; }
46883 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
46884 if ${glibcxx_cv_func_isinff_use+:} false; then :
46885 $as_echo_n "(cached) " >&6
46886 else
46889 ac_ext=cpp
46890 ac_cpp='$CXXCPP $CPPFLAGS'
46891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46896 /* end confdefs.h. */
46897 #include <math.h>
46898 #ifdef HAVE_IEEEFP_H
46899 #include <ieeefp.h>
46900 #endif
46903 main ()
46905 isinff(0);
46907 return 0;
46909 _ACEOF
46910 if ac_fn_cxx_try_compile "$LINENO"; then :
46911 glibcxx_cv_func_isinff_use=yes
46912 else
46913 glibcxx_cv_func_isinff_use=no
46915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46916 ac_ext=c
46917 ac_cpp='$CPP $CPPFLAGS'
46918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
46927 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
46929 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
46930 for ac_func in isinff
46931 do :
46932 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
46933 if test "x$ac_cv_func_isinff" = xyes; then :
46934 cat >>confdefs.h <<_ACEOF
46935 #define HAVE_ISINFF 1
46936 _ACEOF
46939 done
46945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
46946 $as_echo_n "checking for atan2f declaration... " >&6; }
46947 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
46948 if ${glibcxx_cv_func_atan2f_use+:} false; then :
46949 $as_echo_n "(cached) " >&6
46950 else
46953 ac_ext=cpp
46954 ac_cpp='$CXXCPP $CPPFLAGS'
46955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46960 /* end confdefs.h. */
46961 #include <math.h>
46963 main ()
46965 atan2f(0, 0);
46967 return 0;
46969 _ACEOF
46970 if ac_fn_cxx_try_compile "$LINENO"; then :
46971 glibcxx_cv_func_atan2f_use=yes
46972 else
46973 glibcxx_cv_func_atan2f_use=no
46975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46976 ac_ext=c
46977 ac_cpp='$CPP $CPPFLAGS'
46978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
46987 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
46989 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
46990 for ac_func in atan2f
46991 do :
46992 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
46993 if test "x$ac_cv_func_atan2f" = xyes; then :
46994 cat >>confdefs.h <<_ACEOF
46995 #define HAVE_ATAN2F 1
46996 _ACEOF
46999 done
47005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
47006 $as_echo_n "checking for fabsf declaration... " >&6; }
47007 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
47008 if ${glibcxx_cv_func_fabsf_use+:} false; then :
47009 $as_echo_n "(cached) " >&6
47010 else
47013 ac_ext=cpp
47014 ac_cpp='$CXXCPP $CPPFLAGS'
47015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47020 /* end confdefs.h. */
47021 #include <math.h>
47022 #ifdef HAVE_IEEEFP_H
47023 #include <ieeefp.h>
47024 #endif
47027 main ()
47029 fabsf(0);
47031 return 0;
47033 _ACEOF
47034 if ac_fn_cxx_try_compile "$LINENO"; then :
47035 glibcxx_cv_func_fabsf_use=yes
47036 else
47037 glibcxx_cv_func_fabsf_use=no
47039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47040 ac_ext=c
47041 ac_cpp='$CPP $CPPFLAGS'
47042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
47051 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
47053 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
47054 for ac_func in fabsf
47055 do :
47056 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
47057 if test "x$ac_cv_func_fabsf" = xyes; then :
47058 cat >>confdefs.h <<_ACEOF
47059 #define HAVE_FABSF 1
47060 _ACEOF
47063 done
47069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
47070 $as_echo_n "checking for fmodf declaration... " >&6; }
47071 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
47072 if ${glibcxx_cv_func_fmodf_use+:} false; then :
47073 $as_echo_n "(cached) " >&6
47074 else
47077 ac_ext=cpp
47078 ac_cpp='$CXXCPP $CPPFLAGS'
47079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47084 /* end confdefs.h. */
47085 #include <math.h>
47087 main ()
47089 fmodf(0, 0);
47091 return 0;
47093 _ACEOF
47094 if ac_fn_cxx_try_compile "$LINENO"; then :
47095 glibcxx_cv_func_fmodf_use=yes
47096 else
47097 glibcxx_cv_func_fmodf_use=no
47099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47100 ac_ext=c
47101 ac_cpp='$CPP $CPPFLAGS'
47102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
47111 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
47113 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
47114 for ac_func in fmodf
47115 do :
47116 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
47117 if test "x$ac_cv_func_fmodf" = xyes; then :
47118 cat >>confdefs.h <<_ACEOF
47119 #define HAVE_FMODF 1
47120 _ACEOF
47123 done
47129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
47130 $as_echo_n "checking for frexpf declaration... " >&6; }
47131 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
47132 if ${glibcxx_cv_func_frexpf_use+:} false; then :
47133 $as_echo_n "(cached) " >&6
47134 else
47137 ac_ext=cpp
47138 ac_cpp='$CXXCPP $CPPFLAGS'
47139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47144 /* end confdefs.h. */
47145 #include <math.h>
47147 main ()
47149 frexpf(0, 0);
47151 return 0;
47153 _ACEOF
47154 if ac_fn_cxx_try_compile "$LINENO"; then :
47155 glibcxx_cv_func_frexpf_use=yes
47156 else
47157 glibcxx_cv_func_frexpf_use=no
47159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47160 ac_ext=c
47161 ac_cpp='$CPP $CPPFLAGS'
47162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
47171 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
47173 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
47174 for ac_func in frexpf
47175 do :
47176 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
47177 if test "x$ac_cv_func_frexpf" = xyes; then :
47178 cat >>confdefs.h <<_ACEOF
47179 #define HAVE_FREXPF 1
47180 _ACEOF
47183 done
47189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
47190 $as_echo_n "checking for hypotf declaration... " >&6; }
47191 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
47192 if ${glibcxx_cv_func_hypotf_use+:} false; then :
47193 $as_echo_n "(cached) " >&6
47194 else
47197 ac_ext=cpp
47198 ac_cpp='$CXXCPP $CPPFLAGS'
47199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47204 /* end confdefs.h. */
47205 #include <math.h>
47207 main ()
47209 hypotf(0, 0);
47211 return 0;
47213 _ACEOF
47214 if ac_fn_cxx_try_compile "$LINENO"; then :
47215 glibcxx_cv_func_hypotf_use=yes
47216 else
47217 glibcxx_cv_func_hypotf_use=no
47219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47220 ac_ext=c
47221 ac_cpp='$CPP $CPPFLAGS'
47222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
47231 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
47233 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
47234 for ac_func in hypotf
47235 do :
47236 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
47237 if test "x$ac_cv_func_hypotf" = xyes; then :
47238 cat >>confdefs.h <<_ACEOF
47239 #define HAVE_HYPOTF 1
47240 _ACEOF
47243 done
47249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
47250 $as_echo_n "checking for ldexpf declaration... " >&6; }
47251 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
47252 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
47253 $as_echo_n "(cached) " >&6
47254 else
47257 ac_ext=cpp
47258 ac_cpp='$CXXCPP $CPPFLAGS'
47259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47264 /* end confdefs.h. */
47265 #include <math.h>
47267 main ()
47269 ldexpf(0, 0);
47271 return 0;
47273 _ACEOF
47274 if ac_fn_cxx_try_compile "$LINENO"; then :
47275 glibcxx_cv_func_ldexpf_use=yes
47276 else
47277 glibcxx_cv_func_ldexpf_use=no
47279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47280 ac_ext=c
47281 ac_cpp='$CPP $CPPFLAGS'
47282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
47291 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
47293 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
47294 for ac_func in ldexpf
47295 do :
47296 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
47297 if test "x$ac_cv_func_ldexpf" = xyes; then :
47298 cat >>confdefs.h <<_ACEOF
47299 #define HAVE_LDEXPF 1
47300 _ACEOF
47303 done
47309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
47310 $as_echo_n "checking for logf declaration... " >&6; }
47311 if test x${glibcxx_cv_func_logf_use+set} != xset; then
47312 if ${glibcxx_cv_func_logf_use+:} false; then :
47313 $as_echo_n "(cached) " >&6
47314 else
47317 ac_ext=cpp
47318 ac_cpp='$CXXCPP $CPPFLAGS'
47319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47324 /* end confdefs.h. */
47325 #include <math.h>
47326 #ifdef HAVE_IEEEFP_H
47327 #include <ieeefp.h>
47328 #endif
47331 main ()
47333 logf(0);
47335 return 0;
47337 _ACEOF
47338 if ac_fn_cxx_try_compile "$LINENO"; then :
47339 glibcxx_cv_func_logf_use=yes
47340 else
47341 glibcxx_cv_func_logf_use=no
47343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47344 ac_ext=c
47345 ac_cpp='$CPP $CPPFLAGS'
47346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
47355 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
47357 if test x$glibcxx_cv_func_logf_use = x"yes"; then
47358 for ac_func in logf
47359 do :
47360 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
47361 if test "x$ac_cv_func_logf" = xyes; then :
47362 cat >>confdefs.h <<_ACEOF
47363 #define HAVE_LOGF 1
47364 _ACEOF
47367 done
47373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
47374 $as_echo_n "checking for log10f declaration... " >&6; }
47375 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
47376 if ${glibcxx_cv_func_log10f_use+:} false; then :
47377 $as_echo_n "(cached) " >&6
47378 else
47381 ac_ext=cpp
47382 ac_cpp='$CXXCPP $CPPFLAGS'
47383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47388 /* end confdefs.h. */
47389 #include <math.h>
47390 #ifdef HAVE_IEEEFP_H
47391 #include <ieeefp.h>
47392 #endif
47395 main ()
47397 log10f(0);
47399 return 0;
47401 _ACEOF
47402 if ac_fn_cxx_try_compile "$LINENO"; then :
47403 glibcxx_cv_func_log10f_use=yes
47404 else
47405 glibcxx_cv_func_log10f_use=no
47407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47408 ac_ext=c
47409 ac_cpp='$CPP $CPPFLAGS'
47410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
47419 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
47421 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
47422 for ac_func in log10f
47423 do :
47424 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
47425 if test "x$ac_cv_func_log10f" = xyes; then :
47426 cat >>confdefs.h <<_ACEOF
47427 #define HAVE_LOG10F 1
47428 _ACEOF
47431 done
47437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
47438 $as_echo_n "checking for modff declaration... " >&6; }
47439 if test x${glibcxx_cv_func_modff_use+set} != xset; then
47440 if ${glibcxx_cv_func_modff_use+:} false; then :
47441 $as_echo_n "(cached) " >&6
47442 else
47445 ac_ext=cpp
47446 ac_cpp='$CXXCPP $CPPFLAGS'
47447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47452 /* end confdefs.h. */
47453 #include <math.h>
47455 main ()
47457 modff(0, 0);
47459 return 0;
47461 _ACEOF
47462 if ac_fn_cxx_try_compile "$LINENO"; then :
47463 glibcxx_cv_func_modff_use=yes
47464 else
47465 glibcxx_cv_func_modff_use=no
47467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47468 ac_ext=c
47469 ac_cpp='$CPP $CPPFLAGS'
47470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
47479 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
47481 if test x$glibcxx_cv_func_modff_use = x"yes"; then
47482 for ac_func in modff
47483 do :
47484 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
47485 if test "x$ac_cv_func_modff" = xyes; then :
47486 cat >>confdefs.h <<_ACEOF
47487 #define HAVE_MODFF 1
47488 _ACEOF
47491 done
47497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
47498 $as_echo_n "checking for modf declaration... " >&6; }
47499 if test x${glibcxx_cv_func_modf_use+set} != xset; then
47500 if ${glibcxx_cv_func_modf_use+:} false; then :
47501 $as_echo_n "(cached) " >&6
47502 else
47505 ac_ext=cpp
47506 ac_cpp='$CXXCPP $CPPFLAGS'
47507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47512 /* end confdefs.h. */
47513 #include <math.h>
47515 main ()
47517 modf(0, 0);
47519 return 0;
47521 _ACEOF
47522 if ac_fn_cxx_try_compile "$LINENO"; then :
47523 glibcxx_cv_func_modf_use=yes
47524 else
47525 glibcxx_cv_func_modf_use=no
47527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47528 ac_ext=c
47529 ac_cpp='$CPP $CPPFLAGS'
47530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
47539 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
47541 if test x$glibcxx_cv_func_modf_use = x"yes"; then
47542 for ac_func in modf
47543 do :
47544 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
47545 if test "x$ac_cv_func_modf" = xyes; then :
47546 cat >>confdefs.h <<_ACEOF
47547 #define HAVE_MODF 1
47548 _ACEOF
47551 done
47557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
47558 $as_echo_n "checking for powf declaration... " >&6; }
47559 if test x${glibcxx_cv_func_powf_use+set} != xset; then
47560 if ${glibcxx_cv_func_powf_use+:} false; then :
47561 $as_echo_n "(cached) " >&6
47562 else
47565 ac_ext=cpp
47566 ac_cpp='$CXXCPP $CPPFLAGS'
47567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47572 /* end confdefs.h. */
47573 #include <math.h>
47575 main ()
47577 powf(0, 0);
47579 return 0;
47581 _ACEOF
47582 if ac_fn_cxx_try_compile "$LINENO"; then :
47583 glibcxx_cv_func_powf_use=yes
47584 else
47585 glibcxx_cv_func_powf_use=no
47587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47588 ac_ext=c
47589 ac_cpp='$CPP $CPPFLAGS'
47590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
47599 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
47601 if test x$glibcxx_cv_func_powf_use = x"yes"; then
47602 for ac_func in powf
47603 do :
47604 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
47605 if test "x$ac_cv_func_powf" = xyes; then :
47606 cat >>confdefs.h <<_ACEOF
47607 #define HAVE_POWF 1
47608 _ACEOF
47611 done
47617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
47618 $as_echo_n "checking for sqrtf declaration... " >&6; }
47619 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
47620 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
47621 $as_echo_n "(cached) " >&6
47622 else
47625 ac_ext=cpp
47626 ac_cpp='$CXXCPP $CPPFLAGS'
47627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47632 /* end confdefs.h. */
47633 #include <math.h>
47634 #ifdef HAVE_IEEEFP_H
47635 #include <ieeefp.h>
47636 #endif
47639 main ()
47641 sqrtf(0);
47643 return 0;
47645 _ACEOF
47646 if ac_fn_cxx_try_compile "$LINENO"; then :
47647 glibcxx_cv_func_sqrtf_use=yes
47648 else
47649 glibcxx_cv_func_sqrtf_use=no
47651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47652 ac_ext=c
47653 ac_cpp='$CPP $CPPFLAGS'
47654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
47663 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
47665 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
47666 for ac_func in sqrtf
47667 do :
47668 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
47669 if test "x$ac_cv_func_sqrtf" = xyes; then :
47670 cat >>confdefs.h <<_ACEOF
47671 #define HAVE_SQRTF 1
47672 _ACEOF
47675 done
47681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
47682 $as_echo_n "checking for sincosf declaration... " >&6; }
47683 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
47684 if ${glibcxx_cv_func_sincosf_use+:} false; then :
47685 $as_echo_n "(cached) " >&6
47686 else
47689 ac_ext=cpp
47690 ac_cpp='$CXXCPP $CPPFLAGS'
47691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47696 /* end confdefs.h. */
47697 #include <math.h>
47699 main ()
47701 sincosf(0, 0, 0);
47703 return 0;
47705 _ACEOF
47706 if ac_fn_cxx_try_compile "$LINENO"; then :
47707 glibcxx_cv_func_sincosf_use=yes
47708 else
47709 glibcxx_cv_func_sincosf_use=no
47711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47712 ac_ext=c
47713 ac_cpp='$CPP $CPPFLAGS'
47714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
47723 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
47725 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
47726 for ac_func in sincosf
47727 do :
47728 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
47729 if test "x$ac_cv_func_sincosf" = xyes; then :
47730 cat >>confdefs.h <<_ACEOF
47731 #define HAVE_SINCOSF 1
47732 _ACEOF
47735 done
47741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
47742 $as_echo_n "checking for finitef declaration... " >&6; }
47743 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
47744 if ${glibcxx_cv_func_finitef_use+:} false; then :
47745 $as_echo_n "(cached) " >&6
47746 else
47749 ac_ext=cpp
47750 ac_cpp='$CXXCPP $CPPFLAGS'
47751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47756 /* end confdefs.h. */
47757 #include <math.h>
47758 #ifdef HAVE_IEEEFP_H
47759 #include <ieeefp.h>
47760 #endif
47763 main ()
47765 finitef(0);
47767 return 0;
47769 _ACEOF
47770 if ac_fn_cxx_try_compile "$LINENO"; then :
47771 glibcxx_cv_func_finitef_use=yes
47772 else
47773 glibcxx_cv_func_finitef_use=no
47775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47776 ac_ext=c
47777 ac_cpp='$CPP $CPPFLAGS'
47778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
47787 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
47789 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
47790 for ac_func in finitef
47791 do :
47792 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
47793 if test "x$ac_cv_func_finitef" = xyes; then :
47794 cat >>confdefs.h <<_ACEOF
47795 #define HAVE_FINITEF 1
47796 _ACEOF
47799 done
47805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
47806 $as_echo_n "checking for long double trig functions... " >&6; }
47807 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
47808 $as_echo_n "(cached) " >&6
47809 else
47812 ac_ext=cpp
47813 ac_cpp='$CXXCPP $CPPFLAGS'
47814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47819 /* end confdefs.h. */
47820 #include <math.h>
47822 main ()
47824 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
47826 return 0;
47828 _ACEOF
47829 if ac_fn_cxx_try_compile "$LINENO"; then :
47830 glibcxx_cv_func_long_double_trig_use=yes
47831 else
47832 glibcxx_cv_func_long_double_trig_use=no
47834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47835 ac_ext=c
47836 ac_cpp='$CPP $CPPFLAGS'
47837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
47844 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
47845 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
47846 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
47847 do :
47848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47851 cat >>confdefs.h <<_ACEOF
47852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47853 _ACEOF
47856 done
47862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
47863 $as_echo_n "checking for long double round functions... " >&6; }
47864 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
47865 $as_echo_n "(cached) " >&6
47866 else
47869 ac_ext=cpp
47870 ac_cpp='$CXXCPP $CPPFLAGS'
47871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47876 /* end confdefs.h. */
47877 #include <math.h>
47879 main ()
47881 ceill (0); floorl (0);
47883 return 0;
47885 _ACEOF
47886 if ac_fn_cxx_try_compile "$LINENO"; then :
47887 glibcxx_cv_func_long_double_round_use=yes
47888 else
47889 glibcxx_cv_func_long_double_round_use=no
47891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47892 ac_ext=c
47893 ac_cpp='$CPP $CPPFLAGS'
47894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
47901 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
47902 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
47903 for ac_func in ceill floorl
47904 do :
47905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47908 cat >>confdefs.h <<_ACEOF
47909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47910 _ACEOF
47913 done
47920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
47921 $as_echo_n "checking for isnanl declaration... " >&6; }
47922 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
47923 if ${glibcxx_cv_func_isnanl_use+:} false; then :
47924 $as_echo_n "(cached) " >&6
47925 else
47928 ac_ext=cpp
47929 ac_cpp='$CXXCPP $CPPFLAGS'
47930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935 /* end confdefs.h. */
47936 #include <math.h>
47937 #ifdef HAVE_IEEEFP_H
47938 #include <ieeefp.h>
47939 #endif
47942 main ()
47944 isnanl(0);
47946 return 0;
47948 _ACEOF
47949 if ac_fn_cxx_try_compile "$LINENO"; then :
47950 glibcxx_cv_func_isnanl_use=yes
47951 else
47952 glibcxx_cv_func_isnanl_use=no
47954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47955 ac_ext=c
47956 ac_cpp='$CPP $CPPFLAGS'
47957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
47966 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
47968 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
47969 for ac_func in isnanl
47970 do :
47971 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
47972 if test "x$ac_cv_func_isnanl" = xyes; then :
47973 cat >>confdefs.h <<_ACEOF
47974 #define HAVE_ISNANL 1
47975 _ACEOF
47978 done
47984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
47985 $as_echo_n "checking for isinfl declaration... " >&6; }
47986 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
47987 if ${glibcxx_cv_func_isinfl_use+:} false; then :
47988 $as_echo_n "(cached) " >&6
47989 else
47992 ac_ext=cpp
47993 ac_cpp='$CXXCPP $CPPFLAGS'
47994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47999 /* end confdefs.h. */
48000 #include <math.h>
48001 #ifdef HAVE_IEEEFP_H
48002 #include <ieeefp.h>
48003 #endif
48006 main ()
48008 isinfl(0);
48010 return 0;
48012 _ACEOF
48013 if ac_fn_cxx_try_compile "$LINENO"; then :
48014 glibcxx_cv_func_isinfl_use=yes
48015 else
48016 glibcxx_cv_func_isinfl_use=no
48018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48019 ac_ext=c
48020 ac_cpp='$CPP $CPPFLAGS'
48021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
48030 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
48032 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
48033 for ac_func in isinfl
48034 do :
48035 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
48036 if test "x$ac_cv_func_isinfl" = xyes; then :
48037 cat >>confdefs.h <<_ACEOF
48038 #define HAVE_ISINFL 1
48039 _ACEOF
48042 done
48048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
48049 $as_echo_n "checking for atan2l declaration... " >&6; }
48050 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
48051 if ${glibcxx_cv_func_atan2l_use+:} false; then :
48052 $as_echo_n "(cached) " >&6
48053 else
48056 ac_ext=cpp
48057 ac_cpp='$CXXCPP $CPPFLAGS'
48058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48063 /* end confdefs.h. */
48064 #include <math.h>
48066 main ()
48068 atan2l(0, 0);
48070 return 0;
48072 _ACEOF
48073 if ac_fn_cxx_try_compile "$LINENO"; then :
48074 glibcxx_cv_func_atan2l_use=yes
48075 else
48076 glibcxx_cv_func_atan2l_use=no
48078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48079 ac_ext=c
48080 ac_cpp='$CPP $CPPFLAGS'
48081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
48090 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
48092 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
48093 for ac_func in atan2l
48094 do :
48095 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
48096 if test "x$ac_cv_func_atan2l" = xyes; then :
48097 cat >>confdefs.h <<_ACEOF
48098 #define HAVE_ATAN2L 1
48099 _ACEOF
48102 done
48108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
48109 $as_echo_n "checking for expl declaration... " >&6; }
48110 if test x${glibcxx_cv_func_expl_use+set} != xset; then
48111 if ${glibcxx_cv_func_expl_use+:} false; then :
48112 $as_echo_n "(cached) " >&6
48113 else
48116 ac_ext=cpp
48117 ac_cpp='$CXXCPP $CPPFLAGS'
48118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48123 /* end confdefs.h. */
48124 #include <math.h>
48125 #ifdef HAVE_IEEEFP_H
48126 #include <ieeefp.h>
48127 #endif
48130 main ()
48132 expl(0);
48134 return 0;
48136 _ACEOF
48137 if ac_fn_cxx_try_compile "$LINENO"; then :
48138 glibcxx_cv_func_expl_use=yes
48139 else
48140 glibcxx_cv_func_expl_use=no
48142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48143 ac_ext=c
48144 ac_cpp='$CPP $CPPFLAGS'
48145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
48154 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
48156 if test x$glibcxx_cv_func_expl_use = x"yes"; then
48157 for ac_func in expl
48158 do :
48159 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
48160 if test "x$ac_cv_func_expl" = xyes; then :
48161 cat >>confdefs.h <<_ACEOF
48162 #define HAVE_EXPL 1
48163 _ACEOF
48166 done
48172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
48173 $as_echo_n "checking for fabsl declaration... " >&6; }
48174 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
48175 if ${glibcxx_cv_func_fabsl_use+:} false; then :
48176 $as_echo_n "(cached) " >&6
48177 else
48180 ac_ext=cpp
48181 ac_cpp='$CXXCPP $CPPFLAGS'
48182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48187 /* end confdefs.h. */
48188 #include <math.h>
48189 #ifdef HAVE_IEEEFP_H
48190 #include <ieeefp.h>
48191 #endif
48194 main ()
48196 fabsl(0);
48198 return 0;
48200 _ACEOF
48201 if ac_fn_cxx_try_compile "$LINENO"; then :
48202 glibcxx_cv_func_fabsl_use=yes
48203 else
48204 glibcxx_cv_func_fabsl_use=no
48206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48207 ac_ext=c
48208 ac_cpp='$CPP $CPPFLAGS'
48209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
48218 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
48220 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
48221 for ac_func in fabsl
48222 do :
48223 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
48224 if test "x$ac_cv_func_fabsl" = xyes; then :
48225 cat >>confdefs.h <<_ACEOF
48226 #define HAVE_FABSL 1
48227 _ACEOF
48230 done
48236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
48237 $as_echo_n "checking for fmodl declaration... " >&6; }
48238 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
48239 if ${glibcxx_cv_func_fmodl_use+:} false; then :
48240 $as_echo_n "(cached) " >&6
48241 else
48244 ac_ext=cpp
48245 ac_cpp='$CXXCPP $CPPFLAGS'
48246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48251 /* end confdefs.h. */
48252 #include <math.h>
48254 main ()
48256 fmodl(0, 0);
48258 return 0;
48260 _ACEOF
48261 if ac_fn_cxx_try_compile "$LINENO"; then :
48262 glibcxx_cv_func_fmodl_use=yes
48263 else
48264 glibcxx_cv_func_fmodl_use=no
48266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48267 ac_ext=c
48268 ac_cpp='$CPP $CPPFLAGS'
48269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
48278 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
48280 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
48281 for ac_func in fmodl
48282 do :
48283 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
48284 if test "x$ac_cv_func_fmodl" = xyes; then :
48285 cat >>confdefs.h <<_ACEOF
48286 #define HAVE_FMODL 1
48287 _ACEOF
48290 done
48296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
48297 $as_echo_n "checking for frexpl declaration... " >&6; }
48298 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
48299 if ${glibcxx_cv_func_frexpl_use+:} false; then :
48300 $as_echo_n "(cached) " >&6
48301 else
48304 ac_ext=cpp
48305 ac_cpp='$CXXCPP $CPPFLAGS'
48306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48311 /* end confdefs.h. */
48312 #include <math.h>
48314 main ()
48316 frexpl(0, 0);
48318 return 0;
48320 _ACEOF
48321 if ac_fn_cxx_try_compile "$LINENO"; then :
48322 glibcxx_cv_func_frexpl_use=yes
48323 else
48324 glibcxx_cv_func_frexpl_use=no
48326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48327 ac_ext=c
48328 ac_cpp='$CPP $CPPFLAGS'
48329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
48338 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
48340 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
48341 for ac_func in frexpl
48342 do :
48343 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
48344 if test "x$ac_cv_func_frexpl" = xyes; then :
48345 cat >>confdefs.h <<_ACEOF
48346 #define HAVE_FREXPL 1
48347 _ACEOF
48350 done
48356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
48357 $as_echo_n "checking for hypotl declaration... " >&6; }
48358 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
48359 if ${glibcxx_cv_func_hypotl_use+:} false; then :
48360 $as_echo_n "(cached) " >&6
48361 else
48364 ac_ext=cpp
48365 ac_cpp='$CXXCPP $CPPFLAGS'
48366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48371 /* end confdefs.h. */
48372 #include <math.h>
48374 main ()
48376 hypotl(0, 0);
48378 return 0;
48380 _ACEOF
48381 if ac_fn_cxx_try_compile "$LINENO"; then :
48382 glibcxx_cv_func_hypotl_use=yes
48383 else
48384 glibcxx_cv_func_hypotl_use=no
48386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48387 ac_ext=c
48388 ac_cpp='$CPP $CPPFLAGS'
48389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
48398 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
48400 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
48401 for ac_func in hypotl
48402 do :
48403 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
48404 if test "x$ac_cv_func_hypotl" = xyes; then :
48405 cat >>confdefs.h <<_ACEOF
48406 #define HAVE_HYPOTL 1
48407 _ACEOF
48410 done
48416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
48417 $as_echo_n "checking for ldexpl declaration... " >&6; }
48418 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
48419 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
48420 $as_echo_n "(cached) " >&6
48421 else
48424 ac_ext=cpp
48425 ac_cpp='$CXXCPP $CPPFLAGS'
48426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48431 /* end confdefs.h. */
48432 #include <math.h>
48434 main ()
48436 ldexpl(0, 0);
48438 return 0;
48440 _ACEOF
48441 if ac_fn_cxx_try_compile "$LINENO"; then :
48442 glibcxx_cv_func_ldexpl_use=yes
48443 else
48444 glibcxx_cv_func_ldexpl_use=no
48446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48447 ac_ext=c
48448 ac_cpp='$CPP $CPPFLAGS'
48449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
48458 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
48460 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
48461 for ac_func in ldexpl
48462 do :
48463 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
48464 if test "x$ac_cv_func_ldexpl" = xyes; then :
48465 cat >>confdefs.h <<_ACEOF
48466 #define HAVE_LDEXPL 1
48467 _ACEOF
48470 done
48476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
48477 $as_echo_n "checking for logl declaration... " >&6; }
48478 if test x${glibcxx_cv_func_logl_use+set} != xset; then
48479 if ${glibcxx_cv_func_logl_use+:} false; then :
48480 $as_echo_n "(cached) " >&6
48481 else
48484 ac_ext=cpp
48485 ac_cpp='$CXXCPP $CPPFLAGS'
48486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48491 /* end confdefs.h. */
48492 #include <math.h>
48493 #ifdef HAVE_IEEEFP_H
48494 #include <ieeefp.h>
48495 #endif
48498 main ()
48500 logl(0);
48502 return 0;
48504 _ACEOF
48505 if ac_fn_cxx_try_compile "$LINENO"; then :
48506 glibcxx_cv_func_logl_use=yes
48507 else
48508 glibcxx_cv_func_logl_use=no
48510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48511 ac_ext=c
48512 ac_cpp='$CPP $CPPFLAGS'
48513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
48522 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
48524 if test x$glibcxx_cv_func_logl_use = x"yes"; then
48525 for ac_func in logl
48526 do :
48527 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
48528 if test "x$ac_cv_func_logl" = xyes; then :
48529 cat >>confdefs.h <<_ACEOF
48530 #define HAVE_LOGL 1
48531 _ACEOF
48534 done
48540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
48541 $as_echo_n "checking for log10l declaration... " >&6; }
48542 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
48543 if ${glibcxx_cv_func_log10l_use+:} false; then :
48544 $as_echo_n "(cached) " >&6
48545 else
48548 ac_ext=cpp
48549 ac_cpp='$CXXCPP $CPPFLAGS'
48550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48555 /* end confdefs.h. */
48556 #include <math.h>
48557 #ifdef HAVE_IEEEFP_H
48558 #include <ieeefp.h>
48559 #endif
48562 main ()
48564 log10l(0);
48566 return 0;
48568 _ACEOF
48569 if ac_fn_cxx_try_compile "$LINENO"; then :
48570 glibcxx_cv_func_log10l_use=yes
48571 else
48572 glibcxx_cv_func_log10l_use=no
48574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48575 ac_ext=c
48576 ac_cpp='$CPP $CPPFLAGS'
48577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
48586 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
48588 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
48589 for ac_func in log10l
48590 do :
48591 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
48592 if test "x$ac_cv_func_log10l" = xyes; then :
48593 cat >>confdefs.h <<_ACEOF
48594 #define HAVE_LOG10L 1
48595 _ACEOF
48598 done
48604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
48605 $as_echo_n "checking for modfl declaration... " >&6; }
48606 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
48607 if ${glibcxx_cv_func_modfl_use+:} false; then :
48608 $as_echo_n "(cached) " >&6
48609 else
48612 ac_ext=cpp
48613 ac_cpp='$CXXCPP $CPPFLAGS'
48614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48619 /* end confdefs.h. */
48620 #include <math.h>
48622 main ()
48624 modfl(0, 0);
48626 return 0;
48628 _ACEOF
48629 if ac_fn_cxx_try_compile "$LINENO"; then :
48630 glibcxx_cv_func_modfl_use=yes
48631 else
48632 glibcxx_cv_func_modfl_use=no
48634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48635 ac_ext=c
48636 ac_cpp='$CPP $CPPFLAGS'
48637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
48646 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
48648 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
48649 for ac_func in modfl
48650 do :
48651 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
48652 if test "x$ac_cv_func_modfl" = xyes; then :
48653 cat >>confdefs.h <<_ACEOF
48654 #define HAVE_MODFL 1
48655 _ACEOF
48658 done
48664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
48665 $as_echo_n "checking for powl declaration... " >&6; }
48666 if test x${glibcxx_cv_func_powl_use+set} != xset; then
48667 if ${glibcxx_cv_func_powl_use+:} false; then :
48668 $as_echo_n "(cached) " >&6
48669 else
48672 ac_ext=cpp
48673 ac_cpp='$CXXCPP $CPPFLAGS'
48674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48679 /* end confdefs.h. */
48680 #include <math.h>
48682 main ()
48684 powl(0, 0);
48686 return 0;
48688 _ACEOF
48689 if ac_fn_cxx_try_compile "$LINENO"; then :
48690 glibcxx_cv_func_powl_use=yes
48691 else
48692 glibcxx_cv_func_powl_use=no
48694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48695 ac_ext=c
48696 ac_cpp='$CPP $CPPFLAGS'
48697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
48706 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
48708 if test x$glibcxx_cv_func_powl_use = x"yes"; then
48709 for ac_func in powl
48710 do :
48711 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
48712 if test "x$ac_cv_func_powl" = xyes; then :
48713 cat >>confdefs.h <<_ACEOF
48714 #define HAVE_POWL 1
48715 _ACEOF
48718 done
48724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
48725 $as_echo_n "checking for sqrtl declaration... " >&6; }
48726 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
48727 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
48728 $as_echo_n "(cached) " >&6
48729 else
48732 ac_ext=cpp
48733 ac_cpp='$CXXCPP $CPPFLAGS'
48734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48739 /* end confdefs.h. */
48740 #include <math.h>
48741 #ifdef HAVE_IEEEFP_H
48742 #include <ieeefp.h>
48743 #endif
48746 main ()
48748 sqrtl(0);
48750 return 0;
48752 _ACEOF
48753 if ac_fn_cxx_try_compile "$LINENO"; then :
48754 glibcxx_cv_func_sqrtl_use=yes
48755 else
48756 glibcxx_cv_func_sqrtl_use=no
48758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48759 ac_ext=c
48760 ac_cpp='$CPP $CPPFLAGS'
48761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
48770 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
48772 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
48773 for ac_func in sqrtl
48774 do :
48775 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
48776 if test "x$ac_cv_func_sqrtl" = xyes; then :
48777 cat >>confdefs.h <<_ACEOF
48778 #define HAVE_SQRTL 1
48779 _ACEOF
48782 done
48788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
48789 $as_echo_n "checking for sincosl declaration... " >&6; }
48790 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
48791 if ${glibcxx_cv_func_sincosl_use+:} false; then :
48792 $as_echo_n "(cached) " >&6
48793 else
48796 ac_ext=cpp
48797 ac_cpp='$CXXCPP $CPPFLAGS'
48798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48803 /* end confdefs.h. */
48804 #include <math.h>
48806 main ()
48808 sincosl(0, 0, 0);
48810 return 0;
48812 _ACEOF
48813 if ac_fn_cxx_try_compile "$LINENO"; then :
48814 glibcxx_cv_func_sincosl_use=yes
48815 else
48816 glibcxx_cv_func_sincosl_use=no
48818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48819 ac_ext=c
48820 ac_cpp='$CPP $CPPFLAGS'
48821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
48830 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
48832 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
48833 for ac_func in sincosl
48834 do :
48835 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
48836 if test "x$ac_cv_func_sincosl" = xyes; then :
48837 cat >>confdefs.h <<_ACEOF
48838 #define HAVE_SINCOSL 1
48839 _ACEOF
48842 done
48848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
48849 $as_echo_n "checking for finitel declaration... " >&6; }
48850 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
48851 if ${glibcxx_cv_func_finitel_use+:} false; then :
48852 $as_echo_n "(cached) " >&6
48853 else
48856 ac_ext=cpp
48857 ac_cpp='$CXXCPP $CPPFLAGS'
48858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48863 /* end confdefs.h. */
48864 #include <math.h>
48865 #ifdef HAVE_IEEEFP_H
48866 #include <ieeefp.h>
48867 #endif
48870 main ()
48872 finitel(0);
48874 return 0;
48876 _ACEOF
48877 if ac_fn_cxx_try_compile "$LINENO"; then :
48878 glibcxx_cv_func_finitel_use=yes
48879 else
48880 glibcxx_cv_func_finitel_use=no
48882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48883 ac_ext=c
48884 ac_cpp='$CPP $CPPFLAGS'
48885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
48894 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
48896 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
48897 for ac_func in finitel
48898 do :
48899 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
48900 if test "x$ac_cv_func_finitel" = xyes; then :
48901 cat >>confdefs.h <<_ACEOF
48902 #define HAVE_FINITEL 1
48903 _ACEOF
48906 done
48911 LIBS="$ac_save_LIBS"
48912 CXXFLAGS="$ac_save_CXXFLAGS"
48915 ac_test_CXXFLAGS="${CXXFLAGS+set}"
48916 ac_save_CXXFLAGS="$CXXFLAGS"
48917 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
48920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
48921 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
48922 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
48923 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
48924 $as_echo_n "(cached) " >&6
48925 else
48928 ac_ext=cpp
48929 ac_cpp='$CXXCPP $CPPFLAGS'
48930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48935 /* end confdefs.h. */
48936 #include <stdlib.h>
48938 main ()
48940 at_quick_exit(0);
48942 return 0;
48944 _ACEOF
48945 if ac_fn_cxx_try_compile "$LINENO"; then :
48946 glibcxx_cv_func_at_quick_exit_use=yes
48947 else
48948 glibcxx_cv_func_at_quick_exit_use=no
48950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48951 ac_ext=c
48952 ac_cpp='$CPP $CPPFLAGS'
48953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
48962 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
48963 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
48964 for ac_func in at_quick_exit
48965 do :
48966 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
48967 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
48968 cat >>confdefs.h <<_ACEOF
48969 #define HAVE_AT_QUICK_EXIT 1
48970 _ACEOF
48973 done
48978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
48979 $as_echo_n "checking for quick_exit declaration... " >&6; }
48980 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
48981 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
48982 $as_echo_n "(cached) " >&6
48983 else
48986 ac_ext=cpp
48987 ac_cpp='$CXXCPP $CPPFLAGS'
48988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48993 /* end confdefs.h. */
48994 #include <stdlib.h>
48996 main ()
48998 quick_exit(0);
49000 return 0;
49002 _ACEOF
49003 if ac_fn_cxx_try_compile "$LINENO"; then :
49004 glibcxx_cv_func_quick_exit_use=yes
49005 else
49006 glibcxx_cv_func_quick_exit_use=no
49008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49009 ac_ext=c
49010 ac_cpp='$CPP $CPPFLAGS'
49011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
49020 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
49021 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
49022 for ac_func in quick_exit
49023 do :
49024 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
49025 if test "x$ac_cv_func_quick_exit" = xyes; then :
49026 cat >>confdefs.h <<_ACEOF
49027 #define HAVE_QUICK_EXIT 1
49028 _ACEOF
49031 done
49036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
49037 $as_echo_n "checking for strtold declaration... " >&6; }
49038 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
49039 if ${glibcxx_cv_func_strtold_use+:} false; then :
49040 $as_echo_n "(cached) " >&6
49041 else
49044 ac_ext=cpp
49045 ac_cpp='$CXXCPP $CPPFLAGS'
49046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49051 /* end confdefs.h. */
49052 #include <stdlib.h>
49054 main ()
49056 strtold(0, 0);
49058 return 0;
49060 _ACEOF
49061 if ac_fn_cxx_try_compile "$LINENO"; then :
49062 glibcxx_cv_func_strtold_use=yes
49063 else
49064 glibcxx_cv_func_strtold_use=no
49066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49067 ac_ext=c
49068 ac_cpp='$CPP $CPPFLAGS'
49069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
49078 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
49079 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
49080 for ac_func in strtold
49081 do :
49082 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
49083 if test "x$ac_cv_func_strtold" = xyes; then :
49084 cat >>confdefs.h <<_ACEOF
49085 #define HAVE_STRTOLD 1
49086 _ACEOF
49089 done
49094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
49095 $as_echo_n "checking for strtof declaration... " >&6; }
49096 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
49097 if ${glibcxx_cv_func_strtof_use+:} false; then :
49098 $as_echo_n "(cached) " >&6
49099 else
49102 ac_ext=cpp
49103 ac_cpp='$CXXCPP $CPPFLAGS'
49104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49109 /* end confdefs.h. */
49110 #include <stdlib.h>
49112 main ()
49114 strtof(0, 0);
49116 return 0;
49118 _ACEOF
49119 if ac_fn_cxx_try_compile "$LINENO"; then :
49120 glibcxx_cv_func_strtof_use=yes
49121 else
49122 glibcxx_cv_func_strtof_use=no
49124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49125 ac_ext=c
49126 ac_cpp='$CPP $CPPFLAGS'
49127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
49136 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
49137 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
49138 for ac_func in strtof
49139 do :
49140 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
49141 if test "x$ac_cv_func_strtof" = xyes; then :
49142 cat >>confdefs.h <<_ACEOF
49143 #define HAVE_STRTOF 1
49144 _ACEOF
49147 done
49152 CXXFLAGS="$ac_save_CXXFLAGS"
49155 *-vxworks*)
49156 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
49158 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
49160 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
49162 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
49164 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
49166 $as_echo "#define HAVE_COSF 1" >>confdefs.h
49168 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
49170 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
49172 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
49174 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
49176 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
49178 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
49180 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
49182 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
49184 $as_echo "#define HAVE_POWF 1" >>confdefs.h
49186 $as_echo "#define HAVE_SINF 1" >>confdefs.h
49188 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
49190 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
49192 $as_echo "#define HAVE_TANF 1" >>confdefs.h
49194 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
49200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
49201 $as_echo_n "checking for acosl declaration... " >&6; }
49202 if ${glibcxx_cv_func_acosl_use+:} false; then :
49203 $as_echo_n "(cached) " >&6
49204 else
49207 ac_ext=c
49208 ac_cpp='$CPP $CPPFLAGS'
49209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49214 /* end confdefs.h. */
49216 #include <math.h>
49217 #ifdef HAVE_IEEEFP_H
49218 # include <ieeefp.h>
49219 #endif
49220 #undef acosl
49223 main ()
49226 void (*f)(void) = (void (*)(void))acosl;
49229 return 0;
49231 _ACEOF
49232 if ac_fn_c_try_compile "$LINENO"; then :
49233 glibcxx_cv_func_acosl_use=yes
49235 else
49236 glibcxx_cv_func_acosl_use=no
49238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
49241 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
49242 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
49243 cat >>confdefs.h <<_ACEOF
49244 #define HAVE_ACOSL 1
49245 _ACEOF
49251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
49252 $as_echo_n "checking for asinl declaration... " >&6; }
49253 if ${glibcxx_cv_func_asinl_use+:} false; then :
49254 $as_echo_n "(cached) " >&6
49255 else
49258 ac_ext=c
49259 ac_cpp='$CPP $CPPFLAGS'
49260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49265 /* end confdefs.h. */
49267 #include <math.h>
49268 #ifdef HAVE_IEEEFP_H
49269 # include <ieeefp.h>
49270 #endif
49271 #undef asinl
49274 main ()
49277 void (*f)(void) = (void (*)(void))asinl;
49280 return 0;
49282 _ACEOF
49283 if ac_fn_c_try_compile "$LINENO"; then :
49284 glibcxx_cv_func_asinl_use=yes
49286 else
49287 glibcxx_cv_func_asinl_use=no
49289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
49292 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
49293 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
49294 cat >>confdefs.h <<_ACEOF
49295 #define HAVE_ASINL 1
49296 _ACEOF
49302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
49303 $as_echo_n "checking for atan2l declaration... " >&6; }
49304 if ${glibcxx_cv_func_atan2l_use+:} false; then :
49305 $as_echo_n "(cached) " >&6
49306 else
49309 ac_ext=c
49310 ac_cpp='$CPP $CPPFLAGS'
49311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49316 /* end confdefs.h. */
49318 #include <math.h>
49319 #ifdef HAVE_IEEEFP_H
49320 # include <ieeefp.h>
49321 #endif
49322 #undef atan2l
49325 main ()
49328 void (*f)(void) = (void (*)(void))atan2l;
49331 return 0;
49333 _ACEOF
49334 if ac_fn_c_try_compile "$LINENO"; then :
49335 glibcxx_cv_func_atan2l_use=yes
49337 else
49338 glibcxx_cv_func_atan2l_use=no
49340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
49343 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
49344 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
49345 cat >>confdefs.h <<_ACEOF
49346 #define HAVE_ATAN2L 1
49347 _ACEOF
49353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
49354 $as_echo_n "checking for atanl declaration... " >&6; }
49355 if ${glibcxx_cv_func_atanl_use+:} false; then :
49356 $as_echo_n "(cached) " >&6
49357 else
49360 ac_ext=c
49361 ac_cpp='$CPP $CPPFLAGS'
49362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49367 /* end confdefs.h. */
49369 #include <math.h>
49370 #ifdef HAVE_IEEEFP_H
49371 # include <ieeefp.h>
49372 #endif
49373 #undef atanl
49376 main ()
49379 void (*f)(void) = (void (*)(void))atanl;
49382 return 0;
49384 _ACEOF
49385 if ac_fn_c_try_compile "$LINENO"; then :
49386 glibcxx_cv_func_atanl_use=yes
49388 else
49389 glibcxx_cv_func_atanl_use=no
49391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
49394 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
49395 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
49396 cat >>confdefs.h <<_ACEOF
49397 #define HAVE_ATANL 1
49398 _ACEOF
49404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
49405 $as_echo_n "checking for ceill declaration... " >&6; }
49406 if ${glibcxx_cv_func_ceill_use+:} false; then :
49407 $as_echo_n "(cached) " >&6
49408 else
49411 ac_ext=c
49412 ac_cpp='$CPP $CPPFLAGS'
49413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49418 /* end confdefs.h. */
49420 #include <math.h>
49421 #ifdef HAVE_IEEEFP_H
49422 # include <ieeefp.h>
49423 #endif
49424 #undef ceill
49427 main ()
49430 void (*f)(void) = (void (*)(void))ceill;
49433 return 0;
49435 _ACEOF
49436 if ac_fn_c_try_compile "$LINENO"; then :
49437 glibcxx_cv_func_ceill_use=yes
49439 else
49440 glibcxx_cv_func_ceill_use=no
49442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
49445 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
49446 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
49447 cat >>confdefs.h <<_ACEOF
49448 #define HAVE_CEILL 1
49449 _ACEOF
49455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
49456 $as_echo_n "checking for cosl declaration... " >&6; }
49457 if ${glibcxx_cv_func_cosl_use+:} false; then :
49458 $as_echo_n "(cached) " >&6
49459 else
49462 ac_ext=c
49463 ac_cpp='$CPP $CPPFLAGS'
49464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49469 /* end confdefs.h. */
49471 #include <math.h>
49472 #ifdef HAVE_IEEEFP_H
49473 # include <ieeefp.h>
49474 #endif
49475 #undef cosl
49478 main ()
49481 void (*f)(void) = (void (*)(void))cosl;
49484 return 0;
49486 _ACEOF
49487 if ac_fn_c_try_compile "$LINENO"; then :
49488 glibcxx_cv_func_cosl_use=yes
49490 else
49491 glibcxx_cv_func_cosl_use=no
49493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
49496 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
49497 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
49498 cat >>confdefs.h <<_ACEOF
49499 #define HAVE_COSL 1
49500 _ACEOF
49506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
49507 $as_echo_n "checking for coshl declaration... " >&6; }
49508 if ${glibcxx_cv_func_coshl_use+:} false; then :
49509 $as_echo_n "(cached) " >&6
49510 else
49513 ac_ext=c
49514 ac_cpp='$CPP $CPPFLAGS'
49515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49520 /* end confdefs.h. */
49522 #include <math.h>
49523 #ifdef HAVE_IEEEFP_H
49524 # include <ieeefp.h>
49525 #endif
49526 #undef coshl
49529 main ()
49532 void (*f)(void) = (void (*)(void))coshl;
49535 return 0;
49537 _ACEOF
49538 if ac_fn_c_try_compile "$LINENO"; then :
49539 glibcxx_cv_func_coshl_use=yes
49541 else
49542 glibcxx_cv_func_coshl_use=no
49544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
49547 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
49548 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
49549 cat >>confdefs.h <<_ACEOF
49550 #define HAVE_COSHL 1
49551 _ACEOF
49557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
49558 $as_echo_n "checking for expl declaration... " >&6; }
49559 if ${glibcxx_cv_func_expl_use+:} false; then :
49560 $as_echo_n "(cached) " >&6
49561 else
49564 ac_ext=c
49565 ac_cpp='$CPP $CPPFLAGS'
49566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49571 /* end confdefs.h. */
49573 #include <math.h>
49574 #ifdef HAVE_IEEEFP_H
49575 # include <ieeefp.h>
49576 #endif
49577 #undef expl
49580 main ()
49583 void (*f)(void) = (void (*)(void))expl;
49586 return 0;
49588 _ACEOF
49589 if ac_fn_c_try_compile "$LINENO"; then :
49590 glibcxx_cv_func_expl_use=yes
49592 else
49593 glibcxx_cv_func_expl_use=no
49595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
49598 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
49599 if test "x$glibcxx_cv_func_expl_use" = xyes; then
49600 cat >>confdefs.h <<_ACEOF
49601 #define HAVE_EXPL 1
49602 _ACEOF
49608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
49609 $as_echo_n "checking for fabsl declaration... " >&6; }
49610 if ${glibcxx_cv_func_fabsl_use+:} false; then :
49611 $as_echo_n "(cached) " >&6
49612 else
49615 ac_ext=c
49616 ac_cpp='$CPP $CPPFLAGS'
49617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49622 /* end confdefs.h. */
49624 #include <math.h>
49625 #ifdef HAVE_IEEEFP_H
49626 # include <ieeefp.h>
49627 #endif
49628 #undef fabsl
49631 main ()
49634 void (*f)(void) = (void (*)(void))fabsl;
49637 return 0;
49639 _ACEOF
49640 if ac_fn_c_try_compile "$LINENO"; then :
49641 glibcxx_cv_func_fabsl_use=yes
49643 else
49644 glibcxx_cv_func_fabsl_use=no
49646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
49649 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
49650 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
49651 cat >>confdefs.h <<_ACEOF
49652 #define HAVE_FABSL 1
49653 _ACEOF
49659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
49660 $as_echo_n "checking for floorl declaration... " >&6; }
49661 if ${glibcxx_cv_func_floorl_use+:} false; then :
49662 $as_echo_n "(cached) " >&6
49663 else
49666 ac_ext=c
49667 ac_cpp='$CPP $CPPFLAGS'
49668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49673 /* end confdefs.h. */
49675 #include <math.h>
49676 #ifdef HAVE_IEEEFP_H
49677 # include <ieeefp.h>
49678 #endif
49679 #undef floorl
49682 main ()
49685 void (*f)(void) = (void (*)(void))floorl;
49688 return 0;
49690 _ACEOF
49691 if ac_fn_c_try_compile "$LINENO"; then :
49692 glibcxx_cv_func_floorl_use=yes
49694 else
49695 glibcxx_cv_func_floorl_use=no
49697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
49700 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
49701 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
49702 cat >>confdefs.h <<_ACEOF
49703 #define HAVE_FLOORL 1
49704 _ACEOF
49710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
49711 $as_echo_n "checking for fmodl declaration... " >&6; }
49712 if ${glibcxx_cv_func_fmodl_use+:} false; then :
49713 $as_echo_n "(cached) " >&6
49714 else
49717 ac_ext=c
49718 ac_cpp='$CPP $CPPFLAGS'
49719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49724 /* end confdefs.h. */
49726 #include <math.h>
49727 #ifdef HAVE_IEEEFP_H
49728 # include <ieeefp.h>
49729 #endif
49730 #undef fmodl
49733 main ()
49736 void (*f)(void) = (void (*)(void))fmodl;
49739 return 0;
49741 _ACEOF
49742 if ac_fn_c_try_compile "$LINENO"; then :
49743 glibcxx_cv_func_fmodl_use=yes
49745 else
49746 glibcxx_cv_func_fmodl_use=no
49748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
49751 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
49752 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
49753 cat >>confdefs.h <<_ACEOF
49754 #define HAVE_FMODL 1
49755 _ACEOF
49761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
49762 $as_echo_n "checking for frexpl declaration... " >&6; }
49763 if ${glibcxx_cv_func_frexpl_use+:} false; then :
49764 $as_echo_n "(cached) " >&6
49765 else
49768 ac_ext=c
49769 ac_cpp='$CPP $CPPFLAGS'
49770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49775 /* end confdefs.h. */
49777 #include <math.h>
49778 #ifdef HAVE_IEEEFP_H
49779 # include <ieeefp.h>
49780 #endif
49781 #undef frexpl
49784 main ()
49787 void (*f)(void) = (void (*)(void))frexpl;
49790 return 0;
49792 _ACEOF
49793 if ac_fn_c_try_compile "$LINENO"; then :
49794 glibcxx_cv_func_frexpl_use=yes
49796 else
49797 glibcxx_cv_func_frexpl_use=no
49799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
49802 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
49803 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
49804 cat >>confdefs.h <<_ACEOF
49805 #define HAVE_FREXPL 1
49806 _ACEOF
49812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
49813 $as_echo_n "checking for ldexpl declaration... " >&6; }
49814 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
49815 $as_echo_n "(cached) " >&6
49816 else
49819 ac_ext=c
49820 ac_cpp='$CPP $CPPFLAGS'
49821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49826 /* end confdefs.h. */
49828 #include <math.h>
49829 #ifdef HAVE_IEEEFP_H
49830 # include <ieeefp.h>
49831 #endif
49832 #undef ldexpl
49835 main ()
49838 void (*f)(void) = (void (*)(void))ldexpl;
49841 return 0;
49843 _ACEOF
49844 if ac_fn_c_try_compile "$LINENO"; then :
49845 glibcxx_cv_func_ldexpl_use=yes
49847 else
49848 glibcxx_cv_func_ldexpl_use=no
49850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
49853 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
49854 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
49855 cat >>confdefs.h <<_ACEOF
49856 #define HAVE_LDEXPL 1
49857 _ACEOF
49863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
49864 $as_echo_n "checking for log10l declaration... " >&6; }
49865 if ${glibcxx_cv_func_log10l_use+:} false; then :
49866 $as_echo_n "(cached) " >&6
49867 else
49870 ac_ext=c
49871 ac_cpp='$CPP $CPPFLAGS'
49872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49877 /* end confdefs.h. */
49879 #include <math.h>
49880 #ifdef HAVE_IEEEFP_H
49881 # include <ieeefp.h>
49882 #endif
49883 #undef log10l
49886 main ()
49889 void (*f)(void) = (void (*)(void))log10l;
49892 return 0;
49894 _ACEOF
49895 if ac_fn_c_try_compile "$LINENO"; then :
49896 glibcxx_cv_func_log10l_use=yes
49898 else
49899 glibcxx_cv_func_log10l_use=no
49901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
49904 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
49905 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
49906 cat >>confdefs.h <<_ACEOF
49907 #define HAVE_LOG10L 1
49908 _ACEOF
49914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
49915 $as_echo_n "checking for logl declaration... " >&6; }
49916 if ${glibcxx_cv_func_logl_use+:} false; then :
49917 $as_echo_n "(cached) " >&6
49918 else
49921 ac_ext=c
49922 ac_cpp='$CPP $CPPFLAGS'
49923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49928 /* end confdefs.h. */
49930 #include <math.h>
49931 #ifdef HAVE_IEEEFP_H
49932 # include <ieeefp.h>
49933 #endif
49934 #undef logl
49937 main ()
49940 void (*f)(void) = (void (*)(void))logl;
49943 return 0;
49945 _ACEOF
49946 if ac_fn_c_try_compile "$LINENO"; then :
49947 glibcxx_cv_func_logl_use=yes
49949 else
49950 glibcxx_cv_func_logl_use=no
49952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
49955 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
49956 if test "x$glibcxx_cv_func_logl_use" = xyes; then
49957 cat >>confdefs.h <<_ACEOF
49958 #define HAVE_LOGL 1
49959 _ACEOF
49965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
49966 $as_echo_n "checking for modfl declaration... " >&6; }
49967 if ${glibcxx_cv_func_modfl_use+:} false; then :
49968 $as_echo_n "(cached) " >&6
49969 else
49972 ac_ext=c
49973 ac_cpp='$CPP $CPPFLAGS'
49974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49979 /* end confdefs.h. */
49981 #include <math.h>
49982 #ifdef HAVE_IEEEFP_H
49983 # include <ieeefp.h>
49984 #endif
49985 #undef modfl
49988 main ()
49991 void (*f)(void) = (void (*)(void))modfl;
49994 return 0;
49996 _ACEOF
49997 if ac_fn_c_try_compile "$LINENO"; then :
49998 glibcxx_cv_func_modfl_use=yes
50000 else
50001 glibcxx_cv_func_modfl_use=no
50003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
50006 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
50007 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
50008 cat >>confdefs.h <<_ACEOF
50009 #define HAVE_MODFL 1
50010 _ACEOF
50016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
50017 $as_echo_n "checking for powl declaration... " >&6; }
50018 if ${glibcxx_cv_func_powl_use+:} false; then :
50019 $as_echo_n "(cached) " >&6
50020 else
50023 ac_ext=c
50024 ac_cpp='$CPP $CPPFLAGS'
50025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50030 /* end confdefs.h. */
50032 #include <math.h>
50033 #ifdef HAVE_IEEEFP_H
50034 # include <ieeefp.h>
50035 #endif
50036 #undef powl
50039 main ()
50042 void (*f)(void) = (void (*)(void))powl;
50045 return 0;
50047 _ACEOF
50048 if ac_fn_c_try_compile "$LINENO"; then :
50049 glibcxx_cv_func_powl_use=yes
50051 else
50052 glibcxx_cv_func_powl_use=no
50054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
50057 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
50058 if test "x$glibcxx_cv_func_powl_use" = xyes; then
50059 cat >>confdefs.h <<_ACEOF
50060 #define HAVE_POWL 1
50061 _ACEOF
50067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
50068 $as_echo_n "checking for sinl declaration... " >&6; }
50069 if ${glibcxx_cv_func_sinl_use+:} false; then :
50070 $as_echo_n "(cached) " >&6
50071 else
50074 ac_ext=c
50075 ac_cpp='$CPP $CPPFLAGS'
50076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50081 /* end confdefs.h. */
50083 #include <math.h>
50084 #ifdef HAVE_IEEEFP_H
50085 # include <ieeefp.h>
50086 #endif
50087 #undef sinl
50090 main ()
50093 void (*f)(void) = (void (*)(void))sinl;
50096 return 0;
50098 _ACEOF
50099 if ac_fn_c_try_compile "$LINENO"; then :
50100 glibcxx_cv_func_sinl_use=yes
50102 else
50103 glibcxx_cv_func_sinl_use=no
50105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
50108 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
50109 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
50110 cat >>confdefs.h <<_ACEOF
50111 #define HAVE_SINL 1
50112 _ACEOF
50118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
50119 $as_echo_n "checking for sinhl declaration... " >&6; }
50120 if ${glibcxx_cv_func_sinhl_use+:} false; then :
50121 $as_echo_n "(cached) " >&6
50122 else
50125 ac_ext=c
50126 ac_cpp='$CPP $CPPFLAGS'
50127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50132 /* end confdefs.h. */
50134 #include <math.h>
50135 #ifdef HAVE_IEEEFP_H
50136 # include <ieeefp.h>
50137 #endif
50138 #undef sinhl
50141 main ()
50144 void (*f)(void) = (void (*)(void))sinhl;
50147 return 0;
50149 _ACEOF
50150 if ac_fn_c_try_compile "$LINENO"; then :
50151 glibcxx_cv_func_sinhl_use=yes
50153 else
50154 glibcxx_cv_func_sinhl_use=no
50156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
50159 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
50160 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
50161 cat >>confdefs.h <<_ACEOF
50162 #define HAVE_SINHL 1
50163 _ACEOF
50169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
50170 $as_echo_n "checking for sqrtl declaration... " >&6; }
50171 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
50172 $as_echo_n "(cached) " >&6
50173 else
50176 ac_ext=c
50177 ac_cpp='$CPP $CPPFLAGS'
50178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50183 /* end confdefs.h. */
50185 #include <math.h>
50186 #ifdef HAVE_IEEEFP_H
50187 # include <ieeefp.h>
50188 #endif
50189 #undef sqrtl
50192 main ()
50195 void (*f)(void) = (void (*)(void))sqrtl;
50198 return 0;
50200 _ACEOF
50201 if ac_fn_c_try_compile "$LINENO"; then :
50202 glibcxx_cv_func_sqrtl_use=yes
50204 else
50205 glibcxx_cv_func_sqrtl_use=no
50207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
50210 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
50211 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
50212 cat >>confdefs.h <<_ACEOF
50213 #define HAVE_SQRTL 1
50214 _ACEOF
50220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
50221 $as_echo_n "checking for tanl declaration... " >&6; }
50222 if ${glibcxx_cv_func_tanl_use+:} false; then :
50223 $as_echo_n "(cached) " >&6
50224 else
50227 ac_ext=c
50228 ac_cpp='$CPP $CPPFLAGS'
50229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50234 /* end confdefs.h. */
50236 #include <math.h>
50237 #ifdef HAVE_IEEEFP_H
50238 # include <ieeefp.h>
50239 #endif
50240 #undef tanl
50243 main ()
50246 void (*f)(void) = (void (*)(void))tanl;
50249 return 0;
50251 _ACEOF
50252 if ac_fn_c_try_compile "$LINENO"; then :
50253 glibcxx_cv_func_tanl_use=yes
50255 else
50256 glibcxx_cv_func_tanl_use=no
50258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
50261 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
50262 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
50263 cat >>confdefs.h <<_ACEOF
50264 #define HAVE_TANL 1
50265 _ACEOF
50271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
50272 $as_echo_n "checking for tanhl declaration... " >&6; }
50273 if ${glibcxx_cv_func_tanhl_use+:} false; then :
50274 $as_echo_n "(cached) " >&6
50275 else
50278 ac_ext=c
50279 ac_cpp='$CPP $CPPFLAGS'
50280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50285 /* end confdefs.h. */
50287 #include <math.h>
50288 #ifdef HAVE_IEEEFP_H
50289 # include <ieeefp.h>
50290 #endif
50291 #undef tanhl
50294 main ()
50297 void (*f)(void) = (void (*)(void))tanhl;
50300 return 0;
50302 _ACEOF
50303 if ac_fn_c_try_compile "$LINENO"; then :
50304 glibcxx_cv_func_tanhl_use=yes
50306 else
50307 glibcxx_cv_func_tanhl_use=no
50309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
50312 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
50313 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
50314 cat >>confdefs.h <<_ACEOF
50315 #define HAVE_TANHL 1
50316 _ACEOF
50322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
50323 $as_echo_n "checking for hypotl declaration... " >&6; }
50324 if ${glibcxx_cv_func_hypotl_use+:} false; then :
50325 $as_echo_n "(cached) " >&6
50326 else
50329 ac_ext=c
50330 ac_cpp='$CPP $CPPFLAGS'
50331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50336 /* end confdefs.h. */
50338 #include <math.h>
50339 #ifdef HAVE_IEEEFP_H
50340 # include <ieeefp.h>
50341 #endif
50342 #undef hypotl
50345 main ()
50348 void (*f)(void) = (void (*)(void))hypotl;
50351 return 0;
50353 _ACEOF
50354 if ac_fn_c_try_compile "$LINENO"; then :
50355 glibcxx_cv_func_hypotl_use=yes
50357 else
50358 glibcxx_cv_func_hypotl_use=no
50360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
50363 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
50364 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
50365 cat >>confdefs.h <<_ACEOF
50366 #define HAVE_HYPOTL 1
50367 _ACEOF
50373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
50374 $as_echo_n "checking for ldexpf declaration... " >&6; }
50375 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
50376 $as_echo_n "(cached) " >&6
50377 else
50380 ac_ext=c
50381 ac_cpp='$CPP $CPPFLAGS'
50382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50387 /* end confdefs.h. */
50389 #include <math.h>
50390 #ifdef HAVE_IEEEFP_H
50391 # include <ieeefp.h>
50392 #endif
50393 #undef ldexpf
50396 main ()
50399 void (*f)(void) = (void (*)(void))ldexpf;
50402 return 0;
50404 _ACEOF
50405 if ac_fn_c_try_compile "$LINENO"; then :
50406 glibcxx_cv_func_ldexpf_use=yes
50408 else
50409 glibcxx_cv_func_ldexpf_use=no
50411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
50414 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
50415 if test "x$glibcxx_cv_func_ldexpf_use" = xyes; then
50416 cat >>confdefs.h <<_ACEOF
50417 #define HAVE_LDEXPF 1
50418 _ACEOF
50424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
50425 $as_echo_n "checking for modff declaration... " >&6; }
50426 if ${glibcxx_cv_func_modff_use+:} false; then :
50427 $as_echo_n "(cached) " >&6
50428 else
50431 ac_ext=c
50432 ac_cpp='$CPP $CPPFLAGS'
50433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50438 /* end confdefs.h. */
50440 #include <math.h>
50441 #ifdef HAVE_IEEEFP_H
50442 # include <ieeefp.h>
50443 #endif
50444 #undef modff
50447 main ()
50450 void (*f)(void) = (void (*)(void))modff;
50453 return 0;
50455 _ACEOF
50456 if ac_fn_c_try_compile "$LINENO"; then :
50457 glibcxx_cv_func_modff_use=yes
50459 else
50460 glibcxx_cv_func_modff_use=no
50462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
50465 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
50466 if test "x$glibcxx_cv_func_modff_use" = xyes; then
50467 cat >>confdefs.h <<_ACEOF
50468 #define HAVE_MODFF 1
50469 _ACEOF
50475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
50476 $as_echo_n "checking for hypotf declaration... " >&6; }
50477 if ${glibcxx_cv_func_hypotf_use+:} false; then :
50478 $as_echo_n "(cached) " >&6
50479 else
50482 ac_ext=c
50483 ac_cpp='$CPP $CPPFLAGS'
50484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50489 /* end confdefs.h. */
50491 #include <math.h>
50492 #ifdef HAVE_IEEEFP_H
50493 # include <ieeefp.h>
50494 #endif
50495 #undef hypotf
50498 main ()
50501 void (*f)(void) = (void (*)(void))hypotf;
50504 return 0;
50506 _ACEOF
50507 if ac_fn_c_try_compile "$LINENO"; then :
50508 glibcxx_cv_func_hypotf_use=yes
50510 else
50511 glibcxx_cv_func_hypotf_use=no
50513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
50516 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
50517 if test "x$glibcxx_cv_func_hypotf_use" = xyes; then
50518 cat >>confdefs.h <<_ACEOF
50519 #define HAVE_HYPOTF 1
50520 _ACEOF
50526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
50527 $as_echo_n "checking for frexpf declaration... " >&6; }
50528 if ${glibcxx_cv_func_frexpf_use+:} false; then :
50529 $as_echo_n "(cached) " >&6
50530 else
50533 ac_ext=c
50534 ac_cpp='$CPP $CPPFLAGS'
50535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50540 /* end confdefs.h. */
50542 #include <math.h>
50543 #ifdef HAVE_IEEEFP_H
50544 # include <ieeefp.h>
50545 #endif
50546 #undef frexpf
50549 main ()
50552 void (*f)(void) = (void (*)(void))frexpf;
50555 return 0;
50557 _ACEOF
50558 if ac_fn_c_try_compile "$LINENO"; then :
50559 glibcxx_cv_func_frexpf_use=yes
50561 else
50562 glibcxx_cv_func_frexpf_use=no
50564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
50567 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
50568 if test "x$glibcxx_cv_func_frexpf_use" = xyes; then
50569 cat >>confdefs.h <<_ACEOF
50570 #define HAVE_FREXPF 1
50571 _ACEOF
50579 as_fn_error $? "No support for this host/target combination." "$LINENO" 5
50581 esac
50585 # At some point, we should differentiate between architectures
50586 # like x86, which have long double versions, and alpha/powerpc/etc.,
50587 # which don't. For the time being, punt.
50588 if test x"long_double_math_on_this_cpu" = x"yes"; then
50589 $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
50591 $as_echo "#define HAVE_ASINL 1" >>confdefs.h
50593 $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
50595 $as_echo "#define HAVE_ATANL 1" >>confdefs.h
50597 $as_echo "#define HAVE_CEILL 1" >>confdefs.h
50599 $as_echo "#define HAVE_COSL 1" >>confdefs.h
50601 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
50603 $as_echo "#define HAVE_EXPL 1" >>confdefs.h
50605 $as_echo "#define HAVE_FABSL 1" >>confdefs.h
50607 $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
50609 $as_echo "#define HAVE_FMODL 1" >>confdefs.h
50611 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
50613 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
50615 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
50617 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
50619 $as_echo "#define HAVE_MODFL 1" >>confdefs.h
50621 $as_echo "#define HAVE_POWL 1" >>confdefs.h
50623 $as_echo "#define HAVE_SINCOSL 1" >>confdefs.h
50625 $as_echo "#define HAVE_SINL 1" >>confdefs.h
50627 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
50629 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
50631 $as_echo "#define HAVE_TANL 1" >>confdefs.h
50633 $as_echo "#define HAVE_TANHL 1" >>confdefs.h
50638 # Check for _Unwind_GetIPInfo.
50641 # Check whether --with-system-libunwind was given.
50642 if test "${with_system_libunwind+set}" = set; then :
50643 withval=$with_system_libunwind;
50646 # If system-libunwind was not specifically set, pick a default setting.
50647 if test x$with_system_libunwind = x; then
50648 case ${target} in
50649 ia64-*-hpux*) with_system_libunwind=yes ;;
50650 *) with_system_libunwind=no ;;
50651 esac
50653 # Based on system-libunwind and target, do we have ipinfo?
50654 if test x$with_system_libunwind = xyes; then
50655 case ${target} in
50656 ia64-*-*) have_unwind_getipinfo=no ;;
50657 *) have_unwind_getipinfo=yes ;;
50658 esac
50659 else
50660 # Darwin before version 9 does not have _Unwind_GetIPInfo.
50662 case ${target} in
50663 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
50664 *) have_unwind_getipinfo=yes ;;
50665 esac
50669 if test x$have_unwind_getipinfo = xyes; then
50671 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
50676 # Check whether --enable-linux-futex was given.
50677 if test "${enable_linux_futex+set}" = set; then :
50678 enableval=$enable_linux_futex;
50679 case "$enableval" in
50680 yes|no|default) ;;
50681 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
50682 esac
50684 else
50685 enable_linux_futex=default
50689 case "$target" in
50690 *-linux* | *-uclinux*)
50691 case "$enable_linux_futex" in
50692 default)
50693 # If headers don't have gettid/futex syscalls definition, then
50694 # default to no, otherwise there will be compile time failures.
50695 # Otherwise, default to yes. If we don't detect we are
50696 # compiled/linked against NPTL and not cross-compiling, check
50697 # if programs are run by default against NPTL and if not, issue
50698 # a warning.
50699 enable_linux_futex=no
50700 if test x$gcc_no_link = xyes; then
50701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50704 /* end confdefs.h. */
50705 #include <sys/syscall.h>
50706 #include <unistd.h>
50707 int lk;
50709 main ()
50711 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50713 return 0;
50715 _ACEOF
50716 if ac_fn_c_try_link "$LINENO"; then :
50717 save_LIBS="$LIBS"
50718 LIBS="-lpthread $LIBS"
50719 if test x$gcc_no_link = xyes; then
50720 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50723 /* end confdefs.h. */
50724 #ifndef _GNU_SOURCE
50725 #define _GNU_SOURCE 1
50726 #endif
50727 #include <pthread.h>
50728 pthread_t th; void *status;
50730 main ()
50732 pthread_tryjoin_np (th, &status);
50734 return 0;
50736 _ACEOF
50737 if ac_fn_c_try_link "$LINENO"; then :
50738 enable_linux_futex=yes
50739 else
50740 if test x$cross_compiling = xno; then
50741 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
50742 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
50743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
50744 If so, please configure with --disable-linux-futex" >&5
50745 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
50746 If so, please configure with --disable-linux-futex" >&2;}
50749 enable_linux_futex=yes
50751 rm -f core conftest.err conftest.$ac_objext \
50752 conftest$ac_exeext conftest.$ac_ext
50753 LIBS="$save_LIBS"
50755 rm -f core conftest.err conftest.$ac_objext \
50756 conftest$ac_exeext conftest.$ac_ext
50758 yes)
50759 if test x$gcc_no_link = xyes; then
50760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50763 /* end confdefs.h. */
50764 #include <sys/syscall.h>
50765 #include <unistd.h>
50766 int lk;
50768 main ()
50770 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50772 return 0;
50774 _ACEOF
50775 if ac_fn_c_try_link "$LINENO"; then :
50777 else
50778 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
50780 rm -f core conftest.err conftest.$ac_objext \
50781 conftest$ac_exeext conftest.$ac_ext
50783 esac
50786 enable_linux_futex=no
50788 esac
50789 if test x$enable_linux_futex = xyes; then
50791 $as_echo "#define HAVE_LINUX_FUTEX 1" >>confdefs.h
50797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU c++filt" >&5
50798 $as_echo_n "checking for GNU c++filt... " >&6; }
50799 if ${ac_cv_path_CXXFILT+:} false; then :
50800 $as_echo_n "(cached) " >&6
50801 else
50802 if test -z "$CXXFILT"; then
50803 ac_path_CXXFILT_found=false
50804 # Loop through the user's path and test for each of PROGNAME-LIST
50805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50806 for as_dir in $PATH
50808 IFS=$as_save_IFS
50809 test -z "$as_dir" && as_dir=.
50810 for ac_prog in c++filt gc++filt; do
50811 for ac_exec_ext in '' $ac_executable_extensions; do
50812 ac_path_CXXFILT="$as_dir/$ac_prog$ac_exec_ext"
50813 as_fn_executable_p "$ac_path_CXXFILT" || continue
50814 # Check for GNU $ac_path_CXXFILT
50815 case `"$ac_path_CXXFILT" --version 2>&1` in
50816 *GNU*)
50817 ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:;;
50818 esac
50820 $ac_path_CXXFILT_found && break 3
50821 done
50822 done
50823 done
50824 IFS=$as_save_IFS
50825 if test -z "$ac_cv_path_CXXFILT"; then
50828 else
50829 ac_cv_path_CXXFILT=$CXXFILT
50833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_CXXFILT" >&5
50834 $as_echo "$ac_cv_path_CXXFILT" >&6; }
50835 CXXFILT=$ac_cv_path_CXXFILT
50839 # Check whether --enable-symvers was given.
50840 if test "${enable_symvers+set}" = set; then :
50841 enableval=$enable_symvers;
50842 case "$enableval" in
50843 yes|no|gnu|gnu-versioned-namespace|darwin|darwin-export|sun) ;;
50844 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
50845 esac
50847 else
50848 enable_symvers=yes
50853 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
50854 # don't know enough about $LD to do tricks...
50856 # Sun style symbol versions needs GNU c++filt for make_sunver.pl to work
50857 # with extern "C++" in version scripts.
50860 # Turn a 'yes' into a suitable default.
50861 if test x$enable_symvers = xyes ; then
50862 if test $enable_shared = no || test "x$LD" = x || test x$gcc_no_link = xyes; then
50863 enable_symvers=no
50864 else
50865 if test $with_gnu_ld = yes ; then
50866 case ${target_os} in
50867 hpux*)
50868 enable_symvers=no ;;
50870 enable_symvers=gnu ;;
50871 esac
50872 else
50873 case ${target_os} in
50874 darwin*)
50875 enable_symvers=darwin ;;
50876 # Sun symbol versioning exists since Solaris 2.5.
50877 solaris2.[5-9]* | solaris2.1[0-9]*)
50878 # make_sunver.pl needs GNU c++filt to support extern "C++" in
50879 # version scripts, so disable symbol versioning if none can be
50880 # found.
50881 if test -z "$ac_cv_path_CXXFILT"; then
50882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50883 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === no GNU c++filt could be found." >&5
50885 $as_echo "$as_me: WARNING: === no GNU c++filt could be found." >&2;}
50886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50887 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50888 enable_symvers=no
50889 else
50890 enable_symvers=sun
50894 enable_symvers=no ;;
50895 esac
50900 # Check to see if 'darwin' or 'darwin-export' can win.
50901 if test x$enable_symvers = xdarwin-export ; then
50902 enable_symvers=darwin
50905 # Check if 'sun' was requested on non-Solaris 2 platforms.
50906 if test x$enable_symvers = xsun ; then
50907 case ${target_os} in
50908 solaris2*)
50909 # All fine.
50912 # Unlikely to work.
50913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50914 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
50916 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
50917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50918 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50919 enable_symvers=no
50921 esac
50924 # Check to see if 'gnu' can win.
50925 if test $enable_symvers = gnu ||
50926 test $enable_symvers = gnu-versioned-namespace ||
50927 test $enable_symvers = sun; then
50928 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
50929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
50930 $as_echo_n "checking for shared libgcc... " >&6; }
50931 ac_save_CFLAGS="$CFLAGS"
50932 CFLAGS=' -lgcc_s'
50933 if test x$gcc_no_link = xyes; then
50934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50937 /* end confdefs.h. */
50940 main ()
50942 return 0;
50944 return 0;
50946 _ACEOF
50947 if ac_fn_c_try_link "$LINENO"; then :
50948 glibcxx_shared_libgcc=yes
50949 else
50950 glibcxx_shared_libgcc=no
50952 rm -f core conftest.err conftest.$ac_objext \
50953 conftest$ac_exeext conftest.$ac_ext
50954 CFLAGS="$ac_save_CFLAGS"
50955 if test $glibcxx_shared_libgcc = no; then
50956 cat > conftest.c <<EOF
50957 int main (void) { return 0; }
50959 glibcxx_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
50960 -shared -shared-libgcc -o conftest.so \
50961 conftest.c -v 2>&1 >/dev/null \
50962 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
50963 rm -f conftest.c conftest.so
50964 if test x${glibcxx_libgcc_s_suffix+set} = xset; then
50965 CFLAGS=" -lgcc_s$glibcxx_libgcc_s_suffix"
50966 if test x$gcc_no_link = xyes; then
50967 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50970 /* end confdefs.h. */
50973 main ()
50975 return 0;
50977 return 0;
50979 _ACEOF
50980 if ac_fn_c_try_link "$LINENO"; then :
50981 glibcxx_shared_libgcc=yes
50983 rm -f core conftest.err conftest.$ac_objext \
50984 conftest$ac_exeext conftest.$ac_ext
50985 CFLAGS="$ac_save_CFLAGS"
50988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_shared_libgcc" >&5
50989 $as_echo "$glibcxx_shared_libgcc" >&6; }
50991 # For GNU ld, we need at least this version. The format is described in
50992 # GLIBCXX_CHECK_LINKER_FEATURES above.
50993 glibcxx_min_gnu_ld_version=21400
50995 # If no shared libgcc, can't win.
50996 if test $glibcxx_shared_libgcc != yes; then
50997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
50998 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
50999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not building a shared libgcc_s." >&5
51000 $as_echo "$as_me: WARNING: === you are not building a shared libgcc_s." >&2;}
51001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51002 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51003 enable_symvers=no
51004 elif test $with_gnu_ld != yes && test $enable_symvers = sun; then
51005 : All interesting versions of Sun ld support sun style symbol versioning.
51006 elif test $with_gnu_ld != yes ; then
51007 # just fail for now
51008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
51009 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
51010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not using the GNU linker." >&5
51011 $as_echo "$as_me: WARNING: === you are not using the GNU linker." >&2;}
51012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51013 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51014 enable_symvers=no
51015 elif test $glibcxx_ld_is_gold = yes ; then
51016 : All versions of gold support symbol versioning.
51017 elif test $glibcxx_ld_is_mold = yes ; then
51018 : All versions of mold support symbol versioning.
51019 elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
51020 # The right tools, the right setup, but too old. Fallbacks?
51021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
51022 $as_echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
51023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
51024 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
51025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
51026 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
51027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
51028 $as_echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
51029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51030 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51031 enable_symvers=no
51035 # For libtool versioning info, format is CURRENT:REVISION:AGE
51036 libtool_VERSION=6:33:0
51038 # Everything parsed; figure out what files and settings to use.
51039 case $enable_symvers in
51041 SYMVER_FILE=config/abi/pre/none.ver
51043 gnu)
51044 SYMVER_FILE=config/abi/pre/gnu.ver
51046 $as_echo "#define _GLIBCXX_SYMVER_GNU 1" >>confdefs.h
51049 gnu-versioned-namespace)
51050 libtool_VERSION=8:0:0
51051 SYMVER_FILE=config/abi/pre/gnu-versioned-namespace.ver
51053 $as_echo "#define _GLIBCXX_SYMVER_GNU_NAMESPACE 1" >>confdefs.h
51056 darwin)
51057 SYMVER_FILE=config/abi/pre/gnu.ver
51059 $as_echo "#define _GLIBCXX_SYMVER_DARWIN 1" >>confdefs.h
51062 sun)
51063 SYMVER_FILE=config/abi/pre/gnu.ver
51065 $as_echo "#define _GLIBCXX_SYMVER_SUN 1" >>confdefs.h
51068 esac
51070 if test x$enable_symvers != xno ; then
51072 $as_echo "#define _GLIBCXX_SYMVER 1" >>confdefs.h
51076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
51077 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
51078 if ${glibcxx_cv_have_as_symver_directive+:} false; then :
51079 $as_echo_n "(cached) " >&6
51080 else
51082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51083 /* end confdefs.h. */
51084 void foo (void); __asm (".symver foo, bar@SYMVER");
51086 main ()
51090 return 0;
51092 _ACEOF
51093 if ac_fn_c_try_compile "$LINENO"; then :
51094 glibcxx_cv_have_as_symver_directive=yes
51095 else
51096 glibcxx_cv_have_as_symver_directive=no
51098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_as_symver_directive" >&5
51101 $as_echo "$glibcxx_cv_have_as_symver_directive" >&6; }
51102 if test $glibcxx_cv_have_as_symver_directive = yes; then
51104 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
51115 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
51116 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
51118 if test $enable_symvers != no ; then
51119 case ${target_os} in
51120 # The Solaris 2 runtime linker doesn't support the GNU extension of
51121 # binding the same symbol to different versions
51122 solaris2*)
51124 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
51127 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
51130 esac
51133 # Now, set up compatibility support, if any.
51134 # In addition, need this to deal with std::size_t mangling in
51135 # src/compatibility.cc. In a perfect world, could use
51136 # typeid(std::size_t).name()[0] to do direct substitution.
51137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t as unsigned int" >&5
51138 $as_echo_n "checking for size_t as unsigned int... " >&6; }
51139 ac_save_CFLAGS="$CFLAGS"
51140 CFLAGS="-Werror"
51141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51142 /* end confdefs.h. */
51145 main ()
51147 __SIZE_TYPE__* stp; unsigned int* uip; stp = uip;
51149 return 0;
51151 _ACEOF
51152 if ac_fn_c_try_compile "$LINENO"; then :
51153 glibcxx_size_t_is_i=yes
51154 else
51155 glibcxx_size_t_is_i=no
51157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51158 CFLAGS=$ac_save_CFLAGS
51159 if test "$glibcxx_size_t_is_i" = yes; then
51161 $as_echo "#define _GLIBCXX_SIZE_T_IS_UINT 1" >>confdefs.h
51164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_size_t_is_i" >&5
51165 $as_echo "$glibcxx_size_t_is_i" >&6; }
51167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t as int" >&5
51168 $as_echo_n "checking for ptrdiff_t as int... " >&6; }
51169 ac_save_CFLAGS="$CFLAGS"
51170 CFLAGS="-Werror"
51171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51172 /* end confdefs.h. */
51175 main ()
51177 __PTRDIFF_TYPE__* ptp; int* ip; ptp = ip;
51179 return 0;
51181 _ACEOF
51182 if ac_fn_c_try_compile "$LINENO"; then :
51183 glibcxx_ptrdiff_t_is_i=yes
51184 else
51185 glibcxx_ptrdiff_t_is_i=no
51187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51188 CFLAGS=$ac_save_CFLAGS
51189 if test "$glibcxx_ptrdiff_t_is_i" = yes; then
51191 $as_echo "#define _GLIBCXX_PTRDIFF_T_IS_INT 1" >>confdefs.h
51194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_ptrdiff_t_is_i" >&5
51195 $as_echo "$glibcxx_ptrdiff_t_is_i" >&6; }
51200 # Check whether --enable-libstdcxx-visibility was given.
51201 if test "${enable_libstdcxx_visibility+set}" = set; then :
51202 enableval=$enable_libstdcxx_visibility;
51203 case "$enableval" in
51204 yes|no) ;;
51205 *) as_fn_error $? "Argument to enable/disable libstdcxx-visibility must be yes or no" "$LINENO" 5 ;;
51206 esac
51208 else
51209 enable_libstdcxx_visibility=yes
51214 if test x$enable_libstdcxx_visibility = xyes ; then
51215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
51216 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
51217 if ${glibcxx_cv_have_attribute_visibility+:} false; then :
51218 $as_echo_n "(cached) " >&6
51219 else
51221 save_CFLAGS="$CFLAGS"
51222 CFLAGS="$CFLAGS -Werror"
51223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51224 /* end confdefs.h. */
51225 void __attribute__((visibility("hidden"))) foo(void) { }
51227 main ()
51231 return 0;
51233 _ACEOF
51234 if ac_fn_c_try_compile "$LINENO"; then :
51235 glibcxx_cv_have_attribute_visibility=yes
51236 else
51237 glibcxx_cv_have_attribute_visibility=no
51239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51240 CFLAGS="$save_CFLAGS"
51242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_attribute_visibility" >&5
51243 $as_echo "$glibcxx_cv_have_attribute_visibility" >&6; }
51244 if test $glibcxx_cv_have_attribute_visibility = no; then
51245 enable_libstdcxx_visibility=no
51250 { $as_echo "$as_me:${as_lineno-$LINENO}: visibility supported: $enable_libstdcxx_visibility" >&5
51251 $as_echo "$as_me: visibility supported: $enable_libstdcxx_visibility" >&6;}
51255 # Check whether --enable-libstdcxx-dual-abi was given.
51256 if test "${enable_libstdcxx_dual_abi+set}" = set; then :
51257 enableval=$enable_libstdcxx_dual_abi;
51258 case "$enableval" in
51259 yes|no) ;;
51260 *) as_fn_error $? "Argument to enable/disable libstdcxx-dual-abi must be yes or no" "$LINENO" 5 ;;
51261 esac
51263 else
51264 enable_libstdcxx_dual_abi=yes
51268 if test x$enable_symvers = xgnu-versioned-namespace; then
51269 # gnu-versioned-namespace is incompatible with the dual ABI.
51270 enable_libstdcxx_dual_abi="no"
51272 if test x"$enable_libstdcxx_dual_abi" != xyes; then
51273 { $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5
51274 $as_echo "$as_me: dual ABI is disabled" >&6;}
51275 default_libstdcxx_abi="gcc4-compatible"
51280 if test x$enable_libstdcxx_dual_abi = xyes; then
51281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default std::string ABI to use" >&5
51282 $as_echo_n "checking for default std::string ABI to use... " >&6; }
51284 # Check whether --with-default-libstdcxx-abi was given.
51285 if test "${with_default_libstdcxx_abi+set}" = set; then :
51286 withval=$with_default_libstdcxx_abi; case "$withval" in
51287 gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
51288 new|cxx11) default_libstdcxx_abi="new" ;;
51289 c++*|gnu++*) as_fn_error $? "Supported arguments for --with-default-libstdcxx-abi have changed, use \"new\" or \"gcc4-compatible\"" "$LINENO" 5 ;;
51290 *) as_fn_error $? "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;;
51291 esac
51293 else
51294 default_libstdcxx_abi="new"
51297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5
51298 $as_echo "${default_libstdcxx_abi}" >&6; }
51300 if test $default_libstdcxx_abi = "new"; then
51301 glibcxx_cxx11_abi=1
51302 glibcxx_cxx98_abi=0
51303 else
51304 glibcxx_cxx11_abi=0
51305 glibcxx_cxx98_abi=1
51311 ac_ldbl_compat=no
51312 ac_ldbl_alt128_compat=no
51313 ac_ldbl_ieee128_default=no
51314 LONG_DOUBLE_COMPAT_FLAGS="-mlong-double-64"
51315 LONG_DOUBLE_128_FLAGS=
51316 LONG_DOUBLE_ALT128_COMPAT_FLAGS=
51317 case "$target" in
51318 powerpc*-*-linux* | \
51319 sparc*-*-linux* | \
51320 s390*-*-linux* | \
51321 alpha*-*-linux*)
51322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51323 /* end confdefs.h. */
51326 main ()
51329 #if !defined __LONG_DOUBLE_128__ || (defined(__sparc__) && defined(__arch64__))
51330 #error no need for long double compatibility
51331 #endif
51334 return 0;
51336 _ACEOF
51337 if ac_fn_c_try_compile "$LINENO"; then :
51338 ac_ldbl_compat=yes
51339 else
51340 ac_ldbl_compat=no
51342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51343 if test "$ac_ldbl_compat" = yes; then
51345 $as_echo "#define _GLIBCXX_LONG_DOUBLE_COMPAT 1" >>confdefs.h
51347 port_specific_symbol_files="\$(top_srcdir)/config/os/gnu-linux/ldbl-extra.ver"
51348 case "$target" in
51349 powerpc*-*-linux*)
51350 LONG_DOUBLE_COMPAT_FLAGS="$LONG_DOUBLE_COMPAT_FLAGS -mno-gnu-attribute"
51351 # Check for IEEE128 support in libm:
51352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __frexpieee128 in -lm" >&5
51353 $as_echo_n "checking for __frexpieee128 in -lm... " >&6; }
51354 if ${ac_cv_lib_m___frexpieee128+:} false; then :
51355 $as_echo_n "(cached) " >&6
51356 else
51357 ac_check_lib_save_LIBS=$LIBS
51358 LIBS="-lm $LIBS"
51359 if test x$gcc_no_link = xyes; then
51360 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51363 /* end confdefs.h. */
51365 /* Override any GCC internal prototype to avoid an error.
51366 Use char because int might match the return type of a GCC
51367 builtin and then its argument prototype would still apply. */
51368 #ifdef __cplusplus
51369 extern "C"
51370 #endif
51371 char __frexpieee128 ();
51373 main ()
51375 return __frexpieee128 ();
51377 return 0;
51379 _ACEOF
51380 if ac_fn_c_try_link "$LINENO"; then :
51381 ac_cv_lib_m___frexpieee128=yes
51382 else
51383 ac_cv_lib_m___frexpieee128=no
51385 rm -f core conftest.err conftest.$ac_objext \
51386 conftest$ac_exeext conftest.$ac_ext
51387 LIBS=$ac_check_lib_save_LIBS
51389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___frexpieee128" >&5
51390 $as_echo "$ac_cv_lib_m___frexpieee128" >&6; }
51391 if test "x$ac_cv_lib_m___frexpieee128" = xyes; then :
51392 ac_ldbl_ieee128_in_libc=yes
51393 else
51394 ac_ldbl_ieee128_in_libc=no
51397 if test $ac_ldbl_ieee128_in_libc = yes; then
51398 # Determine which long double format is the compiler's default:
51399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51400 /* end confdefs.h. */
51403 main ()
51406 #ifndef __LONG_DOUBLE_IEEE128__
51407 #error compiler defaults to ibm128
51408 #endif
51411 return 0;
51413 _ACEOF
51414 if ac_fn_c_try_compile "$LINENO"; then :
51415 ac_ldbl_ieee128_default=yes
51416 else
51417 ac_ldbl_ieee128_default=no
51419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51420 # Library objects should use default long double format.
51421 if test "$ac_ldbl_ieee128_default" = yes; then
51422 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51423 # Except for the ones that explicitly use these flags:
51424 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ibmlongdouble -mno-gnu-attribute -Wno-psabi"
51425 else
51426 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51427 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ieeelongdouble -mno-gnu-attribute -Wno-psabi"
51430 $as_echo "#define _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT 1" >>confdefs.h
51432 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/os/gnu-linux/ldbl-ieee128-extra.ver"
51433 ac_ldbl_alt128_compat=yes
51434 else
51435 ac_ldbl_alt128_compat=no
51438 esac
51440 esac
51447 # Check if assembler supports disabling hardware capability support.
51449 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
51452 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
51453 # with a different meaning.
51454 case ${target_os} in
51455 solaris2*)
51456 ac_save_CFLAGS="$CFLAGS"
51457 CFLAGS="$CFLAGS -Wa,-nH"
51459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
51460 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
51461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51462 /* end confdefs.h. */
51465 main ()
51467 return 0;
51469 return 0;
51471 _ACEOF
51472 if ac_fn_c_try_compile "$LINENO"; then :
51473 ac_hwcap_flags=yes
51474 else
51475 ac_hwcap_flags=no
51477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51478 if test "$ac_hwcap_flags" = "yes"; then
51479 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
51481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
51482 $as_echo "$ac_hwcap_flags" >&6; }
51484 CFLAGS="$ac_save_CFLAGS"
51486 esac
51491 # Check if assembler supports rdrand opcode.
51493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdrand support in assembler" >&5
51494 $as_echo_n "checking for rdrand support in assembler... " >&6; }
51495 if ${ac_cv_x86_rdrand+:} false; then :
51496 $as_echo_n "(cached) " >&6
51497 else
51499 ac_cv_x86_rdrand=no
51500 case "$target" in
51501 i?86-*-* | \
51502 x86_64-*-*)
51503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51504 /* end confdefs.h. */
51507 main ()
51509 asm("rdrand %eax");
51511 return 0;
51513 _ACEOF
51514 if ac_fn_c_try_compile "$LINENO"; then :
51515 ac_cv_x86_rdrand=yes
51516 else
51517 ac_cv_x86_rdrand=no
51519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51520 esac
51523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdrand" >&5
51524 $as_echo "$ac_cv_x86_rdrand" >&6; }
51525 if test $ac_cv_x86_rdrand = yes; then
51527 $as_echo "#define _GLIBCXX_X86_RDRAND 1" >>confdefs.h
51531 # Check if assembler supports rdseed opcode.
51533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdseed support in assembler" >&5
51534 $as_echo_n "checking for rdseed support in assembler... " >&6; }
51535 if ${ac_cv_x86_rdseed+:} false; then :
51536 $as_echo_n "(cached) " >&6
51537 else
51539 ac_cv_x86_rdseed=no
51540 case "$target" in
51541 i?86-*-* | \
51542 x86_64-*-*)
51543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51544 /* end confdefs.h. */
51547 main ()
51549 asm("rdseed %eax");
51551 return 0;
51553 _ACEOF
51554 if ac_fn_c_try_compile "$LINENO"; then :
51555 ac_cv_x86_rdseed=yes
51556 else
51557 ac_cv_x86_rdseed=no
51559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51560 esac
51563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdseed" >&5
51564 $as_echo "$ac_cv_x86_rdseed" >&6; }
51565 if test $ac_cv_x86_rdseed = yes; then
51567 $as_echo "#define _GLIBCXX_X86_RDSEED 1" >>confdefs.h
51572 # Check for other random number APIs
51576 ac_ext=cpp
51577 ac_cpp='$CXXCPP $CPPFLAGS'
51578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
51583 $as_echo_n "checking for getentropy... " >&6; }
51584 if ${glibcxx_cv_getentropy+:} false; then :
51585 $as_echo_n "(cached) " >&6
51586 else
51588 if test x$gcc_no_link = xyes; then
51589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51590 /* end confdefs.h. */
51591 #include <unistd.h>
51593 main ()
51595 unsigned i;
51596 ::getentropy(&i, sizeof(i));
51598 return 0;
51600 _ACEOF
51601 if ac_fn_cxx_try_compile "$LINENO"; then :
51602 glibcxx_cv_getentropy=yes
51603 else
51604 glibcxx_cv_getentropy=no
51606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51607 else
51608 if test x$gcc_no_link = xyes; then
51609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51612 /* end confdefs.h. */
51613 #include <unistd.h>
51615 main ()
51617 unsigned i;
51618 ::getentropy(&i, sizeof(i));
51620 return 0;
51622 _ACEOF
51623 if ac_fn_cxx_try_link "$LINENO"; then :
51624 glibcxx_cv_getentropy=yes
51625 else
51626 glibcxx_cv_getentropy=no
51628 rm -f core conftest.err conftest.$ac_objext \
51629 conftest$ac_exeext conftest.$ac_ext
51633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getentropy" >&5
51634 $as_echo "$glibcxx_cv_getentropy" >&6; }
51636 if test $glibcxx_cv_getentropy = yes; then
51638 $as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
51641 ac_ext=c
51642 ac_cpp='$CPP $CPPFLAGS'
51643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51651 ac_ext=cpp
51652 ac_cpp='$CXXCPP $CPPFLAGS'
51653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random" >&5
51658 $as_echo_n "checking for arc4random... " >&6; }
51659 if ${glibcxx_cv_arc4random+:} false; then :
51660 $as_echo_n "(cached) " >&6
51661 else
51663 if test x$gcc_no_link = xyes; then
51664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51665 /* end confdefs.h. */
51666 #include <stdlib.h>
51668 main ()
51670 unsigned i = ::arc4random();
51672 return 0;
51674 _ACEOF
51675 if ac_fn_cxx_try_compile "$LINENO"; then :
51676 glibcxx_cv_arc4random=yes
51677 else
51678 glibcxx_cv_arc4random=no
51680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51681 else
51682 if test x$gcc_no_link = xyes; then
51683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51686 /* end confdefs.h. */
51687 #include <stdlib.h>
51689 main ()
51691 unsigned i = ::arc4random();
51693 return 0;
51695 _ACEOF
51696 if ac_fn_cxx_try_link "$LINENO"; then :
51697 glibcxx_cv_arc4random=yes
51698 else
51699 glibcxx_cv_arc4random=no
51701 rm -f core conftest.err conftest.$ac_objext \
51702 conftest$ac_exeext conftest.$ac_ext
51706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_arc4random" >&5
51707 $as_echo "$glibcxx_cv_arc4random" >&6; }
51709 if test $glibcxx_cv_arc4random = yes; then
51711 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
51714 ac_ext=c
51715 ac_cpp='$CPP $CPPFLAGS'
51716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51722 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
51724 # Do checks for resource limit functions.
51727 ac_ext=cpp
51728 ac_cpp='$CXXCPP $CPPFLAGS'
51729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51733 setrlimit_have_headers=yes
51734 for ac_header in unistd.h sys/time.h sys/resource.h
51735 do :
51736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51737 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51739 cat >>confdefs.h <<_ACEOF
51740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51741 _ACEOF
51743 else
51744 setrlimit_have_headers=no
51747 done
51749 # If don't have the headers, then we can't run the tests now, and we
51750 # won't be seeing any of these during testsuite compilation.
51751 if test $setrlimit_have_headers = yes; then
51752 # Can't do these in a loop, else the resulting syntax is wrong.
51754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_DATA" >&5
51755 $as_echo_n "checking for RLIMIT_DATA... " >&6; }
51756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51757 /* end confdefs.h. */
51758 #include <unistd.h>
51759 #include <sys/time.h>
51760 #include <sys/resource.h>
51763 main ()
51765 int f = RLIMIT_DATA ;
51767 return 0;
51769 _ACEOF
51770 if ac_fn_cxx_try_compile "$LINENO"; then :
51771 glibcxx_mresult=1
51772 else
51773 glibcxx_mresult=0
51775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51777 cat >>confdefs.h <<_ACEOF
51778 #define HAVE_LIMIT_DATA $glibcxx_mresult
51779 _ACEOF
51781 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51783 $as_echo "$res" >&6; }
51786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_RSS" >&5
51787 $as_echo_n "checking for RLIMIT_RSS... " >&6; }
51788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51789 /* end confdefs.h. */
51790 #include <unistd.h>
51791 #include <sys/time.h>
51792 #include <sys/resource.h>
51795 main ()
51797 int f = RLIMIT_RSS ;
51799 return 0;
51801 _ACEOF
51802 if ac_fn_cxx_try_compile "$LINENO"; then :
51803 glibcxx_mresult=1
51804 else
51805 glibcxx_mresult=0
51807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51809 cat >>confdefs.h <<_ACEOF
51810 #define HAVE_LIMIT_RSS $glibcxx_mresult
51811 _ACEOF
51813 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51815 $as_echo "$res" >&6; }
51818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_VMEM" >&5
51819 $as_echo_n "checking for RLIMIT_VMEM... " >&6; }
51820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51821 /* end confdefs.h. */
51822 #include <unistd.h>
51823 #include <sys/time.h>
51824 #include <sys/resource.h>
51827 main ()
51829 int f = RLIMIT_VMEM ;
51831 return 0;
51833 _ACEOF
51834 if ac_fn_cxx_try_compile "$LINENO"; then :
51835 glibcxx_mresult=1
51836 else
51837 glibcxx_mresult=0
51839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51841 cat >>confdefs.h <<_ACEOF
51842 #define HAVE_LIMIT_VMEM $glibcxx_mresult
51843 _ACEOF
51845 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51847 $as_echo "$res" >&6; }
51850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_AS" >&5
51851 $as_echo_n "checking for RLIMIT_AS... " >&6; }
51852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51853 /* end confdefs.h. */
51854 #include <unistd.h>
51855 #include <sys/time.h>
51856 #include <sys/resource.h>
51859 main ()
51861 int f = RLIMIT_AS ;
51863 return 0;
51865 _ACEOF
51866 if ac_fn_cxx_try_compile "$LINENO"; then :
51867 glibcxx_mresult=1
51868 else
51869 glibcxx_mresult=0
51871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51873 cat >>confdefs.h <<_ACEOF
51874 #define HAVE_LIMIT_AS $glibcxx_mresult
51875 _ACEOF
51877 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51879 $as_echo "$res" >&6; }
51882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_FSIZE" >&5
51883 $as_echo_n "checking for RLIMIT_FSIZE... " >&6; }
51884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51885 /* end confdefs.h. */
51886 #include <unistd.h>
51887 #include <sys/time.h>
51888 #include <sys/resource.h>
51891 main ()
51893 int f = RLIMIT_FSIZE ;
51895 return 0;
51897 _ACEOF
51898 if ac_fn_cxx_try_compile "$LINENO"; then :
51899 glibcxx_mresult=1
51900 else
51901 glibcxx_mresult=0
51903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51905 cat >>confdefs.h <<_ACEOF
51906 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
51907 _ACEOF
51909 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51911 $as_echo "$res" >&6; }
51914 # Check for rlimit, setrlimit.
51915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for testsuite resource limits support" >&5
51916 $as_echo_n "checking for testsuite resource limits support... " >&6; }
51917 if ${glibcxx_cv_setrlimit+:} false; then :
51918 $as_echo_n "(cached) " >&6
51919 else
51921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51922 /* end confdefs.h. */
51923 #include <unistd.h>
51924 #include <sys/time.h>
51925 #include <sys/resource.h>
51928 main ()
51930 struct rlimit r;
51931 setrlimit(0, &r);
51933 return 0;
51935 _ACEOF
51936 if ac_fn_cxx_try_compile "$LINENO"; then :
51937 glibcxx_cv_setrlimit=yes
51938 else
51939 glibcxx_cv_setrlimit=no
51941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_setrlimit" >&5
51945 $as_echo "$glibcxx_cv_setrlimit" >&6; }
51947 if test $glibcxx_cv_setrlimit = yes; then
51949 $as_echo "#define _GLIBCXX_RES_LIMITS 1" >>confdefs.h
51953 ac_ext=c
51954 ac_cpp='$CPP $CPPFLAGS'
51955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51961 if $GLIBCXX_IS_NATIVE ; then
51962 # Look for setenv, so that extended locale tests can be performed.
51964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv declaration" >&5
51965 $as_echo_n "checking for setenv declaration... " >&6; }
51966 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
51967 if ${glibcxx_cv_func_setenv_use+:} false; then :
51968 $as_echo_n "(cached) " >&6
51969 else
51972 ac_ext=cpp
51973 ac_cpp='$CXXCPP $CPPFLAGS'
51974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51979 /* end confdefs.h. */
51980 #include <stdlib.h>
51982 main ()
51984 setenv(0, 0, 0);
51986 return 0;
51988 _ACEOF
51989 if ac_fn_cxx_try_compile "$LINENO"; then :
51990 glibcxx_cv_func_setenv_use=yes
51991 else
51992 glibcxx_cv_func_setenv_use=no
51994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51995 ac_ext=c
51996 ac_cpp='$CPP $CPPFLAGS'
51997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_setenv_use" >&5
52006 $as_echo "$glibcxx_cv_func_setenv_use" >&6; }
52007 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
52008 for ac_func in setenv
52009 do :
52010 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
52011 if test "x$ac_cv_func_setenv" = xyes; then :
52012 cat >>confdefs.h <<_ACEOF
52013 #define HAVE_SETENV 1
52014 _ACEOF
52017 done
52023 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
52024 test $enable_symvers != no; then
52025 case "$host" in
52026 *-*-cygwin*)
52027 enable_abi_check=no ;;
52029 enable_abi_check=yes ;;
52030 esac
52031 else
52032 # Only build this as native, since automake does not understand
52033 # CXX_FOR_BUILD.
52034 enable_abi_check=no
52037 # Export file names for ABI checking.
52038 baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
52040 baseline_subdir_switch="$abi_baseline_subdir_switch"
52044 # For gthread support. Depends on GLIBCXX_ENABLE_SYMVERS.
52046 # Check whether --enable-libstdcxx-threads was given.
52047 if test "${enable_libstdcxx_threads+set}" = set; then :
52048 enableval=$enable_libstdcxx_threads;
52049 case "$enableval" in
52050 yes|no) ;;
52051 *) as_fn_error $? "Argument to enable/disable libstdcxx-threads must be yes or no" "$LINENO" 5 ;;
52052 esac
52054 else
52055 enable_libstdcxx_threads=auto
52060 if test x$enable_libstdcxx_threads = xauto ||
52061 test x$enable_libstdcxx_threads = xyes; then
52064 ac_ext=cpp
52065 ac_cpp='$CXXCPP $CPPFLAGS'
52066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52071 ac_save_CXXFLAGS="$CXXFLAGS"
52072 CXXFLAGS="$CXXFLAGS -fno-exceptions \
52073 -I${toplevel_srcdir}/libgcc -I${toplevel_builddir}/libgcc"
52075 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
52076 case $target_thread_file in
52077 posix)
52078 CXXFLAGS="$CXXFLAGS -DSUPPORTS_WEAK -DGTHREAD_USE_WEAK -D_PTHREADS"
52080 win32)
52081 CXXFLAGS="$CXXFLAGS -D_WIN32_THREADS"
52082 # The support of condition variables is disabled by default in
52083 # the Win32 gthreads library, so enable it on explicit request.
52084 if test x$enable_libstdcxx_threads = xyes; then
52085 CXXFLAGS="$CXXFLAGS -D_WIN32_WINNT=0x0600"
52088 esac
52090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it can be safely assumed that mutex_timedlock is available" >&5
52091 $as_echo_n "checking whether it can be safely assumed that mutex_timedlock is available... " >&6; }
52093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52094 /* end confdefs.h. */
52095 #include <unistd.h>
52097 main ()
52100 // In case of POSIX threads check _POSIX_TIMEOUTS.
52101 #if (defined(_PTHREADS) \
52102 && (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
52103 #error
52104 // In case of Win32 threads there is no support.
52105 #elif defined(_WIN32_THREADS)
52106 #error
52107 #endif
52110 return 0;
52112 _ACEOF
52113 if ac_fn_cxx_try_compile "$LINENO"; then :
52114 ac_gthread_use_mutex_timedlock=1
52115 else
52116 ac_gthread_use_mutex_timedlock=0
52118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52121 cat >>confdefs.h <<_ACEOF
52122 #define _GTHREAD_USE_MUTEX_TIMEDLOCK $ac_gthread_use_mutex_timedlock
52123 _ACEOF
52126 if test $ac_gthread_use_mutex_timedlock = 1 ; then res_mutex_timedlock=yes ;
52127 else res_mutex_timedlock=no ; fi
52128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_mutex_timedlock" >&5
52129 $as_echo "$res_mutex_timedlock" >&6; }
52131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthreads library" >&5
52132 $as_echo_n "checking for gthreads library... " >&6; }
52134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52135 /* end confdefs.h. */
52136 #include "gthr.h"
52138 main ()
52141 #ifndef __GTHREADS_CXX0X
52142 #error
52143 #endif
52146 return 0;
52148 _ACEOF
52149 if ac_fn_cxx_try_compile "$LINENO"; then :
52150 ac_has_gthreads=yes
52151 else
52152 ac_has_gthreads=no
52154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52155 else
52156 ac_has_gthreads=no
52159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gthreads" >&5
52160 $as_echo "$ac_has_gthreads" >&6; }
52162 if test x"$ac_has_gthreads" = x"yes"; then
52164 $as_echo "#define _GLIBCXX_HAS_GTHREADS 1" >>confdefs.h
52167 # Also check for pthread_rwlock_t for std::shared_timed_mutex in C++14
52168 # but only do so if we're using pthread in the gthread library.
52169 # On VxWorks for example, pthread_rwlock_t is defined in sys/types.h
52170 # but the pthread library is not there by default and the gthread library
52171 # does not use it.
52172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52173 /* end confdefs.h. */
52174 #include "gthr.h"
52176 main ()
52179 #if (!defined(_PTHREADS))
52180 #error
52181 #endif
52184 return 0;
52186 _ACEOF
52187 if ac_fn_cxx_try_compile "$LINENO"; then :
52188 ac_gthread_use_pthreads=yes
52189 else
52190 ac_gthread_use_pthreads=no
52192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52193 if test x"$ac_gthread_use_pthreads" = x"yes"; then
52194 ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include \"gthr.h\"
52196 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
52198 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_T 1" >>confdefs.h
52204 # See above for the rationale.
52205 if test $target_thread_file = win32; then
52206 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
52210 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
52211 if test "x$ac_cv_header_semaphore_h" = xyes; then :
52213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Semaphores and sem_timedwait" >&5
52214 $as_echo_n "checking for POSIX Semaphores and sem_timedwait... " >&6; }
52215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52216 /* end confdefs.h. */
52218 #include <unistd.h>
52219 #include <semaphore.h>
52220 #include <limits.h>
52223 main ()
52226 #if !defined _POSIX_TIMEOUTS || _POSIX_TIMEOUTS <= 0
52227 # error "POSIX Timeouts option not supported"
52228 #elif !defined _POSIX_SEMAPHORES || _POSIX_SEMAPHORES <= 0
52229 # error "POSIX Semaphores option not supported"
52230 #else
52231 #if defined SEM_VALUE_MAX
52232 constexpr int sem_value_max = SEM_VALUE_MAX;
52233 #elif defined _POSIX_SEM_VALUE_MAX
52234 constexpr int sem_value_max = _POSIX_SEM_VALUE_MAX;
52235 #else
52236 # error "SEM_VALUE_MAX not available"
52237 #endif
52238 sem_t sem;
52239 sem_init(&sem, 0, sem_value_max);
52240 struct timespec ts = { 0 };
52241 sem_timedwait(&sem, &ts);
52242 #endif
52245 return 0;
52247 _ACEOF
52248 if ac_fn_cxx_try_compile "$LINENO"; then :
52249 ac_have_posix_semaphore=yes
52250 else
52251 ac_have_posix_semaphore=no
52253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52254 else
52255 ac_have_posix_semaphore=no
52260 if test $ac_have_posix_semaphore = yes ; then
52262 $as_echo "#define HAVE_POSIX_SEMAPHORE 1" >>confdefs.h
52265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_posix_semaphore" >&5
52266 $as_echo "$ac_have_posix_semaphore" >&6; }
52268 CXXFLAGS="$ac_save_CXXFLAGS"
52269 ac_ext=c
52270 ac_cpp='$CPP $CPPFLAGS'
52271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52277 # For Filesystem TS.
52278 for ac_header in fcntl.h dirent.h sys/statvfs.h utime.h
52279 do :
52280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
52282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
52283 cat >>confdefs.h <<_ACEOF
52284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52285 _ACEOF
52289 done
52292 # Check whether --enable-libstdcxx-filesystem-ts was given.
52293 if test "${enable_libstdcxx_filesystem_ts+set}" = set; then :
52294 enableval=$enable_libstdcxx_filesystem_ts;
52295 case "$enableval" in
52296 yes|no|auto) ;;
52297 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-filesystem-ts" "$LINENO" 5 ;;
52298 esac
52300 else
52301 enable_libstdcxx_filesystem_ts=auto
52306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Filesystem TS support" >&5
52307 $as_echo_n "checking whether to build Filesystem TS support... " >&6; }
52308 if test x"$ac_cv_header_dirent_h" != x"yes"; then
52309 enable_libstdcxx_filesystem_ts=no
52311 if test x"$enable_libstdcxx_filesystem_ts" = x"auto"; then
52312 case "${target_os}" in
52313 freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
52314 enable_libstdcxx_filesystem_ts=yes
52316 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
52317 enable_libstdcxx_filesystem_ts=yes
52319 rtems*)
52320 enable_libstdcxx_filesystem_ts=yes
52322 solaris*)
52323 enable_libstdcxx_filesystem_ts=yes
52325 mingw*)
52326 enable_libstdcxx_filesystem_ts=yes
52329 enable_libstdcxx_filesystem_ts=no
52331 esac
52333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_filesystem_ts" >&5
52334 $as_echo "$enable_libstdcxx_filesystem_ts" >&6; }
52338 ac_ext=cpp
52339 ac_cpp='$CXXCPP $CPPFLAGS'
52340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52344 ac_save_CXXFLAGS="$CXXFLAGS"
52345 CXXFLAGS="$CXXFLAGS -fno-exceptions"
52346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_type" >&5
52347 $as_echo_n "checking for struct dirent.d_type... " >&6; }
52348 if ${glibcxx_cv_dirent_d_type+:} false; then :
52349 $as_echo_n "(cached) " >&6
52350 else
52351 if test x$gcc_no_link = xyes; then
52352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52353 /* end confdefs.h. */
52354 #include <dirent.h>
52356 main ()
52359 struct dirent d;
52360 if (sizeof d.d_type) return 0;
52363 return 0;
52365 _ACEOF
52366 if ac_fn_cxx_try_compile "$LINENO"; then :
52367 glibcxx_cv_dirent_d_type=yes
52368 else
52369 glibcxx_cv_dirent_d_type=no
52371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52372 else
52373 if test x$gcc_no_link = xyes; then
52374 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52377 /* end confdefs.h. */
52378 #include <dirent.h>
52380 main ()
52383 struct dirent d;
52384 if (sizeof d.d_type) return 0;
52387 return 0;
52389 _ACEOF
52390 if ac_fn_cxx_try_link "$LINENO"; then :
52391 glibcxx_cv_dirent_d_type=yes
52392 else
52393 glibcxx_cv_dirent_d_type=no
52395 rm -f core conftest.err conftest.$ac_objext \
52396 conftest$ac_exeext conftest.$ac_ext
52400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirent_d_type" >&5
52401 $as_echo "$glibcxx_cv_dirent_d_type" >&6; }
52402 if test $glibcxx_cv_dirent_d_type = yes; then
52404 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
52407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chmod" >&5
52408 $as_echo_n "checking for chmod... " >&6; }
52409 if ${glibcxx_cv_chmod+:} false; then :
52410 $as_echo_n "(cached) " >&6
52411 else
52412 if test x$gcc_no_link = xyes; then
52413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52414 /* end confdefs.h. */
52416 #include <sys/stat.h>
52419 main ()
52422 int i = chmod("", S_IRUSR);
52425 return 0;
52427 _ACEOF
52428 if ac_fn_cxx_try_compile "$LINENO"; then :
52429 glibcxx_cv_chmod=yes
52430 else
52431 glibcxx_cv_chmod=no
52433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52434 else
52435 if test x$gcc_no_link = xyes; then
52436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52439 /* end confdefs.h. */
52441 #include <sys/stat.h>
52444 main ()
52447 int i = chmod("", S_IRUSR);
52450 return 0;
52452 _ACEOF
52453 if ac_fn_cxx_try_link "$LINENO"; then :
52454 glibcxx_cv_chmod=yes
52455 else
52456 glibcxx_cv_chmod=no
52458 rm -f core conftest.err conftest.$ac_objext \
52459 conftest$ac_exeext conftest.$ac_ext
52463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chmod" >&5
52464 $as_echo "$glibcxx_cv_chmod" >&6; }
52465 if test $glibcxx_cv_chmod = yes; then
52467 $as_echo "#define _GLIBCXX_USE_CHMOD 1" >>confdefs.h
52470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkdir" >&5
52471 $as_echo_n "checking for mkdir... " >&6; }
52472 if ${glibcxx_cv_mkdir+:} false; then :
52473 $as_echo_n "(cached) " >&6
52474 else
52475 if test x$gcc_no_link = xyes; then
52476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52477 /* end confdefs.h. */
52479 #include <sys/stat.h>
52482 main ()
52485 int i = mkdir("", S_IRUSR);
52488 return 0;
52490 _ACEOF
52491 if ac_fn_cxx_try_compile "$LINENO"; then :
52492 glibcxx_cv_mkdir=yes
52493 else
52494 glibcxx_cv_mkdir=no
52496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52497 else
52498 if test x$gcc_no_link = xyes; then
52499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52502 /* end confdefs.h. */
52504 #include <sys/stat.h>
52507 main ()
52510 int i = mkdir("", S_IRUSR);
52513 return 0;
52515 _ACEOF
52516 if ac_fn_cxx_try_link "$LINENO"; then :
52517 glibcxx_cv_mkdir=yes
52518 else
52519 glibcxx_cv_mkdir=no
52521 rm -f core conftest.err conftest.$ac_objext \
52522 conftest$ac_exeext conftest.$ac_ext
52526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_mkdir" >&5
52527 $as_echo "$glibcxx_cv_mkdir" >&6; }
52528 if test $glibcxx_cv_mkdir = yes; then
52530 $as_echo "#define _GLIBCXX_USE_MKDIR 1" >>confdefs.h
52533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chdir" >&5
52534 $as_echo_n "checking for chdir... " >&6; }
52535 if ${glibcxx_cv_chdir+:} false; then :
52536 $as_echo_n "(cached) " >&6
52537 else
52538 if test x$gcc_no_link = xyes; then
52539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52540 /* end confdefs.h. */
52542 #include <unistd.h>
52545 main ()
52548 int i = chdir("");
52551 return 0;
52553 _ACEOF
52554 if ac_fn_cxx_try_compile "$LINENO"; then :
52555 glibcxx_cv_chdir=yes
52556 else
52557 glibcxx_cv_chdir=no
52559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52560 else
52561 if test x$gcc_no_link = xyes; then
52562 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52565 /* end confdefs.h. */
52567 #include <unistd.h>
52570 main ()
52573 int i = chdir("");
52576 return 0;
52578 _ACEOF
52579 if ac_fn_cxx_try_link "$LINENO"; then :
52580 glibcxx_cv_chdir=yes
52581 else
52582 glibcxx_cv_chdir=no
52584 rm -f core conftest.err conftest.$ac_objext \
52585 conftest$ac_exeext conftest.$ac_ext
52589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chdir" >&5
52590 $as_echo "$glibcxx_cv_chdir" >&6; }
52591 if test $glibcxx_cv_chdir = yes; then
52593 $as_echo "#define _GLIBCXX_USE_CHDIR 1" >>confdefs.h
52596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd" >&5
52597 $as_echo_n "checking for getcwd... " >&6; }
52598 if ${glibcxx_cv_getcwd+:} false; then :
52599 $as_echo_n "(cached) " >&6
52600 else
52601 if test x$gcc_no_link = xyes; then
52602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52603 /* end confdefs.h. */
52605 #include <unistd.h>
52608 main ()
52611 char* s = getcwd((char*)0, 1);
52614 return 0;
52616 _ACEOF
52617 if ac_fn_cxx_try_compile "$LINENO"; then :
52618 glibcxx_cv_getcwd=yes
52619 else
52620 glibcxx_cv_getcwd=no
52622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52623 else
52624 if test x$gcc_no_link = xyes; then
52625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52628 /* end confdefs.h. */
52630 #include <unistd.h>
52633 main ()
52636 char* s = getcwd((char*)0, 1);
52639 return 0;
52641 _ACEOF
52642 if ac_fn_cxx_try_link "$LINENO"; then :
52643 glibcxx_cv_getcwd=yes
52644 else
52645 glibcxx_cv_getcwd=no
52647 rm -f core conftest.err conftest.$ac_objext \
52648 conftest$ac_exeext conftest.$ac_ext
52652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getcwd" >&5
52653 $as_echo "$glibcxx_cv_getcwd" >&6; }
52654 if test $glibcxx_cv_getcwd = yes; then
52656 $as_echo "#define _GLIBCXX_USE_GETCWD 1" >>confdefs.h
52659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
52660 $as_echo_n "checking for realpath... " >&6; }
52661 if ${glibcxx_cv_realpath+:} false; then :
52662 $as_echo_n "(cached) " >&6
52663 else
52664 if test x$gcc_no_link = xyes; then
52665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52666 /* end confdefs.h. */
52668 #include <limits.h>
52669 #include <stdlib.h>
52670 #include <unistd.h>
52673 main ()
52676 #if _XOPEN_VERSION < 500
52677 #error
52678 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52679 char *tmp = realpath((const char*)NULL, (char*)NULL);
52680 #else
52681 #error
52682 #endif
52685 return 0;
52687 _ACEOF
52688 if ac_fn_cxx_try_compile "$LINENO"; then :
52689 glibcxx_cv_realpath=yes
52690 else
52691 glibcxx_cv_realpath=no
52693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52694 else
52695 if test x$gcc_no_link = xyes; then
52696 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52699 /* end confdefs.h. */
52701 #include <limits.h>
52702 #include <stdlib.h>
52703 #include <unistd.h>
52706 main ()
52709 #if _XOPEN_VERSION < 500
52710 #error
52711 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52712 char *tmp = realpath((const char*)NULL, (char*)NULL);
52713 #else
52714 #error
52715 #endif
52718 return 0;
52720 _ACEOF
52721 if ac_fn_cxx_try_link "$LINENO"; then :
52722 glibcxx_cv_realpath=yes
52723 else
52724 glibcxx_cv_realpath=no
52726 rm -f core conftest.err conftest.$ac_objext \
52727 conftest$ac_exeext conftest.$ac_ext
52731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_realpath" >&5
52732 $as_echo "$glibcxx_cv_realpath" >&6; }
52733 if test $glibcxx_cv_realpath = yes; then
52735 $as_echo "#define _GLIBCXX_USE_REALPATH 1" >>confdefs.h
52738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimensat" >&5
52739 $as_echo_n "checking for utimensat... " >&6; }
52740 if ${glibcxx_cv_utimensat+:} false; then :
52741 $as_echo_n "(cached) " >&6
52742 else
52743 if test x$gcc_no_link = xyes; then
52744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52745 /* end confdefs.h. */
52747 #include <fcntl.h>
52748 #include <sys/stat.h>
52751 main ()
52754 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52755 int i = utimensat(AT_FDCWD, "path", ts, 0);
52758 return 0;
52760 _ACEOF
52761 if ac_fn_cxx_try_compile "$LINENO"; then :
52762 glibcxx_cv_utimensat=yes
52763 else
52764 glibcxx_cv_utimensat=no
52766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52767 else
52768 if test x$gcc_no_link = xyes; then
52769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52772 /* end confdefs.h. */
52774 #include <fcntl.h>
52775 #include <sys/stat.h>
52778 main ()
52781 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52782 int i = utimensat(AT_FDCWD, "path", ts, 0);
52785 return 0;
52787 _ACEOF
52788 if ac_fn_cxx_try_link "$LINENO"; then :
52789 glibcxx_cv_utimensat=yes
52790 else
52791 glibcxx_cv_utimensat=no
52793 rm -f core conftest.err conftest.$ac_objext \
52794 conftest$ac_exeext conftest.$ac_ext
52798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utimensat" >&5
52799 $as_echo "$glibcxx_cv_utimensat" >&6; }
52800 if test $glibcxx_cv_utimensat = yes; then
52802 $as_echo "#define _GLIBCXX_USE_UTIMENSAT 1" >>confdefs.h
52805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime" >&5
52806 $as_echo_n "checking for utime... " >&6; }
52807 if ${glibcxx_cv_utime+:} false; then :
52808 $as_echo_n "(cached) " >&6
52809 else
52810 if test x$gcc_no_link = xyes; then
52811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52812 /* end confdefs.h. */
52814 #include <utime.h>
52817 main ()
52820 struct utimbuf t = { 1, 1 };
52821 int i = utime("path", &t);
52824 return 0;
52826 _ACEOF
52827 if ac_fn_cxx_try_compile "$LINENO"; then :
52828 glibcxx_cv_utime=yes
52829 else
52830 glibcxx_cv_utime=no
52832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52833 else
52834 if test x$gcc_no_link = xyes; then
52835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52838 /* end confdefs.h. */
52840 #include <utime.h>
52843 main ()
52846 struct utimbuf t = { 1, 1 };
52847 int i = utime("path", &t);
52850 return 0;
52852 _ACEOF
52853 if ac_fn_cxx_try_link "$LINENO"; then :
52854 glibcxx_cv_utime=yes
52855 else
52856 glibcxx_cv_utime=no
52858 rm -f core conftest.err conftest.$ac_objext \
52859 conftest$ac_exeext conftest.$ac_ext
52863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utime" >&5
52864 $as_echo "$glibcxx_cv_utime" >&6; }
52865 if test $glibcxx_cv_utime = yes; then
52867 $as_echo "#define _GLIBCXX_USE_UTIME 1" >>confdefs.h
52870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
52871 $as_echo_n "checking for lstat... " >&6; }
52872 if ${glibcxx_cv_lstat+:} false; then :
52873 $as_echo_n "(cached) " >&6
52874 else
52875 if test x$gcc_no_link = xyes; then
52876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52877 /* end confdefs.h. */
52878 #include <sys/stat.h>
52880 main ()
52883 struct stat st;
52884 int i = lstat("path", &st);
52887 return 0;
52889 _ACEOF
52890 if ac_fn_cxx_try_compile "$LINENO"; then :
52891 glibcxx_cv_lstat=yes
52892 else
52893 glibcxx_cv_lstat=no
52895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52896 else
52897 if test x$gcc_no_link = xyes; then
52898 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52901 /* end confdefs.h. */
52902 #include <sys/stat.h>
52904 main ()
52907 struct stat st;
52908 int i = lstat("path", &st);
52911 return 0;
52913 _ACEOF
52914 if ac_fn_cxx_try_link "$LINENO"; then :
52915 glibcxx_cv_lstat=yes
52916 else
52917 glibcxx_cv_lstat=no
52919 rm -f core conftest.err conftest.$ac_objext \
52920 conftest$ac_exeext conftest.$ac_ext
52924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lstat" >&5
52925 $as_echo "$glibcxx_cv_lstat" >&6; }
52926 if test $glibcxx_cv_lstat = yes; then
52928 $as_echo "#define _GLIBCXX_USE_LSTAT 1" >>confdefs.h
52931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec" >&5
52932 $as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
52933 if ${glibcxx_cv_st_mtim+:} false; then :
52934 $as_echo_n "(cached) " >&6
52935 else
52936 if test x$gcc_no_link = xyes; then
52937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52938 /* end confdefs.h. */
52939 #include <sys/stat.h>
52941 main ()
52944 struct stat st;
52945 return st.st_mtim.tv_nsec;
52948 return 0;
52950 _ACEOF
52951 if ac_fn_cxx_try_compile "$LINENO"; then :
52952 glibcxx_cv_st_mtim=yes
52953 else
52954 glibcxx_cv_st_mtim=no
52956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52957 else
52958 if test x$gcc_no_link = xyes; then
52959 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52962 /* end confdefs.h. */
52963 #include <sys/stat.h>
52965 main ()
52968 struct stat st;
52969 return st.st_mtim.tv_nsec;
52972 return 0;
52974 _ACEOF
52975 if ac_fn_cxx_try_link "$LINENO"; then :
52976 glibcxx_cv_st_mtim=yes
52977 else
52978 glibcxx_cv_st_mtim=no
52980 rm -f core conftest.err conftest.$ac_objext \
52981 conftest$ac_exeext conftest.$ac_ext
52985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_st_mtim" >&5
52986 $as_echo "$glibcxx_cv_st_mtim" >&6; }
52987 if test $glibcxx_cv_st_mtim = yes; then
52989 $as_echo "#define _GLIBCXX_USE_ST_MTIM 1" >>confdefs.h
52992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmod" >&5
52993 $as_echo_n "checking for fchmod... " >&6; }
52994 if ${glibcxx_cv_fchmod+:} false; then :
52995 $as_echo_n "(cached) " >&6
52996 else
52997 if test x$gcc_no_link = xyes; then
52998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52999 /* end confdefs.h. */
53000 #include <sys/stat.h>
53002 main ()
53004 fchmod(1, S_IWUSR);
53006 return 0;
53008 _ACEOF
53009 if ac_fn_cxx_try_compile "$LINENO"; then :
53010 glibcxx_cv_fchmod=yes
53011 else
53012 glibcxx_cv_fchmod=no
53014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53015 else
53016 if test x$gcc_no_link = xyes; then
53017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53020 /* end confdefs.h. */
53021 #include <sys/stat.h>
53023 main ()
53025 fchmod(1, S_IWUSR);
53027 return 0;
53029 _ACEOF
53030 if ac_fn_cxx_try_link "$LINENO"; then :
53031 glibcxx_cv_fchmod=yes
53032 else
53033 glibcxx_cv_fchmod=no
53035 rm -f core conftest.err conftest.$ac_objext \
53036 conftest$ac_exeext conftest.$ac_ext
53040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmod" >&5
53041 $as_echo "$glibcxx_cv_fchmod" >&6; }
53042 if test $glibcxx_cv_fchmod = yes; then
53044 $as_echo "#define _GLIBCXX_USE_FCHMOD 1" >>confdefs.h
53047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmodat" >&5
53048 $as_echo_n "checking for fchmodat... " >&6; }
53049 if ${glibcxx_cv_fchmodat+:} false; then :
53050 $as_echo_n "(cached) " >&6
53051 else
53052 if test x$gcc_no_link = xyes; then
53053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53054 /* end confdefs.h. */
53056 #include <fcntl.h>
53057 #include <sys/stat.h>
53060 main ()
53062 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53064 return 0;
53066 _ACEOF
53067 if ac_fn_cxx_try_compile "$LINENO"; then :
53068 glibcxx_cv_fchmodat=yes
53069 else
53070 glibcxx_cv_fchmodat=no
53072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53073 else
53074 if test x$gcc_no_link = xyes; then
53075 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53078 /* end confdefs.h. */
53080 #include <fcntl.h>
53081 #include <sys/stat.h>
53084 main ()
53086 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53088 return 0;
53090 _ACEOF
53091 if ac_fn_cxx_try_link "$LINENO"; then :
53092 glibcxx_cv_fchmodat=yes
53093 else
53094 glibcxx_cv_fchmodat=no
53096 rm -f core conftest.err conftest.$ac_objext \
53097 conftest$ac_exeext conftest.$ac_ext
53101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmodat" >&5
53102 $as_echo "$glibcxx_cv_fchmodat" >&6; }
53103 if test $glibcxx_cv_fchmodat = yes; then
53105 $as_echo "#define _GLIBCXX_USE_FCHMODAT 1" >>confdefs.h
53108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
53109 $as_echo_n "checking for link... " >&6; }
53110 if ${glibcxx_cv_link+:} false; then :
53111 $as_echo_n "(cached) " >&6
53112 else
53113 if test x$gcc_no_link = xyes; then
53114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53115 /* end confdefs.h. */
53116 #include <unistd.h>
53118 main ()
53120 link("", "");
53122 return 0;
53124 _ACEOF
53125 if ac_fn_cxx_try_compile "$LINENO"; then :
53126 glibcxx_cv_link=yes
53127 else
53128 glibcxx_cv_link=no
53130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53131 else
53132 if test x$gcc_no_link = xyes; then
53133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53136 /* end confdefs.h. */
53137 #include <unistd.h>
53139 main ()
53141 link("", "");
53143 return 0;
53145 _ACEOF
53146 if ac_fn_cxx_try_link "$LINENO"; then :
53147 glibcxx_cv_link=yes
53148 else
53149 glibcxx_cv_link=no
53151 rm -f core conftest.err conftest.$ac_objext \
53152 conftest$ac_exeext conftest.$ac_ext
53156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link" >&5
53157 $as_echo "$glibcxx_cv_link" >&6; }
53158 if test $glibcxx_cv_link = yes; then
53160 $as_echo "#define HAVE_LINK 1" >>confdefs.h
53163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek" >&5
53164 $as_echo_n "checking for lseek... " >&6; }
53165 if ${glibcxx_cv_lseek+:} false; then :
53166 $as_echo_n "(cached) " >&6
53167 else
53168 if test x$gcc_no_link = xyes; then
53169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53170 /* end confdefs.h. */
53171 #include <unistd.h>
53173 main ()
53175 lseek(1, 0, SEEK_SET);
53177 return 0;
53179 _ACEOF
53180 if ac_fn_cxx_try_compile "$LINENO"; then :
53181 glibcxx_cv_lseek=yes
53182 else
53183 glibcxx_cv_lseek=no
53185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53186 else
53187 if test x$gcc_no_link = xyes; then
53188 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53191 /* end confdefs.h. */
53192 #include <unistd.h>
53194 main ()
53196 lseek(1, 0, SEEK_SET);
53198 return 0;
53200 _ACEOF
53201 if ac_fn_cxx_try_link "$LINENO"; then :
53202 glibcxx_cv_lseek=yes
53203 else
53204 glibcxx_cv_lseek=no
53206 rm -f core conftest.err conftest.$ac_objext \
53207 conftest$ac_exeext conftest.$ac_ext
53211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lseek" >&5
53212 $as_echo "$glibcxx_cv_lseek" >&6; }
53213 if test $glibcxx_cv_lseek = yes; then
53215 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
53218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
53219 $as_echo_n "checking for readlink... " >&6; }
53220 if ${glibcxx_cv_readlink+:} false; then :
53221 $as_echo_n "(cached) " >&6
53222 else
53223 if test x$gcc_no_link = xyes; then
53224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53225 /* end confdefs.h. */
53226 #include <unistd.h>
53228 main ()
53230 char buf[32]; readlink("", buf, sizeof(buf));
53232 return 0;
53234 _ACEOF
53235 if ac_fn_cxx_try_compile "$LINENO"; then :
53236 glibcxx_cv_readlink=yes
53237 else
53238 glibcxx_cv_readlink=no
53240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53241 else
53242 if test x$gcc_no_link = xyes; then
53243 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53246 /* end confdefs.h. */
53247 #include <unistd.h>
53249 main ()
53251 char buf[32]; readlink("", buf, sizeof(buf));
53253 return 0;
53255 _ACEOF
53256 if ac_fn_cxx_try_link "$LINENO"; then :
53257 glibcxx_cv_readlink=yes
53258 else
53259 glibcxx_cv_readlink=no
53261 rm -f core conftest.err conftest.$ac_objext \
53262 conftest$ac_exeext conftest.$ac_ext
53266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_readlink" >&5
53267 $as_echo "$glibcxx_cv_readlink" >&6; }
53268 if test $glibcxx_cv_readlink = yes; then
53270 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
53273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
53274 $as_echo_n "checking for symlink... " >&6; }
53275 if ${glibcxx_cv_symlink+:} false; then :
53276 $as_echo_n "(cached) " >&6
53277 else
53278 if test x$gcc_no_link = xyes; then
53279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53280 /* end confdefs.h. */
53281 #include <unistd.h>
53283 main ()
53285 symlink("", "");
53287 return 0;
53289 _ACEOF
53290 if ac_fn_cxx_try_compile "$LINENO"; then :
53291 glibcxx_cv_symlink=yes
53292 else
53293 glibcxx_cv_symlink=no
53295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53296 else
53297 if test x$gcc_no_link = xyes; then
53298 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53301 /* end confdefs.h. */
53302 #include <unistd.h>
53304 main ()
53306 symlink("", "");
53308 return 0;
53310 _ACEOF
53311 if ac_fn_cxx_try_link "$LINENO"; then :
53312 glibcxx_cv_symlink=yes
53313 else
53314 glibcxx_cv_symlink=no
53316 rm -f core conftest.err conftest.$ac_objext \
53317 conftest$ac_exeext conftest.$ac_ext
53321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_symlink" >&5
53322 $as_echo "$glibcxx_cv_symlink" >&6; }
53323 if test $glibcxx_cv_symlink = yes; then
53325 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
53328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncate" >&5
53329 $as_echo_n "checking for truncate... " >&6; }
53330 if ${glibcxx_cv_truncate+:} false; then :
53331 $as_echo_n "(cached) " >&6
53332 else
53333 if test x$gcc_no_link = xyes; then
53334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53335 /* end confdefs.h. */
53336 #include <unistd.h>
53338 main ()
53340 truncate("", 99);
53342 return 0;
53344 _ACEOF
53345 if ac_fn_cxx_try_compile "$LINENO"; then :
53346 glibcxx_cv_truncate=yes
53347 else
53348 glibcxx_cv_truncate=no
53350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53351 else
53352 if test x$gcc_no_link = xyes; then
53353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53356 /* end confdefs.h. */
53357 #include <unistd.h>
53359 main ()
53361 truncate("", 99);
53363 return 0;
53365 _ACEOF
53366 if ac_fn_cxx_try_link "$LINENO"; then :
53367 glibcxx_cv_truncate=yes
53368 else
53369 glibcxx_cv_truncate=no
53371 rm -f core conftest.err conftest.$ac_objext \
53372 conftest$ac_exeext conftest.$ac_ext
53376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_truncate" >&5
53377 $as_echo "$glibcxx_cv_truncate" >&6; }
53378 if test $glibcxx_cv_truncate = yes; then
53380 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
53383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range that can copy files" >&5
53384 $as_echo_n "checking for copy_file_range that can copy files... " >&6; }
53385 if ${glibcxx_cv_copy_file_range+:} false; then :
53386 $as_echo_n "(cached) " >&6
53387 else
53388 case "${target_os}" in
53389 linux*)
53390 if test x$gcc_no_link = xyes; then
53391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53392 /* end confdefs.h. */
53393 #include <unistd.h>
53395 main ()
53397 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53399 return 0;
53401 _ACEOF
53402 if ac_fn_cxx_try_compile "$LINENO"; then :
53403 glibcxx_cv_copy_file_range=yes
53404 else
53405 glibcxx_cv_copy_file_range=no
53407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53408 else
53409 if test x$gcc_no_link = xyes; then
53410 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53413 /* end confdefs.h. */
53414 #include <unistd.h>
53416 main ()
53418 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53420 return 0;
53422 _ACEOF
53423 if ac_fn_cxx_try_link "$LINENO"; then :
53424 glibcxx_cv_copy_file_range=yes
53425 else
53426 glibcxx_cv_copy_file_range=no
53428 rm -f core conftest.err conftest.$ac_objext \
53429 conftest$ac_exeext conftest.$ac_ext
53433 glibcxx_cv_copy_file_range=no
53435 esac
53438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_copy_file_range" >&5
53439 $as_echo "$glibcxx_cv_copy_file_range" >&6; }
53440 if test $glibcxx_cv_copy_file_range = yes; then
53442 $as_echo "#define _GLIBCXX_USE_COPY_FILE_RANGE 1" >>confdefs.h
53445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files" >&5
53446 $as_echo_n "checking for sendfile that can copy files... " >&6; }
53447 if ${glibcxx_cv_sendfile+:} false; then :
53448 $as_echo_n "(cached) " >&6
53449 else
53450 case "${target_os}" in
53451 gnu* | linux* | solaris* | uclinux*)
53452 if test x$gcc_no_link = xyes; then
53453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53454 /* end confdefs.h. */
53455 #include <sys/sendfile.h>
53457 main ()
53459 sendfile(1, 2, (off_t*)0, sizeof 1);
53461 return 0;
53463 _ACEOF
53464 if ac_fn_cxx_try_compile "$LINENO"; then :
53465 glibcxx_cv_sendfile=yes
53466 else
53467 glibcxx_cv_sendfile=no
53469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53470 else
53471 if test x$gcc_no_link = xyes; then
53472 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53475 /* end confdefs.h. */
53476 #include <sys/sendfile.h>
53478 main ()
53480 sendfile(1, 2, (off_t*)0, sizeof 1);
53482 return 0;
53484 _ACEOF
53485 if ac_fn_cxx_try_link "$LINENO"; then :
53486 glibcxx_cv_sendfile=yes
53487 else
53488 glibcxx_cv_sendfile=no
53490 rm -f core conftest.err conftest.$ac_objext \
53491 conftest$ac_exeext conftest.$ac_ext
53495 glibcxx_cv_sendfile=no
53497 esac
53500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile" >&5
53501 $as_echo "$glibcxx_cv_sendfile" >&6; }
53502 if test $glibcxx_cv_sendfile = yes && test $glibcxx_cv_lseek = yes; then
53504 $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
53507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
53508 $as_echo_n "checking for fdopendir... " >&6; }
53509 if ${glibcxx_cv_fdopendir+:} false; then :
53510 $as_echo_n "(cached) " >&6
53511 else
53512 if test x$gcc_no_link = xyes; then
53513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53514 /* end confdefs.h. */
53515 #include <dirent.h>
53517 main ()
53519 ::DIR* dir = ::fdopendir(1);
53521 return 0;
53523 _ACEOF
53524 if ac_fn_cxx_try_compile "$LINENO"; then :
53525 glibcxx_cv_fdopendir=yes
53526 else
53527 glibcxx_cv_fdopendir=no
53529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53530 else
53531 if test x$gcc_no_link = xyes; then
53532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53535 /* end confdefs.h. */
53536 #include <dirent.h>
53538 main ()
53540 ::DIR* dir = ::fdopendir(1);
53542 return 0;
53544 _ACEOF
53545 if ac_fn_cxx_try_link "$LINENO"; then :
53546 glibcxx_cv_fdopendir=yes
53547 else
53548 glibcxx_cv_fdopendir=no
53550 rm -f core conftest.err conftest.$ac_objext \
53551 conftest$ac_exeext conftest.$ac_ext
53555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fdopendir" >&5
53556 $as_echo "$glibcxx_cv_fdopendir" >&6; }
53557 if test $glibcxx_cv_fdopendir = yes; then
53559 $as_echo "#define HAVE_FDOPENDIR 1" >>confdefs.h
53562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
53563 $as_echo_n "checking for dirfd... " >&6; }
53564 if ${glibcxx_cv_dirfd+:} false; then :
53565 $as_echo_n "(cached) " >&6
53566 else
53567 if test x$gcc_no_link = xyes; then
53568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53569 /* end confdefs.h. */
53570 #include <dirent.h>
53572 main ()
53574 int fd = ::dirfd((::DIR*)0);
53576 return 0;
53578 _ACEOF
53579 if ac_fn_cxx_try_compile "$LINENO"; then :
53580 glibcxx_cv_dirfd=yes
53581 else
53582 glibcxx_cv_dirfd=no
53584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53585 else
53586 if test x$gcc_no_link = xyes; then
53587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53590 /* end confdefs.h. */
53591 #include <dirent.h>
53593 main ()
53595 int fd = ::dirfd((::DIR*)0);
53597 return 0;
53599 _ACEOF
53600 if ac_fn_cxx_try_link "$LINENO"; then :
53601 glibcxx_cv_dirfd=yes
53602 else
53603 glibcxx_cv_dirfd=no
53605 rm -f core conftest.err conftest.$ac_objext \
53606 conftest$ac_exeext conftest.$ac_ext
53610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirfd" >&5
53611 $as_echo "$glibcxx_cv_dirfd" >&6; }
53612 if test $glibcxx_cv_dirfd = yes; then
53614 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
53617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openat" >&5
53618 $as_echo_n "checking for openat... " >&6; }
53619 if ${glibcxx_cv_openat+:} false; then :
53620 $as_echo_n "(cached) " >&6
53621 else
53622 if test x$gcc_no_link = xyes; then
53623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53624 /* end confdefs.h. */
53625 #include <fcntl.h>
53627 main ()
53629 int fd = ::openat(AT_FDCWD, "", 0);
53631 return 0;
53633 _ACEOF
53634 if ac_fn_cxx_try_compile "$LINENO"; then :
53635 glibcxx_cv_openat=yes
53636 else
53637 glibcxx_cv_openat=no
53639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53640 else
53641 if test x$gcc_no_link = xyes; then
53642 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53645 /* end confdefs.h. */
53646 #include <fcntl.h>
53648 main ()
53650 int fd = ::openat(AT_FDCWD, "", 0);
53652 return 0;
53654 _ACEOF
53655 if ac_fn_cxx_try_link "$LINENO"; then :
53656 glibcxx_cv_openat=yes
53657 else
53658 glibcxx_cv_openat=no
53660 rm -f core conftest.err conftest.$ac_objext \
53661 conftest$ac_exeext conftest.$ac_ext
53665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_openat" >&5
53666 $as_echo "$glibcxx_cv_openat" >&6; }
53667 if test $glibcxx_cv_openat = yes; then
53669 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
53672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlinkat" >&5
53673 $as_echo_n "checking for unlinkat... " >&6; }
53674 if ${glibcxx_cv_unlinkat+:} false; then :
53675 $as_echo_n "(cached) " >&6
53676 else
53677 if test x$gcc_no_link = xyes; then
53678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53679 /* end confdefs.h. */
53680 #include <fcntl.h>
53681 #include <unistd.h>
53683 main ()
53685 ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
53687 return 0;
53689 _ACEOF
53690 if ac_fn_cxx_try_compile "$LINENO"; then :
53691 glibcxx_cv_unlinkat=yes
53692 else
53693 glibcxx_cv_unlinkat=no
53695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53696 else
53697 if test x$gcc_no_link = xyes; then
53698 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53701 /* end confdefs.h. */
53702 #include <fcntl.h>
53703 #include <unistd.h>
53705 main ()
53707 ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
53709 return 0;
53711 _ACEOF
53712 if ac_fn_cxx_try_link "$LINENO"; then :
53713 glibcxx_cv_unlinkat=yes
53714 else
53715 glibcxx_cv_unlinkat=no
53717 rm -f core conftest.err conftest.$ac_objext \
53718 conftest$ac_exeext conftest.$ac_ext
53722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_unlinkat" >&5
53723 $as_echo "$glibcxx_cv_unlinkat" >&6; }
53724 if test $glibcxx_cv_unlinkat = yes; then
53726 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
53729 CXXFLAGS="$ac_save_CXXFLAGS"
53730 ac_ext=c
53731 ac_cpp='$CPP $CPPFLAGS'
53732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
53739 # Check whether --enable-libstdcxx-backtrace was given.
53740 if test "${enable_libstdcxx_backtrace+set}" = set; then :
53741 enableval=$enable_libstdcxx_backtrace;
53742 case "$enableval" in
53743 yes|no|auto) ;;
53744 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-backtrace" "$LINENO" 5 ;;
53745 esac
53747 else
53748 enable_libstdcxx_backtrace=auto
53753 # Most of this is adapted from libsanitizer/configure.ac
53755 BACKTRACE_CPPFLAGS="-D_GNU_SOURCE"
53757 # libbacktrace only needs atomics for int, which we've already tested
53758 if test "$glibcxx_cv_atomic_int" = "yes"; then
53759 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_ATOMIC_FUNCTIONS=1"
53762 # Test for __sync support.
53763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
53764 $as_echo_n "checking __sync extensions... " >&6; }
53765 if ${glibcxx_cv_sys_sync+:} false; then :
53766 $as_echo_n "(cached) " >&6
53767 else
53768 if test x$gcc_no_link = xyes; then
53769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53770 /* end confdefs.h. */
53771 int i;
53773 main ()
53775 __sync_bool_compare_and_swap (&i, i, i);
53776 __sync_lock_test_and_set (&i, 1);
53777 __sync_lock_release (&i);
53779 return 0;
53781 _ACEOF
53782 if ac_fn_c_try_compile "$LINENO"; then :
53783 glibcxx_cv_sys_sync=yes
53784 else
53785 glibcxx_cv_sys_sync=no
53787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53788 else
53789 if test x$gcc_no_link = xyes; then
53790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53793 /* end confdefs.h. */
53794 int i;
53796 main ()
53798 __sync_bool_compare_and_swap (&i, i, i);
53799 __sync_lock_test_and_set (&i, 1);
53800 __sync_lock_release (&i);
53802 return 0;
53804 _ACEOF
53805 if ac_fn_c_try_link "$LINENO"; then :
53806 glibcxx_cv_sys_sync=yes
53807 else
53808 glibcxx_cv_sys_sync=no
53810 rm -f core conftest.err conftest.$ac_objext \
53811 conftest$ac_exeext conftest.$ac_ext
53815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sync" >&5
53816 $as_echo "$glibcxx_cv_sys_sync" >&6; }
53817 if test "$glibcxx_cv_sys_sync" = "yes"; then
53818 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_SYNC_FUNCTIONS=1"
53821 # Check for dl_iterate_phdr.
53822 for ac_header in link.h
53823 do :
53824 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
53825 if test "x$ac_cv_header_link_h" = xyes; then :
53826 cat >>confdefs.h <<_ACEOF
53827 #define HAVE_LINK_H 1
53828 _ACEOF
53832 done
53834 if test "$ac_cv_header_link_h" = "no"; then
53835 have_dl_iterate_phdr=no
53836 else
53837 # When built as a GCC target library, we can't do a link test.
53838 ac_save_CPPFLAGS="$CPPFLAGS"
53839 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
53840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53841 /* end confdefs.h. */
53842 #include <link.h>
53844 _ACEOF
53845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53846 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
53847 have_dl_iterate_phdr=yes
53848 else
53849 have_dl_iterate_phdr=no
53851 rm -f conftest*
53853 CPPFLAGS="$ac_save_CPPFLAGS"
53855 if test "$have_dl_iterate_phdr" = "yes"; then
53856 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1"
53858 for ac_header in windows.h
53859 do :
53860 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
53861 if test "x$ac_cv_header_windows_h" = xyes; then :
53862 cat >>confdefs.h <<_ACEOF
53863 #define HAVE_WINDOWS_H 1
53864 _ACEOF
53868 done
53870 for ac_header in tlhelp32.h
53871 do :
53872 ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
53873 # include <windows.h>
53874 #endif
53877 if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
53878 cat >>confdefs.h <<_ACEOF
53879 #define HAVE_TLHELP32_H 1
53880 _ACEOF
53884 done
53887 # Check for the fcntl function.
53888 if test -n "${with_target_subdir}"; then
53889 case "${host}" in
53890 *-*-mingw*) have_fcntl=no ;;
53891 *) have_fcntl=yes ;;
53892 esac
53893 else
53894 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
53895 if test "x$ac_cv_func_fcntl" = xyes; then :
53896 have_fcntl=yes
53897 else
53898 have_fcntl=no
53902 if test "$have_fcntl" = "yes"; then
53903 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_FCNTL=1"
53906 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
53907 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
53908 ac_have_decl=1
53909 else
53910 ac_have_decl=0
53913 cat >>confdefs.h <<_ACEOF
53914 #define HAVE_DECL_STRNLEN $ac_have_decl
53915 _ACEOF
53918 # Check for getexecname function.
53919 if test -n "${with_target_subdir}"; then
53920 case "${host}" in
53921 *-*-solaris2*) have_getexecname=yes ;;
53922 *) have_getexecname=no ;;
53923 esac
53924 else
53925 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
53926 if test "x$ac_cv_func_getexecname" = xyes; then :
53927 have_getexecname=yes
53928 else
53929 have_getexecname=no
53933 if test "$have_getexecname" = "yes"; then
53934 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_GETEXECNAME=1"
53937 # The library needs to be able to read the executable itself. Compile
53938 # a file to determine the executable format. The awk script
53939 # filetype.awk prints out the file type.
53940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
53941 $as_echo_n "checking output filetype... " >&6; }
53942 if ${glibcxx_cv_sys_filetype+:} false; then :
53943 $as_echo_n "(cached) " >&6
53944 else
53945 filetype=
53946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53947 /* end confdefs.h. */
53948 int i;
53950 main ()
53952 int j;
53954 return 0;
53956 _ACEOF
53957 if ac_fn_c_try_compile "$LINENO"; then :
53958 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
53959 else
53960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
53961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53962 as_fn_error $? "compiler failed
53963 See \`config.log' for more details" "$LINENO" 5; }
53965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53966 glibcxx_cv_sys_filetype=$filetype
53968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_filetype" >&5
53969 $as_echo "$glibcxx_cv_sys_filetype" >&6; }
53971 # Match the file type to decide what files to compile.
53972 FORMAT_FILE=
53973 case "$glibcxx_cv_sys_filetype" in
53974 elf*) FORMAT_FILE="elf.lo" ;;
53975 pecoff*) FORMAT_FILE="pecoff.lo" ;;
53976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
53977 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
53978 FORMAT_FILE="unknown.lo"
53979 enable_libstdcxx_backtrace=no
53981 esac
53984 # ELF defines.
53985 elfsize=
53986 case "$glibcxx_cv_sys_filetype" in
53987 elf32) elfsize=32 ;;
53988 elf64) elfsize=64 ;;
53989 esac
53990 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
53992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5
53993 $as_echo_n "checking whether to build libbacktrace support... " >&6; }
53994 if test "$enable_libstdcxx_backtrace" = "auto"; then
53995 case "$host" in
53996 avr-*-*) enable_libstdcxx_backtrace=no ;;
53997 *) enable_libstdcxx_backtrace="$is_hosted" ;;
53998 esac
54000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5
54001 $as_echo "$enable_libstdcxx_backtrace" >&6; }
54002 if test "$enable_libstdcxx_backtrace" = "yes"; then
54003 BACKTRACE_SUPPORTED=1
54005 for ac_header in sys/mman.h
54006 do :
54007 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
54008 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
54009 cat >>confdefs.h <<_ACEOF
54010 #define HAVE_SYS_MMAN_H 1
54011 _ACEOF
54015 done
54017 case "${host}" in
54018 *-*-msdosdjgpp) # DJGPP has sys/man.h, but no mmap
54019 have_mmap=no ;;
54020 *-*-*)
54021 have_mmap="$ac_cv_header_sys_mman_h" ;;
54022 esac
54024 if test "$have_mmap" = "no"; then
54025 VIEW_FILE=read.lo
54026 ALLOC_FILE=alloc.lo
54027 else
54028 VIEW_FILE=mmapio.lo
54029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54030 /* end confdefs.h. */
54032 #include <sys/mman.h>
54033 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
54034 #error no MAP_ANONYMOUS
54035 #endif
54037 _ACEOF
54038 if ac_fn_c_try_cpp "$LINENO"; then :
54039 ALLOC_FILE=mmap.lo
54040 else
54041 ALLOC_FILE=alloc.lo
54043 rm -f conftest.err conftest.i conftest.$ac_ext
54048 BACKTRACE_USES_MALLOC=0
54049 if test "$ALLOC_FILE" = "alloc.lo"; then
54050 BACKTRACE_USES_MALLOC=1
54053 if test "$ac_has_gthreads" = "yes"; then
54054 BACKTRACE_SUPPORTS_THREADS=1
54055 else
54056 BACKTRACE_SUPPORTS_THREADS=0
54063 $as_echo "#define HAVE_STACKTRACE 1" >>confdefs.h
54065 else
54066 BACKTRACE_SUPPORTED=0
54067 BACKTRACE_USES_MALLOC=0
54068 BACKTRACE_SUPPORTS_THREADS=0
54073 # For Networking TS.
54074 for ac_header in fcntl.h sys/ioctl.h sys/socket.h sys/uio.h poll.h netdb.h arpa/inet.h netinet/in.h netinet/tcp.h
54075 do :
54076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
54077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
54078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
54079 cat >>confdefs.h <<_ACEOF
54080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54081 _ACEOF
54085 done
54087 ac_fn_c_check_decl "$LINENO" "F_GETFL" "ac_cv_have_decl_F_GETFL" "#include <fcntl.h>
54089 if test "x$ac_cv_have_decl_F_GETFL" = xyes; then :
54093 ac_fn_c_check_decl "$LINENO" "F_SETFL" "ac_cv_have_decl_F_SETFL" "#include <fcntl.h>
54095 if test "x$ac_cv_have_decl_F_SETFL" = xyes; then :
54099 if test "$ac_cv_have_decl_F_GETFL$ac_cv_have_decl_F_SETFL" = yesyes ; then
54100 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
54102 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
54108 # For Transactional Memory TS
54110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
54111 $as_echo_n "checking how size_t is mangled... " >&6; }
54112 if ${glibcxx_cv_size_t_mangling+:} false; then :
54113 $as_echo_n "(cached) " >&6
54114 else
54116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54117 /* end confdefs.h. */
54120 main ()
54122 extern __SIZE_TYPE__ x; extern unsigned long x;
54124 return 0;
54126 _ACEOF
54127 if ac_fn_c_try_compile "$LINENO"; then :
54128 glibcxx_cv_size_t_mangling=m
54129 else
54131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54132 /* end confdefs.h. */
54135 main ()
54137 extern __SIZE_TYPE__ x; extern unsigned int x;
54139 return 0;
54141 _ACEOF
54142 if ac_fn_c_try_compile "$LINENO"; then :
54143 glibcxx_cv_size_t_mangling=j
54144 else
54146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54147 /* end confdefs.h. */
54150 main ()
54152 extern __SIZE_TYPE__ x; extern unsigned long long x;
54154 return 0;
54156 _ACEOF
54157 if ac_fn_c_try_compile "$LINENO"; then :
54158 glibcxx_cv_size_t_mangling=y
54159 else
54161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54162 /* end confdefs.h. */
54165 main ()
54167 extern __SIZE_TYPE__ x; extern unsigned short x;
54169 return 0;
54171 _ACEOF
54172 if ac_fn_c_try_compile "$LINENO"; then :
54173 glibcxx_cv_size_t_mangling=t
54174 else
54176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54177 /* end confdefs.h. */
54180 main ()
54182 extern __SIZE_TYPE__ x; extern __int20 unsigned x;
54184 return 0;
54186 _ACEOF
54187 if ac_fn_c_try_compile "$LINENO"; then :
54188 glibcxx_cv_size_t_mangling=u6uint20
54189 else
54190 glibcxx_cv_size_t_mangling=x
54192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_size_t_mangling" >&5
54208 $as_echo "$glibcxx_cv_size_t_mangling" >&6; }
54209 if test $glibcxx_cv_size_t_mangling = x; then
54210 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
54213 cat >>confdefs.h <<_ACEOF
54214 #define _GLIBCXX_MANGLE_SIZE_T $glibcxx_cv_size_t_mangling
54215 _ACEOF
54219 # Check which release added std::exception_ptr for the target
54221 if test $enable_symvers != no; then
54222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for first version to support std::exception_ptr" >&5
54223 $as_echo_n "checking for first version to support std::exception_ptr... " >&6; }
54224 case ${target} in
54225 aarch64-*-* | alpha-*-* | hppa*-*-* | i?86-*-* | x86_64-*-* | \
54226 m68k-*-* | powerpc*-*-* | s390*-*-* | *-*-solaris* )
54227 ac_exception_ptr_since_gcc46=yes
54230 # If the value of this macro changes then we will need to hardcode
54231 # yes/no here for additional targets based on the original value.
54232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54233 /* end confdefs.h. */
54236 main ()
54239 #if __GCC_ATOMIC_INT_LOCK_FREE <= 1
54240 # error atomic int not always lock free
54241 #endif
54244 return 0;
54246 _ACEOF
54247 if ac_fn_c_try_compile "$LINENO"; then :
54248 ac_exception_ptr_since_gcc46=yes
54249 else
54250 ac_exception_ptr_since_gcc46=no
54252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54254 esac
54255 if test x"$ac_exception_ptr_since_gcc46" = x"yes" ; then
54257 $as_echo "#define HAVE_EXCEPTION_PTR_SINCE_GCC46 1" >>confdefs.h
54259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.6.0" >&5
54260 $as_echo "4.6.0" >&6; }
54261 else
54262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7.1.0" >&5
54263 $as_echo "7.1.0" >&6; }
54268 # For libsupc++/eh_alloc.cc defaults.
54270 eh_pool_static=
54271 eh_pool_nobjs=
54272 # Check whether --enable-libstdcxx-static-eh-pool was given.
54273 if test "${enable_libstdcxx_static_eh_pool+set}" = set; then :
54274 enableval=$enable_libstdcxx_static_eh_pool; if test "${enableval}" = yes; then
54275 eh_pool_static="-D_GLIBCXX_EH_POOL_STATIC"
54276 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool using static buffer" >&5
54277 $as_echo "$as_me: EH pool using static buffer" >&6;}
54283 # Check whether --with-libstdcxx-eh-pool-obj-count was given.
54284 if test "${with_libstdcxx_eh_pool_obj_count+set}" = set; then :
54285 withval=$with_libstdcxx_eh_pool_obj_count; if test "${withval}" -ge 0 2>/dev/null; then
54286 eh_pool_obj_count="-D_GLIBCXX_EH_POOL_NOBJS=${withval}"
54287 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool object count: ${withval}" >&5
54288 $as_echo "$as_me: EH pool object count: ${withval}" >&6;}
54289 else
54290 as_fn_error $? "EH pool obj count must be a non-negative integer: $withval" "$LINENO" 5
54295 EH_POOL_FLAGS="$eh_pool_static $eh_pool_obj_count"
54299 # For src/c++20/tzdb.cc defaults.
54302 # Check whether --with-libstdcxx-zoneinfo was given.
54303 if test "${with_libstdcxx_zoneinfo+set}" = set; then :
54304 withval=$with_libstdcxx_zoneinfo;
54305 else
54306 with_libstdcxx_zoneinfo=yes
54310 if test "x${with_libstdcxx_zoneinfo}" = xyes; then
54311 # Pick a default when no specific path is set.
54312 case "$target_os" in
54313 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
54314 # Not all distros ship tzdata.zi in this dir.
54315 zoneinfo_dir="/usr/share/zoneinfo"
54317 aix*)
54318 # Binary tzfile files are in /usr/share/lib/zoneinfo
54319 # but tzdata.zi is not present there.
54320 zoneinfo_dir=none
54322 darwin2*)
54323 # Binary tzfile files are in /usr/share/lib/zoneinfo.default
54324 # but tzdata.zi is not present there.
54325 zoneinfo_dir=none
54328 # Binary tzfile files are commonly found in /usr/share/zoneinfo
54329 # but tzdata.zi is not present there.
54330 zoneinfo_dir=none
54332 esac
54334 if ac_fn_c_compute_int "$LINENO" "__INTPTR_WIDTH__ >= 32" "glibcxx_cv_at_least_32bit" ""; then :
54338 if test "$glibcxx_cv_at_least_32bit" -ne 0; then
54339 # Also embed a copy of the tzdata.zi file as a static string.
54340 embed_zoneinfo=yes
54341 else
54342 # The embedded data is too large for 16-bit targets.
54343 embed_zoneinfo=no
54345 elif test "x${with_libstdcxx_zoneinfo}" = xno; then
54346 # Disable tzdb support completely.
54347 zoneinfo_dir=none
54348 embed_zoneinfo=no
54349 else
54350 case "${with_libstdcxx_zoneinfo}" in
54351 static)
54352 # Do not attempt to read from disk, always use embedded data.
54353 zoneinfo_dir=none
54354 embed_zoneinfo=yes
54356 static,* | *,static)
54357 # Try to read from disk, use embedded data as fallback.
54358 zoneinfo_dir="${with_libstdcxx_zoneinfo#static,}"
54359 zoneinfo_dir="${with_libstdcxx_zoneinfo%,static}"
54360 embed_zoneinfo=yes
54363 zoneinfo_dir="${with_libstdcxx_zoneinfo}"
54364 embed_zoneinfo=no
54366 esac
54368 { $as_echo "$as_me:${as_lineno-$LINENO}: zoneinfo data directory: ${zoneinfo_dir}" >&5
54369 $as_echo "$as_me: zoneinfo data directory: ${zoneinfo_dir}" >&6;}
54370 if test "x${zoneinfo_dir}" != xnone; then
54372 cat >>confdefs.h <<_ACEOF
54373 #define _GLIBCXX_ZONEINFO_DIR "${zoneinfo_dir}"
54374 _ACEOF
54376 if $GLIBCXX_IS_NATIVE && ! test -f "$zoneinfo_dir/tzdata.zi"; then
54377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&5
54378 $as_echo "$as_me: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&2;}
54382 if test "x${embed_zoneinfo}" = xyes; then
54383 { $as_echo "$as_me:${as_lineno-$LINENO}: static tzdata.zi file will be compiled into the library" >&5
54384 $as_echo "$as_me: static tzdata.zi file will be compiled into the library" >&6;}
54386 cat >>confdefs.h <<_ACEOF
54387 #define _GLIBCXX_STATIC_TZDATA 1
54388 _ACEOF
54393 # For src/c++11/shared_ptr.cc alignment.
54396 ac_ext=cpp
54397 ac_cpp='$CXXCPP $CPPFLAGS'
54398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static objects can be aligned to the cacheline size" >&5
54404 $as_echo_n "checking whether static objects can be aligned to the cacheline size... " >&6; }
54405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54406 /* end confdefs.h. */
54409 main ()
54411 struct alignas(__GCC_DESTRUCTIVE_SIZE) Aligned { };
54412 alignas(Aligned) static char buf[sizeof(Aligned) * 16];
54415 return 0;
54417 _ACEOF
54418 if ac_fn_cxx_try_compile "$LINENO"; then :
54419 ac_alignas_cacheline=yes
54420 else
54421 ac_alignas_cacheline=no
54423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54424 if test "$ac_alignas_cacheline" = yes; then
54426 cat >>confdefs.h <<_ACEOF
54427 #define _GLIBCXX_CAN_ALIGNAS_DESTRUCTIVE_SIZE 1
54428 _ACEOF
54431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_alignas_cacheline" >&5
54432 $as_echo "$ac_alignas_cacheline" >&6; }
54434 ac_ext=c
54435 ac_cpp='$CPP $CPPFLAGS'
54436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54442 # For using init_priority in ios_init.cc
54445 ac_ext=cpp
54446 ac_cpp='$CXXCPP $CPPFLAGS'
54447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_priority attribute is supported" >&5
54453 $as_echo_n "checking whether init_priority attribute is supported... " >&6; }
54454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54455 /* end confdefs.h. */
54458 main ()
54461 #if ! __has_attribute(init_priority)
54462 #error init_priority not supported
54463 #endif
54466 return 0;
54468 _ACEOF
54469 if ac_fn_cxx_try_compile "$LINENO"; then :
54470 ac_init_priority=yes
54471 else
54472 ac_init_priority=no
54474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54475 if test "$ac_init_priority" = yes; then
54477 cat >>confdefs.h <<_ACEOF
54478 #define _GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE 1
54479 _ACEOF
54482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_init_priority" >&5
54483 $as_echo "$ac_init_priority" >&6; }
54485 ac_ext=c
54486 ac_cpp='$CPP $CPPFLAGS'
54487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54493 # For __basic_file::native_handle()
54496 ac_ext=cpp
54497 ac_cpp='$CXXCPP $CPPFLAGS'
54498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _get_osfhandle is defined in <io.h>" >&5
54504 $as_echo_n "checking whether _get_osfhandle is defined in <io.h>... " >&6; }
54505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54506 /* end confdefs.h. */
54508 #if defined(_WIN32) && !defined(__CYGWIN__)
54509 # include <stdint.h>
54510 # include <stdio.h>
54511 # include <io.h>
54512 #endif
54515 main ()
54518 FILE* file = 0;
54519 int fd = fileno(file);
54520 intptr_t crt_handle = _get_osfhandle(fd);
54521 void* win32_handle = reinterpret_cast<void*>(crt_handle);
54524 return 0;
54526 _ACEOF
54527 if ac_fn_cxx_try_compile "$LINENO"; then :
54528 ac_get_osfhandle=yes
54529 else
54530 ac_get_osfhandle=no
54532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54533 if test "$ac_get_osfhandle" = yes; then
54535 cat >>confdefs.h <<_ACEOF
54536 #define _GLIBCXX_USE__GET_OSFHANDLE 1
54537 _ACEOF
54540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_get_osfhandle" >&5
54541 $as_echo "$ac_get_osfhandle" >&6; }
54543 ac_ext=c
54544 ac_cpp='$CPP $CPPFLAGS'
54545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54551 # For std::text_encoding
54554 ac_ext=cpp
54555 ac_cpp='$CXXCPP $CPPFLAGS'
54556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo_l is defined in <langinfo.h>" >&5
54562 $as_echo_n "checking whether nl_langinfo_l is defined in <langinfo.h>... " >&6; }
54563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54564 /* end confdefs.h. */
54566 #include <locale.h>
54567 #if __has_include(<xlocale.h>)
54568 # include <xlocale.h>
54569 #endif
54570 #include <langinfo.h>
54573 main ()
54576 locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
54577 const char* enc = nl_langinfo_l(CODESET, loc);
54578 freelocale(loc);
54581 return 0;
54583 _ACEOF
54584 if ac_fn_cxx_try_compile "$LINENO"; then :
54585 ac_nl_langinfo_l=yes
54586 else
54587 ac_nl_langinfo_l=no
54589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_nl_langinfo_l" >&5
54591 $as_echo "$ac_nl_langinfo_l" >&6; }
54592 if test "$ac_nl_langinfo_l" = yes; then
54594 cat >>confdefs.h <<_ACEOF
54595 #define _GLIBCXX_USE_NL_LANGINFO_L 1
54596 _ACEOF
54600 ac_ext=c
54601 ac_cpp='$CPP $CPPFLAGS'
54602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54608 # Define documentation rules conditionally.
54610 # See if makeinfo has been installed and is modern enough
54611 # that we can use it.
54613 # Extract the first word of "makeinfo", so it can be a program name with args.
54614 set dummy makeinfo; ac_word=$2
54615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54616 $as_echo_n "checking for $ac_word... " >&6; }
54617 if ${ac_cv_prog_MAKEINFO+:} false; then :
54618 $as_echo_n "(cached) " >&6
54619 else
54620 if test -n "$MAKEINFO"; then
54621 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
54622 else
54623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54624 for as_dir in $PATH
54626 IFS=$as_save_IFS
54627 test -z "$as_dir" && as_dir=.
54628 for ac_exec_ext in '' $ac_executable_extensions; do
54629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54630 ac_cv_prog_MAKEINFO="makeinfo"
54631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54632 break 2
54634 done
54635 done
54636 IFS=$as_save_IFS
54640 MAKEINFO=$ac_cv_prog_MAKEINFO
54641 if test -n "$MAKEINFO"; then
54642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
54643 $as_echo "$MAKEINFO" >&6; }
54644 else
54645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54646 $as_echo "no" >&6; }
54650 if test -n "$MAKEINFO"; then
54651 # Found it, now check the version.
54652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
54653 $as_echo_n "checking for modern makeinfo... " >&6; }
54654 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
54655 $as_echo_n "(cached) " >&6
54656 else
54657 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
54658 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
54660 case $ac_prog_version in
54661 '') gcc_cv_prog_makeinfo_modern=no;;
54662 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
54663 *) gcc_cv_prog_makeinfo_modern=no;;
54664 esac
54667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
54668 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
54669 else
54670 gcc_cv_prog_makeinfo_modern=no
54672 if test $gcc_cv_prog_makeinfo_modern = no; then
54673 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
54676 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
54677 BUILD_INFO_TRUE=
54678 BUILD_INFO_FALSE='#'
54679 else
54680 BUILD_INFO_TRUE='#'
54681 BUILD_INFO_FALSE=
54685 # Check for doxygen
54686 # Extract the first word of "doxygen", so it can be a program name with args.
54687 set dummy doxygen; ac_word=$2
54688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54689 $as_echo_n "checking for $ac_word... " >&6; }
54690 if ${ac_cv_prog_DOXYGEN+:} false; then :
54691 $as_echo_n "(cached) " >&6
54692 else
54693 if test -n "$DOXYGEN"; then
54694 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
54695 else
54696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54697 for as_dir in $PATH
54699 IFS=$as_save_IFS
54700 test -z "$as_dir" && as_dir=.
54701 for ac_exec_ext in '' $ac_executable_extensions; do
54702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54703 ac_cv_prog_DOXYGEN="yes"
54704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54705 break 2
54707 done
54708 done
54709 IFS=$as_save_IFS
54711 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
54714 DOXYGEN=$ac_cv_prog_DOXYGEN
54715 if test -n "$DOXYGEN"; then
54716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
54717 $as_echo "$DOXYGEN" >&6; }
54718 else
54719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54720 $as_echo "no" >&6; }
54724 # Extract the first word of "dot", so it can be a program name with args.
54725 set dummy dot; ac_word=$2
54726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54727 $as_echo_n "checking for $ac_word... " >&6; }
54728 if ${ac_cv_prog_DOT+:} false; then :
54729 $as_echo_n "(cached) " >&6
54730 else
54731 if test -n "$DOT"; then
54732 ac_cv_prog_DOT="$DOT" # Let the user override the test.
54733 else
54734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54735 for as_dir in $PATH
54737 IFS=$as_save_IFS
54738 test -z "$as_dir" && as_dir=.
54739 for ac_exec_ext in '' $ac_executable_extensions; do
54740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54741 ac_cv_prog_DOT="yes"
54742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54743 break 2
54745 done
54746 done
54747 IFS=$as_save_IFS
54749 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="no"
54752 DOT=$ac_cv_prog_DOT
54753 if test -n "$DOT"; then
54754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
54755 $as_echo "$DOT" >&6; }
54756 else
54757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54758 $as_echo "no" >&6; }
54763 # Check for docbook
54764 # Extract the first word of "xmlcatalog", so it can be a program name with args.
54765 set dummy xmlcatalog; ac_word=$2
54766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54767 $as_echo_n "checking for $ac_word... " >&6; }
54768 if ${ac_cv_prog_XMLCATALOG+:} false; then :
54769 $as_echo_n "(cached) " >&6
54770 else
54771 if test -n "$XMLCATALOG"; then
54772 ac_cv_prog_XMLCATALOG="$XMLCATALOG" # Let the user override the test.
54773 else
54774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54775 for as_dir in $PATH
54777 IFS=$as_save_IFS
54778 test -z "$as_dir" && as_dir=.
54779 for ac_exec_ext in '' $ac_executable_extensions; do
54780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54781 ac_cv_prog_XMLCATALOG="yes"
54782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54783 break 2
54785 done
54786 done
54787 IFS=$as_save_IFS
54789 test -z "$ac_cv_prog_XMLCATALOG" && ac_cv_prog_XMLCATALOG="no"
54792 XMLCATALOG=$ac_cv_prog_XMLCATALOG
54793 if test -n "$XMLCATALOG"; then
54794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
54795 $as_echo "$XMLCATALOG" >&6; }
54796 else
54797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54798 $as_echo "no" >&6; }
54802 # Extract the first word of "xsltproc", so it can be a program name with args.
54803 set dummy xsltproc; ac_word=$2
54804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54805 $as_echo_n "checking for $ac_word... " >&6; }
54806 if ${ac_cv_prog_XSLTPROC+:} false; then :
54807 $as_echo_n "(cached) " >&6
54808 else
54809 if test -n "$XSLTPROC"; then
54810 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
54811 else
54812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54813 for as_dir in $PATH
54815 IFS=$as_save_IFS
54816 test -z "$as_dir" && as_dir=.
54817 for ac_exec_ext in '' $ac_executable_extensions; do
54818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54819 ac_cv_prog_XSLTPROC="yes"
54820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54821 break 2
54823 done
54824 done
54825 IFS=$as_save_IFS
54827 test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="no"
54830 XSLTPROC=$ac_cv_prog_XSLTPROC
54831 if test -n "$XSLTPROC"; then
54832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
54833 $as_echo "$XSLTPROC" >&6; }
54834 else
54835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54836 $as_echo "no" >&6; }
54840 # Extract the first word of "xmllint", so it can be a program name with args.
54841 set dummy xmllint; ac_word=$2
54842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54843 $as_echo_n "checking for $ac_word... " >&6; }
54844 if ${ac_cv_prog_XMLLINT+:} false; then :
54845 $as_echo_n "(cached) " >&6
54846 else
54847 if test -n "$XMLLINT"; then
54848 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
54849 else
54850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54851 for as_dir in $PATH
54853 IFS=$as_save_IFS
54854 test -z "$as_dir" && as_dir=.
54855 for ac_exec_ext in '' $ac_executable_extensions; do
54856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54857 ac_cv_prog_XMLLINT="yes"
54858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54859 break 2
54861 done
54862 done
54863 IFS=$as_save_IFS
54865 test -z "$ac_cv_prog_XMLLINT" && ac_cv_prog_XMLLINT="no"
54868 XMLLINT=$ac_cv_prog_XMLLINT
54869 if test -n "$XMLLINT"; then
54870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
54871 $as_echo "$XMLLINT" >&6; }
54872 else
54873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54874 $as_echo "no" >&6; }
54880 glibcxx_docbook_url=http://cdn.docbook.org/release/xsl/current/
54882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local stylesheet directory" >&5
54883 $as_echo_n "checking for local stylesheet directory... " >&6; }
54884 glibcxx_local_stylesheets=no
54885 if test x${XMLCATALOG} = xyes && xsl_style_dir=`xmlcatalog "" $glibcxx_docbook_url 2>/dev/null`
54886 then
54887 XSL_STYLE_DIR=`echo $xsl_style_dir | sed -n 's;^file://;;p'`
54888 glibcxx_local_stylesheets=yes
54889 else
54890 for dir in \
54891 /usr/share/sgml/docbook/xsl-ns-stylesheets \
54892 /usr/share/xml/docbook/stylesheet/docbook-xsl-ns \
54893 /usr/share/xml/docbook/stylesheet/nwalsh5/current \
54894 /usr/share/xml/docbook/stylesheet/nwalsh/current
54896 if test -d $dir; then
54897 glibcxx_local_stylesheets=yes
54898 XSL_STYLE_DIR=$dir
54899 break
54901 done
54903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_local_stylesheets" >&5
54904 $as_echo "$glibcxx_local_stylesheets" >&6; }
54906 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54908 { $as_echo "$as_me:${as_lineno-$LINENO}: $XSL_STYLE_DIR" >&5
54909 $as_echo "$as_me: $XSL_STYLE_DIR" >&6;}
54911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook stylesheets for documentation creation" >&5
54912 $as_echo_n "checking for docbook stylesheets for documentation creation... " >&6; }
54913 glibcxx_stylesheets=no
54914 if test x${XMLCATALOG} = xno || xmlcatalog "" $glibcxx_docbook_url/xhtml/docbook.xsl >/dev/null 2>&1; then
54915 if test x${XSLTPROC} = xyes && echo '<title/>' | xsltproc --noout --nonet --xinclude $glibcxx_docbook_url/xhtml/docbook.xsl - 2>/dev/null; then
54916 glibcxx_stylesheets=yes
54919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_stylesheets" >&5
54920 $as_echo "$glibcxx_stylesheets" >&6; }
54922 else
54923 glibcxx_stylesheets=no
54926 # Check for epub3 dependencies.
54927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epub3 stylesheets for documentation creation" >&5
54928 $as_echo_n "checking for epub3 stylesheets for documentation creation... " >&6; }
54929 glibcxx_epub_stylesheets=no
54930 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54931 if test -f "$XSL_STYLE_DIR/epub3/chunk.xsl"; then
54932 glibcxx_epub_stylesheets=yes
54935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_epub_stylesheets" >&5
54936 $as_echo "$glibcxx_epub_stylesheets" >&6; }
54937 if test x"$glibcxx_epub_stylesheets" = x"yes"; then
54938 BUILD_EPUB_TRUE=
54939 BUILD_EPUB_FALSE='#'
54940 else
54941 BUILD_EPUB_TRUE='#'
54942 BUILD_EPUB_FALSE=
54948 # Check for xml/html dependencies.
54949 if test $ac_cv_prog_DOXYGEN = "yes" &&
54950 test $ac_cv_prog_DOT = "yes" &&
54951 test $ac_cv_prog_XSLTPROC = "yes" &&
54952 test $ac_cv_prog_XMLLINT = "yes" &&
54953 test $glibcxx_stylesheets = "yes"; then
54954 BUILD_XML_TRUE=
54955 BUILD_XML_FALSE='#'
54956 else
54957 BUILD_XML_TRUE='#'
54958 BUILD_XML_FALSE=
54962 if test $ac_cv_prog_DOXYGEN = "yes" &&
54963 test $ac_cv_prog_DOT = "yes" &&
54964 test $ac_cv_prog_XSLTPROC = "yes" &&
54965 test $ac_cv_prog_XMLLINT = "yes" &&
54966 test $glibcxx_stylesheets = "yes"; then
54967 BUILD_HTML_TRUE=
54968 BUILD_HTML_FALSE='#'
54969 else
54970 BUILD_HTML_TRUE='#'
54971 BUILD_HTML_FALSE=
54975 # Check for man dependencies.
54976 if test $ac_cv_prog_DOXYGEN = "yes" &&
54977 test $ac_cv_prog_DOT = "yes"; then
54978 BUILD_MAN_TRUE=
54979 BUILD_MAN_FALSE='#'
54980 else
54981 BUILD_MAN_TRUE='#'
54982 BUILD_MAN_FALSE=
54986 # Check for pdf dependencies.
54987 # Extract the first word of "dblatex", so it can be a program name with args.
54988 set dummy dblatex; ac_word=$2
54989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54990 $as_echo_n "checking for $ac_word... " >&6; }
54991 if ${ac_cv_prog_DBLATEX+:} false; then :
54992 $as_echo_n "(cached) " >&6
54993 else
54994 if test -n "$DBLATEX"; then
54995 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
54996 else
54997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54998 for as_dir in $PATH
55000 IFS=$as_save_IFS
55001 test -z "$as_dir" && as_dir=.
55002 for ac_exec_ext in '' $ac_executable_extensions; do
55003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55004 ac_cv_prog_DBLATEX="yes"
55005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55006 break 2
55008 done
55009 done
55010 IFS=$as_save_IFS
55012 test -z "$ac_cv_prog_DBLATEX" && ac_cv_prog_DBLATEX="no"
55015 DBLATEX=$ac_cv_prog_DBLATEX
55016 if test -n "$DBLATEX"; then
55017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
55018 $as_echo "$DBLATEX" >&6; }
55019 else
55020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55021 $as_echo "no" >&6; }
55025 # Extract the first word of "pdflatex", so it can be a program name with args.
55026 set dummy pdflatex; ac_word=$2
55027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55028 $as_echo_n "checking for $ac_word... " >&6; }
55029 if ${ac_cv_prog_PDFLATEX+:} false; then :
55030 $as_echo_n "(cached) " >&6
55031 else
55032 if test -n "$PDFLATEX"; then
55033 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
55034 else
55035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55036 for as_dir in $PATH
55038 IFS=$as_save_IFS
55039 test -z "$as_dir" && as_dir=.
55040 for ac_exec_ext in '' $ac_executable_extensions; do
55041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55042 ac_cv_prog_PDFLATEX="yes"
55043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55044 break 2
55046 done
55047 done
55048 IFS=$as_save_IFS
55050 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="no"
55053 PDFLATEX=$ac_cv_prog_PDFLATEX
55054 if test -n "$PDFLATEX"; then
55055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
55056 $as_echo "$PDFLATEX" >&6; }
55057 else
55058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55059 $as_echo "no" >&6; }
55063 if test $ac_cv_prog_DOXYGEN = "yes" &&
55064 test $ac_cv_prog_DOT = "yes" &&
55065 test $ac_cv_prog_XSLTPROC = "yes" &&
55066 test $ac_cv_prog_XMLLINT = "yes" &&
55067 test $ac_cv_prog_DBLATEX = "yes" &&
55068 test $ac_cv_prog_PDFLATEX = "yes"; then
55069 BUILD_PDF_TRUE=
55070 BUILD_PDF_FALSE='#'
55071 else
55072 BUILD_PDF_TRUE='#'
55073 BUILD_PDF_FALSE=
55077 case "$build" in
55078 *-*-darwin* ) glibcxx_include_dir_notparallel=yes ;;
55079 * ) glibcxx_include_dir_notparallel=no ;;
55080 esac
55081 if test $glibcxx_include_dir_notparallel = "yes"; then
55082 INCLUDE_DIR_NOTPARALLEL_TRUE=
55083 INCLUDE_DIR_NOTPARALLEL_FALSE='#'
55084 else
55085 INCLUDE_DIR_NOTPARALLEL_TRUE='#'
55086 INCLUDE_DIR_NOTPARALLEL_FALSE=
55090 # Propagate the target-specific source directories through the build chain.
55091 ATOMICITY_SRCDIR=config/${atomicity_dir}
55092 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
55093 ATOMIC_FLAGS=${atomic_flags}
55094 CPU_DEFINES_SRCDIR=config/${cpu_defines_dir}
55095 OS_INC_SRCDIR=config/${os_include_dir}
55096 ERROR_CONSTANTS_SRCDIR=config/${error_constants_dir}
55097 ABI_TWEAKS_SRCDIR=config/${abi_tweaks_dir}
55098 CPU_OPT_EXT_RANDOM=config/${cpu_opt_ext_random}
55099 CPU_OPT_BITS_RANDOM=config/${cpu_opt_bits_random}
55110 # Conditionalize the makefile for this target machine.
55111 tmake_file_=
55112 for f in ${tmake_file}
55114 if test -f ${srcdir}/config/$f
55115 then
55116 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
55118 done
55119 tmake_file="${tmake_file_}"
55122 # Add CET specific flags if Intel CET is enabled.
55123 # Check whether --enable-cet was given.
55124 if test "${enable_cet+set}" = set; then :
55125 enableval=$enable_cet;
55126 case "$enableval" in
55127 yes|no|auto) ;;
55128 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
55129 esac
55131 else
55132 enable_cet=auto
55136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
55137 $as_echo_n "checking for CET support... " >&6; }
55139 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
55140 case "$host" in
55141 i[34567]86-*-linux* | x86_64-*-linux*)
55142 case "$enable_cet" in
55143 auto)
55144 # Check if target supports multi-byte NOPs
55145 # and if compiler and assembler support CET insn.
55146 cet_save_CFLAGS="$CFLAGS"
55147 CFLAGS="$CFLAGS -fcf-protection"
55148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55149 /* end confdefs.h. */
55152 main ()
55155 #if !defined(__SSE2__)
55156 #error target does not support multi-byte NOPs
55157 #else
55158 asm ("setssbsy");
55159 #endif
55162 return 0;
55164 _ACEOF
55165 if ac_fn_c_try_compile "$LINENO"; then :
55166 enable_cet=yes
55167 else
55168 enable_cet=no
55170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55171 CFLAGS="$cet_save_CFLAGS"
55173 yes)
55174 # Check if assembler supports CET.
55175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55176 /* end confdefs.h. */
55179 main ()
55181 asm ("setssbsy");
55183 return 0;
55185 _ACEOF
55186 if ac_fn_c_try_compile "$LINENO"; then :
55188 else
55189 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
55191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55193 esac
55196 enable_cet=no
55198 esac
55199 if test x$enable_cet = xyes; then
55200 CET_FLAGS="-fcf-protection -mshstk"
55201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55202 $as_echo "yes" >&6; }
55203 else
55204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55205 $as_echo "no" >&6; }
55208 EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"
55209 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
55213 # Determine cross-compile flags and AM_CONDITIONALs.
55214 #AC_SUBST(GLIBCXX_IS_NATIVE)
55215 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
55216 if test $is_hosted = yes; then
55217 GLIBCXX_HOSTED_TRUE=
55218 GLIBCXX_HOSTED_FALSE='#'
55219 else
55220 GLIBCXX_HOSTED_TRUE='#'
55221 GLIBCXX_HOSTED_FALSE=
55225 if test $enable_libstdcxx_pch = yes; then
55226 GLIBCXX_BUILD_PCH_TRUE=
55227 GLIBCXX_BUILD_PCH_FALSE='#'
55228 else
55229 GLIBCXX_BUILD_PCH_TRUE='#'
55230 GLIBCXX_BUILD_PCH_FALSE=
55234 if test $enable_float128 = yes; then
55235 ENABLE_FLOAT128_TRUE=
55236 ENABLE_FLOAT128_FALSE='#'
55237 else
55238 ENABLE_FLOAT128_TRUE='#'
55239 ENABLE_FLOAT128_FALSE=
55243 if test $enable_libstdcxx_allocator_flag = new; then
55244 ENABLE_ALLOCATOR_NEW_TRUE=
55245 ENABLE_ALLOCATOR_NEW_FALSE='#'
55246 else
55247 ENABLE_ALLOCATOR_NEW_TRUE='#'
55248 ENABLE_ALLOCATOR_NEW_FALSE=
55252 if test $enable_cheaders = c; then
55253 GLIBCXX_C_HEADERS_C_TRUE=
55254 GLIBCXX_C_HEADERS_C_FALSE='#'
55255 else
55256 GLIBCXX_C_HEADERS_C_TRUE='#'
55257 GLIBCXX_C_HEADERS_C_FALSE=
55261 if test $enable_cheaders = c_std; then
55262 GLIBCXX_C_HEADERS_C_STD_TRUE=
55263 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
55264 else
55265 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
55266 GLIBCXX_C_HEADERS_C_STD_FALSE=
55270 if test $enable_cheaders = c_global; then
55271 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE=
55272 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE='#'
55273 else
55274 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE='#'
55275 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE=
55279 if test $c_compatibility = yes; then
55280 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
55281 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
55282 else
55283 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
55284 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
55288 if test $enable_libstdcxx_debug = yes; then
55289 GLIBCXX_BUILD_DEBUG_TRUE=
55290 GLIBCXX_BUILD_DEBUG_FALSE='#'
55291 else
55292 GLIBCXX_BUILD_DEBUG_TRUE='#'
55293 GLIBCXX_BUILD_DEBUG_FALSE=
55297 if test $enable_extern_template = yes; then
55298 ENABLE_EXTERN_TEMPLATE_TRUE=
55299 ENABLE_EXTERN_TEMPLATE_FALSE='#'
55300 else
55301 ENABLE_EXTERN_TEMPLATE_TRUE='#'
55302 ENABLE_EXTERN_TEMPLATE_FALSE=
55306 if test $python_mod_dir != no; then
55307 ENABLE_PYTHONDIR_TRUE=
55308 ENABLE_PYTHONDIR_FALSE='#'
55309 else
55310 ENABLE_PYTHONDIR_TRUE='#'
55311 ENABLE_PYTHONDIR_FALSE=
55315 if test $enable_werror = yes; then
55316 ENABLE_WERROR_TRUE=
55317 ENABLE_WERROR_FALSE='#'
55318 else
55319 ENABLE_WERROR_TRUE='#'
55320 ENABLE_WERROR_FALSE=
55324 if test $enable_vtable_verify = yes; then
55325 ENABLE_VTABLE_VERIFY_TRUE=
55326 ENABLE_VTABLE_VERIFY_FALSE='#'
55327 else
55328 ENABLE_VTABLE_VERIFY_TRUE='#'
55329 ENABLE_VTABLE_VERIFY_FALSE=
55333 if test $enable_symvers != no; then
55334 ENABLE_SYMVERS_TRUE=
55335 ENABLE_SYMVERS_FALSE='#'
55336 else
55337 ENABLE_SYMVERS_TRUE='#'
55338 ENABLE_SYMVERS_FALSE=
55342 if test $enable_symvers = gnu; then
55343 ENABLE_SYMVERS_GNU_TRUE=
55344 ENABLE_SYMVERS_GNU_FALSE='#'
55345 else
55346 ENABLE_SYMVERS_GNU_TRUE='#'
55347 ENABLE_SYMVERS_GNU_FALSE=
55351 if test $enable_symvers = gnu-versioned-namespace; then
55352 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE=
55353 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE='#'
55354 else
55355 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE='#'
55356 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE=
55360 if test $enable_symvers = darwin; then
55361 ENABLE_SYMVERS_DARWIN_TRUE=
55362 ENABLE_SYMVERS_DARWIN_FALSE='#'
55363 else
55364 ENABLE_SYMVERS_DARWIN_TRUE='#'
55365 ENABLE_SYMVERS_DARWIN_FALSE=
55369 if test $enable_symvers = sun; then
55370 ENABLE_SYMVERS_SUN_TRUE=
55371 ENABLE_SYMVERS_SUN_FALSE='#'
55372 else
55373 ENABLE_SYMVERS_SUN_TRUE='#'
55374 ENABLE_SYMVERS_SUN_FALSE=
55378 if test $enable_libstdcxx_visibility = yes; then
55379 ENABLE_VISIBILITY_TRUE=
55380 ENABLE_VISIBILITY_FALSE='#'
55381 else
55382 ENABLE_VISIBILITY_TRUE='#'
55383 ENABLE_VISIBILITY_FALSE=
55387 if test $enable_libstdcxx_dual_abi = yes; then
55388 ENABLE_DUAL_ABI_TRUE=
55389 ENABLE_DUAL_ABI_FALSE='#'
55390 else
55391 ENABLE_DUAL_ABI_TRUE='#'
55392 ENABLE_DUAL_ABI_FALSE=
55396 if test $glibcxx_cxx11_abi = 1; then
55397 ENABLE_CXX11_ABI_TRUE=
55398 ENABLE_CXX11_ABI_FALSE='#'
55399 else
55400 ENABLE_CXX11_ABI_TRUE='#'
55401 ENABLE_CXX11_ABI_FALSE=
55405 if test $ac_ldbl_compat = yes; then
55406 GLIBCXX_LDBL_COMPAT_TRUE=
55407 GLIBCXX_LDBL_COMPAT_FALSE='#'
55408 else
55409 GLIBCXX_LDBL_COMPAT_TRUE='#'
55410 GLIBCXX_LDBL_COMPAT_FALSE=
55414 if test $ac_ldbl_alt128_compat = yes; then
55415 GLIBCXX_LDBL_ALT128_COMPAT_TRUE=
55416 GLIBCXX_LDBL_ALT128_COMPAT_FALSE='#'
55417 else
55418 GLIBCXX_LDBL_ALT128_COMPAT_TRUE='#'
55419 GLIBCXX_LDBL_ALT128_COMPAT_FALSE=
55423 if test $enable_libstdcxx_filesystem_ts = yes; then
55424 ENABLE_FILESYSTEM_TS_TRUE=
55425 ENABLE_FILESYSTEM_TS_FALSE='#'
55426 else
55427 ENABLE_FILESYSTEM_TS_TRUE='#'
55428 ENABLE_FILESYSTEM_TS_FALSE=
55432 if test "$enable_libstdcxx_backtrace" = yes; then
55433 ENABLE_BACKTRACE_TRUE=
55434 ENABLE_BACKTRACE_FALSE='#'
55435 else
55436 ENABLE_BACKTRACE_TRUE='#'
55437 ENABLE_BACKTRACE_FALSE=
55441 if test "${embed_zoneinfo}" = yes; then
55442 USE_STATIC_TZDATA_TRUE=
55443 USE_STATIC_TZDATA_FALSE='#'
55444 else
55445 USE_STATIC_TZDATA_TRUE='#'
55446 USE_STATIC_TZDATA_FALSE=
55452 cat >confcache <<\_ACEOF
55453 # This file is a shell script that caches the results of configure
55454 # tests run on this system so they can be shared between configure
55455 # scripts and configure runs, see configure's option --config-cache.
55456 # It is not useful on other systems. If it contains results you don't
55457 # want to keep, you may remove or edit it.
55459 # config.status only pays attention to the cache file if you give it
55460 # the --recheck option to rerun configure.
55462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55464 # following values.
55466 _ACEOF
55468 # The following way of writing the cache mishandles newlines in values,
55469 # but we know of no workaround that is simple, portable, and efficient.
55470 # So, we kill variables containing newlines.
55471 # Ultrix sh set writes to stderr and can't be redirected directly,
55472 # and sets the high bit in the cache file unless we assign to the vars.
55474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55475 eval ac_val=\$$ac_var
55476 case $ac_val in #(
55477 *${as_nl}*)
55478 case $ac_var in #(
55479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55481 esac
55482 case $ac_var in #(
55483 _ | IFS | as_nl) ;; #(
55484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55485 *) { eval $ac_var=; unset $ac_var;} ;;
55486 esac ;;
55487 esac
55488 done
55490 (set) 2>&1 |
55491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55492 *${as_nl}ac_space=\ *)
55493 # `set' does not quote correctly, so add quotes: double-quote
55494 # substitution turns \\\\ into \\, and sed turns \\ into \.
55495 sed -n \
55496 "s/'/'\\\\''/g;
55497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55498 ;; #(
55500 # `set' quotes correctly as required by POSIX, so do not add quotes.
55501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55503 esac |
55504 sort
55506 sed '
55507 /^ac_cv_env_/b end
55508 t clear
55509 :clear
55510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55511 t end
55512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55513 :end' >>confcache
55514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55515 if test -w "$cache_file"; then
55516 if test "x$cache_file" != "x/dev/null"; then
55517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55518 $as_echo "$as_me: updating cache $cache_file" >&6;}
55519 if test ! -f "$cache_file" || test -h "$cache_file"; then
55520 cat confcache >"$cache_file"
55521 else
55522 case $cache_file in #(
55523 */* | ?:*)
55524 mv -f confcache "$cache_file"$$ &&
55525 mv -f "$cache_file"$$ "$cache_file" ;; #(
55527 mv -f confcache "$cache_file" ;;
55528 esac
55531 else
55532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55536 rm -f confcache
55538 if test ${multilib} = yes; then
55539 multilib_arg="--enable-multilib"
55540 else
55541 multilib_arg=
55544 # Export all the install information.
55546 glibcxx_toolexecdir=no
55547 glibcxx_toolexeclibdir=no
55548 glibcxx_prefixdir=$prefix
55550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gxx-include-dir" >&5
55551 $as_echo_n "checking for gxx-include-dir... " >&6; }
55553 # Check whether --with-gxx-include-dir was given.
55554 if test "${with_gxx_include_dir+set}" = set; then :
55555 withval=$with_gxx_include_dir; case "$withval" in
55556 yes) as_fn_error $? "Missing directory for --with-gxx-include-dir" "$LINENO" 5 ;;
55557 no) gxx_include_dir=no ;;
55558 *) gxx_include_dir=$withval ;;
55559 esac
55560 else
55561 gxx_include_dir=no
55564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55565 $as_echo "$gxx_include_dir" >&6; }
55567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
55568 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
55569 # Check whether --enable-version-specific-runtime-libs was given.
55570 if test "${enable_version_specific_runtime_libs+set}" = set; then :
55571 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
55572 yes) version_specific_libs=yes ;;
55573 no) version_specific_libs=no ;;
55574 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
55575 esac
55576 else
55577 version_specific_libs=no
55580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
55581 $as_echo "$version_specific_libs" >&6; }
55584 # Check whether --with-toolexeclibdir was given.
55585 if test "${with_toolexeclibdir+set}" = set; then :
55586 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
55590 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
55592 esac
55593 else
55594 with_toolexeclibdir=no
55599 # Default case for install directory for include files.
55600 if test $version_specific_libs = no && test $gxx_include_dir = no; then
55601 gxx_include_dir='include/c++/${gcc_version}'
55602 if test -n "$with_cross_host" &&
55603 test x"$with_cross_host" != x"no"; then
55604 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
55605 else
55606 gxx_include_dir='${prefix}/'"$gxx_include_dir"
55610 # Version-specific runtime libs processing.
55611 if test $version_specific_libs = yes; then
55612 # Need the gcc compiler version to know where to install libraries
55613 # and header files if --enable-version-specific-runtime-libs option
55614 # is selected. FIXME: these variables are misnamed, there are
55615 # no executables installed in _toolexecdir or _toolexeclibdir.
55616 if test x"$gxx_include_dir" = x"no"; then
55617 gxx_include_dir='${libdir}/gcc/${host_alias}/${gcc_version}/include/c++'
55619 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55620 glibcxx_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
55623 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
55624 # Install a library built with a cross compiler in tooldir, not libdir.
55625 if test x"$glibcxx_toolexecdir" = x"no"; then
55626 if test -n "$with_cross_host" &&
55627 test x"$with_cross_host" != x"no"; then
55628 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
55629 case ${with_toolexeclibdir} in
55631 glibcxx_toolexeclibdir='${toolexecdir}/lib'
55634 glibcxx_toolexeclibdir=${with_toolexeclibdir}
55636 esac
55637 else
55638 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55639 glibcxx_toolexeclibdir='${libdir}'
55641 multi_os_directory=`$CXX -print-multi-os-directory`
55642 case $multi_os_directory in
55643 .) ;; # Avoid trailing /.
55644 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
55645 esac
55648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install location" >&5
55649 $as_echo_n "checking for install location... " >&6; }
55650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55651 $as_echo "$gxx_include_dir" >&6; }
55659 # Export all the include and flag information to Makefiles.
55661 # Used for every C++ compile we perform.
55662 GLIBCXX_INCLUDES="\
55663 -I$glibcxx_builddir/include/$host_alias \
55664 -I$glibcxx_builddir/include \
55665 -I$glibcxx_srcdir/libsupc++"
55667 # For Canadian crosses, pick this up too.
55668 if test $CANADIAN = yes; then
55669 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
55672 # Stuff in the actual top level. Currently only used by libsupc++ to
55673 # get unwind* headers from the libgcc dir.
55674 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc -I$(toplevel_srcdir)/include'
55675 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc'
55677 # Now, export this to all the little Makefiles....
55684 # Optimization flags that are probably a good idea for thrill-seekers. Just
55685 # uncomment the lines below and make, everything else is ready to go...
55686 # Alternatively OPTIMIZE_CXXFLAGS can be set in configure.host.
55687 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
55690 WARN_FLAGS="-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2"
55694 # Determine what GCC version number to use in filesystem paths.
55696 get_gcc_base_ver="cat"
55698 # Check whether --with-gcc-major-version-only was given.
55699 if test "${with_gcc_major_version_only+set}" = set; then :
55700 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
55701 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
55709 ac_config_files="$ac_config_files Makefile"
55711 ac_config_files="$ac_config_files scripts/testsuite_flags"
55713 ac_config_files="$ac_config_files scripts/extract_symvers"
55715 ac_config_files="$ac_config_files doc/xsl/customization.xsl"
55717 ac_config_files="$ac_config_files src/libbacktrace/backtrace-supported.h"
55720 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
55721 # that multilib installs will end up installed in the correct place.
55722 # The testsuite needs it for multilib-aware ABI baseline files.
55723 # To work around this not being passed down from config-ml.in ->
55724 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
55725 # append it here. Only modify Makefiles that have just been created.
55727 # Also, get rid of this simulated-VPATH thing that automake does.
55728 ac_config_files="$ac_config_files include/Makefile libsupc++/Makefile src/Makefile src/c++98/Makefile src/c++11/Makefile src/c++17/Makefile src/c++20/Makefile src/c++23/Makefile src/c++26/Makefile src/filesystem/Makefile src/libbacktrace/Makefile src/experimental/Makefile doc/Makefile po/Makefile testsuite/Makefile python/Makefile"
55731 ac_config_commands="$ac_config_commands generate-headers"
55734 cat >confcache <<\_ACEOF
55735 # This file is a shell script that caches the results of configure
55736 # tests run on this system so they can be shared between configure
55737 # scripts and configure runs, see configure's option --config-cache.
55738 # It is not useful on other systems. If it contains results you don't
55739 # want to keep, you may remove or edit it.
55741 # config.status only pays attention to the cache file if you give it
55742 # the --recheck option to rerun configure.
55744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55746 # following values.
55748 _ACEOF
55750 # The following way of writing the cache mishandles newlines in values,
55751 # but we know of no workaround that is simple, portable, and efficient.
55752 # So, we kill variables containing newlines.
55753 # Ultrix sh set writes to stderr and can't be redirected directly,
55754 # and sets the high bit in the cache file unless we assign to the vars.
55756 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55757 eval ac_val=\$$ac_var
55758 case $ac_val in #(
55759 *${as_nl}*)
55760 case $ac_var in #(
55761 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55762 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55763 esac
55764 case $ac_var in #(
55765 _ | IFS | as_nl) ;; #(
55766 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55767 *) { eval $ac_var=; unset $ac_var;} ;;
55768 esac ;;
55769 esac
55770 done
55772 (set) 2>&1 |
55773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55774 *${as_nl}ac_space=\ *)
55775 # `set' does not quote correctly, so add quotes: double-quote
55776 # substitution turns \\\\ into \\, and sed turns \\ into \.
55777 sed -n \
55778 "s/'/'\\\\''/g;
55779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55780 ;; #(
55782 # `set' quotes correctly as required by POSIX, so do not add quotes.
55783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55785 esac |
55786 sort
55788 sed '
55789 /^ac_cv_env_/b end
55790 t clear
55791 :clear
55792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55793 t end
55794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55795 :end' >>confcache
55796 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55797 if test -w "$cache_file"; then
55798 if test "x$cache_file" != "x/dev/null"; then
55799 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55800 $as_echo "$as_me: updating cache $cache_file" >&6;}
55801 if test ! -f "$cache_file" || test -h "$cache_file"; then
55802 cat confcache >"$cache_file"
55803 else
55804 case $cache_file in #(
55805 */* | ?:*)
55806 mv -f confcache "$cache_file"$$ &&
55807 mv -f "$cache_file"$$ "$cache_file" ;; #(
55809 mv -f confcache "$cache_file" ;;
55810 esac
55813 else
55814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55818 rm -f confcache
55820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55821 # Let make expand exec_prefix.
55822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55824 DEFS=-DHAVE_CONFIG_H
55826 ac_libobjs=
55827 ac_ltlibobjs=
55829 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55830 # 1. Remove the extension, and $U if already installed.
55831 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55832 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55833 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
55834 # will be set to the directory where LIBOBJS objects are built.
55835 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55836 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
55837 done
55838 LIBOBJS=$ac_libobjs
55840 LTLIBOBJS=$ac_ltlibobjs
55843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
55844 $as_echo_n "checking that generated files are newer than configure... " >&6; }
55845 if test -n "$am_sleep_pid"; then
55846 # Hide warnings about reused PIDs.
55847 wait $am_sleep_pid 2>/dev/null
55849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
55850 $as_echo "done" >&6; }
55851 if test -n "$EXEEXT"; then
55852 am__EXEEXT_TRUE=
55853 am__EXEEXT_FALSE='#'
55854 else
55855 am__EXEEXT_TRUE='#'
55856 am__EXEEXT_FALSE=
55859 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
55860 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
55861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55863 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
55864 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
55865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55867 if test -z "${OS_IS_DARWIN_TRUE}" && test -z "${OS_IS_DARWIN_FALSE}"; then
55868 as_fn_error $? "conditional \"OS_IS_DARWIN\" was never defined.
55869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55871 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
55872 as_fn_error $? "conditional \"GLIBCXX_HOSTED\" was never defined.
55873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55875 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
55876 as_fn_error $? "conditional \"GLIBCXX_BUILD_PCH\" was never defined.
55877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55879 if test -z "${ENABLE_FLOAT128_TRUE}" && test -z "${ENABLE_FLOAT128_FALSE}"; then
55880 as_fn_error $? "conditional \"ENABLE_FLOAT128\" was never defined.
55881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55883 if test -z "${ENABLE_ALLOCATOR_NEW_TRUE}" && test -z "${ENABLE_ALLOCATOR_NEW_FALSE}"; then
55884 as_fn_error $? "conditional \"ENABLE_ALLOCATOR_NEW\" was never defined.
55885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55887 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
55888 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
55889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55891 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
55892 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
55893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55895 if test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_FALSE}"; then
55896 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_GLOBAL\" was never defined.
55897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55899 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
55900 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
55901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55903 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
55904 as_fn_error $? "conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
55905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55907 if test -z "${ENABLE_EXTERN_TEMPLATE_TRUE}" && test -z "${ENABLE_EXTERN_TEMPLATE_FALSE}"; then
55908 as_fn_error $? "conditional \"ENABLE_EXTERN_TEMPLATE\" was never defined.
55909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55911 if test -z "${ENABLE_PYTHONDIR_TRUE}" && test -z "${ENABLE_PYTHONDIR_FALSE}"; then
55912 as_fn_error $? "conditional \"ENABLE_PYTHONDIR\" was never defined.
55913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55915 if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then
55916 as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined.
55917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55919 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
55920 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
55921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55923 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
55924 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
55925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55927 if test -z "${ENABLE_SYMVERS_TRUE}" && test -z "${ENABLE_SYMVERS_FALSE}"; then
55928 as_fn_error $? "conditional \"ENABLE_SYMVERS\" was never defined.
55929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55931 if test -z "${ENABLE_SYMVERS_GNU_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_FALSE}"; then
55932 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU\" was never defined.
55933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55935 if test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_FALSE}"; then
55936 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU_NAMESPACE\" was never defined.
55937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55939 if test -z "${ENABLE_SYMVERS_DARWIN_TRUE}" && test -z "${ENABLE_SYMVERS_DARWIN_FALSE}"; then
55940 as_fn_error $? "conditional \"ENABLE_SYMVERS_DARWIN\" was never defined.
55941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55943 if test -z "${ENABLE_SYMVERS_SUN_TRUE}" && test -z "${ENABLE_SYMVERS_SUN_FALSE}"; then
55944 as_fn_error $? "conditional \"ENABLE_SYMVERS_SUN\" was never defined.
55945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55947 if test -z "${ENABLE_VISIBILITY_TRUE}" && test -z "${ENABLE_VISIBILITY_FALSE}"; then
55948 as_fn_error $? "conditional \"ENABLE_VISIBILITY\" was never defined.
55949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55951 if test -z "${ENABLE_DUAL_ABI_TRUE}" && test -z "${ENABLE_DUAL_ABI_FALSE}"; then
55952 as_fn_error $? "conditional \"ENABLE_DUAL_ABI\" was never defined.
55953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55955 if test -z "${ENABLE_CXX11_ABI_TRUE}" && test -z "${ENABLE_CXX11_ABI_FALSE}"; then
55956 as_fn_error $? "conditional \"ENABLE_CXX11_ABI\" was never defined.
55957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55959 if test -z "${GLIBCXX_LDBL_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_COMPAT_FALSE}"; then
55960 as_fn_error $? "conditional \"GLIBCXX_LDBL_COMPAT\" was never defined.
55961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55963 if test -z "${GLIBCXX_LDBL_ALT128_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_ALT128_COMPAT_FALSE}"; then
55964 as_fn_error $? "conditional \"GLIBCXX_LDBL_ALT128_COMPAT\" was never defined.
55965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55967 if test -z "${ENABLE_FILESYSTEM_TS_TRUE}" && test -z "${ENABLE_FILESYSTEM_TS_FALSE}"; then
55968 as_fn_error $? "conditional \"ENABLE_FILESYSTEM_TS\" was never defined.
55969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55971 if test -z "${ENABLE_BACKTRACE_TRUE}" && test -z "${ENABLE_BACKTRACE_FALSE}"; then
55972 as_fn_error $? "conditional \"ENABLE_BACKTRACE\" was never defined.
55973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55975 if test -z "${USE_STATIC_TZDATA_TRUE}" && test -z "${USE_STATIC_TZDATA_FALSE}"; then
55976 as_fn_error $? "conditional \"USE_STATIC_TZDATA\" was never defined.
55977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55979 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
55980 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
55981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55983 if test -z "${BUILD_EPUB_TRUE}" && test -z "${BUILD_EPUB_FALSE}"; then
55984 as_fn_error $? "conditional \"BUILD_EPUB\" was never defined.
55985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55987 if test -z "${BUILD_XML_TRUE}" && test -z "${BUILD_XML_FALSE}"; then
55988 as_fn_error $? "conditional \"BUILD_XML\" was never defined.
55989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55991 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
55992 as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
55993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55995 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
55996 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
55997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55999 if test -z "${BUILD_PDF_TRUE}" && test -z "${BUILD_PDF_FALSE}"; then
56000 as_fn_error $? "conditional \"BUILD_PDF\" was never defined.
56001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56003 if test -z "${INCLUDE_DIR_NOTPARALLEL_TRUE}" && test -z "${INCLUDE_DIR_NOTPARALLEL_FALSE}"; then
56004 as_fn_error $? "conditional \"INCLUDE_DIR_NOTPARALLEL\" was never defined.
56005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56008 : "${CONFIG_STATUS=./config.status}"
56009 ac_write_fail=0
56010 ac_clean_files_save=$ac_clean_files
56011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
56013 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
56014 as_write_fail=0
56015 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
56016 #! $SHELL
56017 # Generated by $as_me.
56018 # Run this file to recreate the current configuration.
56019 # Compiler output produced by configure, useful for debugging
56020 # configure, is in config.log if it exists.
56022 debug=false
56023 ac_cs_recheck=false
56024 ac_cs_silent=false
56026 SHELL=\${CONFIG_SHELL-$SHELL}
56027 export SHELL
56028 _ASEOF
56029 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
56030 ## -------------------- ##
56031 ## M4sh Initialization. ##
56032 ## -------------------- ##
56034 # Be more Bourne compatible
56035 DUALCASE=1; export DUALCASE # for MKS sh
56036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
56037 emulate sh
56038 NULLCMD=:
56039 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56040 # is contrary to our usage. Disable this feature.
56041 alias -g '${1+"$@"}'='"$@"'
56042 setopt NO_GLOB_SUBST
56043 else
56044 case `(set -o) 2>/dev/null` in #(
56045 *posix*) :
56046 set -o posix ;; #(
56047 *) :
56049 esac
56053 as_nl='
56055 export as_nl
56056 # Printing a long string crashes Solaris 7 /usr/bin/printf.
56057 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56060 # Prefer a ksh shell builtin over an external printf program on Solaris,
56061 # but without wasting forks for bash or zsh.
56062 if test -z "$BASH_VERSION$ZSH_VERSION" \
56063 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
56064 as_echo='print -r --'
56065 as_echo_n='print -rn --'
56066 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56067 as_echo='printf %s\n'
56068 as_echo_n='printf %s'
56069 else
56070 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56071 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56072 as_echo_n='/usr/ucb/echo -n'
56073 else
56074 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56075 as_echo_n_body='eval
56076 arg=$1;
56077 case $arg in #(
56078 *"$as_nl"*)
56079 expr "X$arg" : "X\\(.*\\)$as_nl";
56080 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56081 esac;
56082 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56084 export as_echo_n_body
56085 as_echo_n='sh -c $as_echo_n_body as_echo'
56087 export as_echo_body
56088 as_echo='sh -c $as_echo_body as_echo'
56091 # The user is always right.
56092 if test "${PATH_SEPARATOR+set}" != set; then
56093 PATH_SEPARATOR=:
56094 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56095 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56096 PATH_SEPARATOR=';'
56101 # IFS
56102 # We need space, tab and new line, in precisely that order. Quoting is
56103 # there to prevent editors from complaining about space-tab.
56104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56105 # splitting by setting IFS to empty value.)
56106 IFS=" "" $as_nl"
56108 # Find who we are. Look in the path if we contain no directory separator.
56109 as_myself=
56110 case $0 in #((
56111 *[\\/]* ) as_myself=$0 ;;
56112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56113 for as_dir in $PATH
56115 IFS=$as_save_IFS
56116 test -z "$as_dir" && as_dir=.
56117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56118 done
56119 IFS=$as_save_IFS
56122 esac
56123 # We did not find ourselves, most probably we were run as `sh COMMAND'
56124 # in which case we are not to be found in the path.
56125 if test "x$as_myself" = x; then
56126 as_myself=$0
56128 if test ! -f "$as_myself"; then
56129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56130 exit 1
56133 # Unset variables that we do not need and which cause bugs (e.g. in
56134 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
56135 # suppresses any "Segmentation fault" message there. '((' could
56136 # trigger a bug in pdksh 5.2.14.
56137 for as_var in BASH_ENV ENV MAIL MAILPATH
56138 do eval test x\${$as_var+set} = xset \
56139 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
56140 done
56141 PS1='$ '
56142 PS2='> '
56143 PS4='+ '
56145 # NLS nuisances.
56146 LC_ALL=C
56147 export LC_ALL
56148 LANGUAGE=C
56149 export LANGUAGE
56151 # CDPATH.
56152 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56155 # as_fn_error STATUS ERROR [LINENO LOG_FD]
56156 # ----------------------------------------
56157 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
56158 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
56159 # script with STATUS, using 1 if that was 0.
56160 as_fn_error ()
56162 as_status=$1; test $as_status -eq 0 && as_status=1
56163 if test "$4"; then
56164 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
56165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
56167 $as_echo "$as_me: error: $2" >&2
56168 as_fn_exit $as_status
56169 } # as_fn_error
56172 # as_fn_set_status STATUS
56173 # -----------------------
56174 # Set $? to STATUS, without forking.
56175 as_fn_set_status ()
56177 return $1
56178 } # as_fn_set_status
56180 # as_fn_exit STATUS
56181 # -----------------
56182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
56183 as_fn_exit ()
56185 set +e
56186 as_fn_set_status $1
56187 exit $1
56188 } # as_fn_exit
56190 # as_fn_unset VAR
56191 # ---------------
56192 # Portably unset VAR.
56193 as_fn_unset ()
56195 { eval $1=; unset $1;}
56197 as_unset=as_fn_unset
56198 # as_fn_append VAR VALUE
56199 # ----------------------
56200 # Append the text in VALUE to the end of the definition contained in VAR. Take
56201 # advantage of any shell optimizations that allow amortized linear growth over
56202 # repeated appends, instead of the typical quadratic growth present in naive
56203 # implementations.
56204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
56205 eval 'as_fn_append ()
56207 eval $1+=\$2
56209 else
56210 as_fn_append ()
56212 eval $1=\$$1\$2
56214 fi # as_fn_append
56216 # as_fn_arith ARG...
56217 # ------------------
56218 # Perform arithmetic evaluation on the ARGs, and store the result in the
56219 # global $as_val. Take advantage of shells that can avoid forks. The arguments
56220 # must be portable across $(()) and expr.
56221 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
56222 eval 'as_fn_arith ()
56224 as_val=$(( $* ))
56226 else
56227 as_fn_arith ()
56229 as_val=`expr "$@" || test $? -eq 1`
56231 fi # as_fn_arith
56234 if expr a : '\(a\)' >/dev/null 2>&1 &&
56235 test "X`expr 00001 : '.*\(...\)'`" = X001; then
56236 as_expr=expr
56237 else
56238 as_expr=false
56241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56242 as_basename=basename
56243 else
56244 as_basename=false
56247 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56248 as_dirname=dirname
56249 else
56250 as_dirname=false
56253 as_me=`$as_basename -- "$0" ||
56254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56255 X"$0" : 'X\(//\)$' \| \
56256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56257 $as_echo X/"$0" |
56258 sed '/^.*\/\([^/][^/]*\)\/*$/{
56259 s//\1/
56262 /^X\/\(\/\/\)$/{
56263 s//\1/
56266 /^X\/\(\/\).*/{
56267 s//\1/
56270 s/.*/./; q'`
56272 # Avoid depending upon Character Ranges.
56273 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56276 as_cr_digits='0123456789'
56277 as_cr_alnum=$as_cr_Letters$as_cr_digits
56279 ECHO_C= ECHO_N= ECHO_T=
56280 case `echo -n x` in #(((((
56281 -n*)
56282 case `echo 'xy\c'` in
56283 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56284 xy) ECHO_C='\c';;
56285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
56286 ECHO_T=' ';;
56287 esac;;
56289 ECHO_N='-n';;
56290 esac
56292 rm -f conf$$ conf$$.exe conf$$.file
56293 if test -d conf$$.dir; then
56294 rm -f conf$$.dir/conf$$.file
56295 else
56296 rm -f conf$$.dir
56297 mkdir conf$$.dir 2>/dev/null
56299 if (echo >conf$$.file) 2>/dev/null; then
56300 if ln -s conf$$.file conf$$ 2>/dev/null; then
56301 as_ln_s='ln -s'
56302 # ... but there are two gotchas:
56303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56305 # In both cases, we have to default to `cp -pR'.
56306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56307 as_ln_s='cp -pR'
56308 elif ln conf$$.file conf$$ 2>/dev/null; then
56309 as_ln_s=ln
56310 else
56311 as_ln_s='cp -pR'
56313 else
56314 as_ln_s='cp -pR'
56316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56317 rmdir conf$$.dir 2>/dev/null
56320 # as_fn_mkdir_p
56321 # -------------
56322 # Create "$as_dir" as a directory, including parents if necessary.
56323 as_fn_mkdir_p ()
56326 case $as_dir in #(
56327 -*) as_dir=./$as_dir;;
56328 esac
56329 test -d "$as_dir" || eval $as_mkdir_p || {
56330 as_dirs=
56331 while :; do
56332 case $as_dir in #(
56333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
56334 *) as_qdir=$as_dir;;
56335 esac
56336 as_dirs="'$as_qdir' $as_dirs"
56337 as_dir=`$as_dirname -- "$as_dir" ||
56338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56339 X"$as_dir" : 'X\(//\)[^/]' \| \
56340 X"$as_dir" : 'X\(//\)$' \| \
56341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56342 $as_echo X"$as_dir" |
56343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56344 s//\1/
56347 /^X\(\/\/\)[^/].*/{
56348 s//\1/
56351 /^X\(\/\/\)$/{
56352 s//\1/
56355 /^X\(\/\).*/{
56356 s//\1/
56359 s/.*/./; q'`
56360 test -d "$as_dir" && break
56361 done
56362 test -z "$as_dirs" || eval "mkdir $as_dirs"
56363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
56366 } # as_fn_mkdir_p
56367 if mkdir -p . 2>/dev/null; then
56368 as_mkdir_p='mkdir -p "$as_dir"'
56369 else
56370 test -d ./-p && rmdir ./-p
56371 as_mkdir_p=false
56375 # as_fn_executable_p FILE
56376 # -----------------------
56377 # Test if FILE is an executable regular file.
56378 as_fn_executable_p ()
56380 test -f "$1" && test -x "$1"
56381 } # as_fn_executable_p
56382 as_test_x='test -x'
56383 as_executable_p=as_fn_executable_p
56385 # Sed expression to map a string onto a valid CPP name.
56386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56388 # Sed expression to map a string onto a valid variable name.
56389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56392 exec 6>&1
56393 ## ----------------------------------- ##
56394 ## Main body of $CONFIG_STATUS script. ##
56395 ## ----------------------------------- ##
56396 _ASEOF
56397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
56399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56400 # Save the log message, to keep $0 and so on meaningful, and to
56401 # report actual input values of CONFIG_FILES etc. instead of their
56402 # values after options handling.
56403 ac_log="
56404 This file was extended by package-unused $as_me version-unused, which was
56405 generated by GNU Autoconf 2.69. Invocation command line was
56407 CONFIG_FILES = $CONFIG_FILES
56408 CONFIG_HEADERS = $CONFIG_HEADERS
56409 CONFIG_LINKS = $CONFIG_LINKS
56410 CONFIG_COMMANDS = $CONFIG_COMMANDS
56411 $ $0 $@
56413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56416 _ACEOF
56418 case $ac_config_files in *"
56419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
56420 esac
56422 case $ac_config_headers in *"
56423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
56424 esac
56427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56428 # Files that config.status was made for.
56429 config_files="$ac_config_files"
56430 config_headers="$ac_config_headers"
56431 config_commands="$ac_config_commands"
56433 _ACEOF
56435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56436 ac_cs_usage="\
56437 \`$as_me' instantiates files and other configuration actions
56438 from templates according to the current configuration. Unless the files
56439 and actions are specified as TAGs, all are instantiated by default.
56441 Usage: $0 [OPTION]... [TAG]...
56443 -h, --help print this help, then exit
56444 -V, --version print version number and configuration settings, then exit
56445 --config print configuration, then exit
56446 -q, --quiet, --silent
56447 do not print progress messages
56448 -d, --debug don't remove temporary files
56449 --recheck update $as_me by reconfiguring in the same conditions
56450 --file=FILE[:TEMPLATE]
56451 instantiate the configuration file FILE
56452 --header=FILE[:TEMPLATE]
56453 instantiate the configuration header FILE
56455 Configuration files:
56456 $config_files
56458 Configuration headers:
56459 $config_headers
56461 Configuration commands:
56462 $config_commands
56464 Report bugs to the package provider."
56466 _ACEOF
56467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
56469 ac_cs_version="\\
56470 package-unused config.status version-unused
56471 configured by $0, generated by GNU Autoconf 2.69,
56472 with options \\"\$ac_cs_config\\"
56474 Copyright (C) 2012 Free Software Foundation, Inc.
56475 This config.status script is free software; the Free Software Foundation
56476 gives unlimited permission to copy, distribute and modify it."
56478 ac_pwd='$ac_pwd'
56479 srcdir='$srcdir'
56480 INSTALL='$INSTALL'
56481 MKDIR_P='$MKDIR_P'
56482 AWK='$AWK'
56483 test -n "\$AWK" || AWK=awk
56484 _ACEOF
56486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56487 # The default lists apply if the user does not specify any file.
56488 ac_need_defaults=:
56489 while test $# != 0
56491 case $1 in
56492 --*=?*)
56493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56495 ac_shift=:
56497 --*=)
56498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56499 ac_optarg=
56500 ac_shift=:
56503 ac_option=$1
56504 ac_optarg=$2
56505 ac_shift=shift
56507 esac
56509 case $ac_option in
56510 # Handling of the options.
56511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56512 ac_cs_recheck=: ;;
56513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56514 $as_echo "$ac_cs_version"; exit ;;
56515 --config | --confi | --conf | --con | --co | --c )
56516 $as_echo "$ac_cs_config"; exit ;;
56517 --debug | --debu | --deb | --de | --d | -d )
56518 debug=: ;;
56519 --file | --fil | --fi | --f )
56520 $ac_shift
56521 case $ac_optarg in
56522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56523 '') as_fn_error $? "missing file argument" ;;
56524 esac
56525 as_fn_append CONFIG_FILES " '$ac_optarg'"
56526 ac_need_defaults=false;;
56527 --header | --heade | --head | --hea )
56528 $ac_shift
56529 case $ac_optarg in
56530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56531 esac
56532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
56533 ac_need_defaults=false;;
56534 --he | --h)
56535 # Conflict between --help and --header
56536 as_fn_error $? "ambiguous option: \`$1'
56537 Try \`$0 --help' for more information.";;
56538 --help | --hel | -h )
56539 $as_echo "$ac_cs_usage"; exit ;;
56540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
56542 ac_cs_silent=: ;;
56544 # This is an error.
56545 -*) as_fn_error $? "unrecognized option: \`$1'
56546 Try \`$0 --help' for more information." ;;
56548 *) as_fn_append ac_config_targets " $1"
56549 ac_need_defaults=false ;;
56551 esac
56552 shift
56553 done
56555 ac_configure_extra_args=
56557 if $ac_cs_silent; then
56558 exec 6>/dev/null
56559 ac_configure_extra_args="$ac_configure_extra_args --silent"
56562 _ACEOF
56563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56564 if \$ac_cs_recheck; then
56565 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56566 shift
56567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
56568 CONFIG_SHELL='$SHELL'
56569 export CONFIG_SHELL
56570 exec "\$@"
56573 _ACEOF
56574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56575 exec 5>>config.log
56577 echo
56578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56579 ## Running $as_me. ##
56580 _ASBOX
56581 $as_echo "$ac_log"
56582 } >&5
56584 _ACEOF
56585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56587 # INIT-COMMANDS
56590 srcdir="$srcdir"
56591 host="$host"
56592 target="$target"
56593 with_multisubdir="$with_multisubdir"
56594 with_multisrctop="$with_multisrctop"
56595 with_target_subdir="$with_target_subdir"
56596 ac_configure_args="${multilib_arg} ${ac_configure_args}"
56597 multi_basedir="$multi_basedir"
56598 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
56599 CC="$CC"
56600 CXX="$CXX"
56601 GFORTRAN="$GFORTRAN"
56602 GDC="$GDC"
56605 # The HP-UX ksh and POSIX shell print the target directory to stdout
56606 # if CDPATH is set.
56607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56609 sed_quote_subst='$sed_quote_subst'
56610 double_quote_subst='$double_quote_subst'
56611 delay_variable_subst='$delay_variable_subst'
56612 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
56613 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
56614 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
56615 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
56616 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
56617 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
56618 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
56619 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
56620 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
56621 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
56622 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
56623 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
56624 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
56625 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
56626 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
56627 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
56628 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
56629 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
56630 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
56631 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
56632 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
56633 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
56634 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
56635 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
56636 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
56637 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
56638 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
56639 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
56640 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
56641 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
56642 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
56643 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
56644 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
56645 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
56646 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
56647 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
56648 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
56649 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56650 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56651 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
56652 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
56653 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
56654 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
56655 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
56656 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
56657 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
56658 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
56659 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
56660 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
56661 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
56662 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
56663 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
56664 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
56665 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
56666 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
56667 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
56668 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
56669 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
56670 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
56671 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
56672 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
56673 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
56674 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
56675 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
56676 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56677 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
56678 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
56679 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
56680 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
56681 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
56682 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
56683 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56684 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
56685 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56686 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
56687 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56688 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
56689 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
56690 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
56691 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
56692 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
56693 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
56694 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
56695 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
56696 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
56697 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
56698 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
56699 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
56700 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
56701 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
56702 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
56703 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
56704 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
56705 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
56706 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
56707 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
56708 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
56709 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
56710 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
56711 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
56712 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
56713 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
56714 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
56715 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
56716 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
56717 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
56718 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
56719 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56720 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56721 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
56722 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
56723 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
56724 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
56725 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
56726 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
56727 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
56728 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
56729 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
56730 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
56731 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
56732 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
56733 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
56734 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
56735 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
56736 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
56737 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
56738 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
56739 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
56740 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56741 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56742 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
56743 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
56744 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
56745 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
56746 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
56747 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
56748 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
56749 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
56750 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
56751 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56752 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56753 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
56754 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56755 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56756 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56757 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56758 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56759 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56760 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
56761 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56762 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56763 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56764 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
56765 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
56766 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
56767 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
56768 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
56769 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
56770 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
56771 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
56772 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
56773 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
56774 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
56775 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56776 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56777 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56778 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56779 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
56780 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
56781 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
56782 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56783 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56784 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
56785 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
56786 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
56788 LTCC='$LTCC'
56789 LTCFLAGS='$LTCFLAGS'
56790 compiler='$compiler_DEFAULT'
56792 # A function that is used when there is no print builtin or printf.
56793 func_fallback_echo ()
56795 eval 'cat <<_LTECHO_EOF
56797 _LTECHO_EOF'
56800 # Quote evaled strings.
56801 for var in SHELL \
56802 ECHO \
56803 SED \
56804 GREP \
56805 EGREP \
56806 FGREP \
56807 LD \
56808 NM \
56809 LN_S \
56810 lt_SP2NL \
56811 lt_NL2SP \
56812 reload_flag \
56813 OBJDUMP \
56814 deplibs_check_method \
56815 file_magic_cmd \
56816 AR \
56817 AR_FLAGS \
56818 STRIP \
56819 RANLIB \
56820 CC \
56821 CFLAGS \
56822 compiler \
56823 lt_cv_sys_global_symbol_pipe \
56824 lt_cv_sys_global_symbol_to_cdecl \
56825 lt_cv_sys_global_symbol_to_c_name_address \
56826 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
56827 lt_prog_compiler_no_builtin_flag \
56828 lt_prog_compiler_wl \
56829 lt_prog_compiler_pic \
56830 lt_prog_compiler_static \
56831 lt_cv_prog_compiler_c_o \
56832 need_locks \
56833 DSYMUTIL \
56834 NMEDIT \
56835 LIPO \
56836 OTOOL \
56837 OTOOL64 \
56838 shrext_cmds \
56839 export_dynamic_flag_spec \
56840 whole_archive_flag_spec \
56841 compiler_needs_object \
56842 with_gnu_ld \
56843 allow_undefined_flag \
56844 no_undefined_flag \
56845 hardcode_libdir_flag_spec \
56846 hardcode_libdir_flag_spec_ld \
56847 hardcode_libdir_separator \
56848 fix_srcfile_path \
56849 exclude_expsyms \
56850 include_expsyms \
56851 file_list_spec \
56852 variables_saved_for_relink \
56853 libname_spec \
56854 library_names_spec \
56855 soname_spec \
56856 install_override_mode \
56857 finish_eval \
56858 old_striplib \
56859 striplib \
56860 compiler_lib_search_dirs \
56861 predep_objects \
56862 postdep_objects \
56863 predeps \
56864 postdeps \
56865 compiler_lib_search_path \
56866 LD_CXX \
56867 reload_flag_CXX \
56868 compiler_CXX \
56869 lt_prog_compiler_no_builtin_flag_CXX \
56870 lt_prog_compiler_wl_CXX \
56871 lt_prog_compiler_pic_CXX \
56872 lt_prog_compiler_static_CXX \
56873 lt_cv_prog_compiler_c_o_CXX \
56874 export_dynamic_flag_spec_CXX \
56875 whole_archive_flag_spec_CXX \
56876 compiler_needs_object_CXX \
56877 with_gnu_ld_CXX \
56878 allow_undefined_flag_CXX \
56879 no_undefined_flag_CXX \
56880 hardcode_libdir_flag_spec_CXX \
56881 hardcode_libdir_flag_spec_ld_CXX \
56882 hardcode_libdir_separator_CXX \
56883 fix_srcfile_path_CXX \
56884 exclude_expsyms_CXX \
56885 include_expsyms_CXX \
56886 file_list_spec_CXX \
56887 compiler_lib_search_dirs_CXX \
56888 predep_objects_CXX \
56889 postdep_objects_CXX \
56890 predeps_CXX \
56891 postdeps_CXX \
56892 compiler_lib_search_path_CXX; do
56893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56894 *[\\\\\\\`\\"\\\$]*)
56895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
56898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56900 esac
56901 done
56903 # Double-quote double-evaled strings.
56904 for var in reload_cmds \
56905 old_postinstall_cmds \
56906 old_postuninstall_cmds \
56907 old_archive_cmds \
56908 extract_expsyms_cmds \
56909 old_archive_from_new_cmds \
56910 old_archive_from_expsyms_cmds \
56911 archive_cmds \
56912 archive_expsym_cmds \
56913 module_cmds \
56914 module_expsym_cmds \
56915 export_symbols_cmds \
56916 prelink_cmds \
56917 postinstall_cmds \
56918 postuninstall_cmds \
56919 finish_cmds \
56920 sys_lib_search_path_spec \
56921 sys_lib_dlsearch_path_spec \
56922 reload_cmds_CXX \
56923 old_archive_cmds_CXX \
56924 old_archive_from_new_cmds_CXX \
56925 old_archive_from_expsyms_cmds_CXX \
56926 archive_cmds_CXX \
56927 archive_expsym_cmds_CXX \
56928 module_cmds_CXX \
56929 module_expsym_cmds_CXX \
56930 export_symbols_cmds_CXX \
56931 prelink_cmds_CXX; do
56932 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56933 *[\\\\\\\`\\"\\\$]*)
56934 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
56937 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56939 esac
56940 done
56942 ac_aux_dir='$ac_aux_dir'
56943 xsi_shell='$xsi_shell'
56944 lt_shell_append='$lt_shell_append'
56946 # See if we are running on zsh, and set the options which allow our
56947 # commands through without removal of \ escapes INIT.
56948 if test -n "\${ZSH_VERSION+set}" ; then
56949 setopt NO_GLOB_SUBST
56953 PACKAGE='$PACKAGE'
56954 VERSION='$VERSION'
56955 TIMESTAMP='$TIMESTAMP'
56956 RM='$RM'
56957 ofile='$ofile'
56964 _ACEOF
56966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56968 # Handling of arguments.
56969 for ac_config_target in $ac_config_targets
56971 case $ac_config_target in
56972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56973 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
56974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
56975 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56976 "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
56977 "scripts/extract_symvers") CONFIG_FILES="$CONFIG_FILES scripts/extract_symvers" ;;
56978 "doc/xsl/customization.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/customization.xsl" ;;
56979 "src/libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/backtrace-supported.h" ;;
56980 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
56981 "libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
56982 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
56983 "src/c++98/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++98/Makefile" ;;
56984 "src/c++11/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++11/Makefile" ;;
56985 "src/c++17/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++17/Makefile" ;;
56986 "src/c++20/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++20/Makefile" ;;
56987 "src/c++23/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++23/Makefile" ;;
56988 "src/c++26/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++26/Makefile" ;;
56989 "src/filesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/filesystem/Makefile" ;;
56990 "src/libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/Makefile" ;;
56991 "src/experimental/Makefile") CONFIG_FILES="$CONFIG_FILES src/experimental/Makefile" ;;
56992 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
56993 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
56994 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
56995 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
56996 "generate-headers") CONFIG_COMMANDS="$CONFIG_COMMANDS generate-headers" ;;
56998 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
56999 esac
57000 done
57003 # If the user did not use the arguments to specify the items to instantiate,
57004 # then the envvar interface is used. Set only those that are not.
57005 # We use the long form for the default assignment because of an extremely
57006 # bizarre bug on SunOS 4.1.3.
57007 if $ac_need_defaults; then
57008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
57009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
57010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
57013 # Have a temporary directory for convenience. Make it in the build tree
57014 # simply because there is no reason against having it here, and in addition,
57015 # creating and moving files from /tmp can sometimes cause problems.
57016 # Hook for its removal unless debugging.
57017 # Note that there is a small window in which the directory will not be cleaned:
57018 # after its creation but before its name has been assigned to `$tmp'.
57019 $debug ||
57021 tmp= ac_tmp=
57022 trap 'exit_status=$?
57023 : "${ac_tmp:=$tmp}"
57024 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
57026 trap 'as_fn_exit 1' 1 2 13 15
57028 # Create a (secure) tmp directory for tmp files.
57031 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
57032 test -d "$tmp"
57033 } ||
57035 tmp=./conf$$-$RANDOM
57036 (umask 077 && mkdir "$tmp")
57037 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
57038 ac_tmp=$tmp
57040 # Set up the scripts for CONFIG_FILES section.
57041 # No need to generate them if there are no CONFIG_FILES.
57042 # This happens for instance with `./config.status config.h'.
57043 if test -n "$CONFIG_FILES"; then
57046 ac_cr=`echo X | tr X '\015'`
57047 # On cygwin, bash can eat \r inside `` if the user requested igncr.
57048 # But we know of no other shell where ac_cr would be empty at this
57049 # point, so we can use a bashism as a fallback.
57050 if test "x$ac_cr" = x; then
57051 eval ac_cr=\$\'\\r\'
57053 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
57054 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
57055 ac_cs_awk_cr='\\r'
57056 else
57057 ac_cs_awk_cr=$ac_cr
57060 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
57061 _ACEOF
57065 echo "cat >conf$$subs.awk <<_ACEOF" &&
57066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
57067 echo "_ACEOF"
57068 } >conf$$subs.sh ||
57069 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57070 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
57071 ac_delim='%!_!# '
57072 for ac_last_try in false false false false false :; do
57073 . ./conf$$subs.sh ||
57074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57076 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
57077 if test $ac_delim_n = $ac_delim_num; then
57078 break
57079 elif $ac_last_try; then
57080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57081 else
57082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57084 done
57085 rm -f conf$$subs.sh
57087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57088 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
57089 _ACEOF
57090 sed -n '
57092 s/^/S["/; s/!.*/"]=/
57095 s/^[^!]*!//
57096 :repl
57097 t repl
57098 s/'"$ac_delim"'$//
57099 t delim
57102 s/\(.\{148\}\)..*/\1/
57103 t more1
57104 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57107 b repl
57108 :more1
57109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57112 s/.\{148\}//
57113 t nl
57114 :delim
57116 s/\(.\{148\}\)..*/\1/
57117 t more2
57118 s/["\\]/\\&/g; s/^/"/; s/$/"/
57121 :more2
57122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57125 s/.\{148\}//
57126 t delim
57127 ' <conf$$subs.awk | sed '
57128 /^[^""]/{
57130 s/\n//
57132 ' >>$CONFIG_STATUS || ac_write_fail=1
57133 rm -f conf$$subs.awk
57134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57135 _ACAWK
57136 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
57137 for (key in S) S_is_set[key] = 1
57138 FS = "\a"
57142 line = $ 0
57143 nfields = split(line, field, "@")
57144 substed = 0
57145 len = length(field[1])
57146 for (i = 2; i < nfields; i++) {
57147 key = field[i]
57148 keylen = length(key)
57149 if (S_is_set[key]) {
57150 value = S[key]
57151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57152 len += length(value) + length(field[++i])
57153 substed = 1
57154 } else
57155 len += 1 + keylen
57158 print line
57161 _ACAWK
57162 _ACEOF
57163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57164 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57166 else
57168 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
57169 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
57170 _ACEOF
57172 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
57173 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
57174 # trailing colons and then remove the whole line if VPATH becomes empty
57175 # (actually we leave an empty line to preserve line numbers).
57176 if test "x$srcdir" = x.; then
57177 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
57179 s///
57180 s/^/:/
57181 s/[ ]*$/:/
57182 s/:\$(srcdir):/:/g
57183 s/:\${srcdir}:/:/g
57184 s/:@srcdir@:/:/g
57185 s/^:*//
57186 s/:*$//
57188 s/\(=[ ]*\).*/\1/
57190 s/\n//
57191 s/^[^=]*=[ ]*$//
57195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57196 fi # test -n "$CONFIG_FILES"
57198 # Set up the scripts for CONFIG_HEADERS section.
57199 # No need to generate them if there are no CONFIG_HEADERS.
57200 # This happens for instance with `./config.status Makefile'.
57201 if test -n "$CONFIG_HEADERS"; then
57202 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
57203 BEGIN {
57204 _ACEOF
57206 # Transform confdefs.h into an awk script `defines.awk', embedded as
57207 # here-document in config.status, that substitutes the proper values into
57208 # config.h.in to produce config.h.
57210 # Create a delimiter string that does not exist in confdefs.h, to ease
57211 # handling of long lines.
57212 ac_delim='%!_!# '
57213 for ac_last_try in false false :; do
57214 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57215 if test -z "$ac_tt"; then
57216 break
57217 elif $ac_last_try; then
57218 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
57219 else
57220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57222 done
57224 # For the awk script, D is an array of macro values keyed by name,
57225 # likewise P contains macro parameters if any. Preserve backslash
57226 # newline sequences.
57228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57229 sed -n '
57230 s/.\{148\}/&'"$ac_delim"'/g
57231 t rset
57232 :rset
57233 s/^[ ]*#[ ]*define[ ][ ]*/ /
57234 t def
57236 :def
57237 s/\\$//
57238 t bsnl
57239 s/["\\]/\\&/g
57240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57241 D["\1"]=" \3"/p
57242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
57244 :bsnl
57245 s/["\\]/\\&/g
57246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57247 D["\1"]=" \3\\\\\\n"\\/p
57248 t cont
57249 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57250 t cont
57252 :cont
57254 s/.\{148\}/&'"$ac_delim"'/g
57255 t clear
57256 :clear
57257 s/\\$//
57258 t bsnlc
57259 s/["\\]/\\&/g; s/^/"/; s/$/"/p
57261 :bsnlc
57262 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57263 b cont
57264 ' <confdefs.h | sed '
57265 s/'"$ac_delim"'/"\\\
57266 "/g' >>$CONFIG_STATUS || ac_write_fail=1
57268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57269 for (key in D) D_is_set[key] = 1
57270 FS = "\a"
57272 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57273 line = \$ 0
57274 split(line, arg, " ")
57275 if (arg[1] == "#") {
57276 defundef = arg[2]
57277 mac1 = arg[3]
57278 } else {
57279 defundef = substr(arg[1], 2)
57280 mac1 = arg[2]
57282 split(mac1, mac2, "(") #)
57283 macro = mac2[1]
57284 prefix = substr(line, 1, index(line, defundef) - 1)
57285 if (D_is_set[macro]) {
57286 # Preserve the white space surrounding the "#".
57287 print prefix "define", macro P[macro] D[macro]
57288 next
57289 } else {
57290 # Replace #undef with comments. This is necessary, for example,
57291 # in the case of _POSIX_SOURCE, which is predefined and required
57292 # on some systems where configure will not decide to define it.
57293 if (defundef == "undef") {
57294 print "/*", prefix defundef, macro, "*/"
57295 next
57299 { print }
57300 _ACAWK
57301 _ACEOF
57302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57303 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
57304 fi # test -n "$CONFIG_HEADERS"
57307 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
57308 shift
57309 for ac_tag
57311 case $ac_tag in
57312 :[FHLC]) ac_mode=$ac_tag; continue;;
57313 esac
57314 case $ac_mode$ac_tag in
57315 :[FHL]*:*);;
57316 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
57317 :[FH]-) ac_tag=-:-;;
57318 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57319 esac
57320 ac_save_IFS=$IFS
57321 IFS=:
57322 set x $ac_tag
57323 IFS=$ac_save_IFS
57324 shift
57325 ac_file=$1
57326 shift
57328 case $ac_mode in
57329 :L) ac_source=$1;;
57330 :[FH])
57331 ac_file_inputs=
57332 for ac_f
57334 case $ac_f in
57335 -) ac_f="$ac_tmp/stdin";;
57336 *) # Look for the file first in the build tree, then in the source tree
57337 # (if the path is not absolute). The absolute path cannot be DOS-style,
57338 # because $ac_f cannot contain `:'.
57339 test -f "$ac_f" ||
57340 case $ac_f in
57341 [\\/$]*) false;;
57342 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57343 esac ||
57344 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
57345 esac
57346 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57347 as_fn_append ac_file_inputs " '$ac_f'"
57348 done
57350 # Let's still pretend it is `configure' which instantiates (i.e., don't
57351 # use $as_me), people would be surprised to read:
57352 # /* config.h. Generated by config.status. */
57353 configure_input='Generated from '`
57354 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57355 `' by configure.'
57356 if test x"$ac_file" != x-; then
57357 configure_input="$ac_file. $configure_input"
57358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
57359 $as_echo "$as_me: creating $ac_file" >&6;}
57361 # Neutralize special characters interpreted by sed in replacement strings.
57362 case $configure_input in #(
57363 *\&* | *\|* | *\\* )
57364 ac_sed_conf_input=`$as_echo "$configure_input" |
57365 sed 's/[\\\\&|]/\\\\&/g'`;; #(
57366 *) ac_sed_conf_input=$configure_input;;
57367 esac
57369 case $ac_tag in
57370 *:-:* | *:-) cat >"$ac_tmp/stdin" \
57371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
57372 esac
57374 esac
57376 ac_dir=`$as_dirname -- "$ac_file" ||
57377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57378 X"$ac_file" : 'X\(//\)[^/]' \| \
57379 X"$ac_file" : 'X\(//\)$' \| \
57380 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57381 $as_echo X"$ac_file" |
57382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57383 s//\1/
57386 /^X\(\/\/\)[^/].*/{
57387 s//\1/
57390 /^X\(\/\/\)$/{
57391 s//\1/
57394 /^X\(\/\).*/{
57395 s//\1/
57398 s/.*/./; q'`
57399 as_dir="$ac_dir"; as_fn_mkdir_p
57400 ac_builddir=.
57402 case "$ac_dir" in
57403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
57406 # A ".." for each directory in $ac_dir_suffix.
57407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57408 case $ac_top_builddir_sub in
57409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57411 esac ;;
57412 esac
57413 ac_abs_top_builddir=$ac_pwd
57414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57415 # for backward compatibility:
57416 ac_top_builddir=$ac_top_build_prefix
57418 case $srcdir in
57419 .) # We are building in place.
57420 ac_srcdir=.
57421 ac_top_srcdir=$ac_top_builddir_sub
57422 ac_abs_top_srcdir=$ac_pwd ;;
57423 [\\/]* | ?:[\\/]* ) # Absolute name.
57424 ac_srcdir=$srcdir$ac_dir_suffix;
57425 ac_top_srcdir=$srcdir
57426 ac_abs_top_srcdir=$srcdir ;;
57427 *) # Relative name.
57428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57429 ac_top_srcdir=$ac_top_build_prefix$srcdir
57430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57431 esac
57432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57435 case $ac_mode in
57438 # CONFIG_FILE
57441 case $INSTALL in
57442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57443 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57444 esac
57445 ac_MKDIR_P=$MKDIR_P
57446 case $MKDIR_P in
57447 [\\/$]* | ?:[\\/]* ) ;;
57448 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
57449 esac
57450 _ACEOF
57452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57453 # If the template does not know about datarootdir, expand it.
57454 # FIXME: This hack should be removed a few years after 2.60.
57455 ac_datarootdir_hack=; ac_datarootdir_seen=
57456 ac_sed_dataroot='
57457 /datarootdir/ {
57461 /@datadir@/p
57462 /@docdir@/p
57463 /@infodir@/p
57464 /@localedir@/p
57465 /@mandir@/p'
57466 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
57467 *datarootdir*) ac_datarootdir_seen=yes;;
57468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57470 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57471 _ACEOF
57472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57473 ac_datarootdir_hack='
57474 s&@datadir@&$datadir&g
57475 s&@docdir@&$docdir&g
57476 s&@infodir@&$infodir&g
57477 s&@localedir@&$localedir&g
57478 s&@mandir@&$mandir&g
57479 s&\\\${datarootdir}&$datarootdir&g' ;;
57480 esac
57481 _ACEOF
57483 # Neutralize VPATH when `$srcdir' = `.'.
57484 # Shell code in configure.ac might set extrasub.
57485 # FIXME: do we really want to maintain this feature?
57486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57487 ac_sed_extra="$ac_vpsub
57488 $extrasub
57489 _ACEOF
57490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57493 s|@configure_input@|$ac_sed_conf_input|;t t
57494 s&@top_builddir@&$ac_top_builddir_sub&;t t
57495 s&@top_build_prefix@&$ac_top_build_prefix&;t t
57496 s&@srcdir@&$ac_srcdir&;t t
57497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57498 s&@top_srcdir@&$ac_top_srcdir&;t t
57499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57500 s&@builddir@&$ac_builddir&;t t
57501 s&@abs_builddir@&$ac_abs_builddir&;t t
57502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57503 s&@INSTALL@&$ac_INSTALL&;t t
57504 s&@MKDIR_P@&$ac_MKDIR_P&;t t
57505 $ac_datarootdir_hack
57507 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
57508 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
57512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
57513 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57515 which seems to be undefined. Please make sure it is defined" >&5
57516 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57517 which seems to be undefined. Please make sure it is defined" >&2;}
57519 rm -f "$ac_tmp/stdin"
57520 case $ac_file in
57521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
57522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
57523 esac \
57524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57528 # CONFIG_HEADER
57530 if test x"$ac_file" != x-; then
57532 $as_echo "/* $configure_input */" \
57533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
57534 } >"$ac_tmp/config.h" \
57535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57536 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
57537 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
57538 $as_echo "$as_me: $ac_file is unchanged" >&6;}
57539 else
57540 rm -f "$ac_file"
57541 mv "$ac_tmp/config.h" "$ac_file" \
57542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57544 else
57545 $as_echo "/* $configure_input */" \
57546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
57547 || as_fn_error $? "could not create -" "$LINENO" 5
57549 # Compute "$ac_file"'s index in $config_headers.
57550 _am_arg="$ac_file"
57551 _am_stamp_count=1
57552 for _am_header in $config_headers :; do
57553 case $_am_header in
57554 $_am_arg | $_am_arg:* )
57555 break ;;
57557 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57558 esac
57559 done
57560 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
57561 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57562 X"$_am_arg" : 'X\(//\)[^/]' \| \
57563 X"$_am_arg" : 'X\(//\)$' \| \
57564 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
57565 $as_echo X"$_am_arg" |
57566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57567 s//\1/
57570 /^X\(\/\/\)[^/].*/{
57571 s//\1/
57574 /^X\(\/\/\)$/{
57575 s//\1/
57578 /^X\(\/\).*/{
57579 s//\1/
57582 s/.*/./; q'`/stamp-h$_am_stamp_count
57585 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
57586 $as_echo "$as_me: executing $ac_file commands" >&6;}
57588 esac
57591 case $ac_file$ac_mode in
57592 "default-1":C)
57593 # Only add multilib support code if we just rebuilt the top-level
57594 # Makefile.
57595 case " $CONFIG_FILES " in
57596 *" Makefile "*)
57597 ac_file=Makefile . ${multi_basedir}/config-ml.in
57599 esac ;;
57600 "libtool":C)
57602 # See if we are running on zsh, and set the options which allow our
57603 # commands through without removal of \ escapes.
57604 if test -n "${ZSH_VERSION+set}" ; then
57605 setopt NO_GLOB_SUBST
57608 cfgfile="${ofile}T"
57609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
57610 $RM "$cfgfile"
57612 cat <<_LT_EOF >> "$cfgfile"
57613 #! $SHELL
57615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
57616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
57617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
57618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
57620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
57621 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
57622 # Written by Gordon Matzigkeit, 1996
57624 # This file is part of GNU Libtool.
57626 # GNU Libtool is free software; you can redistribute it and/or
57627 # modify it under the terms of the GNU General Public License as
57628 # published by the Free Software Foundation; either version 2 of
57629 # the License, or (at your option) any later version.
57631 # As a special exception to the GNU General Public License,
57632 # if you distribute this file as part of a program or library that
57633 # is built using GNU Libtool, you may include this file under the
57634 # same distribution terms that you use for the rest of that program.
57636 # GNU Libtool is distributed in the hope that it will be useful,
57637 # but WITHOUT ANY WARRANTY; without even the implied warranty of
57638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57639 # GNU General Public License for more details.
57641 # You should have received a copy of the GNU General Public License
57642 # along with GNU Libtool; see the file COPYING. If not, a copy
57643 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57644 # obtained by writing to the Free Software Foundation, Inc.,
57645 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
57648 # The names of the tagged configurations supported by this script.
57649 available_tags="CXX "
57651 # ### BEGIN LIBTOOL CONFIG
57653 # Which release of libtool.m4 was used?
57654 macro_version=$macro_version
57655 macro_revision=$macro_revision
57657 # Whether or not to build shared libraries.
57658 build_libtool_libs=$enable_shared
57660 # Whether or not to build static libraries.
57661 build_old_libs=$enable_static
57663 # What type of objects to build.
57664 pic_mode=$pic_mode
57666 # Whether or not to optimize for fast installation.
57667 fast_install=$enable_fast_install
57669 # Shell to use when invoking shell scripts.
57670 SHELL=$lt_SHELL
57672 # An echo program that protects backslashes.
57673 ECHO=$lt_ECHO
57675 # The host system.
57676 host_alias=$host_alias
57677 host=$host
57678 host_os=$host_os
57680 # The build system.
57681 build_alias=$build_alias
57682 build=$build
57683 build_os=$build_os
57685 # A sed program that does not truncate output.
57686 SED=$lt_SED
57688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
57689 Xsed="\$SED -e 1s/^X//"
57691 # A grep program that handles long lines.
57692 GREP=$lt_GREP
57694 # An ERE matcher.
57695 EGREP=$lt_EGREP
57697 # A literal string matcher.
57698 FGREP=$lt_FGREP
57700 # A BSD- or MS-compatible name lister.
57701 NM=$lt_NM
57703 # Whether we need soft or hard links.
57704 LN_S=$lt_LN_S
57706 # What is the maximum length of a command?
57707 max_cmd_len=$max_cmd_len
57709 # Object file suffix (normally "o").
57710 objext=$ac_objext
57712 # Executable file suffix (normally "").
57713 exeext=$exeext
57715 # whether the shell understands "unset".
57716 lt_unset=$lt_unset
57718 # turn spaces into newlines.
57719 SP2NL=$lt_lt_SP2NL
57721 # turn newlines into spaces.
57722 NL2SP=$lt_lt_NL2SP
57724 # An object symbol dumper.
57725 OBJDUMP=$lt_OBJDUMP
57727 # Method to check whether dependent libraries are shared objects.
57728 deplibs_check_method=$lt_deplibs_check_method
57730 # Command to use when deplibs_check_method == "file_magic".
57731 file_magic_cmd=$lt_file_magic_cmd
57733 # The archiver.
57734 AR=$lt_AR
57735 AR_FLAGS=$lt_AR_FLAGS
57737 # A symbol stripping program.
57738 STRIP=$lt_STRIP
57740 # Commands used to install an old-style archive.
57741 RANLIB=$lt_RANLIB
57742 old_postinstall_cmds=$lt_old_postinstall_cmds
57743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
57745 # Whether to use a lock for old archive extraction.
57746 lock_old_archive_extraction=$lock_old_archive_extraction
57748 # A C compiler.
57749 LTCC=$lt_CC
57751 # LTCC compiler flags.
57752 LTCFLAGS=$lt_CFLAGS
57754 # Take the output of nm and produce a listing of raw symbols and C names.
57755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
57757 # Transform the output of nm in a proper C declaration.
57758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
57760 # Transform the output of nm in a C name address pair.
57761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
57763 # Transform the output of nm in a C name address pair when lib prefix is needed.
57764 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
57766 # The name of the directory that contains temporary libtool files.
57767 objdir=$objdir
57769 # Used to examine libraries when file_magic_cmd begins with "file".
57770 MAGIC_CMD=$MAGIC_CMD
57772 # Must we lock files when doing compilation?
57773 need_locks=$lt_need_locks
57775 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
57776 DSYMUTIL=$lt_DSYMUTIL
57778 # Tool to change global to local symbols on Mac OS X.
57779 NMEDIT=$lt_NMEDIT
57781 # Tool to manipulate fat objects and archives on Mac OS X.
57782 LIPO=$lt_LIPO
57784 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
57785 OTOOL=$lt_OTOOL
57787 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
57788 OTOOL64=$lt_OTOOL64
57790 # Old archive suffix (normally "a").
57791 libext=$libext
57793 # Shared library suffix (normally ".so").
57794 shrext_cmds=$lt_shrext_cmds
57796 # The commands to extract the exported symbol list from a shared archive.
57797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
57799 # Variables whose values should be saved in libtool wrapper scripts and
57800 # restored at link time.
57801 variables_saved_for_relink=$lt_variables_saved_for_relink
57803 # Do we need the "lib" prefix for modules?
57804 need_lib_prefix=$need_lib_prefix
57806 # Do we need a version for libraries?
57807 need_version=$need_version
57809 # Library versioning type.
57810 version_type=$version_type
57812 # Shared library runtime path variable.
57813 runpath_var=$runpath_var
57815 # Shared library path variable.
57816 shlibpath_var=$shlibpath_var
57818 # Is shlibpath searched before the hard-coded library search path?
57819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
57821 # Format of library name prefix.
57822 libname_spec=$lt_libname_spec
57824 # List of archive names. First name is the real one, the rest are links.
57825 # The last name is the one that the linker finds with -lNAME
57826 library_names_spec=$lt_library_names_spec
57828 # The coded name of the library, if different from the real name.
57829 soname_spec=$lt_soname_spec
57831 # Permission mode override for installation of shared libraries.
57832 install_override_mode=$lt_install_override_mode
57834 # Command to use after installation of a shared archive.
57835 postinstall_cmds=$lt_postinstall_cmds
57837 # Command to use after uninstallation of a shared archive.
57838 postuninstall_cmds=$lt_postuninstall_cmds
57840 # Commands used to finish a libtool library installation in a directory.
57841 finish_cmds=$lt_finish_cmds
57843 # As "finish_cmds", except a single script fragment to be evaled but
57844 # not shown.
57845 finish_eval=$lt_finish_eval
57847 # Whether we should hardcode library paths into libraries.
57848 hardcode_into_libs=$hardcode_into_libs
57850 # Compile-time system search path for libraries.
57851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
57853 # Run-time system search path for libraries.
57854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
57856 # Whether dlopen is supported.
57857 dlopen_support=$enable_dlopen
57859 # Whether dlopen of programs is supported.
57860 dlopen_self=$enable_dlopen_self
57862 # Whether dlopen of statically linked programs is supported.
57863 dlopen_self_static=$enable_dlopen_self_static
57865 # Commands to strip libraries.
57866 old_striplib=$lt_old_striplib
57867 striplib=$lt_striplib
57870 # The linker used to build libraries.
57871 LD=$lt_LD
57873 # How to create reloadable object files.
57874 reload_flag=$lt_reload_flag
57875 reload_cmds=$lt_reload_cmds
57877 # Commands used to build an old-style archive.
57878 old_archive_cmds=$lt_old_archive_cmds
57880 # A language specific compiler.
57881 CC=$lt_compiler
57883 # Is the compiler the GNU compiler?
57884 with_gcc=$GCC
57886 # Compiler flag to turn off builtin functions.
57887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
57889 # How to pass a linker flag through the compiler.
57890 wl=$lt_lt_prog_compiler_wl
57892 # Additional compiler flags for building library objects.
57893 pic_flag=$lt_lt_prog_compiler_pic
57895 # Compiler flag to prevent dynamic linking.
57896 link_static_flag=$lt_lt_prog_compiler_static
57898 # Does compiler simultaneously support -c and -o options?
57899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
57901 # Whether or not to add -lc for building shared libraries.
57902 build_libtool_need_lc=$archive_cmds_need_lc
57904 # Whether or not to disallow shared libs when runtime libs are static.
57905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
57907 # Compiler flag to allow reflexive dlopens.
57908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
57910 # Compiler flag to generate shared objects directly from archives.
57911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
57913 # Whether the compiler copes with passing no objects directly.
57914 compiler_needs_object=$lt_compiler_needs_object
57916 # Create an old-style archive from a shared archive.
57917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
57919 # Create a temporary old-style archive to link instead of a shared archive.
57920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
57922 # Commands used to build a shared archive.
57923 archive_cmds=$lt_archive_cmds
57924 archive_expsym_cmds=$lt_archive_expsym_cmds
57926 # Commands used to build a loadable module if different from building
57927 # a shared archive.
57928 module_cmds=$lt_module_cmds
57929 module_expsym_cmds=$lt_module_expsym_cmds
57931 # Whether we are building with GNU ld or not.
57932 with_gnu_ld=$lt_with_gnu_ld
57934 # Flag that allows shared libraries with undefined symbols to be built.
57935 allow_undefined_flag=$lt_allow_undefined_flag
57937 # Flag that enforces no undefined symbols.
57938 no_undefined_flag=$lt_no_undefined_flag
57940 # Flag to hardcode \$libdir into a binary during linking.
57941 # This must work even if \$libdir does not exist
57942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
57944 # If ld is used when linking, flag to hardcode \$libdir into a binary
57945 # during linking. This must work even if \$libdir does not exist.
57946 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
57948 # Whether we need a single "-rpath" flag with a separated argument.
57949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
57951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57952 # DIR into the resulting binary.
57953 hardcode_direct=$hardcode_direct
57955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57956 # DIR into the resulting binary and the resulting library dependency is
57957 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
57958 # library is relocated.
57959 hardcode_direct_absolute=$hardcode_direct_absolute
57961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57962 # into the resulting binary.
57963 hardcode_minus_L=$hardcode_minus_L
57965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
57966 # into the resulting binary.
57967 hardcode_shlibpath_var=$hardcode_shlibpath_var
57969 # Set to "yes" if building a shared library automatically hardcodes DIR
57970 # into the library and all subsequent libraries and executables linked
57971 # against it.
57972 hardcode_automatic=$hardcode_automatic
57974 # Set to yes if linker adds runtime paths of dependent libraries
57975 # to runtime path list.
57976 inherit_rpath=$inherit_rpath
57978 # Whether libtool must link a program against all its dependency libraries.
57979 link_all_deplibs=$link_all_deplibs
57981 # Fix the shell variable \$srcfile for the compiler.
57982 fix_srcfile_path=$lt_fix_srcfile_path
57984 # Set to "yes" if exported symbols are required.
57985 always_export_symbols=$always_export_symbols
57987 # The commands to list exported symbols.
57988 export_symbols_cmds=$lt_export_symbols_cmds
57990 # Symbols that should not be listed in the preloaded symbols.
57991 exclude_expsyms=$lt_exclude_expsyms
57993 # Symbols that must always be exported.
57994 include_expsyms=$lt_include_expsyms
57996 # Commands necessary for linking programs (against libraries) with templates.
57997 prelink_cmds=$lt_prelink_cmds
57999 # Specify filename containing input files.
58000 file_list_spec=$lt_file_list_spec
58002 # How to hardcode a shared library path into an executable.
58003 hardcode_action=$hardcode_action
58005 # The directories searched by this compiler when creating a shared library.
58006 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
58008 # Dependencies to place before and after the objects being linked to
58009 # create a shared library.
58010 predep_objects=$lt_predep_objects
58011 postdep_objects=$lt_postdep_objects
58012 predeps=$lt_predeps
58013 postdeps=$lt_postdeps
58015 # The library search path used internally by the compiler when linking
58016 # a shared library.
58017 compiler_lib_search_path=$lt_compiler_lib_search_path
58019 # ### END LIBTOOL CONFIG
58021 _LT_EOF
58023 case $host_os in
58024 aix3*)
58025 cat <<\_LT_EOF >> "$cfgfile"
58026 # AIX sometimes has problems with the GCC collect2 program. For some
58027 # reason, if we set the COLLECT_NAMES environment variable, the problems
58028 # vanish in a puff of smoke.
58029 if test "X${COLLECT_NAMES+set}" != Xset; then
58030 COLLECT_NAMES=
58031 export COLLECT_NAMES
58033 _LT_EOF
58035 esac
58038 ltmain="$ac_aux_dir/ltmain.sh"
58041 # We use sed instead of cat because bash on DJGPP gets confused if
58042 # if finds mixed CR/LF and LF-only lines. Since sed operates in
58043 # text mode, it properly converts lines to CR/LF. This bash problem
58044 # is reportedly fixed, but why not run on old versions too?
58045 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
58046 || (rm -f "$cfgfile"; exit 1)
58048 case $xsi_shell in
58049 yes)
58050 cat << \_LT_EOF >> "$cfgfile"
58052 # func_dirname file append nondir_replacement
58053 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58054 # otherwise set result to NONDIR_REPLACEMENT.
58055 func_dirname ()
58057 case ${1} in
58058 */*) func_dirname_result="${1%/*}${2}" ;;
58059 * ) func_dirname_result="${3}" ;;
58060 esac
58063 # func_basename file
58064 func_basename ()
58066 func_basename_result="${1##*/}"
58069 # func_dirname_and_basename file append nondir_replacement
58070 # perform func_basename and func_dirname in a single function
58071 # call:
58072 # dirname: Compute the dirname of FILE. If nonempty,
58073 # add APPEND to the result, otherwise set result
58074 # to NONDIR_REPLACEMENT.
58075 # value returned in "$func_dirname_result"
58076 # basename: Compute filename of FILE.
58077 # value retuned in "$func_basename_result"
58078 # Implementation must be kept synchronized with func_dirname
58079 # and func_basename. For efficiency, we do not delegate to
58080 # those functions but instead duplicate the functionality here.
58081 func_dirname_and_basename ()
58083 case ${1} in
58084 */*) func_dirname_result="${1%/*}${2}" ;;
58085 * ) func_dirname_result="${3}" ;;
58086 esac
58087 func_basename_result="${1##*/}"
58090 # func_stripname prefix suffix name
58091 # strip PREFIX and SUFFIX off of NAME.
58092 # PREFIX and SUFFIX must not contain globbing or regex special
58093 # characters, hashes, percent signs, but SUFFIX may contain a leading
58094 # dot (in which case that matches only a dot).
58095 func_stripname ()
58097 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
58098 # positional parameters, so assign one to ordinary parameter first.
58099 func_stripname_result=${3}
58100 func_stripname_result=${func_stripname_result#"${1}"}
58101 func_stripname_result=${func_stripname_result%"${2}"}
58104 # func_opt_split
58105 func_opt_split ()
58107 func_opt_split_opt=${1%%=*}
58108 func_opt_split_arg=${1#*=}
58111 # func_lo2o object
58112 func_lo2o ()
58114 case ${1} in
58115 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
58116 *) func_lo2o_result=${1} ;;
58117 esac
58120 # func_xform libobj-or-source
58121 func_xform ()
58123 func_xform_result=${1%.*}.lo
58126 # func_arith arithmetic-term...
58127 func_arith ()
58129 func_arith_result=$(( $* ))
58132 # func_len string
58133 # STRING may not start with a hyphen.
58134 func_len ()
58136 func_len_result=${#1}
58139 _LT_EOF
58141 *) # Bourne compatible functions.
58142 cat << \_LT_EOF >> "$cfgfile"
58144 # func_dirname file append nondir_replacement
58145 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58146 # otherwise set result to NONDIR_REPLACEMENT.
58147 func_dirname ()
58149 # Extract subdirectory from the argument.
58150 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
58151 if test "X$func_dirname_result" = "X${1}"; then
58152 func_dirname_result="${3}"
58153 else
58154 func_dirname_result="$func_dirname_result${2}"
58158 # func_basename file
58159 func_basename ()
58161 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
58165 # func_stripname prefix suffix name
58166 # strip PREFIX and SUFFIX off of NAME.
58167 # PREFIX and SUFFIX must not contain globbing or regex special
58168 # characters, hashes, percent signs, but SUFFIX may contain a leading
58169 # dot (in which case that matches only a dot).
58170 # func_strip_suffix prefix name
58171 func_stripname ()
58173 case ${2} in
58174 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
58175 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
58176 esac
58179 # sed scripts:
58180 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
58181 my_sed_long_arg='1s/^-[^=]*=//'
58183 # func_opt_split
58184 func_opt_split ()
58186 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
58187 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
58190 # func_lo2o object
58191 func_lo2o ()
58193 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
58196 # func_xform libobj-or-source
58197 func_xform ()
58199 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
58202 # func_arith arithmetic-term...
58203 func_arith ()
58205 func_arith_result=`expr "$@"`
58208 # func_len string
58209 # STRING may not start with a hyphen.
58210 func_len ()
58212 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
58215 _LT_EOF
58216 esac
58218 case $lt_shell_append in
58219 yes)
58220 cat << \_LT_EOF >> "$cfgfile"
58222 # func_append var value
58223 # Append VALUE to the end of shell variable VAR.
58224 func_append ()
58226 eval "$1+=\$2"
58228 _LT_EOF
58231 cat << \_LT_EOF >> "$cfgfile"
58233 # func_append var value
58234 # Append VALUE to the end of shell variable VAR.
58235 func_append ()
58237 eval "$1=\$$1\$2"
58240 _LT_EOF
58242 esac
58245 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
58246 || (rm -f "$cfgfile"; exit 1)
58248 mv -f "$cfgfile" "$ofile" ||
58249 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
58250 chmod +x "$ofile"
58253 cat <<_LT_EOF >> "$ofile"
58255 # ### BEGIN LIBTOOL TAG CONFIG: CXX
58257 # The linker used to build libraries.
58258 LD=$lt_LD_CXX
58260 # How to create reloadable object files.
58261 reload_flag=$lt_reload_flag_CXX
58262 reload_cmds=$lt_reload_cmds_CXX
58264 # Commands used to build an old-style archive.
58265 old_archive_cmds=$lt_old_archive_cmds_CXX
58267 # A language specific compiler.
58268 CC=$lt_compiler_CXX
58270 # Is the compiler the GNU compiler?
58271 with_gcc=$GCC_CXX
58273 # Compiler flag to turn off builtin functions.
58274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
58276 # How to pass a linker flag through the compiler.
58277 wl=$lt_lt_prog_compiler_wl_CXX
58279 # Additional compiler flags for building library objects.
58280 pic_flag=$lt_lt_prog_compiler_pic_CXX
58282 # Compiler flag to prevent dynamic linking.
58283 link_static_flag=$lt_lt_prog_compiler_static_CXX
58285 # Does compiler simultaneously support -c and -o options?
58286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
58288 # Whether or not to add -lc for building shared libraries.
58289 build_libtool_need_lc=$archive_cmds_need_lc_CXX
58291 # Whether or not to disallow shared libs when runtime libs are static.
58292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
58294 # Compiler flag to allow reflexive dlopens.
58295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
58297 # Compiler flag to generate shared objects directly from archives.
58298 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
58300 # Whether the compiler copes with passing no objects directly.
58301 compiler_needs_object=$lt_compiler_needs_object_CXX
58303 # Create an old-style archive from a shared archive.
58304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
58306 # Create a temporary old-style archive to link instead of a shared archive.
58307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
58309 # Commands used to build a shared archive.
58310 archive_cmds=$lt_archive_cmds_CXX
58311 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
58313 # Commands used to build a loadable module if different from building
58314 # a shared archive.
58315 module_cmds=$lt_module_cmds_CXX
58316 module_expsym_cmds=$lt_module_expsym_cmds_CXX
58318 # Whether we are building with GNU ld or not.
58319 with_gnu_ld=$lt_with_gnu_ld_CXX
58321 # Flag that allows shared libraries with undefined symbols to be built.
58322 allow_undefined_flag=$lt_allow_undefined_flag_CXX
58324 # Flag that enforces no undefined symbols.
58325 no_undefined_flag=$lt_no_undefined_flag_CXX
58327 # Flag to hardcode \$libdir into a binary during linking.
58328 # This must work even if \$libdir does not exist
58329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
58331 # If ld is used when linking, flag to hardcode \$libdir into a binary
58332 # during linking. This must work even if \$libdir does not exist.
58333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
58335 # Whether we need a single "-rpath" flag with a separated argument.
58336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
58338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58339 # DIR into the resulting binary.
58340 hardcode_direct=$hardcode_direct_CXX
58342 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58343 # DIR into the resulting binary and the resulting library dependency is
58344 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
58345 # library is relocated.
58346 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
58348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
58349 # into the resulting binary.
58350 hardcode_minus_L=$hardcode_minus_L_CXX
58352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
58353 # into the resulting binary.
58354 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
58356 # Set to "yes" if building a shared library automatically hardcodes DIR
58357 # into the library and all subsequent libraries and executables linked
58358 # against it.
58359 hardcode_automatic=$hardcode_automatic_CXX
58361 # Set to yes if linker adds runtime paths of dependent libraries
58362 # to runtime path list.
58363 inherit_rpath=$inherit_rpath_CXX
58365 # Whether libtool must link a program against all its dependency libraries.
58366 link_all_deplibs=$link_all_deplibs_CXX
58368 # Fix the shell variable \$srcfile for the compiler.
58369 fix_srcfile_path=$lt_fix_srcfile_path_CXX
58371 # Set to "yes" if exported symbols are required.
58372 always_export_symbols=$always_export_symbols_CXX
58374 # The commands to list exported symbols.
58375 export_symbols_cmds=$lt_export_symbols_cmds_CXX
58377 # Symbols that should not be listed in the preloaded symbols.
58378 exclude_expsyms=$lt_exclude_expsyms_CXX
58380 # Symbols that must always be exported.
58381 include_expsyms=$lt_include_expsyms_CXX
58383 # Commands necessary for linking programs (against libraries) with templates.
58384 prelink_cmds=$lt_prelink_cmds_CXX
58386 # Specify filename containing input files.
58387 file_list_spec=$lt_file_list_spec_CXX
58389 # How to hardcode a shared library path into an executable.
58390 hardcode_action=$hardcode_action_CXX
58392 # The directories searched by this compiler when creating a shared library.
58393 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
58395 # Dependencies to place before and after the objects being linked to
58396 # create a shared library.
58397 predep_objects=$lt_predep_objects_CXX
58398 postdep_objects=$lt_postdep_objects_CXX
58399 predeps=$lt_predeps_CXX
58400 postdeps=$lt_postdeps_CXX
58402 # The library search path used internally by the compiler when linking
58403 # a shared library.
58404 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
58406 # ### END LIBTOOL TAG CONFIG: CXX
58407 _LT_EOF
58410 "scripts/testsuite_flags":F) chmod +x scripts/testsuite_flags ;;
58411 "scripts/extract_symvers":F) chmod +x scripts/extract_symvers ;;
58412 "include/Makefile":F) cat > vpsed$$ << \_EOF
58413 s!`test -f '$<' || echo '$(srcdir)/'`!!
58414 _EOF
58415 sed -f vpsed$$ $ac_file > tmp$$
58416 mv tmp$$ $ac_file
58417 rm vpsed$$
58418 echo 'MULTISUBDIR =' >> $ac_file
58419 ml_norecursion=yes
58420 . ${multi_basedir}/config-ml.in
58421 { ml_norecursion=; unset ml_norecursion;}
58423 "libsupc++/Makefile":F) cat > vpsed$$ << \_EOF
58424 s!`test -f '$<' || echo '$(srcdir)/'`!!
58425 _EOF
58426 sed -f vpsed$$ $ac_file > tmp$$
58427 mv tmp$$ $ac_file
58428 rm vpsed$$
58429 echo 'MULTISUBDIR =' >> $ac_file
58430 ml_norecursion=yes
58431 . ${multi_basedir}/config-ml.in
58432 { ml_norecursion=; unset ml_norecursion;}
58434 "src/Makefile":F) cat > vpsed$$ << \_EOF
58435 s!`test -f '$<' || echo '$(srcdir)/'`!!
58436 _EOF
58437 sed -f vpsed$$ $ac_file > tmp$$
58438 mv tmp$$ $ac_file
58439 rm vpsed$$
58440 echo 'MULTISUBDIR =' >> $ac_file
58441 ml_norecursion=yes
58442 . ${multi_basedir}/config-ml.in
58443 { ml_norecursion=; unset ml_norecursion;}
58445 "src/c++98/Makefile":F) cat > vpsed$$ << \_EOF
58446 s!`test -f '$<' || echo '$(srcdir)/'`!!
58447 _EOF
58448 sed -f vpsed$$ $ac_file > tmp$$
58449 mv tmp$$ $ac_file
58450 rm vpsed$$
58451 echo 'MULTISUBDIR =' >> $ac_file
58452 ml_norecursion=yes
58453 . ${multi_basedir}/config-ml.in
58454 { ml_norecursion=; unset ml_norecursion;}
58456 "src/c++11/Makefile":F) cat > vpsed$$ << \_EOF
58457 s!`test -f '$<' || echo '$(srcdir)/'`!!
58458 _EOF
58459 sed -f vpsed$$ $ac_file > tmp$$
58460 mv tmp$$ $ac_file
58461 rm vpsed$$
58462 echo 'MULTISUBDIR =' >> $ac_file
58463 ml_norecursion=yes
58464 . ${multi_basedir}/config-ml.in
58465 { ml_norecursion=; unset ml_norecursion;}
58467 "src/c++17/Makefile":F) cat > vpsed$$ << \_EOF
58468 s!`test -f '$<' || echo '$(srcdir)/'`!!
58469 _EOF
58470 sed -f vpsed$$ $ac_file > tmp$$
58471 mv tmp$$ $ac_file
58472 rm vpsed$$
58473 echo 'MULTISUBDIR =' >> $ac_file
58474 ml_norecursion=yes
58475 . ${multi_basedir}/config-ml.in
58476 { ml_norecursion=; unset ml_norecursion;}
58478 "src/c++20/Makefile":F) cat > vpsed$$ << \_EOF
58479 s!`test -f '$<' || echo '$(srcdir)/'`!!
58480 _EOF
58481 sed -f vpsed$$ $ac_file > tmp$$
58482 mv tmp$$ $ac_file
58483 rm vpsed$$
58484 echo 'MULTISUBDIR =' >> $ac_file
58485 ml_norecursion=yes
58486 . ${multi_basedir}/config-ml.in
58487 { ml_norecursion=; unset ml_norecursion;}
58489 "src/c++23/Makefile":F) cat > vpsed$$ << \_EOF
58490 s!`test -f '$<' || echo '$(srcdir)/'`!!
58491 _EOF
58492 sed -f vpsed$$ $ac_file > tmp$$
58493 mv tmp$$ $ac_file
58494 rm vpsed$$
58495 echo 'MULTISUBDIR =' >> $ac_file
58496 ml_norecursion=yes
58497 . ${multi_basedir}/config-ml.in
58498 { ml_norecursion=; unset ml_norecursion;}
58500 "src/c++26/Makefile":F) cat > vpsed$$ << \_EOF
58501 s!`test -f '$<' || echo '$(srcdir)/'`!!
58502 _EOF
58503 sed -f vpsed$$ $ac_file > tmp$$
58504 mv tmp$$ $ac_file
58505 rm vpsed$$
58506 echo 'MULTISUBDIR =' >> $ac_file
58507 ml_norecursion=yes
58508 . ${multi_basedir}/config-ml.in
58509 { ml_norecursion=; unset ml_norecursion;}
58511 "src/filesystem/Makefile":F) cat > vpsed$$ << \_EOF
58512 s!`test -f '$<' || echo '$(srcdir)/'`!!
58513 _EOF
58514 sed -f vpsed$$ $ac_file > tmp$$
58515 mv tmp$$ $ac_file
58516 rm vpsed$$
58517 echo 'MULTISUBDIR =' >> $ac_file
58518 ml_norecursion=yes
58519 . ${multi_basedir}/config-ml.in
58520 { ml_norecursion=; unset ml_norecursion;}
58522 "src/libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
58523 s!`test -f '$<' || echo '$(srcdir)/'`!!
58524 _EOF
58525 sed -f vpsed$$ $ac_file > tmp$$
58526 mv tmp$$ $ac_file
58527 rm vpsed$$
58528 echo 'MULTISUBDIR =' >> $ac_file
58529 ml_norecursion=yes
58530 . ${multi_basedir}/config-ml.in
58531 { ml_norecursion=; unset ml_norecursion;}
58533 "src/experimental/Makefile":F) cat > vpsed$$ << \_EOF
58534 s!`test -f '$<' || echo '$(srcdir)/'`!!
58535 _EOF
58536 sed -f vpsed$$ $ac_file > tmp$$
58537 mv tmp$$ $ac_file
58538 rm vpsed$$
58539 echo 'MULTISUBDIR =' >> $ac_file
58540 ml_norecursion=yes
58541 . ${multi_basedir}/config-ml.in
58542 { ml_norecursion=; unset ml_norecursion;}
58544 "doc/Makefile":F) cat > vpsed$$ << \_EOF
58545 s!`test -f '$<' || echo '$(srcdir)/'`!!
58546 _EOF
58547 sed -f vpsed$$ $ac_file > tmp$$
58548 mv tmp$$ $ac_file
58549 rm vpsed$$
58550 echo 'MULTISUBDIR =' >> $ac_file
58551 ml_norecursion=yes
58552 . ${multi_basedir}/config-ml.in
58553 { ml_norecursion=; unset ml_norecursion;}
58555 "po/Makefile":F) cat > vpsed$$ << \_EOF
58556 s!`test -f '$<' || echo '$(srcdir)/'`!!
58557 _EOF
58558 sed -f vpsed$$ $ac_file > tmp$$
58559 mv tmp$$ $ac_file
58560 rm vpsed$$
58561 echo 'MULTISUBDIR =' >> $ac_file
58562 ml_norecursion=yes
58563 . ${multi_basedir}/config-ml.in
58564 { ml_norecursion=; unset ml_norecursion;}
58566 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
58567 s!`test -f '$<' || echo '$(srcdir)/'`!!
58568 _EOF
58569 sed -f vpsed$$ $ac_file > tmp$$
58570 mv tmp$$ $ac_file
58571 rm vpsed$$
58572 echo 'MULTISUBDIR =' >> $ac_file
58573 ml_norecursion=yes
58574 . ${multi_basedir}/config-ml.in
58575 { ml_norecursion=; unset ml_norecursion;}
58577 "python/Makefile":F) cat > vpsed$$ << \_EOF
58578 s!`test -f '$<' || echo '$(srcdir)/'`!!
58579 _EOF
58580 sed -f vpsed$$ $ac_file > tmp$$
58581 mv tmp$$ $ac_file
58582 rm vpsed$$
58583 echo 'MULTISUBDIR =' >> $ac_file
58584 ml_norecursion=yes
58585 . ${multi_basedir}/config-ml.in
58586 { ml_norecursion=; unset ml_norecursion;}
58588 "generate-headers":C) (cd include && ${MAKE-make} pch_build= ) ;;
58590 esac
58591 done # for ac_tag
58594 as_fn_exit 0
58595 _ACEOF
58596 ac_clean_files=$ac_clean_files_save
58598 test $ac_write_fail = 0 ||
58599 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
58602 # configure is writing to config.log, and then calls config.status.
58603 # config.status does its own redirection, appending to config.log.
58604 # Unfortunately, on DOS this fails, as config.log is still kept open
58605 # by configure, so config.status won't be able to write to it; its
58606 # output is simply discarded. So we exec the FD to /dev/null,
58607 # effectively closing config.log, so it can be properly (re)opened and
58608 # appended to by config.status. When coming back to configure, we
58609 # need to make the FD available again.
58610 if test "$no_create" != yes; then
58611 ac_cs_success=:
58612 ac_config_status_args=
58613 test "$silent" = yes &&
58614 ac_config_status_args="$ac_config_status_args --quiet"
58615 exec 5>/dev/null
58616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58617 exec 5>>config.log
58618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58619 # would make configure fail if this is the last instruction.
58620 $ac_cs_success || as_fn_exit 1
58622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}