mklog: add subject line skeleton
[official-gcc.git] / libgfortran / configure
blobf3634389cf806555c74090947f6bd3cdbefd636b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
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='GNU Fortran Runtime Library'
589 PACKAGE_TARNAME='libgfortran'
590 PACKAGE_VERSION='0.3'
591 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_header_list=
632 ac_func_list=
633 ac_c_werror_flag=
634 ac_c_werror_flag=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 get_gcc_base_ver
640 HAVE_AVX128_FALSE
641 HAVE_AVX128_TRUE
642 tmake_file
643 IEEE_FLAGS
644 IEEE_SUPPORT
645 IEEE_SUPPORT_FALSE
646 IEEE_SUPPORT_TRUE
647 FPU_HOST_HEADER
648 LIBGFOR_BUILD_QUAD_FALSE
649 LIBGFOR_BUILD_QUAD_TRUE
650 LIBQUADINCLUDE
651 LIBQUADLIB_DEP
652 LIBQUADLIB
653 LIBQUADSPEC
654 extra_ldflags_libgfortran
655 ac_ct_FC
656 FCFLAGS
658 enable_static
659 enable_shared
660 lt_host_flags
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 OBJDUMP
667 LN_S
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LIBTOOL
672 RANLIB
675 HAVE_HWCAP_FALSE
676 HAVE_HWCAP_TRUE
677 HWCAP_LDFLAGS
679 FGREP
681 SECTION_FLAGS
682 LIBGOMP_CHECKED_REAL_KINDS
683 LIBGOMP_CHECKED_INT_KINDS
684 LIBGFOR_MINIMAL_FALSE
685 LIBGFOR_MINIMAL_TRUE
686 LIBGFOR_USE_SYMVER_SUN_FALSE
687 LIBGFOR_USE_SYMVER_SUN_TRUE
688 LIBGFOR_USE_SYMVER_GNU_FALSE
689 LIBGFOR_USE_SYMVER_GNU_TRUE
690 LIBGFOR_USE_SYMVER_FALSE
691 LIBGFOR_USE_SYMVER_TRUE
692 AM_CFLAGS
693 AM_FCFLAGS
694 toolexeclibdir
695 toolexecdir
696 EGREP
697 GREP
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 multi_basedir
717 MAINT
718 MAINTAINER_MODE_FALSE
719 MAINTAINER_MODE_TRUE
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_noncanonical
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 onestep
757 onestep_FALSE
758 onestep_TRUE
759 target_subdir
760 host_subdir
761 build_subdir
762 build_libsubdir
763 build_os
764 build_vendor
765 build_cpu
766 build
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_build_libsubdir
809 enable_version_specific_runtime_libs
810 enable_intermodule
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_multilib
814 enable_dependency_tracking
815 with_toolexeclibdir
816 enable_cet
817 enable_symvers
818 with_gnu_ld
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 enable_libtool_lock
824 enable_largefile
825 enable_libquadmath_support
826 with_gcc_major_version_only
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
838 FCFLAGS'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1434 cat <<\_ACEOF
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-version-specific-runtime-libs
1459 specify that runtime libraries should be installed
1460 in a compiler-specific directory
1461 --enable-intermodule build the library in one step
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-multilib build many library versions (default)
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-cet enable Intel CET in target libraries [default=auto]
1473 --disable-symvers disable symbol versioning for libgfortran
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --disable-largefile omit support for large files
1480 --disable-libquadmath-support
1481 disable libquadmath support for Fortran
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-build-libsubdir=DIR Directory where to find libraries for build system
1487 --with-toolexeclibdir=DIR
1488 install libraries built with a cross compiler within
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-gcc-major-version-only
1494 use only GCC major number in filesystem paths
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 FC Fortran compiler command
1506 FCFLAGS Fortran compiler flags
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 Report bugs to the package provider.
1512 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1513 General help using GNU software: <http://www.gnu.org/gethelp/>.
1514 _ACEOF
1515 ac_status=$?
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 GNU Fortran Runtime Library configure 0.3
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_cpp
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_mongrel
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=$ac_status
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_run
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_header_compile
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 test -x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_link
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 if test x$gcc_no_link = xyes; then
1883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1902 #undef $2
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1919 main ()
1921 return $2 ();
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_fc_try_compile LINENO
1942 # ---------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_fc_try_compile ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext
1948 if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_compile") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_fc_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest.$ac_objext; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_fc_try_compile
1979 # ac_fn_fc_try_link LINENO
1980 # ------------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_fc_try_link ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_fc_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest$ac_exeext && {
2005 test "$cross_compiling" = yes ||
2006 test -x conftest$ac_exeext
2007 }; then :
2008 ac_retval=0
2009 else
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 ac_retval=1
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2023 } # ac_fn_fc_try_link
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=no"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 if (sizeof ($2))
2045 return 0;
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 if (sizeof (($2)))
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2065 else
2066 eval "$3=yes"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_type
2079 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080 # --------------------------------------------
2081 # Tries to find the compile-time value of EXPR in a program that includes
2082 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2083 # computed
2084 ac_fn_c_compute_int ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if test "$cross_compiling" = yes; then
2088 # Depending upon the size, compute the lo and hi bounds.
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2096 test_array [0] = 0;
2097 return test_array [0];
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0;
2114 return test_array [0];
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=$ac_mid; break
2122 else
2123 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124 if test $ac_lo -le $ac_mid; then
2125 ac_lo= ac_hi=
2126 break
2128 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) < 0)];
2140 test_array [0] = 0;
2141 return test_array [0];
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=-1 ac_mid=-1
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 test_array [0] = 0;
2158 return test_array [0];
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_lo=$ac_mid; break
2166 else
2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168 if test $ac_mid -le $ac_hi; then
2169 ac_lo= ac_hi=
2170 break
2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 else
2177 ac_lo= ac_hi=
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 # Binary search between lo and hi bounds.
2183 while test "x$ac_lo" != "x$ac_hi"; do
2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0;
2193 return test_array [0];
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201 else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2219 main ()
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2232 else
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250 ac_retval=1
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2260 } # ac_fn_c_compute_int
2262 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263 # ----------------------------------------------------
2264 # Tries to find if the field MEMBER exists in type AGGR, after including
2265 # INCLUDES, setting cache variable VAR accordingly.
2266 ac_fn_c_check_member ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270 $as_echo_n "checking for $2.$3... " >&6; }
2271 if eval \${$4+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 main ()
2280 static $2 ac_aggr;
2281 if (ac_aggr.$3)
2282 return 0;
2284 return 0;
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 eval "$4=yes"
2289 else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2294 main ()
2296 static $2 ac_aggr;
2297 if (sizeof ac_aggr.$3)
2298 return 0;
2300 return 0;
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305 else
2306 eval "$4=no"
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 eval ac_res=\$$4
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_member
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2325 $ $0 $@
2327 _ACEOF
2328 exec 5>>config.log
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 _ASUNAME
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2363 } >&5
2365 cat >&5 <<_ACEOF
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2372 _ACEOF
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2386 for ac_arg
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2415 as_fn_append ac_configure_args " '$ac_arg'"
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2431 echo
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 esac |
2465 sort
2467 echo
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2583 done
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2602 as_fn_append ac_header_list " unistd.h"
2603 as_fn_append ac_header_list " sys/random.h"
2604 as_fn_append ac_header_list " sys/time.h"
2605 as_fn_append ac_header_list " sys/times.h"
2606 as_fn_append ac_header_list " sys/resource.h"
2607 as_fn_append ac_header_list " sys/types.h"
2608 as_fn_append ac_header_list " sys/stat.h"
2609 as_fn_append ac_header_list " sys/uio.h"
2610 as_fn_append ac_header_list " sys/wait.h"
2611 as_fn_append ac_header_list " floatingpoint.h"
2612 as_fn_append ac_header_list " ieeefp.h"
2613 as_fn_append ac_header_list " fenv.h"
2614 as_fn_append ac_header_list " fptrap.h"
2615 as_fn_append ac_header_list " fpxcp.h"
2616 as_fn_append ac_header_list " pwd.h"
2617 as_fn_append ac_header_list " complex.h"
2618 as_fn_append ac_header_list " xlocale.h"
2619 as_fn_append ac_func_list " getrusage"
2620 as_fn_append ac_func_list " times"
2621 as_fn_append ac_func_list " mkstemp"
2622 as_fn_append ac_func_list " strtof"
2623 as_fn_append ac_func_list " strtold"
2624 as_fn_append ac_func_list " snprintf"
2625 as_fn_append ac_func_list " ftruncate"
2626 as_fn_append ac_func_list " chsize"
2627 as_fn_append ac_func_list " chdir"
2628 as_fn_append ac_func_list " getentropy"
2629 as_fn_append ac_func_list " getlogin"
2630 as_fn_append ac_func_list " gethostname"
2631 as_fn_append ac_func_list " kill"
2632 as_fn_append ac_func_list " link"
2633 as_fn_append ac_func_list " symlink"
2634 as_fn_append ac_func_list " sleep"
2635 as_fn_append ac_func_list " ttyname"
2636 as_fn_append ac_func_list " sigaction"
2637 as_fn_append ac_func_list " waitpid"
2638 as_fn_append ac_func_list " alarm"
2639 as_fn_append ac_func_list " access"
2640 as_fn_append ac_func_list " fork"
2641 as_fn_append ac_func_list " posix_spawn"
2642 as_fn_append ac_func_list " setmode"
2643 as_fn_append ac_func_list " fcntl"
2644 as_fn_append ac_func_list " writev"
2645 as_fn_append ac_func_list " gettimeofday"
2646 as_fn_append ac_func_list " stat"
2647 as_fn_append ac_func_list " fstat"
2648 as_fn_append ac_func_list " lstat"
2649 as_fn_append ac_func_list " getpwuid"
2650 as_fn_append ac_func_list " vsnprintf"
2651 as_fn_append ac_func_list " dup"
2652 as_fn_append ac_func_list " getcwd"
2653 as_fn_append ac_func_list " localtime_r"
2654 as_fn_append ac_func_list " gmtime_r"
2655 as_fn_append ac_func_list " getpwuid_r"
2656 as_fn_append ac_func_list " ttyname_r"
2657 as_fn_append ac_func_list " clock_gettime"
2658 as_fn_append ac_func_list " getgid"
2659 as_fn_append ac_func_list " getpid"
2660 as_fn_append ac_func_list " getuid"
2661 as_fn_append ac_func_list " geteuid"
2662 as_fn_append ac_func_list " umask"
2663 as_fn_append ac_func_list " getegid"
2664 as_fn_append ac_func_list " secure_getenv"
2665 as_fn_append ac_func_list " __secure_getenv"
2666 as_fn_append ac_func_list " mkostemp"
2667 as_fn_append ac_func_list " strnlen"
2668 as_fn_append ac_func_list " strndup"
2669 as_fn_append ac_func_list " newlocale"
2670 as_fn_append ac_func_list " freelocale"
2671 as_fn_append ac_func_list " uselocale"
2672 as_fn_append ac_func_list " strerror_l"
2673 as_fn_append ac_header_list " math.h"
2674 # Check that the precious variables saved in the cache have kept the same
2675 # value.
2676 ac_cache_corrupted=false
2677 for ac_var in $ac_precious_vars; do
2678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2679 eval ac_new_set=\$ac_env_${ac_var}_set
2680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2681 eval ac_new_val=\$ac_env_${ac_var}_value
2682 case $ac_old_set,$ac_new_set in
2683 set,)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,set)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2689 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,);;
2693 if test "x$ac_old_val" != "x$ac_new_val"; then
2694 # differences in whitespace do not lead to failure.
2695 ac_old_val_w=`echo x $ac_old_val`
2696 ac_new_val_w=`echo x $ac_new_val`
2697 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2699 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2700 ac_cache_corrupted=:
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2703 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2704 eval $ac_var=\$ac_old_val
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2707 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2709 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 fi;;
2711 esac
2712 # Pass precious variables to config.status.
2713 if test "$ac_new_set" = set; then
2714 case $ac_new_val in
2715 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2716 *) ac_arg=$ac_var=$ac_new_val ;;
2717 esac
2718 case " $ac_configure_args " in
2719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2720 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 esac
2723 done
2724 if $ac_cache_corrupted; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2728 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2729 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2731 ## -------------------- ##
2732 ## Main body of script. ##
2733 ## -------------------- ##
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 ac_config_headers="$ac_config_headers config.h"
2747 ac_aux_dir=
2748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2749 if test -f "$ac_dir/install-sh"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/install-sh -c"
2752 break
2753 elif test -f "$ac_dir/install.sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install.sh -c"
2756 break
2757 elif test -f "$ac_dir/shtool"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/shtool install -c"
2760 break
2762 done
2763 if test -z "$ac_aux_dir"; then
2764 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2767 # These three variables are undocumented and unsupported,
2768 # and are intended to be withdrawn in a future Autoconf release.
2769 # They can cause serious problems if a builder's source tree is in a directory
2770 # whose full name contains unusual characters.
2771 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2772 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2773 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2776 # Make sure we can run config.sub.
2777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781 $as_echo_n "checking build system type... " >&6; }
2782 if ${ac_cv_build+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2790 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795 $as_echo "$ac_cv_build" >&6; }
2796 case $ac_cv_build in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2814 case ${build_alias} in
2815 "") build_noncanonical=${build} ;;
2816 *) build_noncanonical=${build_alias} ;;
2817 esac
2819 case ${host_alias} in
2820 "") host_noncanonical=${build_noncanonical} ;;
2821 *) host_noncanonical=${host_alias} ;;
2822 esac
2824 case ${target_alias} in
2825 "") target_noncanonical=${host_noncanonical} ;;
2826 *) target_noncanonical=${target_alias} ;;
2827 esac
2830 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2831 # have matching libraries, they should use host libraries: Makefile.tpl
2832 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2833 # However, they still use the build modules, because the corresponding
2834 # host modules (e.g. bison) are only built for the host when bootstrap
2835 # finishes. So:
2836 # - build_subdir is where we find build modules, and never changes.
2837 # - build_libsubdir is where we find build libraries, and can be overridden.
2839 # Prefix 'build-' so this never conflicts with target_subdir.
2840 build_subdir="build-${build_noncanonical}"
2842 # Check whether --with-build-libsubdir was given.
2843 if test "${with_build_libsubdir+set}" = set; then :
2844 withval=$with_build_libsubdir; build_libsubdir="$withval"
2845 else
2846 build_libsubdir="$build_subdir"
2849 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2850 if ( test $srcdir = . && test -d gcc ) \
2851 || test -d $srcdir/../host-${host_noncanonical}; then
2852 host_subdir="host-${host_noncanonical}"
2853 else
2854 host_subdir=.
2856 # No prefix.
2857 target_subdir=${target_noncanonical}
2860 # -------
2861 # Options
2862 # -------
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2865 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2866 # Check whether --enable-version-specific-runtime-libs was given.
2867 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2868 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2869 yes) version_specific_libs=yes ;;
2870 no) version_specific_libs=no ;;
2871 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2872 esac
2873 else
2874 version_specific_libs=no
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2878 $as_echo "$version_specific_libs" >&6; }
2880 # Build with intermodule optimisations
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2882 $as_echo_n "checking for --enable-intermodule... " >&6; }
2883 # Check whether --enable-intermodule was given.
2884 if test "${enable_intermodule+set}" = set; then :
2885 enableval=$enable_intermodule; case "$enable_intermodule" in
2886 yes) onestep="-onestep";;
2887 *) onestep="";;
2888 esac
2889 else
2890 onestep=""
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2894 $as_echo "$enable_intermodule" >&6; }
2895 if test x$onestep = x-onestep; then
2896 onestep_TRUE=
2897 onestep_FALSE='#'
2898 else
2899 onestep_TRUE='#'
2900 onestep_FALSE=
2905 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2907 # You will slowly go insane if you do not grok the following fact: when
2908 # building this library, the top-level /target/ becomes the library's /host/.
2910 # configure then causes --target to default to --host, exactly like any
2911 # other package using autoconf. Therefore, 'target' and 'host' will
2912 # always be the same. This makes sense both for native and cross compilers
2913 # just think about it for a little while. :-)
2915 # Also, if this library is being configured as part of a cross compiler, the
2916 # top-level configure script will pass the "real" host as $with_cross_host.
2918 # Do not delete or change the following two lines. For why, see
2919 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2921 $as_echo_n "checking host system type... " >&6; }
2922 if ${ac_cv_host+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test "x$host_alias" = x; then
2926 ac_cv_host=$ac_cv_build
2927 else
2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2934 $as_echo "$ac_cv_host" >&6; }
2935 case $ac_cv_host in
2936 *-*-*) ;;
2937 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 esac
2939 host=$ac_cv_host
2940 ac_save_IFS=$IFS; IFS='-'
2941 set x $ac_cv_host
2942 shift
2943 host_cpu=$1
2944 host_vendor=$2
2945 shift; shift
2946 # Remember, the first character of IFS is used to create $*,
2947 # except with old shells:
2948 host_os=$*
2949 IFS=$ac_save_IFS
2950 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2954 $as_echo_n "checking target system type... " >&6; }
2955 if ${ac_cv_target+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test "x$target_alias" = x; then
2959 ac_cv_target=$ac_cv_host
2960 else
2961 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2967 $as_echo "$ac_cv_target" >&6; }
2968 case $ac_cv_target in
2969 *-*-*) ;;
2970 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2971 esac
2972 target=$ac_cv_target
2973 ac_save_IFS=$IFS; IFS='-'
2974 set x $ac_cv_target
2975 shift
2976 target_cpu=$1
2977 target_vendor=$2
2978 shift; shift
2979 # Remember, the first character of IFS is used to create $*,
2980 # except with old shells:
2981 target_os=$*
2982 IFS=$ac_save_IFS
2983 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2986 # The aliases save the names the user supplied, while $host etc.
2987 # will get canonicalized.
2988 test -n "$target_alias" &&
2989 test "$program_prefix$program_suffix$program_transform_name" = \
2990 NONENONEs,x,x, &&
2991 program_prefix=${target_alias}-
2996 target_alias=${target_alias-$host_alias}
2999 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3000 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3001 # 1.9.6: minimum required version
3002 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3003 # of other PACKAGE_* variables will, however, and there's nothing
3004 # we can do about that; they come from AC_INIT).
3005 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3006 # file in the top srcdir, etc, etc), so stop complaining.
3007 # no-dist: we don't want 'dist' and related rules.
3008 # -Wall: turns on all automake warnings...
3009 # -Wno-portability: ...except this one, since GNU make is required.
3010 am__api_version='1.15'
3012 # Find a good install program. We prefer a C program (faster),
3013 # so one script is as good as another. But avoid the broken or
3014 # incompatible versions:
3015 # SysV /etc/install, /usr/sbin/install
3016 # SunOS /usr/etc/install
3017 # IRIX /sbin/install
3018 # AIX /bin/install
3019 # AmigaOS /C/install, which installs bootblocks on floppy discs
3020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3023 # OS/2's system install, which has a completely different semantic
3024 # ./install, which can be erroneously created by make from ./install.sh.
3025 # Reject install programs that cannot install multiple files.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3027 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3028 if test -z "$INSTALL"; then
3029 if ${ac_cv_path_install+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 # Account for people who put trailing slashes in PATH elements.
3038 case $as_dir/ in #((
3039 ./ | .// | /[cC]/* | \
3040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3041 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3042 /usr/ucb/* ) ;;
3044 # OSF1 and SCO ODT 3.0 have their own names for install.
3045 # Don't use installbsd from OSF since it installs stuff as root
3046 # by default.
3047 for ac_prog in ginstall scoinst install; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3050 if test $ac_prog = install &&
3051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # AIX install. It has an incompatible calling convention.
3054 elif test $ac_prog = install &&
3055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # program-specific install script used by HP pwplus--don't use.
3058 else
3059 rm -rf conftest.one conftest.two conftest.dir
3060 echo one > conftest.one
3061 echo two > conftest.two
3062 mkdir conftest.dir
3063 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3064 test -s conftest.one && test -s conftest.two &&
3065 test -s conftest.dir/conftest.one &&
3066 test -s conftest.dir/conftest.two
3067 then
3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3069 break 3
3073 done
3074 done
3076 esac
3078 done
3079 IFS=$as_save_IFS
3081 rm -rf conftest.one conftest.two conftest.dir
3084 if test "${ac_cv_path_install+set}" = set; then
3085 INSTALL=$ac_cv_path_install
3086 else
3087 # As a last resort, use the slow shell script. Don't cache a
3088 # value for INSTALL within a source directory, because that will
3089 # break other packages using the cache if that directory is
3090 # removed, or if the value is a relative name.
3091 INSTALL=$ac_install_sh
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3095 $as_echo "$INSTALL" >&6; }
3097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3098 # It thinks the first close brace ends the variable substitution.
3099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3106 $as_echo_n "checking whether build environment is sane... " >&6; }
3107 # Reject unsafe characters in $srcdir or the absolute working directory
3108 # name. Accept space and tab only in the latter.
3109 am_lf='
3111 case `pwd` in
3112 *[\\\"\#\$\&\'\`$am_lf]*)
3113 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3114 esac
3115 case $srcdir in
3116 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3117 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3118 esac
3120 # Do 'set' in a subshell so we don't clobber the current shell's
3121 # arguments. Must try -L first in case configure is actually a
3122 # symlink; some systems play weird games with the mod time of symlinks
3123 # (eg FreeBSD returns the mod time of the symlink's containing
3124 # directory).
3125 if (
3126 am_has_slept=no
3127 for am_try in 1 2; do
3128 echo "timestamp, slept: $am_has_slept" > conftest.file
3129 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3130 if test "$*" = "X"; then
3131 # -L didn't work.
3132 set X `ls -t "$srcdir/configure" conftest.file`
3134 if test "$*" != "X $srcdir/configure conftest.file" \
3135 && test "$*" != "X conftest.file $srcdir/configure"; then
3137 # If neither matched, then we have a broken ls. This can happen
3138 # if, for instance, CONFIG_SHELL is bash and it inherits a
3139 # broken ls alias from the environment. This has actually
3140 # happened. Such a system could not be considered "sane".
3141 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3142 alias in your environment" "$LINENO" 5
3144 if test "$2" = conftest.file || test $am_try -eq 2; then
3145 break
3147 # Just in case.
3148 sleep 1
3149 am_has_slept=yes
3150 done
3151 test "$2" = conftest.file
3153 then
3154 # Ok.
3156 else
3157 as_fn_error $? "newly created file is older than distributed files!
3158 Check your system clock" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162 # If we didn't sleep, we still need to ensure time stamps of config.status and
3163 # generated files are strictly newer.
3164 am_sleep_pid=
3165 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3166 ( sleep 1 ) &
3167 am_sleep_pid=$!
3170 rm -f conftest.file
3172 test "$program_prefix" != NONE &&
3173 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3174 # Use a double $ so make ignores it.
3175 test "$program_suffix" != NONE &&
3176 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3177 # Double any \ or $.
3178 # By default was `s,x,x', remove it if useless.
3179 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3180 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3182 # Expand $ac_aux_dir to an absolute path.
3183 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3185 if test x"${MISSING+set}" != xset; then
3186 case $am_aux_dir in
3187 *\ * | *\ *)
3188 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3190 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3191 esac
3193 # Use eval to expand $SHELL
3194 if eval "$MISSING --is-lightweight"; then
3195 am_missing_run="$MISSING "
3196 else
3197 am_missing_run=
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3199 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3202 if test x"${install_sh+set}" != xset; then
3203 case $am_aux_dir in
3204 *\ * | *\ *)
3205 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3207 install_sh="\${SHELL} $am_aux_dir/install-sh"
3208 esac
3211 # Installed binaries are usually stripped using 'strip' when the user
3212 # run "make install-strip". However 'strip' might not be the right
3213 # tool to use in cross-compilation environments, therefore Automake
3214 # will honor the 'STRIP' environment variable to overrule this program.
3215 if test "$cross_compiling" != no; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}strip; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_STRIP+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$STRIP"; then
3225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 STRIP=$ac_cv_prog_STRIP
3245 if test -n "$STRIP"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3247 $as_echo "$STRIP" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3255 if test -z "$ac_cv_prog_STRIP"; then
3256 ac_ct_STRIP=$STRIP
3257 # Extract the first word of "strip", so it can be a program name with args.
3258 set dummy strip; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$ac_ct_STRIP"; then
3265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_STRIP="strip"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3278 done
3279 done
3280 IFS=$as_save_IFS
3284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3285 if test -n "$ac_ct_STRIP"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3287 $as_echo "$ac_ct_STRIP" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3293 if test "x$ac_ct_STRIP" = x; then
3294 STRIP=":"
3295 else
3296 case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 STRIP=$ac_ct_STRIP
3304 else
3305 STRIP="$ac_cv_prog_STRIP"
3309 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3312 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3313 if test -z "$MKDIR_P"; then
3314 if ${ac_cv_path_mkdir+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_prog in mkdir gmkdir; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3325 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3326 'mkdir (GNU coreutils) '* | \
3327 'mkdir (coreutils) '* | \
3328 'mkdir (fileutils) '4.1*)
3329 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3330 break 3;;
3331 esac
3332 done
3333 done
3334 done
3335 IFS=$as_save_IFS
3339 test -d ./--version && rmdir ./--version
3340 if test "${ac_cv_path_mkdir+set}" = set; then
3341 MKDIR_P="$ac_cv_path_mkdir -p"
3342 else
3343 # As a last resort, use the slow shell script. Don't cache a
3344 # value for MKDIR_P within a source directory, because that will
3345 # break other packages using the cache if that directory is
3346 # removed, or if the value is a relative name.
3347 MKDIR_P="$ac_install_sh -d"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3351 $as_echo "$MKDIR_P" >&6; }
3353 for ac_prog in gawk mawk nawk awk
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy $ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_AWK+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$AWK"; then
3363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
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 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_AWK="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3378 IFS=$as_save_IFS
3382 AWK=$ac_cv_prog_AWK
3383 if test -n "$AWK"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3385 $as_echo "$AWK" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$AWK" && break
3393 done
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3396 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3397 set x ${MAKE-make}
3398 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3399 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 cat >conftest.make <<\_ACEOF
3403 SHELL = /bin/sh
3404 all:
3405 @echo '@@@%%%=$(MAKE)=@@@%%%'
3406 _ACEOF
3407 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3408 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3409 *@@@%%%=?*=@@@%%%*)
3410 eval ac_cv_prog_make_${ac_make}_set=yes;;
3412 eval ac_cv_prog_make_${ac_make}_set=no;;
3413 esac
3414 rm -f conftest.make
3416 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 SET_MAKE=
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 SET_MAKE="MAKE=${MAKE-make}"
3426 rm -rf .tst 2>/dev/null
3427 mkdir .tst 2>/dev/null
3428 if test -d .tst; then
3429 am__leading_dot=.
3430 else
3431 am__leading_dot=_
3433 rmdir .tst 2>/dev/null
3435 # Check whether --enable-silent-rules was given.
3436 if test "${enable_silent_rules+set}" = set; then :
3437 enableval=$enable_silent_rules;
3440 case $enable_silent_rules in # (((
3441 yes) AM_DEFAULT_VERBOSITY=0;;
3442 no) AM_DEFAULT_VERBOSITY=1;;
3443 *) AM_DEFAULT_VERBOSITY=1;;
3444 esac
3445 am_make=${MAKE-make}
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3447 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3448 if ${am_cv_make_support_nested_variables+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if $as_echo 'TRUE=$(BAR$(V))
3452 BAR0=false
3453 BAR1=true
3455 am__doit:
3456 @$(TRUE)
3457 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3458 am_cv_make_support_nested_variables=yes
3459 else
3460 am_cv_make_support_nested_variables=no
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3464 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3465 if test $am_cv_make_support_nested_variables = yes; then
3466 AM_V='$(V)'
3467 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3468 else
3469 AM_V=$AM_DEFAULT_VERBOSITY
3470 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3472 AM_BACKSLASH='\'
3474 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3475 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3476 # is not polluted with repeated "-I."
3477 am__isrc=' -I$(srcdir)'
3478 # test to see if srcdir already configured
3479 if test -f $srcdir/config.status; then
3480 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3484 # test whether we have cygpath
3485 if test -z "$CYGPATH_W"; then
3486 if (cygpath --version) >/dev/null 2>/dev/null; then
3487 CYGPATH_W='cygpath -w'
3488 else
3489 CYGPATH_W=echo
3494 # Define the identity of the package.
3495 PACKAGE='libgfortran'
3496 VERSION='0.3'
3499 # Some tools Automake needs.
3501 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3504 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3507 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3510 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3513 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3515 # For better backward compatibility. To be removed once Automake 1.9.x
3516 # dies out for good. For more background, see:
3517 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3518 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3519 mkdir_p='$(MKDIR_P)'
3521 # We need awk for the "check" target (and possibly the TAP driver). The
3522 # system "awk" is bad on some platforms.
3523 # Always define AMTAR for backward compatibility. Yes, it's still used
3524 # in the wild :-( We should find a proper way to deprecate it ...
3525 AMTAR='$${TAR-tar}'
3528 # We'll loop over all known methods to create a tar archive until one works.
3529 _am_tools='gnutar pax cpio none'
3531 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3538 # POSIX will say in a future version that running "rm -f" with no argument
3539 # is OK; and we want to be able to make that assumption in our Makefile
3540 # recipes. So use an aggressive probe to check that the usage we want is
3541 # actually supported "in the wild" to an acceptable degree.
3542 # See automake bug#10828.
3543 # To make any issue more visible, cause the running configure to be aborted
3544 # by default if the 'rm' program in use doesn't match our expectations; the
3545 # user can still override this though.
3546 if rm -f && rm -fr && rm -rf; then : OK; else
3547 cat >&2 <<'END'
3548 Oops!
3550 Your 'rm' program seems unable to run without file operands specified
3551 on the command line, even when the '-f' option is present. This is contrary
3552 to the behaviour of most rm programs out there, and not conforming with
3553 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3555 Please tell bug-automake@gnu.org about your system, including the value
3556 of your $PATH and any error possibly output before this message. This
3557 can help us improve future automake versions.
3560 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3561 echo 'Configuration will proceed anyway, since you have set the' >&2
3562 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3563 echo >&2
3564 else
3565 cat >&2 <<'END'
3566 Aborting the configuration process, to ensure you take notice of the issue.
3568 You can download and install GNU coreutils to get an 'rm' implementation
3569 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3571 If you want to complete the configuration process using your problematic
3572 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3573 to "yes", and re-run configure.
3576 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3583 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3584 # Check whether --enable-maintainer-mode was given.
3585 if test "${enable_maintainer_mode+set}" = set; then :
3586 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3587 else
3588 USE_MAINTAINER_MODE=no
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3592 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3593 if test $USE_MAINTAINER_MODE = yes; then
3594 MAINTAINER_MODE_TRUE=
3595 MAINTAINER_MODE_FALSE='#'
3596 else
3597 MAINTAINER_MODE_TRUE='#'
3598 MAINTAINER_MODE_FALSE=
3601 MAINT=$MAINTAINER_MODE_TRUE
3604 # Default to --enable-multilib
3605 # Check whether --enable-multilib was given.
3606 if test "${enable_multilib+set}" = set; then :
3607 enableval=$enable_multilib; case "$enableval" in
3608 yes) multilib=yes ;;
3609 no) multilib=no ;;
3610 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3611 esac
3612 else
3613 multilib=yes
3617 # We may get other options which we leave undocumented:
3618 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3619 # See config-ml.in if you want the gory details.
3621 if test "$srcdir" = "."; then
3622 if test "$with_target_subdir" != "."; then
3623 multi_basedir="$srcdir/$with_multisrctop../.."
3624 else
3625 multi_basedir="$srcdir/$with_multisrctop.."
3627 else
3628 multi_basedir="$srcdir/.."
3632 # Even if the default multilib is not a cross compilation,
3633 # it may be that some of the other multilibs are.
3634 if test $cross_compiling = no && test $multilib = yes \
3635 && test "x${with_multisubdir}" != x ; then
3636 cross_compiling=maybe
3639 ac_config_commands="$ac_config_commands default-1"
3642 # Handy for debugging:
3643 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3645 # Are we being configured with some form of cross compiler?
3646 # NB: We don't actually need to know this just now, but when, say, a test
3647 # suite is included, we'll have to know.
3648 if test "$build" != "$host"; then
3649 LIBGFOR_IS_NATIVE=false
3651 else
3652 LIBGFOR_IS_NATIVE=true
3655 DEPDIR="${am__leading_dot}deps"
3657 ac_config_commands="$ac_config_commands depfiles"
3660 am_make=${MAKE-make}
3661 cat > confinc << 'END'
3662 am__doit:
3663 @echo this is the am__doit target
3664 .PHONY: am__doit
3666 # If we don't find an include directive, just comment out the code.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3668 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3669 am__include="#"
3670 am__quote=
3671 _am_result=none
3672 # First try GNU make style include.
3673 echo "include confinc" > confmf
3674 # Ignore all kinds of additional output from 'make'.
3675 case `$am_make -s -f confmf 2> /dev/null` in #(
3676 *the\ am__doit\ target*)
3677 am__include=include
3678 am__quote=
3679 _am_result=GNU
3681 esac
3682 # Now try BSD make style include.
3683 if test "$am__include" = "#"; then
3684 echo '.include "confinc"' > confmf
3685 case `$am_make -s -f confmf 2> /dev/null` in #(
3686 *the\ am__doit\ target*)
3687 am__include=.include
3688 am__quote="\""
3689 _am_result=BSD
3691 esac
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3696 $as_echo "$_am_result" >&6; }
3697 rm -f confinc confmf
3699 # Check whether --enable-dependency-tracking was given.
3700 if test "${enable_dependency_tracking+set}" = set; then :
3701 enableval=$enable_dependency_tracking;
3704 if test "x$enable_dependency_tracking" != xno; then
3705 am_depcomp="$ac_aux_dir/depcomp"
3706 AMDEPBACKSLASH='\'
3707 am__nodep='_no'
3709 if test "x$enable_dependency_tracking" != xno; then
3710 AMDEP_TRUE=
3711 AMDEP_FALSE='#'
3712 else
3713 AMDEP_TRUE='#'
3714 AMDEP_FALSE=
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_CC+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$CC"; then
3732 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3745 done
3746 done
3747 IFS=$as_save_IFS
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$ac_cv_prog_CC"; then
3763 ac_ct_CC=$CC
3764 # Extract the first word of "gcc", so it can be a program name with args.
3765 set dummy gcc; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC="gcc"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3787 IFS=$as_save_IFS
3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3800 if test "x$ac_ct_CC" = x; then
3801 CC=""
3802 else
3803 case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809 CC=$ac_ct_CC
3811 else
3812 CC="$ac_cv_prog_CC"
3815 if test -z "$CC"; then
3816 if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}cc; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}cc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3840 IFS=$as_save_IFS
3844 CC=$ac_cv_prog_CC
3845 if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 $as_echo "$CC" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3856 if test -z "$CC"; then
3857 # Extract the first word of "cc", so it can be a program name with args.
3858 set dummy cc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_CC+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 ac_prog_rejected=no
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3876 ac_prog_rejected=yes
3877 continue
3879 ac_cv_prog_CC="cc"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3883 done
3884 done
3885 IFS=$as_save_IFS
3887 if test $ac_prog_rejected = yes; then
3888 # We found a bogon in the path, so make sure we never use it.
3889 set dummy $ac_cv_prog_CC
3890 shift
3891 if test $# != 0; then
3892 # We chose a different compiler from the bogus one.
3893 # However, it has the same basename, so the bogon will be chosen
3894 # first if we set CC to just the basename; use the full file name.
3895 shift
3896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3912 if test -z "$CC"; then
3913 if test -n "$ac_tool_prefix"; then
3914 for ac_prog in cl.exe
3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_CC+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3939 IFS=$as_save_IFS
3943 CC=$ac_cv_prog_CC
3944 if test -n "$CC"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 $as_echo "$CC" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 test -n "$CC" && break
3954 done
3956 if test -z "$CC"; then
3957 ac_ct_CC=$CC
3958 for ac_prog in cl.exe
3960 # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="$ac_prog"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3983 IFS=$as_save_IFS
3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990 $as_echo "$ac_ct_CC" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3997 test -n "$ac_ct_CC" && break
3998 done
4000 if test "x$ac_ct_CC" = x; then
4001 CC=""
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 CC=$ac_ct_CC
4016 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "no acceptable C compiler found in \$PATH
4019 See \`config.log' for more details" "$LINENO" 5; }
4021 # Provide some information about the compiler.
4022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4023 set X $ac_compile
4024 ac_compiler=$2
4025 for ac_option in --version -v -V -qversion; do
4026 { { ac_try="$ac_compiler $ac_option >&5"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4034 ac_status=$?
4035 if test -s conftest.err; then
4036 sed '10a\
4037 ... rest of stderr output deleted ...
4038 10q' conftest.err >conftest.er1
4039 cat conftest.er1 >&5
4041 rm -f conftest.er1 conftest.err
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 done
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <stdio.h>
4050 main ()
4052 printf ("hello world\n");
4054 return 0;
4056 _ACEOF
4057 # FIXME: Cleanup?
4058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4059 (eval $ac_link) 2>&5
4060 ac_status=$?
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 gcc_no_link=no
4064 else
4065 gcc_no_link=yes
4067 if test x$gcc_no_link = xyes; then
4068 # Setting cross_compile will disable run tests; it will
4069 # also disable AC_CHECK_FILE but that's generally
4070 # correct if we can't link.
4071 cross_compiling=yes
4072 EXEEXT=
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 ac_clean_files_save=$ac_clean_files
4086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4087 # Try to create an executable without -o first, disregard a.out.
4088 # It will help us diagnose broken compilers, and finding out an intuition
4089 # of exeext.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4091 $as_echo_n "checking whether the C compiler works... " >&6; }
4092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4094 # The possible output files:
4095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4097 ac_rmfiles=
4098 for ac_file in $ac_files
4100 case $ac_file in
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4103 esac
4104 done
4105 rm -f $ac_rmfiles
4107 if { { ac_try="$ac_link_default"
4108 case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113 $as_echo "$ac_try_echo"; } >&5
4114 (eval "$ac_link_default") 2>&5
4115 ac_status=$?
4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117 test $ac_status = 0; }; then :
4118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4121 # so that the user can short-circuit this test for compilers unknown to
4122 # Autoconf.
4123 for ac_file in $ac_files ''
4125 test -f "$ac_file" || continue
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4129 [ab].out )
4130 # We found the default executable, but exeext='' is most
4131 # certainly right.
4132 break;;
4133 *.* )
4134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4135 then :; else
4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4138 # We set ac_cv_exeext here because the later test for it is not
4139 # safe: cross compilers may not add the suffix if given an `-o'
4140 # argument, so we may need to know it at that point already.
4141 # Even if this section looks crufty: it has the advantage of
4142 # actually working.
4143 break;;
4145 break;;
4146 esac
4147 done
4148 test "$ac_cv_exeext" = no && ac_cv_exeext=
4150 else
4151 ac_file=''
4153 if test -z "$ac_file"; then :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161 as_fn_error 77 "C compiler cannot create executables
4162 See \`config.log' for more details" "$LINENO" 5; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168 $as_echo_n "checking for C compiler default output file name... " >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4170 $as_echo "$ac_file" >&6; }
4171 ac_exeext=$ac_cv_exeext
4173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4174 ac_clean_files=$ac_clean_files_save
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4176 $as_echo_n "checking for suffix of executables... " >&6; }
4177 if { { ac_try="$ac_link"
4178 case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181 esac
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184 (eval "$ac_link") 2>&5
4185 ac_status=$?
4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187 test $ac_status = 0; }; then :
4188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4190 # work properly (i.e., refer to `conftest.exe'), while it won't with
4191 # `rm'.
4192 for ac_file in conftest.exe conftest conftest.*; do
4193 test -f "$ac_file" || continue
4194 case $ac_file in
4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4197 break;;
4198 * ) break;;
4199 esac
4200 done
4201 else
4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4205 See \`config.log' for more details" "$LINENO" 5; }
4207 rm -f conftest conftest$ac_cv_exeext
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4209 $as_echo "$ac_cv_exeext" >&6; }
4211 rm -f conftest.$ac_ext
4212 EXEEXT=$ac_cv_exeext
4213 ac_exeext=$EXEEXT
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <stdio.h>
4218 main ()
4220 FILE *f = fopen ("conftest.out", "w");
4221 return ferror (f) || fclose (f) != 0;
4224 return 0;
4226 _ACEOF
4227 ac_clean_files="$ac_clean_files conftest.out"
4228 # Check that the compiler produces executables we can run. If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 if test "$cross_compiling" != yes; then
4233 { { ac_try="$ac_link"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link") 2>&5
4241 ac_status=$?
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }
4244 if { ac_try='./conftest$ac_cv_exeext'
4245 { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; }; then
4255 cross_compiling=no
4256 else
4257 if test "$cross_compiling" = maybe; then
4258 cross_compiling=yes
4259 else
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error $? "cannot run C compiled programs.
4263 If you meant to cross compile, use \`--host'.
4264 See \`config.log' for more details" "$LINENO" 5; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4269 $as_echo "$cross_compiling" >&6; }
4271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4272 ac_clean_files=$ac_clean_files_save
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275 $as_echo_n "checking for suffix of object files... " >&6; }
4276 if ${ac_cv_objext+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 main ()
4287 return 0;
4289 _ACEOF
4290 rm -f conftest.o conftest.obj
4291 if { { ac_try="$ac_compile"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4304 case $ac_file in
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309 done
4310 else
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details" "$LINENO" 5; }
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 $as_echo "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if ${ac_cv_c_compiler_gnu+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4334 main ()
4336 #ifndef __GNUC__
4337 choke me
4338 #endif
4341 return 0;
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_compiler_gnu=yes
4346 else
4347 ac_compiler_gnu=no
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355 if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357 else
4358 GCC=
4360 ac_test_CFLAGS=${CFLAGS+set}
4361 ac_save_CFLAGS=$CFLAGS
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4364 if ${ac_cv_prog_cc_g+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4375 main ()
4379 return 0;
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 else
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4390 main ()
4394 return 0;
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4399 else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4406 main ()
4410 return 0;
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424 $as_echo "$ac_cv_prog_cc_g" >&6; }
4425 if test "$ac_test_CFLAGS" = set; then
4426 CFLAGS=$ac_save_CFLAGS
4427 elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4433 else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442 if ${ac_cv_prog_cc_c89+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 ac_cv_prog_cc_c89=no
4446 ac_save_CC=$CC
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <stdarg.h>
4450 #include <stdio.h>
4451 struct stat;
4452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4453 struct buf { int x; };
4454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4455 static char *e (p, i)
4456 char **p;
4457 int i;
4459 return p[i];
4461 static char *f (char * (*g) (char **, int), char **p, ...)
4463 char *s;
4464 va_list v;
4465 va_start (v,p);
4466 s = g (p, va_arg (v,int));
4467 va_end (v);
4468 return s;
4471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4472 function prototypes and stuff, but not '\xHH' hex character constants.
4473 These don't provoke an error unfortunately, instead are silently treated
4474 as 'x'. The following induces an error, until -std is added to get
4475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4476 array size at least. It's necessary to write '\x00'==0 to get something
4477 that's true only with -std. */
4478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4481 inside strings and character constants. */
4482 #define FOO(x) 'x'
4483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485 int test (int i, double x);
4486 struct s1 {int (*f) (int a);};
4487 struct s2 {int (*f) (double a);};
4488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4489 int argc;
4490 char **argv;
4492 main ()
4494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4496 return 0;
4498 _ACEOF
4499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4500 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4502 CC="$ac_save_CC $ac_arg"
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_prog_cc_c89=$ac_arg
4506 rm -f core conftest.err conftest.$ac_objext
4507 test "x$ac_cv_prog_cc_c89" != "xno" && break
4508 done
4509 rm -f conftest.$ac_ext
4510 CC=$ac_save_CC
4513 # AC_CACHE_VAL
4514 case "x$ac_cv_prog_cc_c89" in
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4517 $as_echo "none needed" >&6; } ;;
4518 xno)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4520 $as_echo "unsupported" >&6; } ;;
4522 CC="$CC $ac_cv_prog_cc_c89"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4524 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4525 esac
4526 if test "x$ac_cv_prog_cc_c89" != xno; then :
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4542 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4543 if ${am_cv_prog_cc_c_o+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 # Make sure it works both with $CC and with simple cc.
4558 # Following AC_PROG_CC_C_O, we do the test twice because some
4559 # compilers refuse to overwrite an existing .o file with -o,
4560 # though they will create one.
4561 am_cv_prog_cc_c_o=yes
4562 for am_i in 1 2; do
4563 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4564 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } \
4568 && test -f conftest2.$ac_objext; then
4569 : OK
4570 else
4571 am_cv_prog_cc_c_o=no
4572 break
4574 done
4575 rm -f core conftest*
4576 unset am_i
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4579 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4580 if test "$am_cv_prog_cc_c_o" != yes; then
4581 # Losing compiler, so override with the script.
4582 # FIXME: It is wrong to rewrite CC.
4583 # But if we don't then we get into trouble of one sort or another.
4584 # A longer-term fix would be to have automake use am__CC in this case,
4585 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4586 CC="$am_aux_dir/compile $CC"
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595 depcc="$CC" am_compiler_list=
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4598 $as_echo_n "checking dependency style of $depcc... " >&6; }
4599 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4603 # We make a subdir and do the tests there. Otherwise we can end up
4604 # making bogus files that we don't know about and never remove. For
4605 # instance it was reported that on HP-UX the gcc test will end up
4606 # making a dummy file named 'D' -- because '-MD' means "put the output
4607 # in D".
4608 rm -rf conftest.dir
4609 mkdir conftest.dir
4610 # Copy depcomp to subdir because otherwise we won't find it if we're
4611 # using a relative directory.
4612 cp "$am_depcomp" conftest.dir
4613 cd conftest.dir
4614 # We will build objects and dependencies in a subdirectory because
4615 # it helps to detect inapplicable dependency modes. For instance
4616 # both Tru64's cc and ICC support -MD to output dependencies as a
4617 # side effect of compilation, but ICC will put the dependencies in
4618 # the current directory while Tru64 will put them in the object
4619 # directory.
4620 mkdir sub
4622 am_cv_CC_dependencies_compiler_type=none
4623 if test "$am_compiler_list" = ""; then
4624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4626 am__universal=false
4627 case " $depcc " in #(
4628 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4629 esac
4631 for depmode in $am_compiler_list; do
4632 # Setup a source with many dependencies, because some compilers
4633 # like to wrap large dependency lists on column 80 (with \), and
4634 # we should not choose a depcomp mode which is confused by this.
4636 # We need to recreate these files for each test, as the compiler may
4637 # overwrite some of them when testing with obscure command lines.
4638 # This happens at least with the AIX C compiler.
4639 : > sub/conftest.c
4640 for i in 1 2 3 4 5 6; do
4641 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4642 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4643 # Solaris 10 /bin/sh.
4644 echo '/* dummy */' > sub/conftst$i.h
4645 done
4646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4648 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4649 # mode. It turns out that the SunPro C++ compiler does not properly
4650 # handle '-M -o', and we need to detect this. Also, some Intel
4651 # versions had trouble with output in subdirs.
4652 am__obj=sub/conftest.${OBJEXT-o}
4653 am__minus_obj="-o $am__obj"
4654 case $depmode in
4655 gcc)
4656 # This depmode causes a compiler race in universal mode.
4657 test "$am__universal" = false || continue
4659 nosideeffect)
4660 # After this tag, mechanisms are not by side-effect, so they'll
4661 # only be used when explicitly requested.
4662 if test "x$enable_dependency_tracking" = xyes; then
4663 continue
4664 else
4665 break
4668 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4669 # This compiler won't grok '-c -o', but also, the minuso test has
4670 # not run yet. These depmodes are late enough in the game, and
4671 # so weak that their functioning should not be impacted.
4672 am__obj=conftest.${OBJEXT-o}
4673 am__minus_obj=
4675 none) break ;;
4676 esac
4677 if depmode=$depmode \
4678 source=sub/conftest.c object=$am__obj \
4679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4680 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4681 >/dev/null 2>conftest.err &&
4682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4684 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4686 # icc doesn't choke on unknown options, it will just issue warnings
4687 # or remarks (even with -Werror). So we grep stderr for any message
4688 # that says an option was ignored or not supported.
4689 # When given -MP, icc 7.0 and 7.1 complain thusly:
4690 # icc: Command line warning: ignoring option '-M'; no argument required
4691 # The diagnosis changed in icc 8.0:
4692 # icc: Command line remark: option '-MP' not supported
4693 if (grep 'ignoring option' conftest.err ||
4694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4695 am_cv_CC_dependencies_compiler_type=$depmode
4696 break
4699 done
4701 cd ..
4702 rm -rf conftest.dir
4703 else
4704 am_cv_CC_dependencies_compiler_type=none
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4709 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4713 test "x$enable_dependency_tracking" != xno \
4714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4715 am__fastdepCC_TRUE=
4716 am__fastdepCC_FALSE='#'
4717 else
4718 am__fastdepCC_TRUE='#'
4719 am__fastdepCC_FALSE=
4724 ac_ext=c
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4730 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4731 # On Suns, sometimes $CPP names a directory.
4732 if test -n "$CPP" && test -d "$CPP"; then
4733 CPP=
4735 if test -z "$CPP"; then
4736 if ${ac_cv_prog_CPP+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 # Double quotes because CPP needs to be expanded
4740 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742 ac_preproc_ok=false
4743 for ac_c_preproc_warn_flag in '' yes
4745 # Use a header file that comes with gcc, so configuring glibc
4746 # with a fresh cross-compiler works.
4747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 # <limits.h> exists even on freestanding compilers.
4749 # On the NeXT, cc -E runs the code through the compiler's parser,
4750 # not just through cpp. "Syntax error" is here to catch this case.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #ifdef __STDC__
4754 # include <limits.h>
4755 #else
4756 # include <assert.h>
4757 #endif
4758 Syntax error
4759 _ACEOF
4760 if ac_fn_c_try_cpp "$LINENO"; then :
4762 else
4763 # Broken: fails on valid input.
4764 continue
4766 rm -f conftest.err conftest.i conftest.$ac_ext
4768 # OK, works on sane cases. Now check whether nonexistent headers
4769 # can be detected and how.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4773 _ACEOF
4774 if ac_fn_c_try_cpp "$LINENO"; then :
4775 # Broken: success on invalid input.
4776 continue
4777 else
4778 # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4782 rm -f conftest.err conftest.i conftest.$ac_ext
4784 done
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.i conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then :
4788 break
4791 done
4792 ac_cv_prog_CPP=$CPP
4795 CPP=$ac_cv_prog_CPP
4796 else
4797 ac_cv_prog_CPP=$CPP
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4800 $as_echo "$CPP" >&6; }
4801 ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if ac_fn_c_try_cpp "$LINENO"; then :
4821 else
4822 # Broken: fails on valid input.
4823 continue
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if ac_fn_c_try_cpp "$LINENO"; then :
4834 # Broken: success on invalid input.
4835 continue
4836 else
4837 # Passes both tests.
4838 ac_preproc_ok=:
4839 break
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4843 done
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then :
4848 else
4849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4851 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4852 See \`config.log' for more details" "$LINENO" 5; }
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4863 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4864 if ${ac_cv_path_GREP+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -z "$GREP"; then
4868 ac_path_GREP_found=false
4869 # Loop through the user's path and test for each of PROGNAME-LIST
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_prog in grep ggrep; do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4878 as_fn_executable_p "$ac_path_GREP" || continue
4879 # Check for GNU ac_path_GREP and select it if it is found.
4880 # Check for GNU $ac_path_GREP
4881 case `"$ac_path_GREP" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4885 ac_count=0
4886 $as_echo_n 0123456789 >"conftest.in"
4887 while :
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 $as_echo 'GREP' >> "conftest.nl"
4893 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_GREP="$ac_path_GREP"
4899 ac_path_GREP_max=$ac_count
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4907 $ac_path_GREP_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_GREP"; then
4913 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915 else
4916 ac_cv_path_GREP=$GREP
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4921 $as_echo "$ac_cv_path_GREP" >&6; }
4922 GREP="$ac_cv_path_GREP"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4926 $as_echo_n "checking for egrep... " >&6; }
4927 if ${ac_cv_path_EGREP+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4931 then ac_cv_path_EGREP="$GREP -E"
4932 else
4933 if test -z "$EGREP"; then
4934 ac_path_EGREP_found=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_prog in egrep; do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4944 as_fn_executable_p "$ac_path_EGREP" || continue
4945 # Check for GNU ac_path_EGREP and select it if it is found.
4946 # Check for GNU $ac_path_EGREP
4947 case `"$ac_path_EGREP" --version 2>&1` in
4948 *GNU*)
4949 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4951 ac_count=0
4952 $as_echo_n 0123456789 >"conftest.in"
4953 while :
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'EGREP' >> "conftest.nl"
4959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_EGREP="$ac_path_EGREP"
4965 ac_path_EGREP_max=$ac_count
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 esac
4973 $ac_path_EGREP_found && break 3
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_EGREP"; then
4979 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981 else
4982 ac_cv_path_EGREP=$EGREP
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4988 $as_echo "$ac_cv_path_EGREP" >&6; }
4989 EGREP="$ac_cv_path_EGREP"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4993 $as_echo_n "checking for ANSI C header files... " >&6; }
4994 if ${ac_cv_header_stdc+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #include <stdlib.h>
5000 #include <stdarg.h>
5001 #include <string.h>
5002 #include <float.h>
5005 main ()
5009 return 0;
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_header_stdc=yes
5014 else
5015 ac_cv_header_stdc=no
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 if test $ac_cv_header_stdc = yes; then
5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <string.h>
5025 _ACEOF
5026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 $EGREP "memchr" >/dev/null 2>&1; then :
5029 else
5030 ac_cv_header_stdc=no
5032 rm -f conftest*
5036 if test $ac_cv_header_stdc = yes; then
5037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <stdlib.h>
5042 _ACEOF
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044 $EGREP "free" >/dev/null 2>&1; then :
5046 else
5047 ac_cv_header_stdc=no
5049 rm -f conftest*
5053 if test $ac_cv_header_stdc = yes; then
5054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5055 if test "$cross_compiling" = yes; then :
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <ctype.h>
5061 #include <stdlib.h>
5062 #if ((' ' & 0x0FF) == 0x020)
5063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065 #else
5066 # define ISLOWER(c) \
5067 (('a' <= (c) && (c) <= 'i') \
5068 || ('j' <= (c) && (c) <= 'r') \
5069 || ('s' <= (c) && (c) <= 'z'))
5070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071 #endif
5073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5075 main ()
5077 int i;
5078 for (i = 0; i < 256; i++)
5079 if (XOR (islower (i), ISLOWER (i))
5080 || toupper (i) != TOUPPER (i))
5081 return 2;
5082 return 0;
5084 _ACEOF
5085 if ac_fn_c_try_run "$LINENO"; then :
5087 else
5088 ac_cv_header_stdc=no
5090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5091 conftest.$ac_objext conftest.beam conftest.$ac_ext
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5097 $as_echo "$ac_cv_header_stdc" >&6; }
5098 if test $ac_cv_header_stdc = yes; then
5100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5106 inttypes.h stdint.h unistd.h
5107 do :
5108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5112 cat >>confdefs.h <<_ACEOF
5113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 _ACEOF
5118 done
5122 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5123 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5124 MINIX=yes
5125 else
5126 MINIX=
5130 if test "$MINIX" = yes; then
5132 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5135 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5138 $as_echo "#define _MINIX 1" >>confdefs.h
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5144 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5145 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5151 # define __EXTENSIONS__ 1
5152 $ac_includes_default
5154 main ()
5158 return 0;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 ac_cv_safe_to_define___extensions__=yes
5163 else
5164 ac_cv_safe_to_define___extensions__=no
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5169 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5170 test $ac_cv_safe_to_define___extensions__ = yes &&
5171 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5173 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5175 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5177 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5179 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5184 # Check whether --with-toolexeclibdir was given.
5185 if test "${with_toolexeclibdir+set}" = set; then :
5186 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5190 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5192 esac
5193 else
5194 with_toolexeclibdir=no
5199 # Calculate toolexeclibdir
5200 # Also toolexecdir, though it's only used in toolexeclibdir
5201 case ${version_specific_libs} in
5202 yes)
5203 # Need the gcc compiler version to know where to install libraries
5204 # and header files if --enable-version-specific-runtime-libs option
5205 # is selected.
5206 toolexecdir='$(libdir)/gcc/$(target_alias)'
5207 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5210 if test -n "$with_cross_host" &&
5211 test x"$with_cross_host" != x"no"; then
5212 # Install a library built with a cross compiler in tooldir, not libdir.
5213 toolexecdir='$(exec_prefix)/$(target_alias)'
5214 case ${with_toolexeclibdir} in
5216 toolexeclibdir='$(toolexecdir)/lib'
5219 toolexeclibdir=${with_toolexeclibdir}
5221 esac
5222 else
5223 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5224 toolexeclibdir='$(libdir)'
5226 multi_os_directory=`$CC -print-multi-os-directory`
5227 case $multi_os_directory in
5228 .) ;; # Avoid trailing /.
5229 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5230 esac
5232 esac
5236 # Create a spec file, so that compile/link tests don't fail
5237 test -f libgfortran.spec || touch libgfortran.spec
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 # Check the compiler.
5246 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5247 # We must force CC to /not/ be precious variables; otherwise
5248 # the wrong, non-multilib-adjusted value will be used in multilibs.
5249 # As a side effect, we have to subst CFLAGS ourselves.
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_CC+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$CC"; then
5267 ac_cv_prog_CC="$CC" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 CC=$ac_cv_prog_CC
5287 if test -n "$CC"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5289 $as_echo "$CC" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5297 if test -z "$ac_cv_prog_CC"; then
5298 ac_ct_CC=$CC
5299 # Extract the first word of "gcc", so it can be a program name with args.
5300 set dummy gcc; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$ac_ct_CC"; then
5307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_ac_ct_CC="gcc"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5327 if test -n "$ac_ct_CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5329 $as_echo "$ac_ct_CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5335 if test "x$ac_ct_CC" = x; then
5336 CC=""
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 CC=$ac_ct_CC
5346 else
5347 CC="$ac_cv_prog_CC"
5350 if test -z "$CC"; then
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}cc; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_CC+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$CC"; then
5360 ac_cv_prog_CC="$CC" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_CC="${ac_tool_prefix}cc"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5373 done
5374 done
5375 IFS=$as_save_IFS
5379 CC=$ac_cv_prog_CC
5380 if test -n "$CC"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5382 $as_echo "$CC" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5391 if test -z "$CC"; then
5392 # Extract the first word of "cc", so it can be a program name with args.
5393 set dummy cc; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_CC+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$CC"; then
5400 ac_cv_prog_CC="$CC" # Let the user override the test.
5401 else
5402 ac_prog_rejected=no
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5411 ac_prog_rejected=yes
5412 continue
5414 ac_cv_prog_CC="cc"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5422 if test $ac_prog_rejected = yes; then
5423 # We found a bogon in the path, so make sure we never use it.
5424 set dummy $ac_cv_prog_CC
5425 shift
5426 if test $# != 0; then
5427 # We chose a different compiler from the bogus one.
5428 # However, it has the same basename, so the bogon will be chosen
5429 # first if we set CC to just the basename; use the full file name.
5430 shift
5431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5436 CC=$ac_cv_prog_CC
5437 if test -n "$CC"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5439 $as_echo "$CC" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5447 if test -z "$CC"; then
5448 if test -n "$ac_tool_prefix"; then
5449 for ac_prog in cl.exe
5451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_CC+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$CC"; then
5459 ac_cv_prog_CC="$CC" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5478 CC=$ac_cv_prog_CC
5479 if test -n "$CC"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5481 $as_echo "$CC" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 test -n "$CC" && break
5489 done
5491 if test -z "$CC"; then
5492 ac_ct_CC=$CC
5493 for ac_prog in cl.exe
5495 # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$ac_ct_CC"; then
5503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_CC="$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5523 if test -n "$ac_ct_CC"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5525 $as_echo "$ac_ct_CC" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 test -n "$ac_ct_CC" && break
5533 done
5535 if test "x$ac_ct_CC" = x; then
5536 CC=""
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 CC=$ac_ct_CC
5551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5553 as_fn_error $? "no acceptable C compiler found in \$PATH
5554 See \`config.log' for more details" "$LINENO" 5; }
5556 # Provide some information about the compiler.
5557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5558 set X $ac_compile
5559 ac_compiler=$2
5560 for ac_option in --version -v -V -qversion; do
5561 { { ac_try="$ac_compiler $ac_option >&5"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5567 $as_echo "$ac_try_echo"; } >&5
5568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5569 ac_status=$?
5570 if test -s conftest.err; then
5571 sed '10a\
5572 ... rest of stderr output deleted ...
5573 10q' conftest.err >conftest.er1
5574 cat conftest.er1 >&5
5576 rm -f conftest.er1 conftest.err
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; }
5579 done
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5583 if ${ac_cv_c_compiler_gnu+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5590 main ()
5592 #ifndef __GNUC__
5593 choke me
5594 #endif
5597 return 0;
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_compiler_gnu=yes
5602 else
5603 ac_compiler_gnu=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5611 if test $ac_compiler_gnu = yes; then
5612 GCC=yes
5613 else
5614 GCC=
5616 ac_test_CFLAGS=${CFLAGS+set}
5617 ac_save_CFLAGS=$CFLAGS
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5620 if ${ac_cv_prog_cc_g+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 ac_save_c_werror_flag=$ac_c_werror_flag
5624 ac_c_werror_flag=yes
5625 ac_cv_prog_cc_g=no
5626 CFLAGS="-g"
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_prog_cc_g=yes
5640 else
5641 CFLAGS=""
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5655 else
5656 ac_c_werror_flag=$ac_save_c_werror_flag
5657 CFLAGS="-g"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5662 main ()
5666 return 0;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_prog_cc_g=yes
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_c_werror_flag=$ac_save_c_werror_flag
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5680 $as_echo "$ac_cv_prog_cc_g" >&6; }
5681 if test "$ac_test_CFLAGS" = set; then
5682 CFLAGS=$ac_save_CFLAGS
5683 elif test $ac_cv_prog_cc_g = yes; then
5684 if test "$GCC" = yes; then
5685 CFLAGS="-g -O2"
5686 else
5687 CFLAGS="-g"
5689 else
5690 if test "$GCC" = yes; then
5691 CFLAGS="-O2"
5692 else
5693 CFLAGS=
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5698 if ${ac_cv_prog_cc_c89+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 ac_cv_prog_cc_c89=no
5702 ac_save_CC=$CC
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #include <stdarg.h>
5706 #include <stdio.h>
5707 struct stat;
5708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5709 struct buf { int x; };
5710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5711 static char *e (p, i)
5712 char **p;
5713 int i;
5715 return p[i];
5717 static char *f (char * (*g) (char **, int), char **p, ...)
5719 char *s;
5720 va_list v;
5721 va_start (v,p);
5722 s = g (p, va_arg (v,int));
5723 va_end (v);
5724 return s;
5727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5728 function prototypes and stuff, but not '\xHH' hex character constants.
5729 These don't provoke an error unfortunately, instead are silently treated
5730 as 'x'. The following induces an error, until -std is added to get
5731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5732 array size at least. It's necessary to write '\x00'==0 to get something
5733 that's true only with -std. */
5734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5737 inside strings and character constants. */
5738 #define FOO(x) 'x'
5739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5741 int test (int i, double x);
5742 struct s1 {int (*f) (int a);};
5743 struct s2 {int (*f) (double a);};
5744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5745 int argc;
5746 char **argv;
5748 main ()
5750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5752 return 0;
5754 _ACEOF
5755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5758 CC="$ac_save_CC $ac_arg"
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_prog_cc_c89=$ac_arg
5762 rm -f core conftest.err conftest.$ac_objext
5763 test "x$ac_cv_prog_cc_c89" != "xno" && break
5764 done
5765 rm -f conftest.$ac_ext
5766 CC=$ac_save_CC
5769 # AC_CACHE_VAL
5770 case "x$ac_cv_prog_cc_c89" in
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5773 $as_echo "none needed" >&6; } ;;
5774 xno)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5776 $as_echo "unsupported" >&6; } ;;
5778 CC="$CC $ac_cv_prog_cc_c89"
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5781 esac
5782 if test "x$ac_cv_prog_cc_c89" != xno; then :
5786 ac_ext=c
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5798 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5799 if ${am_cv_prog_cc_c_o+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5806 main ()
5810 return 0;
5812 _ACEOF
5813 # Make sure it works both with $CC and with simple cc.
5814 # Following AC_PROG_CC_C_O, we do the test twice because some
5815 # compilers refuse to overwrite an existing .o file with -o,
5816 # though they will create one.
5817 am_cv_prog_cc_c_o=yes
5818 for am_i in 1 2; do
5819 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5820 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } \
5824 && test -f conftest2.$ac_objext; then
5825 : OK
5826 else
5827 am_cv_prog_cc_c_o=no
5828 break
5830 done
5831 rm -f core conftest*
5832 unset am_i
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5835 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5836 if test "$am_cv_prog_cc_c_o" != yes; then
5837 # Losing compiler, so override with the script.
5838 # FIXME: It is wrong to rewrite CC.
5839 # But if we don't then we get into trouble of one sort or another.
5840 # A longer-term fix would be to have automake use am__CC in this case,
5841 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5842 CC="$am_aux_dir/compile $CC"
5844 ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851 depcc="$CC" am_compiler_list=
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5854 $as_echo_n "checking dependency style of $depcc... " >&6; }
5855 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5859 # We make a subdir and do the tests there. Otherwise we can end up
5860 # making bogus files that we don't know about and never remove. For
5861 # instance it was reported that on HP-UX the gcc test will end up
5862 # making a dummy file named 'D' -- because '-MD' means "put the output
5863 # in D".
5864 rm -rf conftest.dir
5865 mkdir conftest.dir
5866 # Copy depcomp to subdir because otherwise we won't find it if we're
5867 # using a relative directory.
5868 cp "$am_depcomp" conftest.dir
5869 cd conftest.dir
5870 # We will build objects and dependencies in a subdirectory because
5871 # it helps to detect inapplicable dependency modes. For instance
5872 # both Tru64's cc and ICC support -MD to output dependencies as a
5873 # side effect of compilation, but ICC will put the dependencies in
5874 # the current directory while Tru64 will put them in the object
5875 # directory.
5876 mkdir sub
5878 am_cv_CC_dependencies_compiler_type=none
5879 if test "$am_compiler_list" = ""; then
5880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5882 am__universal=false
5883 case " $depcc " in #(
5884 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5885 esac
5887 for depmode in $am_compiler_list; do
5888 # Setup a source with many dependencies, because some compilers
5889 # like to wrap large dependency lists on column 80 (with \), and
5890 # we should not choose a depcomp mode which is confused by this.
5892 # We need to recreate these files for each test, as the compiler may
5893 # overwrite some of them when testing with obscure command lines.
5894 # This happens at least with the AIX C compiler.
5895 : > sub/conftest.c
5896 for i in 1 2 3 4 5 6; do
5897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5898 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5899 # Solaris 10 /bin/sh.
5900 echo '/* dummy */' > sub/conftst$i.h
5901 done
5902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5904 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5905 # mode. It turns out that the SunPro C++ compiler does not properly
5906 # handle '-M -o', and we need to detect this. Also, some Intel
5907 # versions had trouble with output in subdirs.
5908 am__obj=sub/conftest.${OBJEXT-o}
5909 am__minus_obj="-o $am__obj"
5910 case $depmode in
5911 gcc)
5912 # This depmode causes a compiler race in universal mode.
5913 test "$am__universal" = false || continue
5915 nosideeffect)
5916 # After this tag, mechanisms are not by side-effect, so they'll
5917 # only be used when explicitly requested.
5918 if test "x$enable_dependency_tracking" = xyes; then
5919 continue
5920 else
5921 break
5924 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5925 # This compiler won't grok '-c -o', but also, the minuso test has
5926 # not run yet. These depmodes are late enough in the game, and
5927 # so weak that their functioning should not be impacted.
5928 am__obj=conftest.${OBJEXT-o}
5929 am__minus_obj=
5931 none) break ;;
5932 esac
5933 if depmode=$depmode \
5934 source=sub/conftest.c object=$am__obj \
5935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5937 >/dev/null 2>conftest.err &&
5938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5951 am_cv_CC_dependencies_compiler_type=$depmode
5952 break
5955 done
5957 cd ..
5958 rm -rf conftest.dir
5959 else
5960 am_cv_CC_dependencies_compiler_type=none
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5965 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5966 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5971 am__fastdepCC_TRUE=
5972 am__fastdepCC_FALSE='#'
5973 else
5974 am__fastdepCC_TRUE='#'
5975 am__fastdepCC_FALSE=
5985 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5986 if test "x$GCC" = "xyes"; then
5987 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5988 ## We like to use C11 and C99 routines when available. This makes
5989 ## sure that
5990 ## __STDC_VERSION__ is set such that libc includes make them available.
5991 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5992 ## Compile the following tests with the same system header contents
5993 ## that we'll encounter when compiling our own source files.
5994 CFLAGS="-std=gnu11 $CFLAGS"
5997 # Add CET specific flags if CET is enabled
5998 # Check whether --enable-cet was given.
5999 if test "${enable_cet+set}" = set; then :
6000 enableval=$enable_cet;
6001 case "$enableval" in
6002 yes|no|auto) ;;
6003 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
6004 esac
6006 else
6007 enable_cet=auto
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6012 $as_echo_n "checking for CET support... " >&6; }
6014 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
6015 case "$host" in
6016 i[34567]86-*-linux* | x86_64-*-linux*)
6017 case "$enable_cet" in
6018 auto)
6019 # Check if target supports multi-byte NOPs
6020 # and if assembler supports CET insn.
6021 cet_save_CFLAGS="$CFLAGS"
6022 CFLAGS="$CFLAGS -fcf-protection"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6027 main ()
6030 #if !defined(__SSE2__)
6031 #error target does not support multi-byte NOPs
6032 #else
6033 asm ("setssbsy");
6034 #endif
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 enable_cet=yes
6042 else
6043 enable_cet=no
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 CFLAGS="$cet_save_CFLAGS"
6048 yes)
6049 # Check if assembler supports CET.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6054 main ()
6056 asm ("setssbsy");
6058 return 0;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6063 else
6064 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 esac
6071 enable_cet=no
6073 esac
6074 if test x$enable_cet = xyes; then
6075 CET_FLAGS="-fcf-protection -mshstk"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6077 $as_echo "yes" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6083 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6084 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6085 CFLAGS="$CFLAGS $CET_FLAGS"
6091 # Check for symbol versioning (copied from libssp).
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6093 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6094 # Check whether --enable-symvers was given.
6095 if test "${enable_symvers+set}" = set; then :
6096 enableval=$enable_symvers; gfortran_use_symver=$enableval
6097 else
6098 gfortran_use_symver=yes
6101 if test "x$gfortran_use_symver" != xno; then
6102 save_LDFLAGS="$LDFLAGS"
6103 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6104 cat > conftest.map <<EOF
6105 FOO_1.0 {
6106 global: *foo*; bar; local: *;
6109 if test x$gcc_no_link = xyes; then
6110 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 int foo;
6116 main ()
6120 return 0;
6122 _ACEOF
6123 if ac_fn_c_try_link "$LINENO"; then :
6124 gfortran_use_symver=gnu
6125 else
6126 gfortran_use_symver=no
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 if test x$gfortran_use_symver = xno; then
6131 case "$target_os" in
6132 solaris2*)
6133 LDFLAGS="$save_LDFLAGS"
6134 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6135 # Sun ld cannot handle wildcards and treats all entries as undefined.
6136 cat > conftest.map <<EOF
6137 FOO_1.0 {
6138 global: foo; local: *;
6141 if test x$gcc_no_link = xyes; then
6142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int foo;
6148 main ()
6152 return 0;
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 gfortran_use_symver=sun
6157 else
6158 gfortran_use_symver=no
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6163 esac
6165 LDFLAGS="$save_LDFLAGS"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6168 $as_echo "$gfortran_use_symver" >&6; }
6169 if test "x$gfortran_use_symver" != xno; then
6170 LIBGFOR_USE_SYMVER_TRUE=
6171 LIBGFOR_USE_SYMVER_FALSE='#'
6172 else
6173 LIBGFOR_USE_SYMVER_TRUE='#'
6174 LIBGFOR_USE_SYMVER_FALSE=
6177 if test "x$gfortran_use_symver" = xgnu; then
6178 LIBGFOR_USE_SYMVER_GNU_TRUE=
6179 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6180 else
6181 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6182 LIBGFOR_USE_SYMVER_GNU_FALSE=
6185 if test "x$gfortran_use_symver" = xsun; then
6186 LIBGFOR_USE_SYMVER_SUN_TRUE=
6187 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6188 else
6189 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6190 LIBGFOR_USE_SYMVER_SUN_FALSE=
6194 # For GPU offloading, not everything in libfortran can be supported.
6195 # Currently, the only target that has this problem is nvptx. The
6196 # following is a (partial) list of features that are unsupportable on
6197 # this particular target:
6198 # * Constructors
6199 # * alloca
6200 # * C library support for I/O, with printf as the one notable exception
6201 # * C library support for other features such as signal, environment
6202 # variables, time functions
6204 if test "x${target_cpu}" = xnvptx; then
6205 LIBGFOR_MINIMAL_TRUE=
6206 LIBGFOR_MINIMAL_FALSE='#'
6207 else
6208 LIBGFOR_MINIMAL_TRUE='#'
6209 LIBGFOR_MINIMAL_FALSE=
6213 # Some compiler target support may have limited support for integer
6214 # or floating point numbers – or may want to reduce the libgfortran size
6215 # although they do have the support.
6216 LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6217 LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6219 if test "x${target_cpu}" = xamdgcn; then
6220 # amdgcn only has limited support for __int128.
6221 LIBGOMP_CHECKED_INT_KINDS="1 2 4 8"
6226 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6227 # similarly to how libstdc++ does it
6228 ac_test_CFLAGS="${CFLAGS+set}"
6229 ac_save_CFLAGS="$CFLAGS"
6231 # Check for -ffunction-sections -fdata-sections
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6233 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6234 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6239 main ()
6241 int foo;
6243 return 0;
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247 ac_fdsections=yes
6248 else
6249 ac_fdsections=no
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 if test "$ac_test_CFLAGS" = set; then
6253 CFLAGS="$ac_save_CFLAGS"
6254 else
6255 # this is the suspicious part
6256 CFLAGS=""
6258 if test x"$ac_fdsections" = x"yes"; then
6259 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6262 $as_echo "$ac_fdsections" >&6; }
6265 # Check linker hardware capability support.
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6268 if ${ac_cv_path_SED+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6272 for ac_i in 1 2 3 4 5 6 7; do
6273 ac_script="$ac_script$as_nl$ac_script"
6274 done
6275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6276 { ac_script=; unset ac_script;}
6277 if test -z "$SED"; then
6278 ac_path_SED_found=false
6279 # Loop through the user's path and test for each of PROGNAME-LIST
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_prog in sed gsed; do
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6288 as_fn_executable_p "$ac_path_SED" || continue
6289 # Check for GNU ac_path_SED and select it if it is found.
6290 # Check for GNU $ac_path_SED
6291 case `"$ac_path_SED" --version 2>&1` in
6292 *GNU*)
6293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6295 ac_count=0
6296 $as_echo_n 0123456789 >"conftest.in"
6297 while :
6299 cat "conftest.in" "conftest.in" >"conftest.tmp"
6300 mv "conftest.tmp" "conftest.in"
6301 cp "conftest.in" "conftest.nl"
6302 $as_echo '' >> "conftest.nl"
6303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305 as_fn_arith $ac_count + 1 && ac_count=$as_val
6306 if test $ac_count -gt ${ac_path_SED_max-0}; then
6307 # Best one so far, save it but keep looking for a better one
6308 ac_cv_path_SED="$ac_path_SED"
6309 ac_path_SED_max=$ac_count
6311 # 10*(2^10) chars as input seems more than enough
6312 test $ac_count -gt 10 && break
6313 done
6314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6315 esac
6317 $ac_path_SED_found && break 3
6318 done
6319 done
6320 done
6321 IFS=$as_save_IFS
6322 if test -z "$ac_cv_path_SED"; then
6323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6325 else
6326 ac_cv_path_SED=$SED
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6331 $as_echo "$ac_cv_path_SED" >&6; }
6332 SED="$ac_cv_path_SED"
6333 rm -f conftest.sed
6335 test -z "$SED" && SED=sed
6336 Xsed="$SED -e 1s/^X//"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6349 $as_echo_n "checking for fgrep... " >&6; }
6350 if ${ac_cv_path_FGREP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6354 then ac_cv_path_FGREP="$GREP -F"
6355 else
6356 if test -z "$FGREP"; then
6357 ac_path_FGREP_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in fgrep; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_FGREP" || continue
6368 # Check for GNU ac_path_FGREP and select it if it is found.
6369 # Check for GNU $ac_path_FGREP
6370 case `"$ac_path_FGREP" --version 2>&1` in
6371 *GNU*)
6372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6374 ac_count=0
6375 $as_echo_n 0123456789 >"conftest.in"
6376 while :
6378 cat "conftest.in" "conftest.in" >"conftest.tmp"
6379 mv "conftest.tmp" "conftest.in"
6380 cp "conftest.in" "conftest.nl"
6381 $as_echo 'FGREP' >> "conftest.nl"
6382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384 as_fn_arith $ac_count + 1 && ac_count=$as_val
6385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6386 # Best one so far, save it but keep looking for a better one
6387 ac_cv_path_FGREP="$ac_path_FGREP"
6388 ac_path_FGREP_max=$ac_count
6390 # 10*(2^10) chars as input seems more than enough
6391 test $ac_count -gt 10 && break
6392 done
6393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6394 esac
6396 $ac_path_FGREP_found && break 3
6397 done
6398 done
6399 done
6400 IFS=$as_save_IFS
6401 if test -z "$ac_cv_path_FGREP"; then
6402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6404 else
6405 ac_cv_path_FGREP=$FGREP
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6411 $as_echo "$ac_cv_path_FGREP" >&6; }
6412 FGREP="$ac_cv_path_FGREP"
6415 test -z "$GREP" && GREP=grep
6433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6438 $as_echo_n "checking how to print strings... " >&6; }
6439 # Test print first, because it will be a builtin if present.
6440 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6442 ECHO='print -r --'
6443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6444 ECHO='printf %s\n'
6445 else
6446 # Use this function as a fallback that always works.
6447 func_fallback_echo ()
6449 eval 'cat <<_LTECHO_EOF
6451 _LTECHO_EOF'
6453 ECHO='func_fallback_echo'
6456 # func_echo_all arg...
6457 # Invoke $ECHO with all args, space-separated.
6458 func_echo_all ()
6460 $ECHO ""
6463 case "$ECHO" in
6464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6465 $as_echo "printf" >&6; } ;;
6466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6467 $as_echo "print -r" >&6; } ;;
6468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6469 $as_echo "cat" >&6; } ;;
6470 esac
6487 # Check whether --with-gnu-ld was given.
6488 if test "${with_gnu_ld+set}" = set; then :
6489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6490 else
6491 with_gnu_ld=no
6494 ac_prog=ld
6495 if test "$GCC" = yes; then
6496 # Check if gcc -print-prog-name=ld gives a path.
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6498 $as_echo_n "checking for ld used by $CC... " >&6; }
6499 case $host in
6500 *-*-mingw*)
6501 # gcc leaves a trailing carriage return which upsets mingw
6502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6505 esac
6506 case $ac_prog in
6507 # Accept absolute paths.
6508 [\\/]* | ?:[\\/]*)
6509 re_direlt='/[^/][^/]*/\.\./'
6510 # Canonicalize the pathname of ld
6511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6514 done
6515 test -z "$LD" && LD="$ac_prog"
6518 # If it fails, then pretend we aren't using GCC.
6519 ac_prog=ld
6522 # If it is relative, then search for the first ld in PATH.
6523 with_gnu_ld=unknown
6525 esac
6526 elif test "$with_gnu_ld" = yes; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6528 $as_echo_n "checking for GNU ld... " >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6531 $as_echo_n "checking for non-GNU ld... " >&6; }
6533 if ${lt_cv_path_LD+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 if test -z "$LD"; then
6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538 for ac_dir in $PATH; do
6539 IFS="$lt_save_ifs"
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6542 lt_cv_path_LD="$ac_dir/$ac_prog"
6543 # Check to see if the program is GNU ld. I'd rather use --version,
6544 # but apparently some variants of GNU ld only accept -v.
6545 # Break only if it was the GNU/non-GNU ld that we prefer.
6546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6547 *GNU* | *'with BFD'*)
6548 test "$with_gnu_ld" != no && break
6551 test "$with_gnu_ld" != yes && break
6553 esac
6555 done
6556 IFS="$lt_save_ifs"
6557 else
6558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6562 LD="$lt_cv_path_LD"
6563 if test -n "$LD"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6565 $as_echo "$LD" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6573 if ${lt_cv_prog_gnu_ld+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6577 case `$LD -v 2>&1 </dev/null` in
6578 *GNU* | *'with BFD'*)
6579 lt_cv_prog_gnu_ld=yes
6582 lt_cv_prog_gnu_ld=no
6584 esac
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6587 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6588 with_gnu_ld=$lt_cv_prog_gnu_ld
6599 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6602 ac_save_LDFLAGS="$LDFLAGS"
6603 LDFLAGS="$LFLAGS -mclear-hwcap"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6606 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6607 if test x$gcc_no_link = xyes; then
6608 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6614 main ()
6616 return 0;
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"; then :
6622 ac_hwcap_ldflags=yes
6623 else
6624 ac_hwcap_ldflags=no
6626 rm -f core conftest.err conftest.$ac_objext \
6627 conftest$ac_exeext conftest.$ac_ext
6628 if test "$ac_hwcap_ldflags" = "yes"; then
6629 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6632 $as_echo "$ac_hwcap_ldflags" >&6; }
6634 LDFLAGS="$ac_save_LDFLAGS"
6638 if test $ac_hwcap_ldflags != no; then
6639 HAVE_HWCAP_TRUE=
6640 HAVE_HWCAP_FALSE='#'
6641 else
6642 HAVE_HWCAP_TRUE='#'
6643 HAVE_HWCAP_FALSE=
6648 # Find other programs we need.
6649 if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}as; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_AS+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 if test -n "$AS"; then
6658 ac_cv_prog_AS="$AS" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_AS="${ac_tool_prefix}as"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6671 done
6672 done
6673 IFS=$as_save_IFS
6677 AS=$ac_cv_prog_AS
6678 if test -n "$AS"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6680 $as_echo "$AS" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6688 if test -z "$ac_cv_prog_AS"; then
6689 ac_ct_AS=$AS
6690 # Extract the first word of "as", so it can be a program name with args.
6691 set dummy as; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$ac_ct_AS"; then
6698 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_ac_ct_AS="as"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6717 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6718 if test -n "$ac_ct_AS"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6720 $as_echo "$ac_ct_AS" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6726 if test "x$ac_ct_AS" = x; then
6727 AS=""
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735 AS=$ac_ct_AS
6737 else
6738 AS="$ac_cv_prog_AS"
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}ar; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_AR+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$AR"; then
6750 ac_cv_prog_AR="$AR" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_AR="${ac_tool_prefix}ar"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6763 done
6764 done
6765 IFS=$as_save_IFS
6769 AR=$ac_cv_prog_AR
6770 if test -n "$AR"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6772 $as_echo "$AR" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6780 if test -z "$ac_cv_prog_AR"; then
6781 ac_ct_AR=$AR
6782 # Extract the first word of "ar", so it can be a program name with args.
6783 set dummy ar; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$ac_ct_AR"; then
6790 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_AR="ar"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6803 done
6804 done
6805 IFS=$as_save_IFS
6809 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6810 if test -n "$ac_ct_AR"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6812 $as_echo "$ac_ct_AR" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6818 if test "x$ac_ct_AR" = x; then
6819 AR=""
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 AR=$ac_ct_AR
6829 else
6830 AR="$ac_cv_prog_AR"
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_RANLIB+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$RANLIB"; then
6842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 RANLIB=$ac_cv_prog_RANLIB
6862 if test -n "$RANLIB"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6864 $as_echo "$RANLIB" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_RANLIB"; then
6873 ac_ct_RANLIB=$RANLIB
6874 # Extract the first word of "ranlib", so it can be a program name with args.
6875 set dummy ranlib; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_RANLIB"; then
6882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_RANLIB="ranlib"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6902 if test -n "$ac_ct_RANLIB"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6904 $as_echo "$ac_ct_RANLIB" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_RANLIB" = x; then
6911 RANLIB="ranlib-not-found-in-path-error"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 RANLIB=$ac_ct_RANLIB
6921 else
6922 RANLIB="$ac_cv_prog_RANLIB"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6926 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6927 set x ${MAKE-make}
6928 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6929 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat >conftest.make <<\_ACEOF
6933 SHELL = /bin/sh
6934 all:
6935 @echo '@@@%%%=$(MAKE)=@@@%%%'
6936 _ACEOF
6937 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6938 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6939 *@@@%%%=?*=@@@%%%*)
6940 eval ac_cv_prog_make_${ac_make}_set=yes;;
6942 eval ac_cv_prog_make_${ac_make}_set=no;;
6943 esac
6944 rm -f conftest.make
6946 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }
6949 SET_MAKE=
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 SET_MAKE="MAKE=${MAKE-make}"
6958 # Configure libtool
6959 #AC_MSG_NOTICE([====== Starting libtool configuration])
6960 enable_dlopen=yes
6964 case `pwd` in
6965 *\ * | *\ *)
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6968 esac
6972 macro_version='2.2.7a'
6973 macro_revision='1.3134'
6987 ltmain="$ac_aux_dir/ltmain.sh"
6989 # Backslashify metacharacters that are still active within
6990 # double-quoted strings.
6991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6993 # Same as above, but do not quote variable references.
6994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6996 # Sed substitution to delay expansion of an escaped shell variable in a
6997 # double_quote_subst'ed string.
6998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7000 # Sed substitution to delay expansion of an escaped single quote.
7001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7003 # Sed substitution to avoid accidental globbing in evaled expressions
7004 no_glob_subst='s/\*/\\\*/g'
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7007 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7008 if ${lt_cv_path_NM+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$NM"; then
7012 # Let the user override the test.
7013 lt_cv_path_NM="$NM"
7014 else
7015 lt_nm_to_check="${ac_tool_prefix}nm"
7016 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7017 lt_nm_to_check="$lt_nm_to_check nm"
7019 for lt_tmp_nm in $lt_nm_to_check; do
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7022 IFS="$lt_save_ifs"
7023 test -z "$ac_dir" && ac_dir=.
7024 tmp_nm="$ac_dir/$lt_tmp_nm"
7025 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7026 # Check to see if the nm accepts a BSD-compat flag.
7027 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7028 # nm: unknown option "B" ignored
7029 # Tru64's nm complains that /dev/null is an invalid object file
7030 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7031 */dev/null* | *'Invalid file or object type'*)
7032 lt_cv_path_NM="$tmp_nm -B"
7033 break
7036 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7037 */dev/null*)
7038 lt_cv_path_NM="$tmp_nm -p"
7039 break
7042 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7043 continue # so that we can try to find one that supports BSD flags
7045 esac
7047 esac
7049 done
7050 IFS="$lt_save_ifs"
7051 done
7052 : ${lt_cv_path_NM=no}
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7056 $as_echo "$lt_cv_path_NM" >&6; }
7057 if test "$lt_cv_path_NM" != "no"; then
7058 NM="$lt_cv_path_NM"
7059 else
7060 # Didn't find any BSD compatible name lister, look for dumpbin.
7061 if test -n "$DUMPBIN"; then :
7062 # Let the user override the test.
7063 else
7064 if test -n "$ac_tool_prefix"; then
7065 for ac_prog in dumpbin "link -dump"
7067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_DUMPBIN+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$DUMPBIN"; then
7075 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 DUMPBIN=$ac_cv_prog_DUMPBIN
7095 if test -n "$DUMPBIN"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7097 $as_echo "$DUMPBIN" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7104 test -n "$DUMPBIN" && break
7105 done
7107 if test -z "$DUMPBIN"; then
7108 ac_ct_DUMPBIN=$DUMPBIN
7109 for ac_prog in dumpbin "link -dump"
7111 # Extract the first word of "$ac_prog", so it can be a program name with args.
7112 set dummy $ac_prog; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test -n "$ac_ct_DUMPBIN"; then
7119 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7132 done
7133 done
7134 IFS=$as_save_IFS
7138 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7139 if test -n "$ac_ct_DUMPBIN"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7141 $as_echo "$ac_ct_DUMPBIN" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7148 test -n "$ac_ct_DUMPBIN" && break
7149 done
7151 if test "x$ac_ct_DUMPBIN" = x; then
7152 DUMPBIN=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 DUMPBIN=$ac_ct_DUMPBIN
7164 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7165 *COFF*)
7166 DUMPBIN="$DUMPBIN -symbols"
7169 DUMPBIN=:
7171 esac
7174 if test "$DUMPBIN" != ":"; then
7175 NM="$DUMPBIN"
7178 test -z "$NM" && NM=nm
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7186 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7187 if ${lt_cv_nm_interface+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 lt_cv_nm_interface="BSD nm"
7191 echo "int some_variable = 0;" > conftest.$ac_ext
7192 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7193 (eval "$ac_compile" 2>conftest.err)
7194 cat conftest.err >&5
7195 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7196 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7197 cat conftest.err >&5
7198 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7199 cat conftest.out >&5
7200 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7201 lt_cv_nm_interface="MS dumpbin"
7203 rm -f conftest*
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7206 $as_echo "$lt_cv_nm_interface" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7209 $as_echo_n "checking whether ln -s works... " >&6; }
7210 LN_S=$as_ln_s
7211 if test "$LN_S" = "ln -s"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7214 else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7216 $as_echo "no, using $LN_S" >&6; }
7219 # find the maximum length of command line arguments
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7221 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7222 if ${lt_cv_sys_max_cmd_len+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7226 teststring="ABCD"
7228 case $build_os in
7229 msdosdjgpp*)
7230 # On DJGPP, this test can blow up pretty badly due to problems in libc
7231 # (any single argument exceeding 2000 bytes causes a buffer overrun
7232 # during glob expansion). Even if it were fixed, the result of this
7233 # check would be larger than it should be.
7234 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7237 gnu*)
7238 # Under GNU Hurd, this test is not required because there is
7239 # no limit to the length of command line arguments.
7240 # Libtool will interpret -1 as no limit whatsoever
7241 lt_cv_sys_max_cmd_len=-1;
7244 cygwin* | mingw* | cegcc*)
7245 # On Win9x/ME, this test blows up -- it succeeds, but takes
7246 # about 5 minutes as the teststring grows exponentially.
7247 # Worse, since 9x/ME are not pre-emptively multitasking,
7248 # you end up with a "frozen" computer, even though with patience
7249 # the test eventually succeeds (with a max line length of 256k).
7250 # Instead, let's just punt: use the minimum linelength reported by
7251 # all of the supported platforms: 8192 (on NT/2K/XP).
7252 lt_cv_sys_max_cmd_len=8192;
7255 mint*)
7256 # On MiNT this can take a long time and run out of memory.
7257 lt_cv_sys_max_cmd_len=8192;
7260 amigaos*)
7261 # On AmigaOS with pdksh, this test takes hours, literally.
7262 # So we just punt and use a minimum line length of 8192.
7263 lt_cv_sys_max_cmd_len=8192;
7266 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7267 # This has been around since 386BSD, at least. Likely further.
7268 if test -x /sbin/sysctl; then
7269 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7270 elif test -x /usr/sbin/sysctl; then
7271 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7272 else
7273 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7275 # And add a safety zone
7276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7280 interix*)
7281 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7282 lt_cv_sys_max_cmd_len=196608
7285 osf*)
7286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7288 # nice to cause kernel panics so lets avoid the loop below.
7289 # First set a reasonable default.
7290 lt_cv_sys_max_cmd_len=16384
7292 if test -x /sbin/sysconfig; then
7293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7295 esac
7298 sco3.2v5*)
7299 lt_cv_sys_max_cmd_len=102400
7301 sysv5* | sco5v6* | sysv4.2uw2*)
7302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7303 if test -n "$kargmax"; then
7304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7305 else
7306 lt_cv_sys_max_cmd_len=32768
7310 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7311 if test -n "$lt_cv_sys_max_cmd_len"; then
7312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7314 else
7315 # Make teststring a little bigger before we do anything with it.
7316 # a 1K string should be a reasonable start.
7317 for i in 1 2 3 4 5 6 7 8 ; do
7318 teststring=$teststring$teststring
7319 done
7320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7321 # If test is not a shell built-in, we'll probably end up computing a
7322 # maximum length that is only half of the actual maximum length, but
7323 # we can't tell.
7324 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7325 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7326 test $i != 17 # 1/2 MB should be enough
7328 i=`expr $i + 1`
7329 teststring=$teststring$teststring
7330 done
7331 # Only check the string length outside the loop.
7332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7333 teststring=
7334 # Add a significant safety factor because C++ compilers can tack on
7335 # massive amounts of additional arguments before passing them to the
7336 # linker. It appears as though 1/2 is a usable value.
7337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7340 esac
7344 if test -n $lt_cv_sys_max_cmd_len ; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7346 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7349 $as_echo "none" >&6; }
7351 max_cmd_len=$lt_cv_sys_max_cmd_len
7358 : ${CP="cp -f"}
7359 : ${MV="mv -f"}
7360 : ${RM="rm -f"}
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7363 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7364 # Try some XSI features
7365 xsi_shell=no
7366 ( _lt_dummy="a/b/c"
7367 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7368 = c,a/b,, \
7369 && eval 'test $(( 1 + 1 )) -eq 2 \
7370 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7371 && xsi_shell=yes
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7373 $as_echo "$xsi_shell" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7377 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7378 lt_shell_append=no
7379 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7380 >/dev/null 2>&1 \
7381 && lt_shell_append=yes
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7383 $as_echo "$lt_shell_append" >&6; }
7386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7387 lt_unset=unset
7388 else
7389 lt_unset=false
7396 # test EBCDIC or ASCII
7397 case `echo X|tr X '\101'` in
7398 A) # ASCII based system
7399 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7400 lt_SP2NL='tr \040 \012'
7401 lt_NL2SP='tr \015\012 \040\040'
7403 *) # EBCDIC based system
7404 lt_SP2NL='tr \100 \n'
7405 lt_NL2SP='tr \r\n \100\100'
7407 esac
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7418 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7419 if ${lt_cv_ld_reload_flag+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 lt_cv_ld_reload_flag='-r'
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7425 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7426 reload_flag=$lt_cv_ld_reload_flag
7427 case $reload_flag in
7428 "" | " "*) ;;
7429 *) reload_flag=" $reload_flag" ;;
7430 esac
7431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7432 case $host_os in
7433 darwin*)
7434 if test "$GCC" = yes; then
7435 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7436 else
7437 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7440 esac
7450 if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_OBJDUMP+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$OBJDUMP"; then
7459 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7472 done
7473 done
7474 IFS=$as_save_IFS
7478 OBJDUMP=$ac_cv_prog_OBJDUMP
7479 if test -n "$OBJDUMP"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7481 $as_echo "$OBJDUMP" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7489 if test -z "$ac_cv_prog_OBJDUMP"; then
7490 ac_ct_OBJDUMP=$OBJDUMP
7491 # Extract the first word of "objdump", so it can be a program name with args.
7492 set dummy objdump; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$ac_ct_OBJDUMP"; then
7499 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7518 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7519 if test -n "$ac_ct_OBJDUMP"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7521 $as_echo "$ac_ct_OBJDUMP" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7527 if test "x$ac_ct_OBJDUMP" = x; then
7528 OBJDUMP="false"
7529 else
7530 case $cross_compiling:$ac_tool_warned in
7531 yes:)
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7535 esac
7536 OBJDUMP=$ac_ct_OBJDUMP
7538 else
7539 OBJDUMP="$ac_cv_prog_OBJDUMP"
7542 test -z "$OBJDUMP" && OBJDUMP=objdump
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7553 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7554 if ${lt_cv_deplibs_check_method+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 lt_cv_file_magic_cmd='$MAGIC_CMD'
7558 lt_cv_file_magic_test_file=
7559 lt_cv_deplibs_check_method='unknown'
7560 # Need to set the preceding variable on all platforms that support
7561 # interlibrary dependencies.
7562 # 'none' -- dependencies not supported.
7563 # `unknown' -- same as none, but documents that we really don't know.
7564 # 'pass_all' -- all dependencies passed with no checks.
7565 # 'test_compile' -- check by making test program.
7566 # 'file_magic [[regex]]' -- check by looking for files in library path
7567 # which responds to the $file_magic_cmd with a given extended regex.
7568 # If you have `file' or equivalent on your system and you're not sure
7569 # whether `pass_all' will *always* work, you probably want this one.
7571 case $host_os in
7572 aix[4-9]*)
7573 lt_cv_deplibs_check_method=pass_all
7576 beos*)
7577 lt_cv_deplibs_check_method=pass_all
7580 bsdi[45]*)
7581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7582 lt_cv_file_magic_cmd='/usr/bin/file -L'
7583 lt_cv_file_magic_test_file=/shlib/libc.so
7586 cygwin*)
7587 # func_win32_libid is a shell function defined in ltmain.sh
7588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7589 lt_cv_file_magic_cmd='func_win32_libid'
7592 mingw* | pw32*)
7593 # Base MSYS/MinGW do not provide the 'file' command needed by
7594 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7595 # unless we find 'file', for example because we are cross-compiling.
7596 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7597 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7599 lt_cv_file_magic_cmd='func_win32_libid'
7600 else
7601 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7602 lt_cv_file_magic_cmd='$OBJDUMP -f'
7606 cegcc*)
7607 # use the weaker test based on 'objdump'. See mingw*.
7608 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7609 lt_cv_file_magic_cmd='$OBJDUMP -f'
7612 darwin* | rhapsody*)
7613 lt_cv_deplibs_check_method=pass_all
7616 freebsd* | dragonfly*)
7617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7618 case $host_cpu in
7619 i*86 )
7620 # Not sure whether the presence of OpenBSD here was a mistake.
7621 # Let's accept both of them until this is cleared up.
7622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7623 lt_cv_file_magic_cmd=/usr/bin/file
7624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7626 esac
7627 else
7628 lt_cv_deplibs_check_method=pass_all
7632 gnu*)
7633 lt_cv_deplibs_check_method=pass_all
7636 haiku*)
7637 lt_cv_deplibs_check_method=pass_all
7640 hpux10.20* | hpux11*)
7641 lt_cv_file_magic_cmd=/usr/bin/file
7642 case $host_cpu in
7643 ia64*)
7644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7647 hppa*64*)
7648 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]'
7649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7655 esac
7658 interix[3-9]*)
7659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7663 irix5* | irix6* | nonstopux*)
7664 case $LD in
7665 *-32|*"-32 ") libmagic=32-bit;;
7666 *-n32|*"-n32 ") libmagic=N32;;
7667 *-64|*"-64 ") libmagic=64-bit;;
7668 *) libmagic=never-match;;
7669 esac
7670 lt_cv_deplibs_check_method=pass_all
7673 # This must be Linux ELF.
7674 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7675 lt_cv_deplibs_check_method=pass_all
7678 netbsd*)
7679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7681 else
7682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7686 newos6*)
7687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7688 lt_cv_file_magic_cmd=/usr/bin/file
7689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7692 *nto* | *qnx*)
7693 lt_cv_deplibs_check_method=pass_all
7696 openbsd*)
7697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7699 else
7700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7704 osf3* | osf4* | osf5*)
7705 lt_cv_deplibs_check_method=pass_all
7708 rdos*)
7709 lt_cv_deplibs_check_method=pass_all
7712 solaris*)
7713 lt_cv_deplibs_check_method=pass_all
7716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7717 lt_cv_deplibs_check_method=pass_all
7720 sysv4 | sysv4.3*)
7721 case $host_vendor in
7722 motorola)
7723 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]'
7724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7726 ncr)
7727 lt_cv_deplibs_check_method=pass_all
7729 sequent)
7730 lt_cv_file_magic_cmd='/bin/file'
7731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7733 sni)
7734 lt_cv_file_magic_cmd='/bin/file'
7735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7736 lt_cv_file_magic_test_file=/lib/libc.so
7738 siemens)
7739 lt_cv_deplibs_check_method=pass_all
7742 lt_cv_deplibs_check_method=pass_all
7744 esac
7747 tpf*)
7748 lt_cv_deplibs_check_method=pass_all
7750 esac
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7755 file_magic_cmd=$lt_cv_file_magic_cmd
7756 deplibs_check_method=$lt_cv_deplibs_check_method
7757 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7770 if test -n "$ac_tool_prefix"; then
7771 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}ar; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_AR+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$AR"; then
7779 ac_cv_prog_AR="$AR" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_AR="${ac_tool_prefix}ar"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7792 done
7793 done
7794 IFS=$as_save_IFS
7798 AR=$ac_cv_prog_AR
7799 if test -n "$AR"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7801 $as_echo "$AR" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7809 if test -z "$ac_cv_prog_AR"; then
7810 ac_ct_AR=$AR
7811 # Extract the first word of "ar", so it can be a program name with args.
7812 set dummy ar; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$ac_ct_AR"; then
7819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_ac_ct_AR="ar"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7839 if test -n "$ac_ct_AR"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7841 $as_echo "$ac_ct_AR" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7847 if test "x$ac_ct_AR" = x; then
7848 AR="false"
7849 else
7850 case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856 AR=$ac_ct_AR
7858 else
7859 AR="$ac_cv_prog_AR"
7862 test -z "$AR" && AR=ar
7863 test -z "$AR_FLAGS" && AR_FLAGS=cru
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}strip; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_STRIP+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$STRIP"; then
7884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7903 STRIP=$ac_cv_prog_STRIP
7904 if test -n "$STRIP"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7906 $as_echo "$STRIP" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7914 if test -z "$ac_cv_prog_STRIP"; then
7915 ac_ct_STRIP=$STRIP
7916 # Extract the first word of "strip", so it can be a program name with args.
7917 set dummy strip; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 if test -n "$ac_ct_STRIP"; then
7924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_STRIP="strip"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7937 done
7938 done
7939 IFS=$as_save_IFS
7943 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7944 if test -n "$ac_ct_STRIP"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7946 $as_echo "$ac_ct_STRIP" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7952 if test "x$ac_ct_STRIP" = x; then
7953 STRIP=":"
7954 else
7955 case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961 STRIP=$ac_ct_STRIP
7963 else
7964 STRIP="$ac_cv_prog_STRIP"
7967 test -z "$STRIP" && STRIP=:
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_RANLIB+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$RANLIB"; then
7983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8002 RANLIB=$ac_cv_prog_RANLIB
8003 if test -n "$RANLIB"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8005 $as_echo "$RANLIB" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8013 if test -z "$ac_cv_prog_RANLIB"; then
8014 ac_ct_RANLIB=$RANLIB
8015 # Extract the first word of "ranlib", so it can be a program name with args.
8016 set dummy ranlib; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$ac_ct_RANLIB"; then
8023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_RANLIB="ranlib"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8038 IFS=$as_save_IFS
8042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8043 if test -n "$ac_ct_RANLIB"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8045 $as_echo "$ac_ct_RANLIB" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8051 if test "x$ac_ct_RANLIB" = x; then
8052 RANLIB=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned=yes ;;
8059 esac
8060 RANLIB=$ac_ct_RANLIB
8062 else
8063 RANLIB="$ac_cv_prog_RANLIB"
8066 test -z "$RANLIB" && RANLIB=:
8073 # Determine commands to create old-style static archives.
8074 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8075 old_postinstall_cmds='chmod 644 $oldlib'
8076 old_postuninstall_cmds=
8078 if test -n "$RANLIB"; then
8079 case $host_os in
8080 openbsd*)
8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8086 esac
8087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8090 case $host_os in
8091 darwin*)
8092 lock_old_archive_extraction=yes ;;
8094 lock_old_archive_extraction=no ;;
8095 esac
8135 # If no C compiler was specified, use CC.
8136 LTCC=${LTCC-"$CC"}
8138 # If no C compiler flags were specified, use CFLAGS.
8139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8141 # Allow CC to be a program name with arguments.
8142 compiler=$CC
8145 # Check for command to grab the raw symbol name followed by C symbol from nm.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8147 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8148 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8152 # These are sane defaults that work on at least a few old systems.
8153 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8155 # Character class describing NM global symbol codes.
8156 symcode='[BCDEGRST]'
8158 # Regexp to match symbols that can be accessed directly from C.
8159 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8161 # Define system-specific variables.
8162 case $host_os in
8163 aix*)
8164 symcode='[BCDT]'
8166 cygwin* | mingw* | pw32* | cegcc*)
8167 symcode='[ABCDGISTW]'
8169 hpux*)
8170 if test "$host_cpu" = ia64; then
8171 symcode='[ABCDEGRST]'
8174 irix* | nonstopux*)
8175 symcode='[BCDEGRST]'
8177 osf*)
8178 symcode='[BCDEGQRST]'
8180 solaris*)
8181 symcode='[BDRT]'
8183 sco3.2v5*)
8184 symcode='[DT]'
8186 sysv4.2uw2*)
8187 symcode='[DT]'
8189 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8190 symcode='[ABDT]'
8192 sysv4)
8193 symcode='[DFNSTU]'
8195 esac
8197 # If we're using GNU nm, then use its standard symbol codes.
8198 case `$NM -V 2>&1` in
8199 *GNU* | *'with BFD'*)
8200 symcode='[ABCDGIRSTW]' ;;
8201 esac
8203 # Transform an extracted symbol line into a proper C declaration.
8204 # Some systems (esp. on ia64) link data and code symbols differently,
8205 # so use this general approach.
8206 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8208 # Transform an extracted symbol line into symbol name and symbol address
8209 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8210 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'"
8212 # Handle CRLF in mingw tool chain
8213 opt_cr=
8214 case $build_os in
8215 mingw*)
8216 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8218 esac
8220 # Try without a prefix underscore, then with it.
8221 for ac_symprfx in "" "_"; do
8223 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8224 symxfrm="\\1 $ac_symprfx\\2 \\2"
8226 # Write the raw and C identifiers.
8227 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8228 # Fake it for dumpbin and say T for any non-static function
8229 # and D for any global variable.
8230 # Also find C++ and __fastcall symbols from MSVC++,
8231 # which start with @ or ?.
8232 lt_cv_sys_global_symbol_pipe="$AWK '"\
8233 " {last_section=section; section=\$ 3};"\
8234 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8235 " \$ 0!~/External *\|/{next};"\
8236 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8237 " {if(hide[section]) next};"\
8238 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8239 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8240 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8241 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8242 " ' prfx=^$ac_symprfx"
8243 else
8244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8247 # Check to see that the pipe works correctly.
8248 pipe_works=no
8250 rm -f conftest*
8251 cat > conftest.$ac_ext <<_LT_EOF
8252 #ifdef __cplusplus
8253 extern "C" {
8254 #endif
8255 char nm_test_var;
8256 void nm_test_func(void);
8257 void nm_test_func(void){}
8258 #ifdef __cplusplus
8260 #endif
8261 int main(){nm_test_var='a';nm_test_func();return(0);}
8262 _LT_EOF
8264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8265 (eval $ac_compile) 2>&5
8266 ac_status=$?
8267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268 test $ac_status = 0; }; then
8269 # Now try to grab the symbols.
8270 nlist=conftest.nm
8271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8272 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8273 ac_status=$?
8274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8275 test $ac_status = 0; } && test -s "$nlist"; then
8276 # Try sorting and uniquifying the output.
8277 if sort "$nlist" | uniq > "$nlist"T; then
8278 mv -f "$nlist"T "$nlist"
8279 else
8280 rm -f "$nlist"T
8283 # Make sure that we snagged all the symbols we need.
8284 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8285 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8286 cat <<_LT_EOF > conftest.$ac_ext
8287 #ifdef __cplusplus
8288 extern "C" {
8289 #endif
8291 _LT_EOF
8292 # Now generate the symbol file.
8293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8295 cat <<_LT_EOF >> conftest.$ac_ext
8297 /* The mapping between symbol names and symbols. */
8298 const struct {
8299 const char *name;
8300 void *address;
8302 lt__PROGRAM__LTX_preloaded_symbols[] =
8304 { "@PROGRAM@", (void *) 0 },
8305 _LT_EOF
8306 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8307 cat <<\_LT_EOF >> conftest.$ac_ext
8308 {0, (void *) 0}
8311 /* This works around a problem in FreeBSD linker */
8312 #ifdef FREEBSD_WORKAROUND
8313 static const void *lt_preloaded_setup() {
8314 return lt__PROGRAM__LTX_preloaded_symbols;
8316 #endif
8318 #ifdef __cplusplus
8320 #endif
8321 _LT_EOF
8322 # Now try linking the two files.
8323 mv conftest.$ac_objext conftstm.$ac_objext
8324 lt_save_LIBS="$LIBS"
8325 lt_save_CFLAGS="$CFLAGS"
8326 LIBS="conftstm.$ac_objext"
8327 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8329 (eval $ac_link) 2>&5
8330 ac_status=$?
8331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8333 pipe_works=yes
8335 LIBS="$lt_save_LIBS"
8336 CFLAGS="$lt_save_CFLAGS"
8337 else
8338 echo "cannot find nm_test_func in $nlist" >&5
8340 else
8341 echo "cannot find nm_test_var in $nlist" >&5
8343 else
8344 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8346 else
8347 echo "$progname: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8350 rm -rf conftest* conftst*
8352 # Do not use the global_symbol_pipe unless it works.
8353 if test "$pipe_works" = yes; then
8354 break
8355 else
8356 lt_cv_sys_global_symbol_pipe=
8358 done
8362 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8363 lt_cv_sys_global_symbol_to_cdecl=
8365 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8367 $as_echo "failed" >&6; }
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8370 $as_echo "ok" >&6; }
8394 # Check whether --enable-libtool-lock was given.
8395 if test "${enable_libtool_lock+set}" = set; then :
8396 enableval=$enable_libtool_lock;
8399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8401 # Some flags need to be propagated to the compiler or linker for good
8402 # libtool support.
8403 case $host in
8404 ia64-*-hpux*)
8405 # Find out which ABI we are using.
8406 echo 'int i;' > conftest.$ac_ext
8407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8408 (eval $ac_compile) 2>&5
8409 ac_status=$?
8410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411 test $ac_status = 0; }; then
8412 case `/usr/bin/file conftest.$ac_objext` in
8413 *ELF-32*)
8414 HPUX_IA64_MODE="32"
8416 *ELF-64*)
8417 HPUX_IA64_MODE="64"
8419 esac
8421 rm -rf conftest*
8423 *-*-irix6*)
8424 # Find out which ABI we are using.
8425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8427 (eval $ac_compile) 2>&5
8428 ac_status=$?
8429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8430 test $ac_status = 0; }; then
8431 if test "$lt_cv_prog_gnu_ld" = yes; then
8432 case `/usr/bin/file conftest.$ac_objext` in
8433 *32-bit*)
8434 LD="${LD-ld} -melf32bsmip"
8436 *N32*)
8437 LD="${LD-ld} -melf32bmipn32"
8439 *64-bit*)
8440 LD="${LD-ld} -melf64bmip"
8442 esac
8443 else
8444 case `/usr/bin/file conftest.$ac_objext` in
8445 *32-bit*)
8446 LD="${LD-ld} -32"
8448 *N32*)
8449 LD="${LD-ld} -n32"
8451 *64-bit*)
8452 LD="${LD-ld} -64"
8454 esac
8457 rm -rf conftest*
8460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8462 # Find out which ABI we are using.
8463 echo 'int i;' > conftest.$ac_ext
8464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465 (eval $ac_compile) 2>&5
8466 ac_status=$?
8467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468 test $ac_status = 0; }; then
8469 case `/usr/bin/file conftest.o` in
8470 *32-bit*)
8471 case $host in
8472 x86_64-*kfreebsd*-gnu)
8473 LD="${LD-ld} -m elf_i386_fbsd"
8475 x86_64-*linux*)
8476 case `/usr/bin/file conftest.o` in
8477 *x86-64*)
8478 LD="${LD-ld} -m elf32_x86_64"
8481 LD="${LD-ld} -m elf_i386"
8483 esac
8485 powerpc64le-*linux*)
8486 LD="${LD-ld} -m elf32lppclinux"
8488 powerpc64-*linux*)
8489 LD="${LD-ld} -m elf32ppclinux"
8491 s390x-*linux*)
8492 LD="${LD-ld} -m elf_s390"
8494 sparc64-*linux*)
8495 LD="${LD-ld} -m elf32_sparc"
8497 esac
8499 *64-bit*)
8500 case $host in
8501 x86_64-*kfreebsd*-gnu)
8502 LD="${LD-ld} -m elf_x86_64_fbsd"
8504 x86_64-*linux*)
8505 LD="${LD-ld} -m elf_x86_64"
8507 powerpcle-*linux*)
8508 LD="${LD-ld} -m elf64lppc"
8510 powerpc-*linux*)
8511 LD="${LD-ld} -m elf64ppc"
8513 s390*-*linux*|s390*-*tpf*)
8514 LD="${LD-ld} -m elf64_s390"
8516 sparc*-*linux*)
8517 LD="${LD-ld} -m elf64_sparc"
8519 esac
8521 esac
8523 rm -rf conftest*
8526 *-*-sco3.2v5*)
8527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8528 SAVE_CFLAGS="$CFLAGS"
8529 CFLAGS="$CFLAGS -belf"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8531 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8532 if ${lt_cv_cc_needs_belf+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 ac_ext=c
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541 if test x$gcc_no_link = xyes; then
8542 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8548 main ()
8552 return 0;
8554 _ACEOF
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 lt_cv_cc_needs_belf=yes
8557 else
8558 lt_cv_cc_needs_belf=no
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 ac_ext=c
8563 ac_cpp='$CPP $CPPFLAGS'
8564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8570 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8571 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8572 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8573 CFLAGS="$SAVE_CFLAGS"
8576 sparc*-*solaris*)
8577 # Find out which ABI we are using.
8578 echo 'int i;' > conftest.$ac_ext
8579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583 test $ac_status = 0; }; then
8584 case `/usr/bin/file conftest.o` in
8585 *64-bit*)
8586 case $lt_cv_prog_gnu_ld in
8587 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8589 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8590 LD="${LD-ld} -64"
8593 esac
8595 esac
8597 rm -rf conftest*
8599 esac
8601 need_locks="$enable_libtool_lock"
8604 case $host_os in
8605 rhapsody* | darwin*)
8606 if test -n "$ac_tool_prefix"; then
8607 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8608 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 $as_echo_n "checking for $ac_word... " >&6; }
8611 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 if test -n "$DSYMUTIL"; then
8615 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8616 else
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8628 done
8629 done
8630 IFS=$as_save_IFS
8634 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8635 if test -n "$DSYMUTIL"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8637 $as_echo "$DSYMUTIL" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8645 if test -z "$ac_cv_prog_DSYMUTIL"; then
8646 ac_ct_DSYMUTIL=$DSYMUTIL
8647 # Extract the first word of "dsymutil", so it can be a program name with args.
8648 set dummy dsymutil; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 if test -n "$ac_ct_DSYMUTIL"; then
8655 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8674 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8675 if test -n "$ac_ct_DSYMUTIL"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8677 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8683 if test "x$ac_ct_DSYMUTIL" = x; then
8684 DSYMUTIL=":"
8685 else
8686 case $cross_compiling:$ac_tool_warned in
8687 yes:)
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8690 ac_tool_warned=yes ;;
8691 esac
8692 DSYMUTIL=$ac_ct_DSYMUTIL
8694 else
8695 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8698 if test -n "$ac_tool_prefix"; then
8699 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8700 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702 $as_echo_n "checking for $ac_word... " >&6; }
8703 if ${ac_cv_prog_NMEDIT+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 if test -n "$NMEDIT"; then
8707 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8708 else
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8720 done
8721 done
8722 IFS=$as_save_IFS
8726 NMEDIT=$ac_cv_prog_NMEDIT
8727 if test -n "$NMEDIT"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8729 $as_echo "$NMEDIT" >&6; }
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8737 if test -z "$ac_cv_prog_NMEDIT"; then
8738 ac_ct_NMEDIT=$NMEDIT
8739 # Extract the first word of "nmedit", so it can be a program name with args.
8740 set dummy nmedit; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 if test -n "$ac_ct_NMEDIT"; then
8747 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8748 else
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8760 done
8761 done
8762 IFS=$as_save_IFS
8766 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8767 if test -n "$ac_ct_NMEDIT"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8769 $as_echo "$ac_ct_NMEDIT" >&6; }
8770 else
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8775 if test "x$ac_ct_NMEDIT" = x; then
8776 NMEDIT=":"
8777 else
8778 case $cross_compiling:$ac_tool_warned in
8779 yes:)
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8782 ac_tool_warned=yes ;;
8783 esac
8784 NMEDIT=$ac_ct_NMEDIT
8786 else
8787 NMEDIT="$ac_cv_prog_NMEDIT"
8790 if test -n "$ac_tool_prefix"; then
8791 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8792 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_LIPO+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 if test -n "$LIPO"; then
8799 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8812 done
8813 done
8814 IFS=$as_save_IFS
8818 LIPO=$ac_cv_prog_LIPO
8819 if test -n "$LIPO"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8821 $as_echo "$LIPO" >&6; }
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8829 if test -z "$ac_cv_prog_LIPO"; then
8830 ac_ct_LIPO=$LIPO
8831 # Extract the first word of "lipo", so it can be a program name with args.
8832 set dummy lipo; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$ac_ct_LIPO"; then
8839 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848 ac_cv_prog_ac_ct_LIPO="lipo"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8852 done
8853 done
8854 IFS=$as_save_IFS
8858 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8859 if test -n "$ac_ct_LIPO"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8861 $as_echo "$ac_ct_LIPO" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8867 if test "x$ac_ct_LIPO" = x; then
8868 LIPO=":"
8869 else
8870 case $cross_compiling:$ac_tool_warned in
8871 yes:)
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8874 ac_tool_warned=yes ;;
8875 esac
8876 LIPO=$ac_ct_LIPO
8878 else
8879 LIPO="$ac_cv_prog_LIPO"
8882 if test -n "$ac_tool_prefix"; then
8883 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8884 set dummy ${ac_tool_prefix}otool; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if ${ac_cv_prog_OTOOL+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 if test -n "$OTOOL"; then
8891 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 break 2
8904 done
8905 done
8906 IFS=$as_save_IFS
8910 OTOOL=$ac_cv_prog_OTOOL
8911 if test -n "$OTOOL"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8913 $as_echo "$OTOOL" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8921 if test -z "$ac_cv_prog_OTOOL"; then
8922 ac_ct_OTOOL=$OTOOL
8923 # Extract the first word of "otool", so it can be a program name with args.
8924 set dummy otool; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 if test -n "$ac_ct_OTOOL"; then
8931 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_ac_ct_OTOOL="otool"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8944 done
8945 done
8946 IFS=$as_save_IFS
8950 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8951 if test -n "$ac_ct_OTOOL"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8953 $as_echo "$ac_ct_OTOOL" >&6; }
8954 else
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8959 if test "x$ac_ct_OTOOL" = x; then
8960 OTOOL=":"
8961 else
8962 case $cross_compiling:$ac_tool_warned in
8963 yes:)
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8966 ac_tool_warned=yes ;;
8967 esac
8968 OTOOL=$ac_ct_OTOOL
8970 else
8971 OTOOL="$ac_cv_prog_OTOOL"
8974 if test -n "$ac_tool_prefix"; then
8975 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_prog_OTOOL64+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 if test -n "$OTOOL64"; then
8983 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9002 OTOOL64=$ac_cv_prog_OTOOL64
9003 if test -n "$OTOOL64"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9005 $as_echo "$OTOOL64" >&6; }
9006 else
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9013 if test -z "$ac_cv_prog_OTOOL64"; then
9014 ac_ct_OTOOL64=$OTOOL64
9015 # Extract the first word of "otool64", so it can be a program name with args.
9016 set dummy otool64; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$ac_ct_OTOOL64"; then
9023 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_ac_ct_OTOOL64="otool64"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9043 if test -n "$ac_ct_OTOOL64"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9045 $as_echo "$ac_ct_OTOOL64" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9051 if test "x$ac_ct_OTOOL64" = x; then
9052 OTOOL64=":"
9053 else
9054 case $cross_compiling:$ac_tool_warned in
9055 yes:)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060 OTOOL64=$ac_ct_OTOOL64
9062 else
9063 OTOOL64="$ac_cv_prog_OTOOL64"
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9093 $as_echo_n "checking for -single_module linker flag... " >&6; }
9094 if ${lt_cv_apple_cc_single_mod+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_apple_cc_single_mod=no
9098 if test -z "${LT_MULTI_MODULE}"; then
9099 # By default we will add the -single_module flag. You can override
9100 # by either setting the environment variable LT_MULTI_MODULE
9101 # non-empty at configure time, or by adding -multi_module to the
9102 # link flags.
9103 rm -rf libconftest.dylib*
9104 echo "int foo(void){return 1;}" > conftest.c
9105 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9106 -dynamiclib -Wl,-single_module conftest.c" >&5
9107 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9108 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9109 _lt_result=$?
9110 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9111 lt_cv_apple_cc_single_mod=yes
9112 else
9113 cat conftest.err >&5
9115 rm -rf libconftest.dylib*
9116 rm -f conftest.*
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9120 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9122 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9123 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 lt_cv_ld_exported_symbols_list=no
9127 save_LDFLAGS=$LDFLAGS
9128 echo "_main" > conftest.sym
9129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9130 if test x$gcc_no_link = xyes; then
9131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9137 main ()
9141 return 0;
9143 _ACEOF
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 lt_cv_ld_exported_symbols_list=yes
9146 else
9147 lt_cv_ld_exported_symbols_list=no
9149 rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LDFLAGS="$save_LDFLAGS"
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9155 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9157 $as_echo_n "checking for -force_load linker flag... " >&6; }
9158 if ${lt_cv_ld_force_load+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 lt_cv_ld_force_load=no
9162 cat > conftest.c << _LT_EOF
9163 int forced_loaded() { return 2;}
9164 _LT_EOF
9165 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9166 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9167 echo "$AR cru libconftest.a conftest.o" >&5
9168 $AR cru libconftest.a conftest.o 2>&5
9169 cat > conftest.c << _LT_EOF
9170 int main() { return 0;}
9171 _LT_EOF
9172 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9173 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9174 _lt_result=$?
9175 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9176 lt_cv_ld_force_load=yes
9177 else
9178 cat conftest.err >&5
9180 rm -f conftest.err libconftest.a conftest conftest.c
9181 rm -rf conftest.dSYM
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9185 $as_echo "$lt_cv_ld_force_load" >&6; }
9186 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9187 # build without first building modern cctools / linker.
9188 case $host_cpu-$host_os in
9189 *-rhapsody* | *-darwin1.[012])
9190 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9191 *-darwin1.*)
9192 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9193 *-darwin*)
9194 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9195 # deployment target is forced to an earlier version.
9196 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9197 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9199 10.[012][,.]*)
9200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9204 esac
9206 esac
9207 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9208 _lt_dar_single_mod='$single_module'
9210 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9211 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9212 else
9213 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9215 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9216 _lt_dsymutil='~$DSYMUTIL $lib || :'
9217 else
9218 _lt_dsymutil=
9221 esac
9223 for ac_header in dlfcn.h
9224 do :
9225 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9227 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9228 cat >>confdefs.h <<_ACEOF
9229 #define HAVE_DLFCN_H 1
9230 _ACEOF
9234 done
9240 # Set options
9245 enable_win32_dll=no
9248 # Check whether --enable-shared was given.
9249 if test "${enable_shared+set}" = set; then :
9250 enableval=$enable_shared; p=${PACKAGE-default}
9251 case $enableval in
9252 yes) enable_shared=yes ;;
9253 no) enable_shared=no ;;
9255 enable_shared=no
9256 # Look at the argument we got. We use all the common list separators.
9257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9258 for pkg in $enableval; do
9259 IFS="$lt_save_ifs"
9260 if test "X$pkg" = "X$p"; then
9261 enable_shared=yes
9263 done
9264 IFS="$lt_save_ifs"
9266 esac
9267 else
9268 enable_shared=yes
9279 # Check whether --enable-static was given.
9280 if test "${enable_static+set}" = set; then :
9281 enableval=$enable_static; p=${PACKAGE-default}
9282 case $enableval in
9283 yes) enable_static=yes ;;
9284 no) enable_static=no ;;
9286 enable_static=no
9287 # Look at the argument we got. We use all the common list separators.
9288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289 for pkg in $enableval; do
9290 IFS="$lt_save_ifs"
9291 if test "X$pkg" = "X$p"; then
9292 enable_static=yes
9294 done
9295 IFS="$lt_save_ifs"
9297 esac
9298 else
9299 enable_static=yes
9311 # Check whether --with-pic was given.
9312 if test "${with_pic+set}" = set; then :
9313 withval=$with_pic; pic_mode="$withval"
9314 else
9315 pic_mode=default
9319 test -z "$pic_mode" && pic_mode=default
9327 # Check whether --enable-fast-install was given.
9328 if test "${enable_fast_install+set}" = set; then :
9329 enableval=$enable_fast_install; p=${PACKAGE-default}
9330 case $enableval in
9331 yes) enable_fast_install=yes ;;
9332 no) enable_fast_install=no ;;
9334 enable_fast_install=no
9335 # Look at the argument we got. We use all the common list separators.
9336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9337 for pkg in $enableval; do
9338 IFS="$lt_save_ifs"
9339 if test "X$pkg" = "X$p"; then
9340 enable_fast_install=yes
9342 done
9343 IFS="$lt_save_ifs"
9345 esac
9346 else
9347 enable_fast_install=yes
9360 # This can be used to rebuild libtool when needed
9361 LIBTOOL_DEPS="$ltmain"
9363 # Always use our own libtool.
9364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9391 test -z "$LN_S" && LN_S="ln -s"
9406 if test -n "${ZSH_VERSION+set}" ; then
9407 setopt NO_GLOB_SUBST
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9411 $as_echo_n "checking for objdir... " >&6; }
9412 if ${lt_cv_objdir+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 rm -f .libs 2>/dev/null
9416 mkdir .libs 2>/dev/null
9417 if test -d .libs; then
9418 lt_cv_objdir=.libs
9419 else
9420 # MS-DOS does not allow filenames that begin with a dot.
9421 lt_cv_objdir=_libs
9423 rmdir .libs 2>/dev/null
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9426 $as_echo "$lt_cv_objdir" >&6; }
9427 objdir=$lt_cv_objdir
9433 cat >>confdefs.h <<_ACEOF
9434 #define LT_OBJDIR "$lt_cv_objdir/"
9435 _ACEOF
9440 case $host_os in
9441 aix3*)
9442 # AIX sometimes has problems with the GCC collect2 program. For some
9443 # reason, if we set the COLLECT_NAMES environment variable, the problems
9444 # vanish in a puff of smoke.
9445 if test "X${COLLECT_NAMES+set}" != Xset; then
9446 COLLECT_NAMES=
9447 export COLLECT_NAMES
9450 esac
9452 # Global variables:
9453 ofile=libtool
9454 can_build_shared=yes
9456 # All known linkers require a `.a' archive for static linking (except MSVC,
9457 # which needs '.lib').
9458 libext=a
9460 with_gnu_ld="$lt_cv_prog_gnu_ld"
9462 old_CC="$CC"
9463 old_CFLAGS="$CFLAGS"
9465 # Set sane defaults for various variables
9466 test -z "$CC" && CC=cc
9467 test -z "$LTCC" && LTCC=$CC
9468 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9469 test -z "$LD" && LD=ld
9470 test -z "$ac_objext" && ac_objext=o
9472 for cc_temp in $compiler""; do
9473 case $cc_temp in
9474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9476 \-*) ;;
9477 *) break;;
9478 esac
9479 done
9480 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9483 # Only perform the check for file, if the check method requires it
9484 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9485 case $deplibs_check_method in
9486 file_magic*)
9487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9489 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 case $MAGIC_CMD in
9494 [\\/*] | ?:[\\/]*)
9495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9498 lt_save_MAGIC_CMD="$MAGIC_CMD"
9499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501 for ac_dir in $ac_dummy; do
9502 IFS="$lt_save_ifs"
9503 test -z "$ac_dir" && ac_dir=.
9504 if test -f $ac_dir/${ac_tool_prefix}file; then
9505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9506 if test -n "$file_magic_test_file"; then
9507 case $deplibs_check_method in
9508 "file_magic "*)
9509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512 $EGREP "$file_magic_regex" > /dev/null; then
9514 else
9515 cat <<_LT_EOF 1>&2
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such. This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem. Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** bug-libtool@gnu.org
9526 _LT_EOF
9527 fi ;;
9528 esac
9530 break
9532 done
9533 IFS="$lt_save_ifs"
9534 MAGIC_CMD="$lt_save_MAGIC_CMD"
9536 esac
9539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9540 if test -n "$MAGIC_CMD"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 $as_echo "$MAGIC_CMD" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9552 if test -z "$lt_cv_path_MAGIC_CMD"; then
9553 if test -n "$ac_tool_prefix"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9555 $as_echo_n "checking for file... " >&6; }
9556 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $MAGIC_CMD in
9560 [\\/*] | ?:[\\/]*)
9561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9564 lt_save_MAGIC_CMD="$MAGIC_CMD"
9565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9567 for ac_dir in $ac_dummy; do
9568 IFS="$lt_save_ifs"
9569 test -z "$ac_dir" && ac_dir=.
9570 if test -f $ac_dir/file; then
9571 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9572 if test -n "$file_magic_test_file"; then
9573 case $deplibs_check_method in
9574 "file_magic "*)
9575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9578 $EGREP "$file_magic_regex" > /dev/null; then
9580 else
9581 cat <<_LT_EOF 1>&2
9583 *** Warning: the command libtool uses to detect shared libraries,
9584 *** $file_magic_cmd, produces output that libtool cannot recognize.
9585 *** The result is that libtool may fail to recognize shared libraries
9586 *** as such. This will affect the creation of libtool libraries that
9587 *** depend on shared libraries, but programs linked with such libtool
9588 *** libraries will work regardless of this problem. Nevertheless, you
9589 *** may want to report the problem to your system manager and/or to
9590 *** bug-libtool@gnu.org
9592 _LT_EOF
9593 fi ;;
9594 esac
9596 break
9598 done
9599 IFS="$lt_save_ifs"
9600 MAGIC_CMD="$lt_save_MAGIC_CMD"
9602 esac
9605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9606 if test -n "$MAGIC_CMD"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9608 $as_echo "$MAGIC_CMD" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9615 else
9616 MAGIC_CMD=:
9622 esac
9624 # Use C for the default configuration in the libtool script
9626 lt_save_CC="$CC"
9627 ac_ext=c
9628 ac_cpp='$CPP $CPPFLAGS'
9629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634 # Source file extension for C test sources.
9635 ac_ext=c
9637 # Object file extension for compiled C test sources.
9638 objext=o
9639 objext=$objext
9641 # Code to be used in simple compile tests
9642 lt_simple_compile_test_code="int some_variable = 0;"
9644 # Code to be used in simple link tests
9645 lt_simple_link_test_code='int main(){return(0);}'
9653 # If no C compiler was specified, use CC.
9654 LTCC=${LTCC-"$CC"}
9656 # If no C compiler flags were specified, use CFLAGS.
9657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9659 # Allow CC to be a program name with arguments.
9660 compiler=$CC
9662 # Save the default compiler, since it gets overwritten when the other
9663 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9664 compiler_DEFAULT=$CC
9666 # save warnings/boilerplate of simple test code
9667 ac_outfile=conftest.$ac_objext
9668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9670 _lt_compiler_boilerplate=`cat conftest.err`
9671 $RM conftest*
9673 ac_outfile=conftest.$ac_objext
9674 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9676 _lt_linker_boilerplate=`cat conftest.err`
9677 $RM -r conftest*
9680 ## CAVEAT EMPTOR:
9681 ## There is no encapsulation within the following macros, do not change
9682 ## the running order or otherwise move them around unless you know exactly
9683 ## what you are doing...
9684 if test -n "$compiler"; then
9686 lt_prog_compiler_no_builtin_flag=
9688 if test "$GCC" = yes; then
9689 case $cc_basename in
9690 nvcc*)
9691 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9693 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9694 esac
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9698 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 lt_cv_prog_compiler_rtti_exceptions=no
9702 ac_outfile=conftest.$ac_objext
9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9704 lt_compiler_flag="-fno-rtti -fno-exceptions"
9705 # Insert the option either (1) after the last *FLAGS variable, or
9706 # (2) before a word containing "conftest.", or (3) at the end.
9707 # Note that $ac_compile itself does not contain backslashes and begins
9708 # with a dollar sign (not a hyphen), so the echo should work correctly.
9709 # The option is referenced via a variable to avoid confusing sed.
9710 lt_compile=`echo "$ac_compile" | $SED \
9711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9713 -e 's:$: $lt_compiler_flag:'`
9714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9715 (eval "$lt_compile" 2>conftest.err)
9716 ac_status=$?
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 if (exit $ac_status) && test -s "$ac_outfile"; then
9720 # The compiler can only warn and ignore the option if not recognized
9721 # So say no if there are warnings other than the usual output.
9722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9725 lt_cv_prog_compiler_rtti_exceptions=yes
9728 $RM conftest*
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9734 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9736 else
9747 lt_prog_compiler_wl=
9748 lt_prog_compiler_pic=
9749 lt_prog_compiler_static=
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9752 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9754 if test "$GCC" = yes; then
9755 lt_prog_compiler_wl='-Wl,'
9756 lt_prog_compiler_static='-static'
9758 case $host_os in
9759 aix*)
9760 # All AIX code is PIC.
9761 if test "$host_cpu" = ia64; then
9762 # AIX 5 now supports IA64 processor
9763 lt_prog_compiler_static='-Bstatic'
9765 lt_prog_compiler_pic='-fPIC'
9768 amigaos*)
9769 case $host_cpu in
9770 powerpc)
9771 # see comment about AmigaOS4 .so support
9772 lt_prog_compiler_pic='-fPIC'
9774 m68k)
9775 # FIXME: we need at least 68020 code to build shared libraries, but
9776 # adding the `-m68020' flag to GCC prevents building anything better,
9777 # like `-m68040'.
9778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9780 esac
9783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9784 # PIC is the default for these OSes.
9787 mingw* | cygwin* | pw32* | os2* | cegcc*)
9788 # This hack is so that the source file can tell whether it is being
9789 # built for inclusion in a dll (and should export symbols for example).
9790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9791 # (--disable-auto-import) libraries
9792 lt_prog_compiler_pic='-DDLL_EXPORT'
9795 darwin* | rhapsody*)
9796 # PIC is the default on this platform
9797 # Common symbols not allowed in MH_DYLIB files
9798 lt_prog_compiler_pic='-fno-common'
9801 haiku*)
9802 # PIC is the default for Haiku.
9803 # The "-static" flag exists, but is broken.
9804 lt_prog_compiler_static=
9807 hpux*)
9808 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9809 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9810 # sets the default TLS model and affects inlining.
9811 case $host_cpu in
9812 hppa*64*)
9813 # +Z the default
9816 lt_prog_compiler_pic='-fPIC'
9818 esac
9821 interix[3-9]*)
9822 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9823 # Instead, we relocate shared libraries at runtime.
9826 msdosdjgpp*)
9827 # Just because we use GCC doesn't mean we suddenly get shared libraries
9828 # on systems that don't support them.
9829 lt_prog_compiler_can_build_shared=no
9830 enable_shared=no
9833 *nto* | *qnx*)
9834 # QNX uses GNU C++, but need to define -shared option too, otherwise
9835 # it will coredump.
9836 lt_prog_compiler_pic='-fPIC -shared'
9839 sysv4*MP*)
9840 if test -d /usr/nec; then
9841 lt_prog_compiler_pic=-Kconform_pic
9846 lt_prog_compiler_pic='-fPIC'
9848 esac
9850 case $cc_basename in
9851 nvcc*) # Cuda Compiler Driver 2.2
9852 lt_prog_compiler_wl='-Xlinker '
9853 lt_prog_compiler_pic='-Xcompiler -fPIC'
9855 esac
9856 else
9857 # PORTME Check for flag to pass linker flags through the system compiler.
9858 case $host_os in
9859 aix*)
9860 lt_prog_compiler_wl='-Wl,'
9861 if test "$host_cpu" = ia64; then
9862 # AIX 5 now supports IA64 processor
9863 lt_prog_compiler_static='-Bstatic'
9864 else
9865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9869 mingw* | cygwin* | pw32* | os2* | cegcc*)
9870 # This hack is so that the source file can tell whether it is being
9871 # built for inclusion in a dll (and should export symbols for example).
9872 lt_prog_compiler_pic='-DDLL_EXPORT'
9875 hpux9* | hpux10* | hpux11*)
9876 lt_prog_compiler_wl='-Wl,'
9877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9878 # not for PA HP-UX.
9879 case $host_cpu in
9880 hppa*64*|ia64*)
9881 # +Z the default
9884 lt_prog_compiler_pic='+Z'
9886 esac
9887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9888 lt_prog_compiler_static='${wl}-a ${wl}archive'
9891 irix5* | irix6* | nonstopux*)
9892 lt_prog_compiler_wl='-Wl,'
9893 # PIC (with -KPIC) is the default.
9894 lt_prog_compiler_static='-non_shared'
9897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9898 case $cc_basename in
9899 # old Intel for x86_64 which still supported -KPIC.
9900 ecc*)
9901 lt_prog_compiler_wl='-Wl,'
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-static'
9905 # icc used to be incompatible with GCC.
9906 # ICC 10 doesn't accept -KPIC any more.
9907 icc* | ifort*)
9908 lt_prog_compiler_wl='-Wl,'
9909 lt_prog_compiler_pic='-fPIC'
9910 lt_prog_compiler_static='-static'
9912 # Lahey Fortran 8.1.
9913 lf95*)
9914 lt_prog_compiler_wl='-Wl,'
9915 lt_prog_compiler_pic='--shared'
9916 lt_prog_compiler_static='--static'
9918 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9919 # Portland Group compilers (*not* the Pentium gcc compiler,
9920 # which looks to be a dead project)
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-fpic'
9923 lt_prog_compiler_static='-Bstatic'
9925 ccc*)
9926 lt_prog_compiler_wl='-Wl,'
9927 # All Alpha code is PIC.
9928 lt_prog_compiler_static='-non_shared'
9930 xl* | bgxl* | bgf* | mpixl*)
9931 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9932 lt_prog_compiler_wl='-Wl,'
9933 lt_prog_compiler_pic='-qpic'
9934 lt_prog_compiler_static='-qstaticlink'
9937 case `$CC -V 2>&1 | sed 5q` in
9938 *Sun\ F* | *Sun*Fortran*)
9939 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9940 lt_prog_compiler_pic='-KPIC'
9941 lt_prog_compiler_static='-Bstatic'
9942 lt_prog_compiler_wl=''
9944 *Sun\ C*)
9945 # Sun C 5.9
9946 lt_prog_compiler_pic='-KPIC'
9947 lt_prog_compiler_static='-Bstatic'
9948 lt_prog_compiler_wl='-Wl,'
9950 esac
9952 esac
9955 newsos6)
9956 lt_prog_compiler_pic='-KPIC'
9957 lt_prog_compiler_static='-Bstatic'
9960 *nto* | *qnx*)
9961 # QNX uses GNU C++, but need to define -shared option too, otherwise
9962 # it will coredump.
9963 lt_prog_compiler_pic='-fPIC -shared'
9966 osf3* | osf4* | osf5*)
9967 lt_prog_compiler_wl='-Wl,'
9968 # All OSF/1 code is PIC.
9969 lt_prog_compiler_static='-non_shared'
9972 rdos*)
9973 lt_prog_compiler_static='-non_shared'
9976 solaris*)
9977 lt_prog_compiler_pic='-KPIC'
9978 lt_prog_compiler_static='-Bstatic'
9979 case $cc_basename in
9980 f77* | f90* | f95*)
9981 lt_prog_compiler_wl='-Qoption ld ';;
9983 lt_prog_compiler_wl='-Wl,';;
9984 esac
9987 sunos4*)
9988 lt_prog_compiler_wl='-Qoption ld '
9989 lt_prog_compiler_pic='-PIC'
9990 lt_prog_compiler_static='-Bstatic'
9993 sysv4 | sysv4.2uw2* | sysv4.3*)
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
9999 sysv4*MP*)
10000 if test -d /usr/nec ;then
10001 lt_prog_compiler_pic='-Kconform_pic'
10002 lt_prog_compiler_static='-Bstatic'
10006 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10007 lt_prog_compiler_wl='-Wl,'
10008 lt_prog_compiler_pic='-KPIC'
10009 lt_prog_compiler_static='-Bstatic'
10012 unicos*)
10013 lt_prog_compiler_wl='-Wl,'
10014 lt_prog_compiler_can_build_shared=no
10017 uts4*)
10018 lt_prog_compiler_pic='-pic'
10019 lt_prog_compiler_static='-Bstatic'
10023 lt_prog_compiler_can_build_shared=no
10025 esac
10028 case $host_os in
10029 # For platforms which do not support PIC, -DPIC is meaningless:
10030 *djgpp*)
10031 lt_prog_compiler_pic=
10034 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10036 esac
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10038 $as_echo "$lt_prog_compiler_pic" >&6; }
10046 # Check to make sure the PIC flag actually works.
10048 if test -n "$lt_prog_compiler_pic"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10050 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10051 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 lt_cv_prog_compiler_pic_works=no
10055 ac_outfile=conftest.$ac_objext
10056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10057 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10058 # Insert the option either (1) after the last *FLAGS variable, or
10059 # (2) before a word containing "conftest.", or (3) at the end.
10060 # Note that $ac_compile itself does not contain backslashes and begins
10061 # with a dollar sign (not a hyphen), so the echo should work correctly.
10062 # The option is referenced via a variable to avoid confusing sed.
10063 lt_compile=`echo "$ac_compile" | $SED \
10064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10066 -e 's:$: $lt_compiler_flag:'`
10067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10068 (eval "$lt_compile" 2>conftest.err)
10069 ac_status=$?
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 if (exit $ac_status) && test -s "$ac_outfile"; then
10073 # The compiler can only warn and ignore the option if not recognized
10074 # So say no if there are warnings other than the usual output.
10075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10078 lt_cv_prog_compiler_pic_works=yes
10081 $RM conftest*
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10085 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10087 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10088 case $lt_prog_compiler_pic in
10089 "" | " "*) ;;
10090 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10091 esac
10092 else
10093 lt_prog_compiler_pic=
10094 lt_prog_compiler_can_build_shared=no
10105 # Check to make sure the static flag actually works.
10107 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10109 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10110 if ${lt_cv_prog_compiler_static_works+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 lt_cv_prog_compiler_static_works=no
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10118 # The linker can only warn and ignore the option if not recognized
10119 # So say no if there are warnings
10120 if test -s conftest.err; then
10121 # Append any errors to the config.log.
10122 cat conftest.err 1>&5
10123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10125 if diff conftest.exp conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler_static_works=yes
10128 else
10129 lt_cv_prog_compiler_static_works=yes
10132 $RM -r conftest*
10133 LDFLAGS="$save_LDFLAGS"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10137 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10139 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10141 else
10142 lt_prog_compiler_static=
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10152 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10153 if ${lt_cv_prog_compiler_c_o+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 lt_cv_prog_compiler_c_o=no
10157 $RM -r conftest 2>/dev/null
10158 mkdir conftest
10159 cd conftest
10160 mkdir out
10161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10163 lt_compiler_flag="-o out/conftest2.$ac_objext"
10164 # Insert the option either (1) after the last *FLAGS variable, or
10165 # (2) before a word containing "conftest.", or (3) at the end.
10166 # Note that $ac_compile itself does not contain backslashes and begins
10167 # with a dollar sign (not a hyphen), so the echo should work correctly.
10168 lt_compile=`echo "$ac_compile" | $SED \
10169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10171 -e 's:$: $lt_compiler_flag:'`
10172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10173 (eval "$lt_compile" 2>out/conftest.err)
10174 ac_status=$?
10175 cat out/conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10178 then
10179 # The compiler can only warn and ignore the option if not recognized
10180 # So say no if there are warnings
10181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10184 lt_cv_prog_compiler_c_o=yes
10187 chmod u+w . 2>&5
10188 $RM conftest*
10189 # SGI C++ compiler will create directory out/ii_files/ for
10190 # template instantiation
10191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10192 $RM out/* && rmdir out
10193 cd ..
10194 $RM -r conftest
10195 $RM conftest*
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10199 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10208 if ${lt_cv_prog_compiler_c_o+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 lt_cv_prog_compiler_c_o=no
10212 $RM -r conftest 2>/dev/null
10213 mkdir conftest
10214 cd conftest
10215 mkdir out
10216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10218 lt_compiler_flag="-o out/conftest2.$ac_objext"
10219 # Insert the option either (1) after the last *FLAGS variable, or
10220 # (2) before a word containing "conftest.", or (3) at the end.
10221 # Note that $ac_compile itself does not contain backslashes and begins
10222 # with a dollar sign (not a hyphen), so the echo should work correctly.
10223 lt_compile=`echo "$ac_compile" | $SED \
10224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10226 -e 's:$: $lt_compiler_flag:'`
10227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10228 (eval "$lt_compile" 2>out/conftest.err)
10229 ac_status=$?
10230 cat out/conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10233 then
10234 # The compiler can only warn and ignore the option if not recognized
10235 # So say no if there are warnings
10236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10239 lt_cv_prog_compiler_c_o=yes
10242 chmod u+w . 2>&5
10243 $RM conftest*
10244 # SGI C++ compiler will create directory out/ii_files/ for
10245 # template instantiation
10246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10247 $RM out/* && rmdir out
10248 cd ..
10249 $RM -r conftest
10250 $RM conftest*
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10254 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10259 hard_links="nottested"
10260 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10261 # do not overwrite the value of need_locks provided by the user
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10263 $as_echo_n "checking if we can lock with hard links... " >&6; }
10264 hard_links=yes
10265 $RM conftest*
10266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10267 touch conftest.a
10268 ln conftest.a conftest.b 2>&5 || hard_links=no
10269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10271 $as_echo "$hard_links" >&6; }
10272 if test "$hard_links" = no; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10274 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10275 need_locks=warn
10277 else
10278 need_locks=no
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10289 runpath_var=
10290 allow_undefined_flag=
10291 always_export_symbols=no
10292 archive_cmds=
10293 archive_expsym_cmds=
10294 compiler_needs_object=no
10295 enable_shared_with_static_runtimes=no
10296 export_dynamic_flag_spec=
10297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10298 hardcode_automatic=no
10299 hardcode_direct=no
10300 hardcode_direct_absolute=no
10301 hardcode_libdir_flag_spec=
10302 hardcode_libdir_flag_spec_ld=
10303 hardcode_libdir_separator=
10304 hardcode_minus_L=no
10305 hardcode_shlibpath_var=unsupported
10306 inherit_rpath=no
10307 link_all_deplibs=unknown
10308 module_cmds=
10309 module_expsym_cmds=
10310 old_archive_from_new_cmds=
10311 old_archive_from_expsyms_cmds=
10312 thread_safe_flag_spec=
10313 whole_archive_flag_spec=
10314 # include_expsyms should be a list of space-separated symbols to be *always*
10315 # included in the symbol list
10316 include_expsyms=
10317 # exclude_expsyms can be an extended regexp of symbols to exclude
10318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10320 # as well as any symbol that contains `d'.
10321 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10323 # platforms (ab)use it in PIC code, but their linkers get confused if
10324 # the symbol is explicitly referenced. Since portable code cannot
10325 # rely on this symbol name, it's probably fine to never include it in
10326 # preloaded symbol tables.
10327 # Exclude shared library initialization/finalization symbols.
10328 extract_expsyms_cmds=
10330 case $host_os in
10331 cygwin* | mingw* | pw32* | cegcc*)
10332 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10333 # When not using gcc, we currently assume that we are using
10334 # Microsoft Visual C++.
10335 if test "$GCC" != yes; then
10336 with_gnu_ld=no
10339 interix*)
10340 # we just hope/assume this is gcc and not c89 (= MSVC++)
10341 with_gnu_ld=yes
10343 openbsd*)
10344 with_gnu_ld=no
10346 esac
10348 ld_shlibs=yes
10350 # On some targets, GNU ld is compatible enough with the native linker
10351 # that we're better off using the native interface for both.
10352 lt_use_gnu_ld_interface=no
10353 if test "$with_gnu_ld" = yes; then
10354 case $host_os in
10355 aix*)
10356 # The AIX port of GNU ld has always aspired to compatibility
10357 # with the native linker. However, as the warning in the GNU ld
10358 # block says, versions before 2.19.5* couldn't really create working
10359 # shared libraries, regardless of the interface used.
10360 case `$LD -v 2>&1` in
10361 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10362 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10363 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10365 lt_use_gnu_ld_interface=yes
10367 esac
10370 lt_use_gnu_ld_interface=yes
10372 esac
10375 if test "$lt_use_gnu_ld_interface" = yes; then
10376 # If archive_cmds runs LD, not CC, wlarc should be empty
10377 wlarc='${wl}'
10379 # Set some defaults for GNU ld with shared library support. These
10380 # are reset later if shared libraries are not supported. Putting them
10381 # here allows them to be overridden if necessary.
10382 runpath_var=LD_RUN_PATH
10383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10384 export_dynamic_flag_spec='${wl}--export-dynamic'
10385 # ancient GNU ld didn't support --whole-archive et. al.
10386 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10387 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10388 else
10389 whole_archive_flag_spec=
10391 supports_anon_versioning=no
10392 case `$LD -v 2>&1` in
10393 *GNU\ gold*) supports_anon_versioning=yes ;;
10394 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10395 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10396 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10397 *\ 2.11.*) ;; # other 2.11 versions
10398 *) supports_anon_versioning=yes ;;
10399 esac
10401 # See if GNU ld supports shared libraries.
10402 case $host_os in
10403 aix[3-9]*)
10404 # On AIX/PPC, the GNU linker is very broken
10405 if test "$host_cpu" != ia64; then
10406 ld_shlibs=no
10407 cat <<_LT_EOF 1>&2
10409 *** Warning: the GNU linker, at least up to release 2.19, is reported
10410 *** to be unable to reliably create shared libraries on AIX.
10411 *** Therefore, libtool is disabling shared libraries support. If you
10412 *** really care for shared libraries, you may want to install binutils
10413 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10414 *** You will then need to restart the configuration process.
10416 _LT_EOF
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10432 esac
10435 beos*)
10436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10437 allow_undefined_flag=unsupported
10438 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10439 # support --undefined. This deserves some investigation. FIXME
10440 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 else
10442 ld_shlibs=no
10446 cygwin* | mingw* | pw32* | cegcc*)
10447 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10448 # as there is no search path for DLLs.
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 export_dynamic_flag_spec='${wl}--export-all-symbols'
10451 allow_undefined_flag=unsupported
10452 always_export_symbols=no
10453 enable_shared_with_static_runtimes=yes
10454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10456 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10458 # If the export-symbols file already is a .def file (1st line
10459 # is EXPORTS), use it as is; otherwise, prepend...
10460 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10461 cp $export_symbols $output_objdir/$soname.def;
10462 else
10463 echo EXPORTS > $output_objdir/$soname.def;
10464 cat $export_symbols >> $output_objdir/$soname.def;
10466 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10467 else
10468 ld_shlibs=no
10472 haiku*)
10473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10474 link_all_deplibs=yes
10477 interix[3-9]*)
10478 hardcode_direct=no
10479 hardcode_shlibpath_var=no
10480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10481 export_dynamic_flag_spec='${wl}-E'
10482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10483 # Instead, shared libraries are loaded at an image base (0x10000000 by
10484 # default) and relocated if they conflict, which is a slow very memory
10485 # consuming and fragmenting process. To avoid this, we pick a random,
10486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10489 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'
10492 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10493 tmp_diet=no
10494 if test "$host_os" = linux-dietlibc; then
10495 case $cc_basename in
10496 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10497 esac
10499 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10500 && test "$tmp_diet" = no
10501 then
10502 tmp_addflag=' $pic_flag'
10503 tmp_sharedflag='-shared'
10504 case $cc_basename,$host_cpu in
10505 pgcc*) # Portland Group C compiler
10506 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'
10507 tmp_addflag=' $pic_flag'
10509 pgf77* | pgf90* | pgf95* | pgfortran*)
10510 # Portland Group f77 and f90 compilers
10511 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'
10512 tmp_addflag=' $pic_flag -Mnomain' ;;
10513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10514 tmp_addflag=' -i_dynamic' ;;
10515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10516 tmp_addflag=' -i_dynamic -nofor_main' ;;
10517 ifc* | ifort*) # Intel Fortran compiler
10518 tmp_addflag=' -nofor_main' ;;
10519 lf95*) # Lahey Fortran 8.1
10520 whole_archive_flag_spec=
10521 tmp_sharedflag='--shared' ;;
10522 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10523 tmp_sharedflag='-qmkshrobj'
10524 tmp_addflag= ;;
10525 nvcc*) # Cuda Compiler Driver 2.2
10526 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'
10527 compiler_needs_object=yes
10529 esac
10530 case `$CC -V 2>&1 | sed 5q` in
10531 *Sun\ C*) # Sun C 5.9
10532 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'
10533 compiler_needs_object=yes
10534 tmp_sharedflag='-G' ;;
10535 *Sun\ F*) # Sun Fortran 8.3
10536 tmp_sharedflag='-G' ;;
10537 esac
10538 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10540 if test "x$supports_anon_versioning" = xyes; then
10541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10543 echo "local: *; };" >> $output_objdir/$libname.ver~
10544 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10547 case $cc_basename in
10548 xlf* | bgf* | bgxlf* | mpixlf*)
10549 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10550 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10551 hardcode_libdir_flag_spec=
10552 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10553 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10554 if test "x$supports_anon_versioning" = xyes; then
10555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10557 echo "local: *; };" >> $output_objdir/$libname.ver~
10558 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10561 esac
10562 else
10563 ld_shlibs=no
10567 netbsd*)
10568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10569 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10570 wlarc=
10571 else
10572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10577 solaris*)
10578 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10579 ld_shlibs=no
10580 cat <<_LT_EOF 1>&2
10582 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10583 *** create shared libraries on Solaris systems. Therefore, libtool
10584 *** is disabling shared libraries support. We urge you to upgrade GNU
10585 *** binutils to release 2.9.1 or newer. Another option is to modify
10586 *** your PATH or compiler configuration so that the native linker is
10587 *** used, and then restart.
10589 _LT_EOF
10590 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10593 else
10594 ld_shlibs=no
10598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10599 case `$LD -v 2>&1` in
10600 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10601 ld_shlibs=no
10602 cat <<_LT_EOF 1>&2
10604 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10605 *** reliably create shared libraries on SCO systems. Therefore, libtool
10606 *** is disabling shared libraries support. We urge you to upgrade GNU
10607 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10608 *** your PATH or compiler configuration so that the native linker is
10609 *** used, and then restart.
10611 _LT_EOF
10614 # For security reasons, it is highly recommended that you always
10615 # use absolute paths for naming shared libraries, and exclude the
10616 # DT_RUNPATH tag from executables and libraries. But doing so
10617 # requires that you compile everything twice, which is a pain.
10618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10621 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10622 else
10623 ld_shlibs=no
10626 esac
10629 sunos4*)
10630 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10631 wlarc=
10632 hardcode_direct=yes
10633 hardcode_shlibpath_var=no
10637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10640 else
10641 ld_shlibs=no
10644 esac
10646 if test "$ld_shlibs" = no; then
10647 runpath_var=
10648 hardcode_libdir_flag_spec=
10649 export_dynamic_flag_spec=
10650 whole_archive_flag_spec=
10652 else
10653 # PORTME fill in a description of your system's linker (not GNU ld)
10654 case $host_os in
10655 aix3*)
10656 allow_undefined_flag=unsupported
10657 always_export_symbols=yes
10658 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'
10659 # Note: this linker hardcodes the directories in LIBPATH if there
10660 # are no directories specified by -L.
10661 hardcode_minus_L=yes
10662 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10663 # Neither direct hardcoding nor static linking is supported with a
10664 # broken collect2.
10665 hardcode_direct=unsupported
10669 aix[4-9]*)
10670 if test "$host_cpu" = ia64; then
10671 # On IA64, the linker does run time linking by default, so we don't
10672 # have to do anything special.
10673 aix_use_runtimelinking=no
10674 exp_sym_flag='-Bexport'
10675 no_entry_flag=""
10676 else
10677 # If we're using GNU nm, then we don't want the "-C" option.
10678 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10679 # Also, AIX nm treats weak defined symbols like other global
10680 # defined symbols, whereas GNU nm marks them as "W".
10681 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10682 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'
10683 else
10684 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'
10686 aix_use_runtimelinking=no
10688 # Test if we are trying to use run time linking or normal
10689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10690 # need to do runtime linking.
10691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10692 for ld_flag in $LDFLAGS; do
10693 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10694 aix_use_runtimelinking=yes
10695 break
10697 done
10699 esac
10701 exp_sym_flag='-bexport'
10702 no_entry_flag='-bnoentry'
10705 # When large executables or shared objects are built, AIX ld can
10706 # have problems creating the table of contents. If linking a library
10707 # or program results in "error TOC overflow" add -mminimal-toc to
10708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10711 archive_cmds=''
10712 hardcode_direct=yes
10713 hardcode_direct_absolute=yes
10714 hardcode_libdir_separator=':'
10715 link_all_deplibs=yes
10716 file_list_spec='${wl}-f,'
10718 if test "$GCC" = yes; then
10719 case $host_os in aix4.[012]|aix4.[012].*)
10720 # We only want to do this on AIX 4.2 and lower, the check
10721 # below for broken collect2 doesn't work under 4.3+
10722 collect2name=`${CC} -print-prog-name=collect2`
10723 if test -f "$collect2name" &&
10724 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10725 then
10726 # We have reworked collect2
10728 else
10729 # We have old collect2
10730 hardcode_direct=unsupported
10731 # It fails to find uninstalled libraries when the uninstalled
10732 # path is not listed in the libpath. Setting hardcode_minus_L
10733 # to unsupported forces relinking
10734 hardcode_minus_L=yes
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_libdir_separator=
10739 esac
10740 shared_flag='-shared'
10741 if test "$aix_use_runtimelinking" = yes; then
10742 shared_flag="$shared_flag "'${wl}-G'
10744 else
10745 # not using gcc
10746 if test "$host_cpu" = ia64; then
10747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10748 # chokes on -Wl,-G. The following line is correct:
10749 shared_flag='-G'
10750 else
10751 if test "$aix_use_runtimelinking" = yes; then
10752 shared_flag='${wl}-G'
10753 else
10754 shared_flag='${wl}-bM:SRE'
10759 export_dynamic_flag_spec='${wl}-bexpall'
10760 # It seems that -bexpall does not export symbols beginning with
10761 # underscore (_), so it is better to generate a list of symbols to export.
10762 always_export_symbols=yes
10763 if test "$aix_use_runtimelinking" = yes; then
10764 # Warning - without using the other runtime loading flags (-brtl),
10765 # -berok will link without error, but may produce a broken library.
10766 allow_undefined_flag='-berok'
10767 # Determine the default libpath from the value encoded in an
10768 # empty executable.
10769 if test x$gcc_no_link = xyes; then
10770 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10776 main ()
10780 return 0;
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10785 lt_aix_libpath_sed='
10786 /Import File Strings/,/^$/ {
10787 /^0/ {
10788 s/^0 *\(.*\)$/\1/
10792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793 # Check for a 64-bit object if we didn't find anything.
10794 if test -z "$aix_libpath"; then
10795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10803 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"
10804 else
10805 if test "$host_cpu" = ia64; then
10806 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10807 allow_undefined_flag="-z nodefs"
10808 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"
10809 else
10810 # Determine the default libpath from the value encoded in an
10811 # empty executable.
10812 if test x$gcc_no_link = xyes; then
10813 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10819 main ()
10823 return 0;
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10828 lt_aix_libpath_sed='
10829 /Import File Strings/,/^$/ {
10830 /^0/ {
10831 s/^0 *\(.*\)$/\1/
10835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836 # Check for a 64-bit object if we didn't find anything.
10837 if test -z "$aix_libpath"; then
10838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10845 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10846 # Warning - without using the other run time loading flags,
10847 # -berok will link without error, but may produce a broken library.
10848 no_undefined_flag=' ${wl}-bernotok'
10849 allow_undefined_flag=' ${wl}-berok'
10850 if test "$with_gnu_ld" = yes; then
10851 # We only use this code for GNU lds that support --whole-archive.
10852 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10853 else
10854 # Exported symbols can be pulled into shared objects from archives
10855 whole_archive_flag_spec='$convenience'
10857 archive_cmds_need_lc=yes
10858 # This is similar to how AIX traditionally builds its shared libraries.
10859 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'
10864 amigaos*)
10865 case $host_cpu in
10866 powerpc)
10867 # see comment about AmigaOS4 .so support
10868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10869 archive_expsym_cmds=''
10871 m68k)
10872 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)'
10873 hardcode_libdir_flag_spec='-L$libdir'
10874 hardcode_minus_L=yes
10876 esac
10879 bsdi[45]*)
10880 export_dynamic_flag_spec=-rdynamic
10883 cygwin* | mingw* | pw32* | cegcc*)
10884 # When not using gcc, we currently assume that we are using
10885 # Microsoft Visual C++.
10886 # hardcode_libdir_flag_spec is actually meaningless, as there is
10887 # no search path for DLLs.
10888 hardcode_libdir_flag_spec=' '
10889 allow_undefined_flag=unsupported
10890 # Tell ltmain to make .lib files, not .a files.
10891 libext=lib
10892 # Tell ltmain to make .dll files, not .so files.
10893 shrext_cmds=".dll"
10894 # FIXME: Setting linknames here is a bad hack.
10895 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10896 # The linker will automatically build a .lib file if we build a DLL.
10897 old_archive_from_new_cmds='true'
10898 # FIXME: Should let the user specify the lib program.
10899 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10900 fix_srcfile_path='`cygpath -w "$srcfile"`'
10901 enable_shared_with_static_runtimes=yes
10904 darwin* | rhapsody*)
10907 archive_cmds_need_lc=no
10908 hardcode_direct=no
10909 hardcode_automatic=yes
10910 hardcode_shlibpath_var=unsupported
10911 if test "$lt_cv_ld_force_load" = "yes"; then
10912 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\"`'
10913 else
10914 whole_archive_flag_spec=''
10916 link_all_deplibs=yes
10917 allow_undefined_flag="$_lt_dar_allow_undefined"
10918 case $cc_basename in
10919 ifort*) _lt_dar_can_shared=yes ;;
10920 *) _lt_dar_can_shared=$GCC ;;
10921 esac
10922 if test "$_lt_dar_can_shared" = "yes"; then
10923 output_verbose_link_cmd=func_echo_all
10924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10926 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 \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10927 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}"
10929 else
10930 ld_shlibs=no
10935 dgux*)
10936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10937 hardcode_libdir_flag_spec='-L$libdir'
10938 hardcode_shlibpath_var=no
10941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10942 # support. Future versions do this automatically, but an explicit c++rt0.o
10943 # does not break anything, and helps significantly (at the cost of a little
10944 # extra space).
10945 freebsd2.2*)
10946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10947 hardcode_libdir_flag_spec='-R$libdir'
10948 hardcode_direct=yes
10949 hardcode_shlibpath_var=no
10952 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10953 freebsd2.*)
10954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_direct=yes
10956 hardcode_minus_L=yes
10957 hardcode_shlibpath_var=no
10960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10961 freebsd* | dragonfly*)
10962 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10963 hardcode_libdir_flag_spec='-R$libdir'
10964 hardcode_direct=yes
10965 hardcode_shlibpath_var=no
10968 hpux9*)
10969 if test "$GCC" = yes; then
10970 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'
10971 else
10972 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'
10974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10975 hardcode_libdir_separator=:
10976 hardcode_direct=yes
10978 # hardcode_minus_L: Not really in the search PATH,
10979 # but as the default location of the library.
10980 hardcode_minus_L=yes
10981 export_dynamic_flag_spec='${wl}-E'
10984 hpux10*)
10985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10986 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10987 else
10988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10990 if test "$with_gnu_ld" = no; then
10991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10992 hardcode_libdir_flag_spec_ld='+b $libdir'
10993 hardcode_libdir_separator=:
10994 hardcode_direct=yes
10995 hardcode_direct_absolute=yes
10996 export_dynamic_flag_spec='${wl}-E'
10997 # hardcode_minus_L: Not really in the search PATH,
10998 # but as the default location of the library.
10999 hardcode_minus_L=yes
11003 hpux11*)
11004 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11005 case $host_cpu in
11006 hppa*64*)
11007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11009 ia64*)
11010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11015 esac
11016 else
11017 case $host_cpu in
11018 hppa*64*)
11019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11021 ia64*)
11022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11026 # Older versions of the 11.00 compiler do not understand -b yet
11027 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11029 $as_echo_n "checking if $CC understands -b... " >&6; }
11030 if ${lt_cv_prog_compiler__b+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 lt_cv_prog_compiler__b=no
11034 save_LDFLAGS="$LDFLAGS"
11035 LDFLAGS="$LDFLAGS -b"
11036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11038 # The linker can only warn and ignore the option if not recognized
11039 # So say no if there are warnings
11040 if test -s conftest.err; then
11041 # Append any errors to the config.log.
11042 cat conftest.err 1>&5
11043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11045 if diff conftest.exp conftest.er2 >/dev/null; then
11046 lt_cv_prog_compiler__b=yes
11048 else
11049 lt_cv_prog_compiler__b=yes
11052 $RM -r conftest*
11053 LDFLAGS="$save_LDFLAGS"
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11057 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11059 if test x"$lt_cv_prog_compiler__b" = xyes; then
11060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11061 else
11062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11066 esac
11068 if test "$with_gnu_ld" = no; then
11069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11070 hardcode_libdir_separator=:
11072 case $host_cpu in
11073 hppa*64*|ia64*)
11074 hardcode_direct=no
11075 hardcode_shlibpath_var=no
11078 hardcode_direct=yes
11079 hardcode_direct_absolute=yes
11080 export_dynamic_flag_spec='${wl}-E'
11082 # hardcode_minus_L: Not really in the search PATH,
11083 # but as the default location of the library.
11084 hardcode_minus_L=yes
11086 esac
11090 irix5* | irix6* | nonstopux*)
11091 if test "$GCC" = yes; then
11092 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'
11093 # Try to use the -exported_symbol ld option, if it does not
11094 # work, assume that -exports_file does not work either and
11095 # implicitly export all symbols.
11096 save_LDFLAGS="$LDFLAGS"
11097 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11098 if test x$gcc_no_link = xyes; then
11099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103 int foo(void) {}
11104 _ACEOF
11105 if ac_fn_c_try_link "$LINENO"; then :
11106 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'
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 LDFLAGS="$save_LDFLAGS"
11112 else
11113 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'
11114 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'
11116 archive_cmds_need_lc='no'
11117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11118 hardcode_libdir_separator=:
11119 inherit_rpath=yes
11120 link_all_deplibs=yes
11123 netbsd*)
11124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11126 else
11127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11129 hardcode_libdir_flag_spec='-R$libdir'
11130 hardcode_direct=yes
11131 hardcode_shlibpath_var=no
11134 newsos6)
11135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136 hardcode_direct=yes
11137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138 hardcode_libdir_separator=:
11139 hardcode_shlibpath_var=no
11142 *nto* | *qnx*)
11145 openbsd*)
11146 if test -f /usr/libexec/ld.so; then
11147 hardcode_direct=yes
11148 hardcode_shlibpath_var=no
11149 hardcode_direct_absolute=yes
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11154 export_dynamic_flag_spec='${wl}-E'
11155 else
11156 case $host_os in
11157 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11159 hardcode_libdir_flag_spec='-R$libdir'
11162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11165 esac
11167 else
11168 ld_shlibs=no
11172 os2*)
11173 hardcode_libdir_flag_spec='-L$libdir'
11174 hardcode_minus_L=yes
11175 allow_undefined_flag=unsupported
11176 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'
11177 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11180 osf3*)
11181 if test "$GCC" = yes; then
11182 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11183 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'
11184 else
11185 allow_undefined_flag=' -expect_unresolved \*'
11186 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'
11188 archive_cmds_need_lc='no'
11189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11190 hardcode_libdir_separator=:
11193 osf4* | osf5*) # as osf3* with the addition of -msym flag
11194 if test "$GCC" = yes; then
11195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11196 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'
11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198 else
11199 allow_undefined_flag=' -expect_unresolved \*'
11200 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'
11201 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~
11202 $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'
11204 # Both c and cxx compiler support -rpath directly
11205 hardcode_libdir_flag_spec='-rpath $libdir'
11207 archive_cmds_need_lc='no'
11208 hardcode_libdir_separator=:
11211 solaris*)
11212 no_undefined_flag=' -z defs'
11213 if test "$GCC" = yes; then
11214 wlarc='${wl}'
11215 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11218 else
11219 case `$CC -V 2>&1` in
11220 *"Compilers 5.0"*)
11221 wlarc=''
11222 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11227 wlarc='${wl}'
11228 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11232 esac
11234 hardcode_libdir_flag_spec='-R$libdir'
11235 hardcode_shlibpath_var=no
11236 case $host_os in
11237 solaris2.[0-5] | solaris2.[0-5].*) ;;
11239 # The compiler driver will combine and reorder linker options,
11240 # but understands `-z linker_flag'. GCC discards it without `$wl',
11241 # but is careful enough not to reorder.
11242 # Supported since Solaris 2.6 (maybe 2.5.1?)
11243 if test "$GCC" = yes; then
11244 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11245 else
11246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11249 esac
11250 link_all_deplibs=yes
11253 sunos4*)
11254 if test "x$host_vendor" = xsequent; then
11255 # Use $CC to link under sequent, because it throws in some extra .o
11256 # files that make .init and .fini sections work.
11257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11258 else
11259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11261 hardcode_libdir_flag_spec='-L$libdir'
11262 hardcode_direct=yes
11263 hardcode_minus_L=yes
11264 hardcode_shlibpath_var=no
11267 sysv4)
11268 case $host_vendor in
11269 sni)
11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271 hardcode_direct=yes # is this really true???
11273 siemens)
11274 ## LD is ld it makes a PLAMLIB
11275 ## CC just makes a GrossModule.
11276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11277 reload_cmds='$CC -r -o $output$reload_objs'
11278 hardcode_direct=no
11280 motorola)
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11284 esac
11285 runpath_var='LD_RUN_PATH'
11286 hardcode_shlibpath_var=no
11289 sysv4.3*)
11290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_shlibpath_var=no
11292 export_dynamic_flag_spec='-Bexport'
11295 sysv4*MP*)
11296 if test -d /usr/nec; then
11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298 hardcode_shlibpath_var=no
11299 runpath_var=LD_RUN_PATH
11300 hardcode_runpath_var=yes
11301 ld_shlibs=yes
11305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11306 no_undefined_flag='${wl}-z,text'
11307 archive_cmds_need_lc=no
11308 hardcode_shlibpath_var=no
11309 runpath_var='LD_RUN_PATH'
11311 if test "$GCC" = yes; then
11312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 else
11315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 sysv5* | sco3.2v5* | sco5v6*)
11321 # Note: We can NOT use -z defs as we might desire, because we do not
11322 # link with -lc, and that would cause any symbols used from libc to
11323 # always be unresolved, which means just about no library would
11324 # ever link correctly. If we're not using GNU ld we use -z text
11325 # though, which does catch some bad symbols but isn't as heavy-handed
11326 # as -z defs.
11327 no_undefined_flag='${wl}-z,text'
11328 allow_undefined_flag='${wl}-z,nodefs'
11329 archive_cmds_need_lc=no
11330 hardcode_shlibpath_var=no
11331 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11332 hardcode_libdir_separator=':'
11333 link_all_deplibs=yes
11334 export_dynamic_flag_spec='${wl}-Bexport'
11335 runpath_var='LD_RUN_PATH'
11337 if test "$GCC" = yes; then
11338 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340 else
11341 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346 uts4*)
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_libdir_flag_spec='-L$libdir'
11349 hardcode_shlibpath_var=no
11353 ld_shlibs=no
11355 esac
11357 if test x$host_vendor = xsni; then
11358 case $host in
11359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11360 export_dynamic_flag_spec='${wl}-Blargedynsym'
11362 esac
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11367 $as_echo "$ld_shlibs" >&6; }
11368 test "$ld_shlibs" = no && can_build_shared=no
11370 with_gnu_ld=$with_gnu_ld
11387 # Do we need to explicitly link libc?
11389 case "x$archive_cmds_need_lc" in
11390 x|xyes)
11391 # Assume -lc should be added
11392 archive_cmds_need_lc=yes
11394 if test "$enable_shared" = yes && test "$GCC" = yes; then
11395 case $archive_cmds in
11396 *'~'*)
11397 # FIXME: we may have to deal with multi-command sequences.
11399 '$CC '*)
11400 # Test whether the compiler implicitly links with -lc since on some
11401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11402 # to ld, don't add -lc before -lgcc.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11404 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11405 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 $RM conftest*
11409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11412 (eval $ac_compile) 2>&5
11413 ac_status=$?
11414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415 test $ac_status = 0; } 2>conftest.err; then
11416 soname=conftest
11417 lib=conftest
11418 libobjs=conftest.$ac_objext
11419 deplibs=
11420 wl=$lt_prog_compiler_wl
11421 pic_flag=$lt_prog_compiler_pic
11422 compiler_flags=-v
11423 linker_flags=-v
11424 verstring=
11425 output_objdir=.
11426 libname=conftest
11427 lt_save_allow_undefined_flag=$allow_undefined_flag
11428 allow_undefined_flag=
11429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11430 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11431 ac_status=$?
11432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11433 test $ac_status = 0; }
11434 then
11435 lt_cv_archive_cmds_need_lc=no
11436 else
11437 lt_cv_archive_cmds_need_lc=yes
11439 allow_undefined_flag=$lt_save_allow_undefined_flag
11440 else
11441 cat conftest.err 1>&5
11443 $RM conftest*
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11447 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11448 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11450 esac
11453 esac
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11614 if test "$GCC" = yes; then
11615 case $host_os in
11616 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11617 *) lt_awk_arg="/^libraries:/" ;;
11618 esac
11619 case $host_os in
11620 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11621 *) lt_sed_strip_eq="s,=/,/,g" ;;
11622 esac
11623 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11624 case $lt_search_path_spec in
11625 *\;*)
11626 # if the path contains ";" then we assume it to be the separator
11627 # otherwise default to the standard path separator (i.e. ":") - it is
11628 # assumed that no part of a normal pathname contains ";" but that should
11629 # okay in the real world where ";" in dirpaths is itself problematic.
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11633 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11635 esac
11636 # Ok, now we have the path, separated by spaces, we can step through it
11637 # and add multilib dir if necessary.
11638 lt_tmp_lt_search_path_spec=
11639 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11640 for lt_sys_path in $lt_search_path_spec; do
11641 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11643 else
11644 test -d "$lt_sys_path" && \
11645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11647 done
11648 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11649 BEGIN {RS=" "; FS="/|\n";} {
11650 lt_foo="";
11651 lt_count=0;
11652 for (lt_i = NF; lt_i > 0; lt_i--) {
11653 if ($lt_i != "" && $lt_i != ".") {
11654 if ($lt_i == "..") {
11655 lt_count++;
11656 } else {
11657 if (lt_count == 0) {
11658 lt_foo="/" $lt_i lt_foo;
11659 } else {
11660 lt_count--;
11665 if (lt_foo != "") { lt_freq[lt_foo]++; }
11666 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11668 # AWK program above erroneously prepends '/' to C:/dos/paths
11669 # for these hosts.
11670 case $host_os in
11671 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11672 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11673 esac
11674 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11675 else
11676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11678 library_names_spec=
11679 libname_spec='lib$name'
11680 soname_spec=
11681 shrext_cmds=".so"
11682 postinstall_cmds=
11683 postuninstall_cmds=
11684 finish_cmds=
11685 finish_eval=
11686 shlibpath_var=
11687 shlibpath_overrides_runpath=unknown
11688 version_type=none
11689 dynamic_linker="$host_os ld.so"
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11691 need_lib_prefix=unknown
11692 hardcode_into_libs=no
11694 # when you set need_version to no, make sure it does not cause -set_version
11695 # flags to be left without arguments
11696 need_version=unknown
11698 case $host_os in
11699 aix3*)
11700 version_type=linux
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11702 shlibpath_var=LIBPATH
11704 # AIX 3 has no versioning support, so we append a major version to the name.
11705 soname_spec='${libname}${release}${shared_ext}$major'
11708 aix[4-9]*)
11709 version_type=linux
11710 need_lib_prefix=no
11711 need_version=no
11712 hardcode_into_libs=yes
11713 if test "$host_cpu" = ia64; then
11714 # AIX 5 supports IA64
11715 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 else
11718 # With GCC up to 2.95.x, collect2 would create an import file
11719 # for dependence libraries. The import file would start with
11720 # the line `#! .'. This would cause the generated library to
11721 # depend on `.', always an invalid library. This was fixed in
11722 # development snapshots of GCC prior to 3.0.
11723 case $host_os in
11724 aix4 | aix4.[01] | aix4.[01].*)
11725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11726 echo ' yes '
11727 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11729 else
11730 can_build_shared=no
11733 esac
11734 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11735 # soname into executable. Probably we can add versioning support to
11736 # collect2, so additional links can be useful in future.
11737 if test "$aix_use_runtimelinking" = yes; then
11738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11739 # instead of lib<name>.a to let people know that these are not
11740 # typical AIX shared libraries.
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 else
11743 # We preserve .a as extension for shared libraries through AIX4.2
11744 # and later when we are not doing run time linking.
11745 library_names_spec='${libname}${release}.a $libname.a'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LIBPATH
11752 amigaos*)
11753 case $host_cpu in
11754 powerpc)
11755 # Since July 2007 AmigaOS4 officially supports .so libraries.
11756 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 m68k)
11760 library_names_spec='$libname.ixlibrary $libname.a'
11761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11762 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'
11764 esac
11767 beos*)
11768 library_names_spec='${libname}${shared_ext}'
11769 dynamic_linker="$host_os ld.so"
11770 shlibpath_var=LIBRARY_PATH
11773 bsdi[45]*)
11774 version_type=linux
11775 need_version=no
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11782 # the default ld.so.conf also contains /usr/contrib/lib and
11783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11784 # libtool to hard-code these into programs
11787 cygwin* | mingw* | pw32* | cegcc*)
11788 version_type=windows
11789 shrext_cmds=".dll"
11790 need_version=no
11791 need_lib_prefix=no
11793 case $GCC,$host_os in
11794 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11795 library_names_spec='$libname.dll.a'
11796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11797 postinstall_cmds='base_file=`basename \${file}`~
11798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11799 dldir=$destdir/`dirname \$dlpath`~
11800 test -d \$dldir || mkdir -p \$dldir~
11801 $install_prog $dir/$dlname \$dldir/$dlname~
11802 chmod a+x \$dldir/$dlname~
11803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11807 dlpath=$dir/\$dldll~
11808 $RM \$dlpath'
11809 shlibpath_overrides_runpath=yes
11811 case $host_os in
11812 cygwin*)
11813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11816 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11818 mingw* | cegcc*)
11819 # MinGW DLLs use traditional 'lib' prefix
11820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11822 pw32*)
11823 # pw32 DLLs use 'pw' prefix rather than 'lib'
11824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11826 esac
11830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11832 esac
11833 dynamic_linker='Win32 ld.exe'
11834 # FIXME: first we should search . and the directory the executable is in
11835 shlibpath_var=PATH
11838 darwin* | rhapsody*)
11839 dynamic_linker="$host_os dyld"
11840 version_type=darwin
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11844 soname_spec='${libname}${release}${major}$shared_ext'
11845 shlibpath_overrides_runpath=yes
11846 shlibpath_var=DYLD_LIBRARY_PATH
11847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11853 dgux*)
11854 version_type=linux
11855 need_lib_prefix=no
11856 need_version=no
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 shlibpath_var=LD_LIBRARY_PATH
11862 freebsd* | dragonfly*)
11863 # DragonFly does not have aout. When/if they implement a new
11864 # versioning mechanism, adjust this.
11865 if test -x /usr/bin/objformat; then
11866 objformat=`/usr/bin/objformat`
11867 else
11868 case $host_os in
11869 freebsd[23].*) objformat=aout ;;
11870 *) objformat=elf ;;
11871 esac
11873 version_type=freebsd-$objformat
11874 case $version_type in
11875 freebsd-elf*)
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11877 need_version=no
11878 need_lib_prefix=no
11880 freebsd-*)
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11882 need_version=yes
11884 esac
11885 shlibpath_var=LD_LIBRARY_PATH
11886 case $host_os in
11887 freebsd2.*)
11888 shlibpath_overrides_runpath=yes
11890 freebsd3.[01]* | freebsdelf3.[01]*)
11891 shlibpath_overrides_runpath=yes
11892 hardcode_into_libs=yes
11894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11896 shlibpath_overrides_runpath=no
11897 hardcode_into_libs=yes
11899 *) # from 4.6 on, and DragonFly
11900 shlibpath_overrides_runpath=yes
11901 hardcode_into_libs=yes
11903 esac
11906 haiku*)
11907 version_type=linux
11908 need_lib_prefix=no
11909 need_version=no
11910 dynamic_linker="$host_os runtime_loader"
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LIBRARY_PATH
11914 shlibpath_overrides_runpath=yes
11915 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11916 hardcode_into_libs=yes
11919 hpux9* | hpux10* | hpux11*)
11920 # Give a soname corresponding to the major version so that dld.sl refuses to
11921 # link against other versions.
11922 version_type=sunos
11923 need_lib_prefix=no
11924 need_version=no
11925 case $host_cpu in
11926 ia64*)
11927 shrext_cmds='.so'
11928 hardcode_into_libs=yes
11929 dynamic_linker="$host_os dld.so"
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 if test "X$HPUX_IA64_MODE" = X32; then
11935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11936 else
11937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11941 hppa*64*)
11942 shrext_cmds='.sl'
11943 hardcode_into_libs=yes
11944 dynamic_linker="$host_os dld.sl"
11945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11953 shrext_cmds='.sl'
11954 dynamic_linker="$host_os dld.sl"
11955 shlibpath_var=SHLIB_PATH
11956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 soname_spec='${libname}${release}${shared_ext}$major'
11960 esac
11961 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11962 postinstall_cmds='chmod 555 $lib'
11963 # or fails outright, so override atomically:
11964 install_override_mode=555
11967 interix[3-9]*)
11968 version_type=linux
11969 need_lib_prefix=no
11970 need_version=no
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 shlibpath_overrides_runpath=no
11976 hardcode_into_libs=yes
11979 irix5* | irix6* | nonstopux*)
11980 case $host_os in
11981 nonstopux*) version_type=nonstopux ;;
11983 if test "$lt_cv_prog_gnu_ld" = yes; then
11984 version_type=linux
11985 else
11986 version_type=irix
11987 fi ;;
11988 esac
11989 need_lib_prefix=no
11990 need_version=no
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11993 case $host_os in
11994 irix5* | nonstopux*)
11995 libsuff= shlibsuff=
11998 case $LD in # libtool.m4 will add one of these switches to LD
11999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12000 libsuff= shlibsuff= libmagic=32-bit;;
12001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12002 libsuff=32 shlibsuff=N32 libmagic=N32;;
12003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12005 *) libsuff= shlibsuff= libmagic=never-match;;
12006 esac
12008 esac
12009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12010 shlibpath_overrides_runpath=no
12011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12013 hardcode_into_libs=yes
12016 # No shared lib support for Linux oldld, aout, or coff.
12017 linux*oldld* | linux*aout* | linux*coff*)
12018 dynamic_linker=no
12021 # This must be Linux ELF.
12023 # uclinux* changes (here and below) have been submitted to the libtool
12024 # project, but have not yet been accepted: they are GCC-local changes
12025 # for the time being. (See
12026 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12028 version_type=linux
12029 need_lib_prefix=no
12030 need_version=no
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=no
12037 # Some binutils ld are patched to set DT_RUNPATH
12038 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 lt_cv_shlibpath_overrides_runpath=no
12042 save_LDFLAGS=$LDFLAGS
12043 save_libdir=$libdir
12044 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12045 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12046 if test x$gcc_no_link = xyes; then
12047 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12053 main ()
12057 return 0;
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12062 lt_cv_shlibpath_overrides_runpath=yes
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 LDFLAGS=$save_LDFLAGS
12068 libdir=$save_libdir
12072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12074 # This implies no fast_install, which is unacceptable.
12075 # Some rework will be needed to allow for fast_install
12076 # before this can be enabled.
12077 hardcode_into_libs=yes
12079 # Append ld.so.conf contents to the search path
12080 if test -f /etc/ld.so.conf; then
12081 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' ' '`
12082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12085 # We used to test for /lib/ld.so.1 and disable shared libraries on
12086 # powerpc, because MkLinux only supported shared libraries with the
12087 # GNU dynamic linker. Since this was broken with cross compilers,
12088 # most powerpc-linux boxes support dynamic linking these days and
12089 # people can always --disable-shared, the test was removed, and we
12090 # assume the GNU/Linux dynamic linker is in use.
12091 dynamic_linker='GNU/Linux ld.so'
12094 netbsd*)
12095 version_type=sunos
12096 need_lib_prefix=no
12097 need_version=no
12098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12101 dynamic_linker='NetBSD (a.out) ld.so'
12102 else
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 dynamic_linker='NetBSD ld.elf_so'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12109 hardcode_into_libs=yes
12112 newsos6)
12113 version_type=linux
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 shlibpath_overrides_runpath=yes
12119 *nto* | *qnx*)
12120 version_type=qnx
12121 need_lib_prefix=no
12122 need_version=no
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 shlibpath_overrides_runpath=no
12127 hardcode_into_libs=yes
12128 dynamic_linker='ldqnx.so'
12131 openbsd*)
12132 version_type=sunos
12133 sys_lib_dlsearch_path_spec="/usr/lib"
12134 need_lib_prefix=no
12135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12136 case $host_os in
12137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12138 *) need_version=no ;;
12139 esac
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12144 case $host_os in
12145 openbsd2.[89] | openbsd2.[89].*)
12146 shlibpath_overrides_runpath=no
12149 shlibpath_overrides_runpath=yes
12151 esac
12152 else
12153 shlibpath_overrides_runpath=yes
12157 os2*)
12158 libname_spec='$name'
12159 shrext_cmds=".dll"
12160 need_lib_prefix=no
12161 library_names_spec='$libname${shared_ext} $libname.a'
12162 dynamic_linker='OS/2 ld.exe'
12163 shlibpath_var=LIBPATH
12166 osf3* | osf4* | osf5*)
12167 version_type=osf
12168 need_lib_prefix=no
12169 need_version=no
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12177 rdos*)
12178 dynamic_linker=no
12181 solaris*)
12182 version_type=linux
12183 need_lib_prefix=no
12184 need_version=no
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=yes
12189 hardcode_into_libs=yes
12190 # ldd complains unless libraries are executable
12191 postinstall_cmds='chmod +x $lib'
12194 sunos4*)
12195 version_type=sunos
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=yes
12200 if test "$with_gnu_ld" = yes; then
12201 need_lib_prefix=no
12203 need_version=yes
12206 sysv4 | sysv4.3*)
12207 version_type=linux
12208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12209 soname_spec='${libname}${release}${shared_ext}$major'
12210 shlibpath_var=LD_LIBRARY_PATH
12211 case $host_vendor in
12212 sni)
12213 shlibpath_overrides_runpath=no
12214 need_lib_prefix=no
12215 runpath_var=LD_RUN_PATH
12217 siemens)
12218 need_lib_prefix=no
12220 motorola)
12221 need_lib_prefix=no
12222 need_version=no
12223 shlibpath_overrides_runpath=no
12224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12226 esac
12229 sysv4*MP*)
12230 if test -d /usr/nec ;then
12231 version_type=linux
12232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12233 soname_spec='$libname${shared_ext}.$major'
12234 shlibpath_var=LD_LIBRARY_PATH
12238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12239 version_type=freebsd-elf
12240 need_lib_prefix=no
12241 need_version=no
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=yes
12246 hardcode_into_libs=yes
12247 if test "$with_gnu_ld" = yes; then
12248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12249 else
12250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12251 case $host_os in
12252 sco3.2v5*)
12253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12255 esac
12257 sys_lib_dlsearch_path_spec='/usr/lib'
12260 tpf*)
12261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12262 version_type=linux
12263 need_lib_prefix=no
12264 need_version=no
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=no
12268 hardcode_into_libs=yes
12271 uts4*)
12272 version_type=linux
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12279 dynamic_linker=no
12281 esac
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12283 $as_echo "$dynamic_linker" >&6; }
12284 test "$dynamic_linker" = no && can_build_shared=no
12286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12287 if test "$GCC" = yes; then
12288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12391 hardcode_action=
12392 if test -n "$hardcode_libdir_flag_spec" ||
12393 test -n "$runpath_var" ||
12394 test "X$hardcode_automatic" = "Xyes" ; then
12396 # We can hardcode non-existent directories.
12397 if test "$hardcode_direct" != no &&
12398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12399 # have to relink, otherwise we might link with an installed library
12400 # when we should be linking with a yet-to-be-installed one
12401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12402 test "$hardcode_minus_L" != no; then
12403 # Linking always hardcodes the temporary library directory.
12404 hardcode_action=relink
12405 else
12406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12407 hardcode_action=immediate
12409 else
12410 # We cannot hardcode anything, or else we can only hardcode existing
12411 # directories.
12412 hardcode_action=unsupported
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12415 $as_echo "$hardcode_action" >&6; }
12417 if test "$hardcode_action" = relink ||
12418 test "$inherit_rpath" = yes; then
12419 # Fast installation is not supported
12420 enable_fast_install=no
12421 elif test "$shlibpath_overrides_runpath" = yes ||
12422 test "$enable_shared" = no; then
12423 # Fast installation is not necessary
12424 enable_fast_install=needless
12432 if test "x$enable_dlopen" != xyes; then
12433 enable_dlopen=unknown
12434 enable_dlopen_self=unknown
12435 enable_dlopen_self_static=unknown
12436 else
12437 lt_cv_dlopen=no
12438 lt_cv_dlopen_libs=
12440 case $host_os in
12441 beos*)
12442 lt_cv_dlopen="load_add_on"
12443 lt_cv_dlopen_libs=
12444 lt_cv_dlopen_self=yes
12447 mingw* | pw32* | cegcc*)
12448 lt_cv_dlopen="LoadLibrary"
12449 lt_cv_dlopen_libs=
12452 cygwin*)
12453 lt_cv_dlopen="dlopen"
12454 lt_cv_dlopen_libs=
12457 darwin*)
12458 # if libdl is installed we need to link against it
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12461 if ${ac_cv_lib_dl_dlopen+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ldl $LIBS"
12466 if test x$gcc_no_link = xyes; then
12467 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char dlopen ();
12480 main ()
12482 return dlopen ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_dl_dlopen=yes
12489 else
12490 ac_cv_lib_dl_dlopen=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12498 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12500 else
12502 lt_cv_dlopen="dyld"
12503 lt_cv_dlopen_libs=
12504 lt_cv_dlopen_self=yes
12511 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12512 if test "x$ac_cv_func_shl_load" = xyes; then :
12513 lt_cv_dlopen="shl_load"
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12516 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12517 if ${ac_cv_lib_dld_shl_load+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 ac_check_lib_save_LIBS=$LIBS
12521 LIBS="-ldld $LIBS"
12522 if test x$gcc_no_link = xyes; then
12523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char shl_load ();
12536 main ()
12538 return shl_load ();
12540 return 0;
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_dld_shl_load=yes
12545 else
12546 ac_cv_lib_dld_shl_load=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12553 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12554 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12555 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12556 else
12557 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12558 if test "x$ac_cv_func_dlopen" = xyes; then :
12559 lt_cv_dlopen="dlopen"
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12563 if ${ac_cv_lib_dl_dlopen+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-ldl $LIBS"
12568 if test x$gcc_no_link = xyes; then
12569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12577 #ifdef __cplusplus
12578 extern "C"
12579 #endif
12580 char dlopen ();
12582 main ()
12584 return dlopen ();
12586 return 0;
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12590 ac_cv_lib_dl_dlopen=yes
12591 else
12592 ac_cv_lib_dl_dlopen=no
12594 rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_check_lib_save_LIBS
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12604 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12605 if ${ac_cv_lib_svld_dlopen+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-lsvld $LIBS"
12610 if test x$gcc_no_link = xyes; then
12611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char dlopen ();
12624 main ()
12626 return dlopen ();
12628 return 0;
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"; then :
12632 ac_cv_lib_svld_dlopen=yes
12633 else
12634 ac_cv_lib_svld_dlopen=no
12636 rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12641 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12642 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12646 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12647 if ${ac_cv_lib_dld_dld_link+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 ac_check_lib_save_LIBS=$LIBS
12651 LIBS="-ldld $LIBS"
12652 if test x$gcc_no_link = xyes; then
12653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char dld_link ();
12666 main ()
12668 return dld_link ();
12670 return 0;
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_lib_dld_dld_link=yes
12675 else
12676 ac_cv_lib_dld_dld_link=no
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12683 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12684 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12685 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12704 esac
12706 if test "x$lt_cv_dlopen" != xno; then
12707 enable_dlopen=yes
12708 else
12709 enable_dlopen=no
12712 case $lt_cv_dlopen in
12713 dlopen)
12714 save_CPPFLAGS="$CPPFLAGS"
12715 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12717 save_LDFLAGS="$LDFLAGS"
12718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12720 save_LIBS="$LIBS"
12721 LIBS="$lt_cv_dlopen_libs $LIBS"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12724 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12725 if ${lt_cv_dlopen_self+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test "$cross_compiling" = yes; then :
12729 lt_cv_dlopen_self=cross
12730 else
12731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12732 lt_status=$lt_dlunknown
12733 cat > conftest.$ac_ext <<_LT_EOF
12734 #line 12744 "configure"
12735 #include "confdefs.h"
12737 #if HAVE_DLFCN_H
12738 #include <dlfcn.h>
12739 #endif
12741 #include <stdio.h>
12743 #ifdef RTLD_GLOBAL
12744 # define LT_DLGLOBAL RTLD_GLOBAL
12745 #else
12746 # ifdef DL_GLOBAL
12747 # define LT_DLGLOBAL DL_GLOBAL
12748 # else
12749 # define LT_DLGLOBAL 0
12750 # endif
12751 #endif
12753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12754 find out it does not work in some platform. */
12755 #ifndef LT_DLLAZY_OR_NOW
12756 # ifdef RTLD_LAZY
12757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12758 # else
12759 # ifdef DL_LAZY
12760 # define LT_DLLAZY_OR_NOW DL_LAZY
12761 # else
12762 # ifdef RTLD_NOW
12763 # define LT_DLLAZY_OR_NOW RTLD_NOW
12764 # else
12765 # ifdef DL_NOW
12766 # define LT_DLLAZY_OR_NOW DL_NOW
12767 # else
12768 # define LT_DLLAZY_OR_NOW 0
12769 # endif
12770 # endif
12771 # endif
12772 # endif
12773 #endif
12775 /* When -fvisbility=hidden is used, assume the code has been annotated
12776 correspondingly for the symbols needed. */
12777 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12778 void fnord () __attribute__((visibility("default")));
12779 #endif
12781 void fnord () { int i=42; }
12782 int main ()
12784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12785 int status = $lt_dlunknown;
12787 if (self)
12789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12790 else
12792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793 else puts (dlerror ());
12795 /* dlclose (self); */
12797 else
12798 puts (dlerror ());
12800 return status;
12802 _LT_EOF
12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12804 (eval $ac_link) 2>&5
12805 ac_status=$?
12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12808 (./conftest; exit; ) >&5 2>/dev/null
12809 lt_status=$?
12810 case x$lt_status in
12811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12813 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12814 esac
12815 else :
12816 # compilation failed
12817 lt_cv_dlopen_self=no
12820 rm -fr conftest*
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12825 $as_echo "$lt_cv_dlopen_self" >&6; }
12827 if test "x$lt_cv_dlopen_self" = xyes; then
12828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12830 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12831 if ${lt_cv_dlopen_self_static+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 if test "$cross_compiling" = yes; then :
12835 lt_cv_dlopen_self_static=cross
12836 else
12837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12838 lt_status=$lt_dlunknown
12839 cat > conftest.$ac_ext <<_LT_EOF
12840 #line 12850 "configure"
12841 #include "confdefs.h"
12843 #if HAVE_DLFCN_H
12844 #include <dlfcn.h>
12845 #endif
12847 #include <stdio.h>
12849 #ifdef RTLD_GLOBAL
12850 # define LT_DLGLOBAL RTLD_GLOBAL
12851 #else
12852 # ifdef DL_GLOBAL
12853 # define LT_DLGLOBAL DL_GLOBAL
12854 # else
12855 # define LT_DLGLOBAL 0
12856 # endif
12857 #endif
12859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12860 find out it does not work in some platform. */
12861 #ifndef LT_DLLAZY_OR_NOW
12862 # ifdef RTLD_LAZY
12863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12864 # else
12865 # ifdef DL_LAZY
12866 # define LT_DLLAZY_OR_NOW DL_LAZY
12867 # else
12868 # ifdef RTLD_NOW
12869 # define LT_DLLAZY_OR_NOW RTLD_NOW
12870 # else
12871 # ifdef DL_NOW
12872 # define LT_DLLAZY_OR_NOW DL_NOW
12873 # else
12874 # define LT_DLLAZY_OR_NOW 0
12875 # endif
12876 # endif
12877 # endif
12878 # endif
12879 #endif
12881 /* When -fvisbility=hidden is used, assume the code has been annotated
12882 correspondingly for the symbols needed. */
12883 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12884 void fnord () __attribute__((visibility("default")));
12885 #endif
12887 void fnord () { int i=42; }
12888 int main ()
12890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12891 int status = $lt_dlunknown;
12893 if (self)
12895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12896 else
12898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12899 else puts (dlerror ());
12901 /* dlclose (self); */
12903 else
12904 puts (dlerror ());
12906 return status;
12908 _LT_EOF
12909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12910 (eval $ac_link) 2>&5
12911 ac_status=$?
12912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12914 (./conftest; exit; ) >&5 2>/dev/null
12915 lt_status=$?
12916 case x$lt_status in
12917 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12918 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12919 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12920 esac
12921 else :
12922 # compilation failed
12923 lt_cv_dlopen_self_static=no
12926 rm -fr conftest*
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12931 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12934 CPPFLAGS="$save_CPPFLAGS"
12935 LDFLAGS="$save_LDFLAGS"
12936 LIBS="$save_LIBS"
12938 esac
12940 case $lt_cv_dlopen_self in
12941 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12942 *) enable_dlopen_self=unknown ;;
12943 esac
12945 case $lt_cv_dlopen_self_static in
12946 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12947 *) enable_dlopen_self_static=unknown ;;
12948 esac
12967 striplib=
12968 old_striplib=
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12970 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12971 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12972 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12973 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975 $as_echo "yes" >&6; }
12976 else
12977 # FIXME - insert some real tests, host_os isn't really good enough
12978 case $host_os in
12979 darwin*)
12980 if test -n "$STRIP" ; then
12981 striplib="$STRIP -x"
12982 old_striplib="$STRIP -S"
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984 $as_echo "yes" >&6; }
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12994 esac
13008 # Report which library types will actually be built
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13010 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13012 $as_echo "$can_build_shared" >&6; }
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13015 $as_echo_n "checking whether to build shared libraries... " >&6; }
13016 test "$can_build_shared" = "no" && enable_shared=no
13018 # On AIX, shared libraries and static libraries use the same namespace, and
13019 # are all built from PIC.
13020 case $host_os in
13021 aix3*)
13022 test "$enable_shared" = yes && enable_static=no
13023 if test -n "$RANLIB"; then
13024 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13025 postinstall_cmds='$RANLIB $lib'
13029 aix[4-9]*)
13030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13031 test "$enable_shared" = yes && enable_static=no
13034 esac
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13036 $as_echo "$enable_shared" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13039 $as_echo_n "checking whether to build static libraries... " >&6; }
13040 # Make sure either enable_shared or enable_static is yes.
13041 test "$enable_shared" = yes || enable_static=yes
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13043 $as_echo "$enable_static" >&6; }
13049 ac_ext=c
13050 ac_cpp='$CPP $CPPFLAGS'
13051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13055 CC="$lt_save_CC"
13069 ac_config_commands="$ac_config_commands libtool"
13074 # Only expand once:
13080 case $host in
13081 *-cygwin* | *-mingw*)
13082 # 'host' will be top-level target in the case of a target lib,
13083 # we must compare to with_cross_host to decide if this is a native
13084 # or cross-compiler and select where to install dlls appropriately.
13085 if test -n "$with_cross_host" &&
13086 test x"$with_cross_host" != x"no"; then
13087 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13088 else
13089 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13093 lt_host_flags=
13095 esac
13101 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13103 # We need gfortran to compile parts of the library
13104 #AC_PROG_FC(gfortran)
13105 FC="$GFORTRAN"
13106 ac_ext=${ac_fc_srcext-f}
13107 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13108 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13110 if test -n "$ac_tool_prefix"; then
13111 for ac_prog in gfortran
13113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 $as_echo_n "checking for $ac_word... " >&6; }
13117 if ${ac_cv_prog_FC+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 if test -n "$FC"; then
13121 ac_cv_prog_FC="$FC" # Let the user override the test.
13122 else
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13134 done
13135 done
13136 IFS=$as_save_IFS
13140 FC=$ac_cv_prog_FC
13141 if test -n "$FC"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13143 $as_echo "$FC" >&6; }
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13150 test -n "$FC" && break
13151 done
13153 if test -z "$FC"; then
13154 ac_ct_FC=$FC
13155 for ac_prog in gfortran
13157 # Extract the first word of "$ac_prog", so it can be a program name with args.
13158 set dummy $ac_prog; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 if test -n "$ac_ct_FC"; then
13165 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13174 ac_cv_prog_ac_ct_FC="$ac_prog"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13178 done
13179 done
13180 IFS=$as_save_IFS
13184 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13185 if test -n "$ac_ct_FC"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13187 $as_echo "$ac_ct_FC" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13194 test -n "$ac_ct_FC" && break
13195 done
13197 if test "x$ac_ct_FC" = x; then
13198 FC=""
13199 else
13200 case $cross_compiling:$ac_tool_warned in
13201 yes:)
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13204 ac_tool_warned=yes ;;
13205 esac
13206 FC=$ac_ct_FC
13211 # Provide some information about the compiler.
13212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13213 set X $ac_compile
13214 ac_compiler=$2
13215 for ac_option in --version -v -V -qversion; do
13216 { { ac_try="$ac_compiler $ac_option >&5"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220 esac
13221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13222 $as_echo "$ac_try_echo"; } >&5
13223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13224 ac_status=$?
13225 if test -s conftest.err; then
13226 sed '10a\
13227 ... rest of stderr output deleted ...
13228 10q' conftest.err >conftest.er1
13229 cat conftest.er1 >&5
13231 rm -f conftest.er1 conftest.err
13232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13233 test $ac_status = 0; }
13234 done
13235 rm -f a.out
13237 # If we don't use `.F' as extension, the preprocessor is not run on the
13238 # input file. (Note that this only needs to work for GNU compilers.)
13239 ac_save_ext=$ac_ext
13240 ac_ext=F
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13242 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13243 if ${ac_cv_fc_compiler_gnu+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 cat > conftest.$ac_ext <<_ACEOF
13247 program main
13248 #ifndef __GNUC__
13249 choke me
13250 #endif
13253 _ACEOF
13254 if ac_fn_fc_try_compile "$LINENO"; then :
13255 ac_compiler_gnu=yes
13256 else
13257 ac_compiler_gnu=no
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13264 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13265 ac_ext=$ac_save_ext
13266 ac_test_FCFLAGS=${FCFLAGS+set}
13267 ac_save_FCFLAGS=$FCFLAGS
13268 FCFLAGS=
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13270 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13271 if ${ac_cv_prog_fc_g+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 FCFLAGS=-g
13275 cat > conftest.$ac_ext <<_ACEOF
13276 program main
13279 _ACEOF
13280 if ac_fn_fc_try_compile "$LINENO"; then :
13281 ac_cv_prog_fc_g=yes
13282 else
13283 ac_cv_prog_fc_g=no
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13289 $as_echo "$ac_cv_prog_fc_g" >&6; }
13290 if test "$ac_test_FCFLAGS" = set; then
13291 FCFLAGS=$ac_save_FCFLAGS
13292 elif test $ac_cv_prog_fc_g = yes; then
13293 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13294 FCFLAGS="-g -O2"
13295 else
13296 FCFLAGS="-g"
13298 else
13299 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13300 FCFLAGS="-O2"
13301 else
13302 FCFLAGS=
13306 if test $ac_compiler_gnu = yes; then
13307 GFC=yes
13308 else
13309 GFC=
13311 ac_ext=c
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 ac_ext=${ac_fc_srcext-f}
13318 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13319 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13323 if test -z "$FC" || test "X$FC" = "Xno"; then
13324 _lt_disable_FC=yes
13327 archive_cmds_need_lc_FC=no
13328 allow_undefined_flag_FC=
13329 always_export_symbols_FC=no
13330 archive_expsym_cmds_FC=
13331 export_dynamic_flag_spec_FC=
13332 hardcode_direct_FC=no
13333 hardcode_direct_absolute_FC=no
13334 hardcode_libdir_flag_spec_FC=
13335 hardcode_libdir_flag_spec_ld_FC=
13336 hardcode_libdir_separator_FC=
13337 hardcode_minus_L_FC=no
13338 hardcode_automatic_FC=no
13339 inherit_rpath_FC=no
13340 module_cmds_FC=
13341 module_expsym_cmds_FC=
13342 link_all_deplibs_FC=unknown
13343 old_archive_cmds_FC=$old_archive_cmds
13344 reload_flag_FC=$reload_flag
13345 reload_cmds_FC=$reload_cmds
13346 no_undefined_flag_FC=
13347 whole_archive_flag_spec_FC=
13348 enable_shared_with_static_runtimes_FC=no
13350 # Source file extension for fc test sources.
13351 ac_ext=${ac_fc_srcext-f}
13353 # Object file extension for compiled fc test sources.
13354 objext=o
13355 objext_FC=$objext
13357 # No sense in running all these tests if we already determined that
13358 # the FC compiler isn't working. Some variables (like enable_shared)
13359 # are currently assumed to apply to all compilers on this platform,
13360 # and will be corrupted by setting them based on a non-working compiler.
13361 if test "$_lt_disable_FC" != yes; then
13362 # Code to be used in simple compile tests
13363 lt_simple_compile_test_code="\
13364 subroutine t
13365 return
13369 # Code to be used in simple link tests
13370 lt_simple_link_test_code="\
13371 program t
13375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13382 # If no C compiler was specified, use CC.
13383 LTCC=${LTCC-"$CC"}
13385 # If no C compiler flags were specified, use CFLAGS.
13386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13388 # Allow CC to be a program name with arguments.
13389 compiler=$CC
13392 # save warnings/boilerplate of simple test code
13393 ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_compiler_boilerplate=`cat conftest.err`
13397 $RM conftest*
13399 ac_outfile=conftest.$ac_objext
13400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13402 _lt_linker_boilerplate=`cat conftest.err`
13403 $RM -r conftest*
13406 # Allow CC to be a program name with arguments.
13407 lt_save_CC="$CC"
13408 lt_save_GCC=$GCC
13409 CC=${FC-"f95"}
13410 compiler=$CC
13411 GCC=$ac_cv_fc_compiler_gnu
13413 compiler_FC=$CC
13414 for cc_temp in $compiler""; do
13415 case $cc_temp in
13416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13418 \-*) ;;
13419 *) break;;
13420 esac
13421 done
13422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13425 if test -n "$compiler"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13429 $as_echo "$can_build_shared" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13432 $as_echo_n "checking whether to build shared libraries... " >&6; }
13433 test "$can_build_shared" = "no" && enable_shared=no
13435 # On AIX, shared libraries and static libraries use the same namespace, and
13436 # are all built from PIC.
13437 case $host_os in
13438 aix3*)
13439 test "$enable_shared" = yes && enable_static=no
13440 if test -n "$RANLIB"; then
13441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13442 postinstall_cmds='$RANLIB $lib'
13445 aix[4-9]*)
13446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13447 test "$enable_shared" = yes && enable_static=no
13450 esac
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13452 $as_echo "$enable_shared" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13455 $as_echo_n "checking whether to build static libraries... " >&6; }
13456 # Make sure either enable_shared or enable_static is yes.
13457 test "$enable_shared" = yes || enable_static=yes
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13459 $as_echo "$enable_static" >&6; }
13461 GCC_FC="$ac_cv_fc_compiler_gnu"
13462 LD_FC="$LD"
13464 ## CAVEAT EMPTOR:
13465 ## There is no encapsulation within the following macros, do not change
13466 ## the running order or otherwise move them around unless you know exactly
13467 ## what you are doing...
13468 # Dependencies to place before and after the object being linked:
13469 predep_objects_FC=
13470 postdep_objects_FC=
13471 predeps_FC=
13472 postdeps_FC=
13473 compiler_lib_search_path_FC=
13475 cat > conftest.$ac_ext <<_LT_EOF
13476 subroutine foo
13477 implicit none
13478 integer a
13480 return
13482 _LT_EOF
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485 (eval $ac_compile) 2>&5
13486 ac_status=$?
13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; }; then
13489 # Parse the compiler output and extract the necessary
13490 # objects, libraries and library flags.
13492 # Sentinel used to keep track of whether or not we are before
13493 # the conftest object file.
13494 pre_test_object_deps_done=no
13496 for p in `eval "$output_verbose_link_cmd"`; do
13497 case $p in
13499 -L* | -R* | -l*)
13500 # Some compilers place space between "-{L,R}" and the path.
13501 # Remove the space.
13502 if test $p = "-L" ||
13503 test $p = "-R"; then
13504 prev=$p
13505 continue
13506 else
13507 prev=
13510 if test "$pre_test_object_deps_done" = no; then
13511 case $p in
13512 -L* | -R*)
13513 # Internal compiler library paths should come after those
13514 # provided the user. The postdeps already come after the
13515 # user supplied libs so there is no need to process them.
13516 if test -z "$compiler_lib_search_path_FC"; then
13517 compiler_lib_search_path_FC="${prev}${p}"
13518 else
13519 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13522 # The "-l" case would never come before the object being
13523 # linked, so don't bother handling this case.
13524 esac
13525 else
13526 if test -z "$postdeps_FC"; then
13527 postdeps_FC="${prev}${p}"
13528 else
13529 postdeps_FC="${postdeps_FC} ${prev}${p}"
13534 *.$objext)
13535 # This assumes that the test object file only shows up
13536 # once in the compiler output.
13537 if test "$p" = "conftest.$objext"; then
13538 pre_test_object_deps_done=yes
13539 continue
13542 if test "$pre_test_object_deps_done" = no; then
13543 if test -z "$predep_objects_FC"; then
13544 predep_objects_FC="$p"
13545 else
13546 predep_objects_FC="$predep_objects_FC $p"
13548 else
13549 if test -z "$postdep_objects_FC"; then
13550 postdep_objects_FC="$p"
13551 else
13552 postdep_objects_FC="$postdep_objects_FC $p"
13557 *) ;; # Ignore the rest.
13559 esac
13560 done
13562 # Clean up.
13563 rm -f a.out a.exe
13564 else
13565 echo "libtool.m4: error: problem compiling FC test program"
13568 $RM -f confest.$objext
13570 # PORTME: override above test on systems where it is broken
13573 case " $postdeps_FC " in
13574 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13575 esac
13576 compiler_lib_search_dirs_FC=
13577 if test -n "${compiler_lib_search_path_FC}"; then
13578 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13611 lt_prog_compiler_wl_FC=
13612 lt_prog_compiler_pic_FC=
13613 lt_prog_compiler_static_FC=
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13616 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13618 if test "$GCC" = yes; then
13619 lt_prog_compiler_wl_FC='-Wl,'
13620 lt_prog_compiler_static_FC='-static'
13622 case $host_os in
13623 aix*)
13624 # All AIX code is PIC.
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_FC='-Bstatic'
13629 lt_prog_compiler_pic_FC='-fPIC'
13632 amigaos*)
13633 case $host_cpu in
13634 powerpc)
13635 # see comment about AmigaOS4 .so support
13636 lt_prog_compiler_pic_FC='-fPIC'
13638 m68k)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13644 esac
13647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648 # PIC is the default for these OSes.
13651 mingw* | cygwin* | pw32* | os2* | cegcc*)
13652 # This hack is so that the source file can tell whether it is being
13653 # built for inclusion in a dll (and should export symbols for example).
13654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13655 # (--disable-auto-import) libraries
13656 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13659 darwin* | rhapsody*)
13660 # PIC is the default on this platform
13661 # Common symbols not allowed in MH_DYLIB files
13662 lt_prog_compiler_pic_FC='-fno-common'
13665 haiku*)
13666 # PIC is the default for Haiku.
13667 # The "-static" flag exists, but is broken.
13668 lt_prog_compiler_static_FC=
13671 hpux*)
13672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13674 # sets the default TLS model and affects inlining.
13675 case $host_cpu in
13676 hppa*64*)
13677 # +Z the default
13680 lt_prog_compiler_pic_FC='-fPIC'
13682 esac
13685 interix[3-9]*)
13686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13687 # Instead, we relocate shared libraries at runtime.
13690 msdosdjgpp*)
13691 # Just because we use GCC doesn't mean we suddenly get shared libraries
13692 # on systems that don't support them.
13693 lt_prog_compiler_can_build_shared_FC=no
13694 enable_shared=no
13697 *nto* | *qnx*)
13698 # QNX uses GNU C++, but need to define -shared option too, otherwise
13699 # it will coredump.
13700 lt_prog_compiler_pic_FC='-fPIC -shared'
13703 sysv4*MP*)
13704 if test -d /usr/nec; then
13705 lt_prog_compiler_pic_FC=-Kconform_pic
13710 lt_prog_compiler_pic_FC='-fPIC'
13712 esac
13714 case $cc_basename in
13715 nvcc*) # Cuda Compiler Driver 2.2
13716 lt_prog_compiler_wl_FC='-Xlinker '
13717 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13719 esac
13720 else
13721 # PORTME Check for flag to pass linker flags through the system compiler.
13722 case $host_os in
13723 aix*)
13724 lt_prog_compiler_wl_FC='-Wl,'
13725 if test "$host_cpu" = ia64; then
13726 # AIX 5 now supports IA64 processor
13727 lt_prog_compiler_static_FC='-Bstatic'
13728 else
13729 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13733 mingw* | cygwin* | pw32* | os2* | cegcc*)
13734 # This hack is so that the source file can tell whether it is being
13735 # built for inclusion in a dll (and should export symbols for example).
13736 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13739 hpux9* | hpux10* | hpux11*)
13740 lt_prog_compiler_wl_FC='-Wl,'
13741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13742 # not for PA HP-UX.
13743 case $host_cpu in
13744 hppa*64*|ia64*)
13745 # +Z the default
13748 lt_prog_compiler_pic_FC='+Z'
13750 esac
13751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13752 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13755 irix5* | irix6* | nonstopux*)
13756 lt_prog_compiler_wl_FC='-Wl,'
13757 # PIC (with -KPIC) is the default.
13758 lt_prog_compiler_static_FC='-non_shared'
13761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13762 case $cc_basename in
13763 # old Intel for x86_64 which still supported -KPIC.
13764 ecc*)
13765 lt_prog_compiler_wl_FC='-Wl,'
13766 lt_prog_compiler_pic_FC='-KPIC'
13767 lt_prog_compiler_static_FC='-static'
13769 # icc used to be incompatible with GCC.
13770 # ICC 10 doesn't accept -KPIC any more.
13771 icc* | ifort*)
13772 lt_prog_compiler_wl_FC='-Wl,'
13773 lt_prog_compiler_pic_FC='-fPIC'
13774 lt_prog_compiler_static_FC='-static'
13776 # Lahey Fortran 8.1.
13777 lf95*)
13778 lt_prog_compiler_wl_FC='-Wl,'
13779 lt_prog_compiler_pic_FC='--shared'
13780 lt_prog_compiler_static_FC='--static'
13782 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13783 # Portland Group compilers (*not* the Pentium gcc compiler,
13784 # which looks to be a dead project)
13785 lt_prog_compiler_wl_FC='-Wl,'
13786 lt_prog_compiler_pic_FC='-fpic'
13787 lt_prog_compiler_static_FC='-Bstatic'
13789 ccc*)
13790 lt_prog_compiler_wl_FC='-Wl,'
13791 # All Alpha code is PIC.
13792 lt_prog_compiler_static_FC='-non_shared'
13794 xl* | bgxl* | bgf* | mpixl*)
13795 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13796 lt_prog_compiler_wl_FC='-Wl,'
13797 lt_prog_compiler_pic_FC='-qpic'
13798 lt_prog_compiler_static_FC='-qstaticlink'
13801 case `$CC -V 2>&1 | sed 5q` in
13802 *Sun\ F* | *Sun*Fortran*)
13803 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13804 lt_prog_compiler_pic_FC='-KPIC'
13805 lt_prog_compiler_static_FC='-Bstatic'
13806 lt_prog_compiler_wl_FC=''
13808 *Sun\ C*)
13809 # Sun C 5.9
13810 lt_prog_compiler_pic_FC='-KPIC'
13811 lt_prog_compiler_static_FC='-Bstatic'
13812 lt_prog_compiler_wl_FC='-Wl,'
13814 esac
13816 esac
13819 newsos6)
13820 lt_prog_compiler_pic_FC='-KPIC'
13821 lt_prog_compiler_static_FC='-Bstatic'
13824 *nto* | *qnx*)
13825 # QNX uses GNU C++, but need to define -shared option too, otherwise
13826 # it will coredump.
13827 lt_prog_compiler_pic_FC='-fPIC -shared'
13830 osf3* | osf4* | osf5*)
13831 lt_prog_compiler_wl_FC='-Wl,'
13832 # All OSF/1 code is PIC.
13833 lt_prog_compiler_static_FC='-non_shared'
13836 rdos*)
13837 lt_prog_compiler_static_FC='-non_shared'
13840 solaris*)
13841 lt_prog_compiler_pic_FC='-KPIC'
13842 lt_prog_compiler_static_FC='-Bstatic'
13843 case $cc_basename in
13844 f77* | f90* | f95*)
13845 lt_prog_compiler_wl_FC='-Qoption ld ';;
13847 lt_prog_compiler_wl_FC='-Wl,';;
13848 esac
13851 sunos4*)
13852 lt_prog_compiler_wl_FC='-Qoption ld '
13853 lt_prog_compiler_pic_FC='-PIC'
13854 lt_prog_compiler_static_FC='-Bstatic'
13857 sysv4 | sysv4.2uw2* | sysv4.3*)
13858 lt_prog_compiler_wl_FC='-Wl,'
13859 lt_prog_compiler_pic_FC='-KPIC'
13860 lt_prog_compiler_static_FC='-Bstatic'
13863 sysv4*MP*)
13864 if test -d /usr/nec ;then
13865 lt_prog_compiler_pic_FC='-Kconform_pic'
13866 lt_prog_compiler_static_FC='-Bstatic'
13870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13871 lt_prog_compiler_wl_FC='-Wl,'
13872 lt_prog_compiler_pic_FC='-KPIC'
13873 lt_prog_compiler_static_FC='-Bstatic'
13876 unicos*)
13877 lt_prog_compiler_wl_FC='-Wl,'
13878 lt_prog_compiler_can_build_shared_FC=no
13881 uts4*)
13882 lt_prog_compiler_pic_FC='-pic'
13883 lt_prog_compiler_static_FC='-Bstatic'
13887 lt_prog_compiler_can_build_shared_FC=no
13889 esac
13892 case $host_os in
13893 # For platforms which do not support PIC, -DPIC is meaningless:
13894 *djgpp*)
13895 lt_prog_compiler_pic_FC=
13898 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13900 esac
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13902 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13907 # Check to make sure the PIC flag actually works.
13909 if test -n "$lt_prog_compiler_pic_FC"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13911 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13912 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 lt_cv_prog_compiler_pic_works_FC=no
13916 ac_outfile=conftest.$ac_objext
13917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13918 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13919 # Insert the option either (1) after the last *FLAGS variable, or
13920 # (2) before a word containing "conftest.", or (3) at the end.
13921 # Note that $ac_compile itself does not contain backslashes and begins
13922 # with a dollar sign (not a hyphen), so the echo should work correctly.
13923 # The option is referenced via a variable to avoid confusing sed.
13924 lt_compile=`echo "$ac_compile" | $SED \
13925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13927 -e 's:$: $lt_compiler_flag:'`
13928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13929 (eval "$lt_compile" 2>conftest.err)
13930 ac_status=$?
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 if (exit $ac_status) && test -s "$ac_outfile"; then
13934 # The compiler can only warn and ignore the option if not recognized
13935 # So say no if there are warnings other than the usual output.
13936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13939 lt_cv_prog_compiler_pic_works_FC=yes
13942 $RM conftest*
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13946 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13948 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13949 case $lt_prog_compiler_pic_FC in
13950 "" | " "*) ;;
13951 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13952 esac
13953 else
13954 lt_prog_compiler_pic_FC=
13955 lt_prog_compiler_can_build_shared_FC=no
13963 # Check to make sure the static flag actually works.
13965 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13968 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 lt_cv_prog_compiler_static_works_FC=no
13972 save_LDFLAGS="$LDFLAGS"
13973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13976 # The linker can only warn and ignore the option if not recognized
13977 # So say no if there are warnings
13978 if test -s conftest.err; then
13979 # Append any errors to the config.log.
13980 cat conftest.err 1>&5
13981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13983 if diff conftest.exp conftest.er2 >/dev/null; then
13984 lt_cv_prog_compiler_static_works_FC=yes
13986 else
13987 lt_cv_prog_compiler_static_works_FC=yes
13990 $RM -r conftest*
13991 LDFLAGS="$save_LDFLAGS"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13995 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13997 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13999 else
14000 lt_prog_compiler_static_FC=
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14008 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 lt_cv_prog_compiler_c_o_FC=no
14012 $RM -r conftest 2>/dev/null
14013 mkdir conftest
14014 cd conftest
14015 mkdir out
14016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14018 lt_compiler_flag="-o out/conftest2.$ac_objext"
14019 # Insert the option either (1) after the last *FLAGS variable, or
14020 # (2) before a word containing "conftest.", or (3) at the end.
14021 # Note that $ac_compile itself does not contain backslashes and begins
14022 # with a dollar sign (not a hyphen), so the echo should work correctly.
14023 lt_compile=`echo "$ac_compile" | $SED \
14024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026 -e 's:$: $lt_compiler_flag:'`
14027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14028 (eval "$lt_compile" 2>out/conftest.err)
14029 ac_status=$?
14030 cat out/conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14033 then
14034 # The compiler can only warn and ignore the option if not recognized
14035 # So say no if there are warnings
14036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14039 lt_cv_prog_compiler_c_o_FC=yes
14042 chmod u+w . 2>&5
14043 $RM conftest*
14044 # SGI C++ compiler will create directory out/ii_files/ for
14045 # template instantiation
14046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14047 $RM out/* && rmdir out
14048 cd ..
14049 $RM -r conftest
14050 $RM conftest*
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14054 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14060 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 lt_cv_prog_compiler_c_o_FC=no
14064 $RM -r conftest 2>/dev/null
14065 mkdir conftest
14066 cd conftest
14067 mkdir out
14068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14070 lt_compiler_flag="-o out/conftest2.$ac_objext"
14071 # Insert the option either (1) after the last *FLAGS variable, or
14072 # (2) before a word containing "conftest.", or (3) at the end.
14073 # Note that $ac_compile itself does not contain backslashes and begins
14074 # with a dollar sign (not a hyphen), so the echo should work correctly.
14075 lt_compile=`echo "$ac_compile" | $SED \
14076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078 -e 's:$: $lt_compiler_flag:'`
14079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14080 (eval "$lt_compile" 2>out/conftest.err)
14081 ac_status=$?
14082 cat out/conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14085 then
14086 # The compiler can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091 lt_cv_prog_compiler_c_o_FC=yes
14094 chmod u+w . 2>&5
14095 $RM conftest*
14096 # SGI C++ compiler will create directory out/ii_files/ for
14097 # template instantiation
14098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14099 $RM out/* && rmdir out
14100 cd ..
14101 $RM -r conftest
14102 $RM conftest*
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14106 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14111 hard_links="nottested"
14112 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14113 # do not overwrite the value of need_locks provided by the user
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14115 $as_echo_n "checking if we can lock with hard links... " >&6; }
14116 hard_links=yes
14117 $RM conftest*
14118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14119 touch conftest.a
14120 ln conftest.a conftest.b 2>&5 || hard_links=no
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14123 $as_echo "$hard_links" >&6; }
14124 if test "$hard_links" = no; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14127 need_locks=warn
14129 else
14130 need_locks=no
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14138 runpath_var=
14139 allow_undefined_flag_FC=
14140 always_export_symbols_FC=no
14141 archive_cmds_FC=
14142 archive_expsym_cmds_FC=
14143 compiler_needs_object_FC=no
14144 enable_shared_with_static_runtimes_FC=no
14145 export_dynamic_flag_spec_FC=
14146 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14147 hardcode_automatic_FC=no
14148 hardcode_direct_FC=no
14149 hardcode_direct_absolute_FC=no
14150 hardcode_libdir_flag_spec_FC=
14151 hardcode_libdir_flag_spec_ld_FC=
14152 hardcode_libdir_separator_FC=
14153 hardcode_minus_L_FC=no
14154 hardcode_shlibpath_var_FC=unsupported
14155 inherit_rpath_FC=no
14156 link_all_deplibs_FC=unknown
14157 module_cmds_FC=
14158 module_expsym_cmds_FC=
14159 old_archive_from_new_cmds_FC=
14160 old_archive_from_expsyms_cmds_FC=
14161 thread_safe_flag_spec_FC=
14162 whole_archive_flag_spec_FC=
14163 # include_expsyms should be a list of space-separated symbols to be *always*
14164 # included in the symbol list
14165 include_expsyms_FC=
14166 # exclude_expsyms can be an extended regexp of symbols to exclude
14167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14169 # as well as any symbol that contains `d'.
14170 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14172 # platforms (ab)use it in PIC code, but their linkers get confused if
14173 # the symbol is explicitly referenced. Since portable code cannot
14174 # rely on this symbol name, it's probably fine to never include it in
14175 # preloaded symbol tables.
14176 # Exclude shared library initialization/finalization symbols.
14177 extract_expsyms_cmds=
14179 case $host_os in
14180 cygwin* | mingw* | pw32* | cegcc*)
14181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14182 # When not using gcc, we currently assume that we are using
14183 # Microsoft Visual C++.
14184 if test "$GCC" != yes; then
14185 with_gnu_ld=no
14188 interix*)
14189 # we just hope/assume this is gcc and not c89 (= MSVC++)
14190 with_gnu_ld=yes
14192 openbsd*)
14193 with_gnu_ld=no
14195 esac
14197 ld_shlibs_FC=yes
14199 # On some targets, GNU ld is compatible enough with the native linker
14200 # that we're better off using the native interface for both.
14201 lt_use_gnu_ld_interface=no
14202 if test "$with_gnu_ld" = yes; then
14203 case $host_os in
14204 aix*)
14205 # The AIX port of GNU ld has always aspired to compatibility
14206 # with the native linker. However, as the warning in the GNU ld
14207 # block says, versions before 2.19.5* couldn't really create working
14208 # shared libraries, regardless of the interface used.
14209 case `$LD -v 2>&1` in
14210 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14211 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14212 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14214 lt_use_gnu_ld_interface=yes
14216 esac
14219 lt_use_gnu_ld_interface=yes
14221 esac
14224 if test "$lt_use_gnu_ld_interface" = yes; then
14225 # If archive_cmds runs LD, not CC, wlarc should be empty
14226 wlarc='${wl}'
14228 # Set some defaults for GNU ld with shared library support. These
14229 # are reset later if shared libraries are not supported. Putting them
14230 # here allows them to be overridden if necessary.
14231 runpath_var=LD_RUN_PATH
14232 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14233 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14234 # ancient GNU ld didn't support --whole-archive et. al.
14235 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14236 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14237 else
14238 whole_archive_flag_spec_FC=
14240 supports_anon_versioning=no
14241 case `$LD -v 2>&1` in
14242 *GNU\ gold*) supports_anon_versioning=yes ;;
14243 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14244 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14245 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14246 *\ 2.11.*) ;; # other 2.11 versions
14247 *) supports_anon_versioning=yes ;;
14248 esac
14250 # See if GNU ld supports shared libraries.
14251 case $host_os in
14252 aix[3-9]*)
14253 # On AIX/PPC, the GNU linker is very broken
14254 if test "$host_cpu" != ia64; then
14255 ld_shlibs_FC=no
14256 cat <<_LT_EOF 1>&2
14258 *** Warning: the GNU linker, at least up to release 2.19, is reported
14259 *** to be unable to reliably create shared libraries on AIX.
14260 *** Therefore, libtool is disabling shared libraries support. If you
14261 *** really care for shared libraries, you may want to install binutils
14262 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14263 *** You will then need to restart the configuration process.
14265 _LT_EOF
14269 amigaos*)
14270 case $host_cpu in
14271 powerpc)
14272 # see comment about AmigaOS4 .so support
14273 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14274 archive_expsym_cmds_FC=''
14276 m68k)
14277 archive_cmds_FC='$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)'
14278 hardcode_libdir_flag_spec_FC='-L$libdir'
14279 hardcode_minus_L_FC=yes
14281 esac
14284 beos*)
14285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14286 allow_undefined_flag_FC=unsupported
14287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14288 # support --undefined. This deserves some investigation. FIXME
14289 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14290 else
14291 ld_shlibs_FC=no
14295 cygwin* | mingw* | pw32* | cegcc*)
14296 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14297 # as there is no search path for DLLs.
14298 hardcode_libdir_flag_spec_FC='-L$libdir'
14299 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14300 allow_undefined_flag_FC=unsupported
14301 always_export_symbols_FC=no
14302 enable_shared_with_static_runtimes_FC=yes
14303 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14306 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307 # If the export-symbols file already is a .def file (1st line
14308 # is EXPORTS), use it as is; otherwise, prepend...
14309 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14310 cp $export_symbols $output_objdir/$soname.def;
14311 else
14312 echo EXPORTS > $output_objdir/$soname.def;
14313 cat $export_symbols >> $output_objdir/$soname.def;
14315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14316 else
14317 ld_shlibs_FC=no
14321 haiku*)
14322 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 link_all_deplibs_FC=yes
14326 interix[3-9]*)
14327 hardcode_direct_FC=no
14328 hardcode_shlibpath_var_FC=no
14329 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14330 export_dynamic_flag_spec_FC='${wl}-E'
14331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14332 # Instead, shared libraries are loaded at an image base (0x10000000 by
14333 # default) and relocated if they conflict, which is a slow very memory
14334 # consuming and fragmenting process. To avoid this, we pick a random,
14335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14337 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14338 archive_expsym_cmds_FC='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'
14341 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14342 tmp_diet=no
14343 if test "$host_os" = linux-dietlibc; then
14344 case $cc_basename in
14345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14346 esac
14348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14349 && test "$tmp_diet" = no
14350 then
14351 tmp_addflag=' $pic_flag'
14352 tmp_sharedflag='-shared'
14353 case $cc_basename,$host_cpu in
14354 pgcc*) # Portland Group C compiler
14355 whole_archive_flag_spec_FC='${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'
14356 tmp_addflag=' $pic_flag'
14358 pgf77* | pgf90* | pgf95* | pgfortran*)
14359 # Portland Group f77 and f90 compilers
14360 whole_archive_flag_spec_FC='${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'
14361 tmp_addflag=' $pic_flag -Mnomain' ;;
14362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14363 tmp_addflag=' -i_dynamic' ;;
14364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14365 tmp_addflag=' -i_dynamic -nofor_main' ;;
14366 ifc* | ifort*) # Intel Fortran compiler
14367 tmp_addflag=' -nofor_main' ;;
14368 lf95*) # Lahey Fortran 8.1
14369 whole_archive_flag_spec_FC=
14370 tmp_sharedflag='--shared' ;;
14371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14372 tmp_sharedflag='-qmkshrobj'
14373 tmp_addflag= ;;
14374 nvcc*) # Cuda Compiler Driver 2.2
14375 whole_archive_flag_spec_FC='${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'
14376 compiler_needs_object_FC=yes
14378 esac
14379 case `$CC -V 2>&1 | sed 5q` in
14380 *Sun\ C*) # Sun C 5.9
14381 whole_archive_flag_spec_FC='${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'
14382 compiler_needs_object_FC=yes
14383 tmp_sharedflag='-G' ;;
14384 *Sun\ F*) # Sun Fortran 8.3
14385 tmp_sharedflag='-G' ;;
14386 esac
14387 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389 if test "x$supports_anon_versioning" = xyes; then
14390 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14392 echo "local: *; };" >> $output_objdir/$libname.ver~
14393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14396 case $cc_basename in
14397 xlf* | bgf* | bgxlf* | mpixlf*)
14398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14399 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14400 hardcode_libdir_flag_spec_FC=
14401 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14402 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14403 if test "x$supports_anon_versioning" = xyes; then
14404 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14406 echo "local: *; };" >> $output_objdir/$libname.ver~
14407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14410 esac
14411 else
14412 ld_shlibs_FC=no
14416 netbsd*)
14417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14418 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14419 wlarc=
14420 else
14421 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14426 solaris*)
14427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14428 ld_shlibs_FC=no
14429 cat <<_LT_EOF 1>&2
14431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14432 *** create shared libraries on Solaris systems. Therefore, libtool
14433 *** is disabling shared libraries support. We urge you to upgrade GNU
14434 *** binutils to release 2.9.1 or newer. Another option is to modify
14435 *** your PATH or compiler configuration so that the native linker is
14436 *** used, and then restart.
14438 _LT_EOF
14439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14440 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14441 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14442 else
14443 ld_shlibs_FC=no
14447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14448 case `$LD -v 2>&1` in
14449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14450 ld_shlibs_FC=no
14451 cat <<_LT_EOF 1>&2
14453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14454 *** reliably create shared libraries on SCO systems. Therefore, libtool
14455 *** is disabling shared libraries support. We urge you to upgrade GNU
14456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14457 *** your PATH or compiler configuration so that the native linker is
14458 *** used, and then restart.
14460 _LT_EOF
14463 # For security reasons, it is highly recommended that you always
14464 # use absolute paths for naming shared libraries, and exclude the
14465 # DT_RUNPATH tag from executables and libraries. But doing so
14466 # requires that you compile everything twice, which is a pain.
14467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14468 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14469 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14471 else
14472 ld_shlibs_FC=no
14475 esac
14478 sunos4*)
14479 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14480 wlarc=
14481 hardcode_direct_FC=yes
14482 hardcode_shlibpath_var_FC=no
14486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14487 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14489 else
14490 ld_shlibs_FC=no
14493 esac
14495 if test "$ld_shlibs_FC" = no; then
14496 runpath_var=
14497 hardcode_libdir_flag_spec_FC=
14498 export_dynamic_flag_spec_FC=
14499 whole_archive_flag_spec_FC=
14501 else
14502 # PORTME fill in a description of your system's linker (not GNU ld)
14503 case $host_os in
14504 aix3*)
14505 allow_undefined_flag_FC=unsupported
14506 always_export_symbols_FC=yes
14507 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14508 # Note: this linker hardcodes the directories in LIBPATH if there
14509 # are no directories specified by -L.
14510 hardcode_minus_L_FC=yes
14511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14512 # Neither direct hardcoding nor static linking is supported with a
14513 # broken collect2.
14514 hardcode_direct_FC=unsupported
14518 aix[4-9]*)
14519 if test "$host_cpu" = ia64; then
14520 # On IA64, the linker does run time linking by default, so we don't
14521 # have to do anything special.
14522 aix_use_runtimelinking=no
14523 exp_sym_flag='-Bexport'
14524 no_entry_flag=""
14525 else
14526 # If we're using GNU nm, then we don't want the "-C" option.
14527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14528 # Also, AIX nm treats weak defined symbols like other global
14529 # defined symbols, whereas GNU nm marks them as "W".
14530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14531 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14532 else
14533 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14535 aix_use_runtimelinking=no
14537 # Test if we are trying to use run time linking or normal
14538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14539 # need to do runtime linking.
14540 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14541 for ld_flag in $LDFLAGS; do
14542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14543 aix_use_runtimelinking=yes
14544 break
14546 done
14548 esac
14550 exp_sym_flag='-bexport'
14551 no_entry_flag='-bnoentry'
14554 # When large executables or shared objects are built, AIX ld can
14555 # have problems creating the table of contents. If linking a library
14556 # or program results in "error TOC overflow" add -mminimal-toc to
14557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14560 archive_cmds_FC=''
14561 hardcode_direct_FC=yes
14562 hardcode_direct_absolute_FC=yes
14563 hardcode_libdir_separator_FC=':'
14564 link_all_deplibs_FC=yes
14565 file_list_spec_FC='${wl}-f,'
14567 if test "$GCC" = yes; then
14568 case $host_os in aix4.[012]|aix4.[012].*)
14569 # We only want to do this on AIX 4.2 and lower, the check
14570 # below for broken collect2 doesn't work under 4.3+
14571 collect2name=`${CC} -print-prog-name=collect2`
14572 if test -f "$collect2name" &&
14573 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14574 then
14575 # We have reworked collect2
14577 else
14578 # We have old collect2
14579 hardcode_direct_FC=unsupported
14580 # It fails to find uninstalled libraries when the uninstalled
14581 # path is not listed in the libpath. Setting hardcode_minus_L
14582 # to unsupported forces relinking
14583 hardcode_minus_L_FC=yes
14584 hardcode_libdir_flag_spec_FC='-L$libdir'
14585 hardcode_libdir_separator_FC=
14588 esac
14589 shared_flag='-shared'
14590 if test "$aix_use_runtimelinking" = yes; then
14591 shared_flag="$shared_flag "'${wl}-G'
14593 else
14594 # not using gcc
14595 if test "$host_cpu" = ia64; then
14596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14597 # chokes on -Wl,-G. The following line is correct:
14598 shared_flag='-G'
14599 else
14600 if test "$aix_use_runtimelinking" = yes; then
14601 shared_flag='${wl}-G'
14602 else
14603 shared_flag='${wl}-bM:SRE'
14608 export_dynamic_flag_spec_FC='${wl}-bexpall'
14609 # It seems that -bexpall does not export symbols beginning with
14610 # underscore (_), so it is better to generate a list of symbols to export.
14611 always_export_symbols_FC=yes
14612 if test "$aix_use_runtimelinking" = yes; then
14613 # Warning - without using the other runtime loading flags (-brtl),
14614 # -berok will link without error, but may produce a broken library.
14615 allow_undefined_flag_FC='-berok'
14616 # Determine the default libpath from the value encoded in an
14617 # empty executable.
14618 if test x$gcc_no_link = xyes; then
14619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14621 cat > conftest.$ac_ext <<_ACEOF
14622 program main
14625 _ACEOF
14626 if ac_fn_fc_try_link "$LINENO"; then :
14628 lt_aix_libpath_sed='
14629 /Import File Strings/,/^$/ {
14630 /^0/ {
14631 s/^0 *\(.*\)$/\1/
14635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14636 # Check for a 64-bit object if we didn't find anything.
14637 if test -z "$aix_libpath"; then
14638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641 rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14645 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14646 archive_expsym_cmds_FC='$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"
14647 else
14648 if test "$host_cpu" = ia64; then
14649 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14650 allow_undefined_flag_FC="-z nodefs"
14651 archive_expsym_cmds_FC="\$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"
14652 else
14653 # Determine the default libpath from the value encoded in an
14654 # empty executable.
14655 if test x$gcc_no_link = xyes; then
14656 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14658 cat > conftest.$ac_ext <<_ACEOF
14659 program main
14662 _ACEOF
14663 if ac_fn_fc_try_link "$LINENO"; then :
14665 lt_aix_libpath_sed='
14666 /Import File Strings/,/^$/ {
14667 /^0/ {
14668 s/^0 *\(.*\)$/\1/
14672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14673 # Check for a 64-bit object if we didn't find anything.
14674 if test -z "$aix_libpath"; then
14675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14678 rm -f core conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14682 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14683 # Warning - without using the other run time loading flags,
14684 # -berok will link without error, but may produce a broken library.
14685 no_undefined_flag_FC=' ${wl}-bernotok'
14686 allow_undefined_flag_FC=' ${wl}-berok'
14687 if test "$with_gnu_ld" = yes; then
14688 # We only use this code for GNU lds that support --whole-archive.
14689 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14690 else
14691 # Exported symbols can be pulled into shared objects from archives
14692 whole_archive_flag_spec_FC='$convenience'
14694 archive_cmds_need_lc_FC=yes
14695 # This is similar to how AIX traditionally builds its shared libraries.
14696 archive_expsym_cmds_FC="\$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'
14701 amigaos*)
14702 case $host_cpu in
14703 powerpc)
14704 # see comment about AmigaOS4 .so support
14705 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14706 archive_expsym_cmds_FC=''
14708 m68k)
14709 archive_cmds_FC='$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)'
14710 hardcode_libdir_flag_spec_FC='-L$libdir'
14711 hardcode_minus_L_FC=yes
14713 esac
14716 bsdi[45]*)
14717 export_dynamic_flag_spec_FC=-rdynamic
14720 cygwin* | mingw* | pw32* | cegcc*)
14721 # When not using gcc, we currently assume that we are using
14722 # Microsoft Visual C++.
14723 # hardcode_libdir_flag_spec is actually meaningless, as there is
14724 # no search path for DLLs.
14725 hardcode_libdir_flag_spec_FC=' '
14726 allow_undefined_flag_FC=unsupported
14727 # Tell ltmain to make .lib files, not .a files.
14728 libext=lib
14729 # Tell ltmain to make .dll files, not .so files.
14730 shrext_cmds=".dll"
14731 # FIXME: Setting linknames here is a bad hack.
14732 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14733 # The linker will automatically build a .lib file if we build a DLL.
14734 old_archive_from_new_cmds_FC='true'
14735 # FIXME: Should let the user specify the lib program.
14736 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14737 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14738 enable_shared_with_static_runtimes_FC=yes
14741 darwin* | rhapsody*)
14744 archive_cmds_need_lc_FC=no
14745 hardcode_direct_FC=no
14746 hardcode_automatic_FC=yes
14747 hardcode_shlibpath_var_FC=unsupported
14748 if test "$lt_cv_ld_force_load" = "yes"; then
14749 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14750 else
14751 whole_archive_flag_spec_FC=''
14753 link_all_deplibs_FC=yes
14754 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14755 case $cc_basename in
14756 ifort*) _lt_dar_can_shared=yes ;;
14757 *) _lt_dar_can_shared=$GCC ;;
14758 esac
14759 if test "$_lt_dar_can_shared" = "yes"; then
14760 output_verbose_link_cmd=func_echo_all
14761 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14762 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14763 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14764 module_expsym_cmds_FC="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}"
14766 else
14767 ld_shlibs_FC=no
14772 dgux*)
14773 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14774 hardcode_libdir_flag_spec_FC='-L$libdir'
14775 hardcode_shlibpath_var_FC=no
14778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14779 # support. Future versions do this automatically, but an explicit c++rt0.o
14780 # does not break anything, and helps significantly (at the cost of a little
14781 # extra space).
14782 freebsd2.2*)
14783 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14784 hardcode_libdir_flag_spec_FC='-R$libdir'
14785 hardcode_direct_FC=yes
14786 hardcode_shlibpath_var_FC=no
14789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14790 freebsd2.*)
14791 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_direct_FC=yes
14793 hardcode_minus_L_FC=yes
14794 hardcode_shlibpath_var_FC=no
14797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14798 freebsd* | dragonfly*)
14799 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14800 hardcode_libdir_flag_spec_FC='-R$libdir'
14801 hardcode_direct_FC=yes
14802 hardcode_shlibpath_var_FC=no
14805 hpux9*)
14806 if test "$GCC" = yes; then
14807 archive_cmds_FC='$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'
14808 else
14809 archive_cmds_FC='$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'
14811 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14812 hardcode_libdir_separator_FC=:
14813 hardcode_direct_FC=yes
14815 # hardcode_minus_L: Not really in the search PATH,
14816 # but as the default location of the library.
14817 hardcode_minus_L_FC=yes
14818 export_dynamic_flag_spec_FC='${wl}-E'
14821 hpux10*)
14822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14823 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14824 else
14825 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14827 if test "$with_gnu_ld" = no; then
14828 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14829 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14830 hardcode_libdir_separator_FC=:
14831 hardcode_direct_FC=yes
14832 hardcode_direct_absolute_FC=yes
14833 export_dynamic_flag_spec_FC='${wl}-E'
14834 # hardcode_minus_L: Not really in the search PATH,
14835 # but as the default location of the library.
14836 hardcode_minus_L_FC=yes
14840 hpux11*)
14841 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14842 case $host_cpu in
14843 hppa*64*)
14844 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14846 ia64*)
14847 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14852 esac
14853 else
14854 case $host_cpu in
14855 hppa*64*)
14856 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14858 ia64*)
14859 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14864 esac
14866 if test "$with_gnu_ld" = no; then
14867 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14868 hardcode_libdir_separator_FC=:
14870 case $host_cpu in
14871 hppa*64*|ia64*)
14872 hardcode_direct_FC=no
14873 hardcode_shlibpath_var_FC=no
14876 hardcode_direct_FC=yes
14877 hardcode_direct_absolute_FC=yes
14878 export_dynamic_flag_spec_FC='${wl}-E'
14880 # hardcode_minus_L: Not really in the search PATH,
14881 # but as the default location of the library.
14882 hardcode_minus_L_FC=yes
14884 esac
14888 irix5* | irix6* | nonstopux*)
14889 if test "$GCC" = yes; then
14890 archive_cmds_FC='$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'
14891 # Try to use the -exported_symbol ld option, if it does not
14892 # work, assume that -exports_file does not work either and
14893 # implicitly export all symbols.
14894 save_LDFLAGS="$LDFLAGS"
14895 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14896 if test x$gcc_no_link = xyes; then
14897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14899 cat > conftest.$ac_ext <<_ACEOF
14900 int foo(void) {}
14901 _ACEOF
14902 if ac_fn_fc_try_link "$LINENO"; then :
14903 archive_expsym_cmds_FC='$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'
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14908 LDFLAGS="$save_LDFLAGS"
14909 else
14910 archive_cmds_FC='$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'
14911 archive_expsym_cmds_FC='$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'
14913 archive_cmds_need_lc_FC='no'
14914 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14915 hardcode_libdir_separator_FC=:
14916 inherit_rpath_FC=yes
14917 link_all_deplibs_FC=yes
14920 netbsd*)
14921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14922 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14923 else
14924 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14926 hardcode_libdir_flag_spec_FC='-R$libdir'
14927 hardcode_direct_FC=yes
14928 hardcode_shlibpath_var_FC=no
14931 newsos6)
14932 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14933 hardcode_direct_FC=yes
14934 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14935 hardcode_libdir_separator_FC=:
14936 hardcode_shlibpath_var_FC=no
14939 *nto* | *qnx*)
14942 openbsd*)
14943 if test -f /usr/libexec/ld.so; then
14944 hardcode_direct_FC=yes
14945 hardcode_shlibpath_var_FC=no
14946 hardcode_direct_absolute_FC=yes
14947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14948 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14950 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14951 export_dynamic_flag_spec_FC='${wl}-E'
14952 else
14953 case $host_os in
14954 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14955 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14956 hardcode_libdir_flag_spec_FC='-R$libdir'
14959 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14960 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14962 esac
14964 else
14965 ld_shlibs_FC=no
14969 os2*)
14970 hardcode_libdir_flag_spec_FC='-L$libdir'
14971 hardcode_minus_L_FC=yes
14972 allow_undefined_flag_FC=unsupported
14973 archive_cmds_FC='$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'
14974 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14977 osf3*)
14978 if test "$GCC" = yes; then
14979 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14980 archive_cmds_FC='$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'
14981 else
14982 allow_undefined_flag_FC=' -expect_unresolved \*'
14983 archive_cmds_FC='$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'
14985 archive_cmds_need_lc_FC='no'
14986 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14987 hardcode_libdir_separator_FC=:
14990 osf4* | osf5*) # as osf3* with the addition of -msym flag
14991 if test "$GCC" = yes; then
14992 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14993 archive_cmds_FC='$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'
14994 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14995 else
14996 allow_undefined_flag_FC=' -expect_unresolved \*'
14997 archive_cmds_FC='$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'
14998 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14999 $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'
15001 # Both c and cxx compiler support -rpath directly
15002 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15004 archive_cmds_need_lc_FC='no'
15005 hardcode_libdir_separator_FC=:
15008 solaris*)
15009 no_undefined_flag_FC=' -z defs'
15010 if test "$GCC" = yes; then
15011 wlarc='${wl}'
15012 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15014 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15015 else
15016 case `$CC -V 2>&1` in
15017 *"Compilers 5.0"*)
15018 wlarc=''
15019 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15024 wlarc='${wl}'
15025 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15026 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15027 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15029 esac
15031 hardcode_libdir_flag_spec_FC='-R$libdir'
15032 hardcode_shlibpath_var_FC=no
15033 case $host_os in
15034 solaris2.[0-5] | solaris2.[0-5].*) ;;
15036 # The compiler driver will combine and reorder linker options,
15037 # but understands `-z linker_flag'. GCC discards it without `$wl',
15038 # but is careful enough not to reorder.
15039 # Supported since Solaris 2.6 (maybe 2.5.1?)
15040 if test "$GCC" = yes; then
15041 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15042 else
15043 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15046 esac
15047 link_all_deplibs_FC=yes
15050 sunos4*)
15051 if test "x$host_vendor" = xsequent; then
15052 # Use $CC to link under sequent, because it throws in some extra .o
15053 # files that make .init and .fini sections work.
15054 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15055 else
15056 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_libdir_flag_spec_FC='-L$libdir'
15059 hardcode_direct_FC=yes
15060 hardcode_minus_L_FC=yes
15061 hardcode_shlibpath_var_FC=no
15064 sysv4)
15065 case $host_vendor in
15066 sni)
15067 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_direct_FC=yes # is this really true???
15070 siemens)
15071 ## LD is ld it makes a PLAMLIB
15072 ## CC just makes a GrossModule.
15073 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15074 reload_cmds_FC='$CC -r -o $output$reload_objs'
15075 hardcode_direct_FC=no
15077 motorola)
15078 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15081 esac
15082 runpath_var='LD_RUN_PATH'
15083 hardcode_shlibpath_var_FC=no
15086 sysv4.3*)
15087 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15088 hardcode_shlibpath_var_FC=no
15089 export_dynamic_flag_spec_FC='-Bexport'
15092 sysv4*MP*)
15093 if test -d /usr/nec; then
15094 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095 hardcode_shlibpath_var_FC=no
15096 runpath_var=LD_RUN_PATH
15097 hardcode_runpath_var=yes
15098 ld_shlibs_FC=yes
15102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15103 no_undefined_flag_FC='${wl}-z,text'
15104 archive_cmds_need_lc_FC=no
15105 hardcode_shlibpath_var_FC=no
15106 runpath_var='LD_RUN_PATH'
15108 if test "$GCC" = yes; then
15109 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15110 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 else
15112 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15117 sysv5* | sco3.2v5* | sco5v6*)
15118 # Note: We can NOT use -z defs as we might desire, because we do not
15119 # link with -lc, and that would cause any symbols used from libc to
15120 # always be unresolved, which means just about no library would
15121 # ever link correctly. If we're not using GNU ld we use -z text
15122 # though, which does catch some bad symbols but isn't as heavy-handed
15123 # as -z defs.
15124 no_undefined_flag_FC='${wl}-z,text'
15125 allow_undefined_flag_FC='${wl}-z,nodefs'
15126 archive_cmds_need_lc_FC=no
15127 hardcode_shlibpath_var_FC=no
15128 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15129 hardcode_libdir_separator_FC=':'
15130 link_all_deplibs_FC=yes
15131 export_dynamic_flag_spec_FC='${wl}-Bexport'
15132 runpath_var='LD_RUN_PATH'
15134 if test "$GCC" = yes; then
15135 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15136 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15137 else
15138 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15139 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 uts4*)
15144 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_libdir_flag_spec_FC='-L$libdir'
15146 hardcode_shlibpath_var_FC=no
15150 ld_shlibs_FC=no
15152 esac
15154 if test x$host_vendor = xsni; then
15155 case $host in
15156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15157 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15159 esac
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15164 $as_echo "$ld_shlibs_FC" >&6; }
15165 test "$ld_shlibs_FC" = no && can_build_shared=no
15167 with_gnu_ld_FC=$with_gnu_ld
15175 # Do we need to explicitly link libc?
15177 case "x$archive_cmds_need_lc_FC" in
15178 x|xyes)
15179 # Assume -lc should be added
15180 archive_cmds_need_lc_FC=yes
15182 if test "$enable_shared" = yes && test "$GCC" = yes; then
15183 case $archive_cmds_FC in
15184 *'~'*)
15185 # FIXME: we may have to deal with multi-command sequences.
15187 '$CC '*)
15188 # Test whether the compiler implicitly links with -lc since on some
15189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15190 # to ld, don't add -lc before -lgcc.
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15193 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 $RM conftest*
15197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15200 (eval $ac_compile) 2>&5
15201 ac_status=$?
15202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15203 test $ac_status = 0; } 2>conftest.err; then
15204 soname=conftest
15205 lib=conftest
15206 libobjs=conftest.$ac_objext
15207 deplibs=
15208 wl=$lt_prog_compiler_wl_FC
15209 pic_flag=$lt_prog_compiler_pic_FC
15210 compiler_flags=-v
15211 linker_flags=-v
15212 verstring=
15213 output_objdir=.
15214 libname=conftest
15215 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15216 allow_undefined_flag_FC=
15217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15218 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15219 ac_status=$?
15220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; }
15222 then
15223 lt_cv_archive_cmds_need_lc_FC=no
15224 else
15225 lt_cv_archive_cmds_need_lc_FC=yes
15227 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15228 else
15229 cat conftest.err 1>&5
15231 $RM conftest*
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15235 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15236 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15238 esac
15241 esac
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15307 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15309 library_names_spec=
15310 libname_spec='lib$name'
15311 soname_spec=
15312 shrext_cmds=".so"
15313 postinstall_cmds=
15314 postuninstall_cmds=
15315 finish_cmds=
15316 finish_eval=
15317 shlibpath_var=
15318 shlibpath_overrides_runpath=unknown
15319 version_type=none
15320 dynamic_linker="$host_os ld.so"
15321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15322 need_lib_prefix=unknown
15323 hardcode_into_libs=no
15325 # when you set need_version to no, make sure it does not cause -set_version
15326 # flags to be left without arguments
15327 need_version=unknown
15329 case $host_os in
15330 aix3*)
15331 version_type=linux
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15333 shlibpath_var=LIBPATH
15335 # AIX 3 has no versioning support, so we append a major version to the name.
15336 soname_spec='${libname}${release}${shared_ext}$major'
15339 aix[4-9]*)
15340 version_type=linux
15341 need_lib_prefix=no
15342 need_version=no
15343 hardcode_into_libs=yes
15344 if test "$host_cpu" = ia64; then
15345 # AIX 5 supports IA64
15346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 else
15349 # With GCC up to 2.95.x, collect2 would create an import file
15350 # for dependence libraries. The import file would start with
15351 # the line `#! .'. This would cause the generated library to
15352 # depend on `.', always an invalid library. This was fixed in
15353 # development snapshots of GCC prior to 3.0.
15354 case $host_os in
15355 aix4 | aix4.[01] | aix4.[01].*)
15356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15357 echo ' yes '
15358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15360 else
15361 can_build_shared=no
15364 esac
15365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15366 # soname into executable. Probably we can add versioning support to
15367 # collect2, so additional links can be useful in future.
15368 if test "$aix_use_runtimelinking" = yes; then
15369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15370 # instead of lib<name>.a to let people know that these are not
15371 # typical AIX shared libraries.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 else
15374 # We preserve .a as extension for shared libraries through AIX4.2
15375 # and later when we are not doing run time linking.
15376 library_names_spec='${libname}${release}.a $libname.a'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LIBPATH
15383 amigaos*)
15384 case $host_cpu in
15385 powerpc)
15386 # Since July 2007 AmigaOS4 officially supports .so libraries.
15387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 m68k)
15391 library_names_spec='$libname.ixlibrary $libname.a'
15392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15393 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'
15395 esac
15398 beos*)
15399 library_names_spec='${libname}${shared_ext}'
15400 dynamic_linker="$host_os ld.so"
15401 shlibpath_var=LIBRARY_PATH
15404 bsdi[45]*)
15405 version_type=linux
15406 need_version=no
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15413 # the default ld.so.conf also contains /usr/contrib/lib and
15414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15415 # libtool to hard-code these into programs
15418 cygwin* | mingw* | pw32* | cegcc*)
15419 version_type=windows
15420 shrext_cmds=".dll"
15421 need_version=no
15422 need_lib_prefix=no
15424 case $GCC,$host_os in
15425 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15426 library_names_spec='$libname.dll.a'
15427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15428 postinstall_cmds='base_file=`basename \${file}`~
15429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15430 dldir=$destdir/`dirname \$dlpath`~
15431 test -d \$dldir || mkdir -p \$dldir~
15432 $install_prog $dir/$dlname \$dldir/$dlname~
15433 chmod a+x \$dldir/$dlname~
15434 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15435 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15438 dlpath=$dir/\$dldll~
15439 $RM \$dlpath'
15440 shlibpath_overrides_runpath=yes
15442 case $host_os in
15443 cygwin*)
15444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15448 mingw* | cegcc*)
15449 # MinGW DLLs use traditional 'lib' prefix
15450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15452 pw32*)
15453 # pw32 DLLs use 'pw' prefix rather than 'lib'
15454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456 esac
15460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15462 esac
15463 dynamic_linker='Win32 ld.exe'
15464 # FIXME: first we should search . and the directory the executable is in
15465 shlibpath_var=PATH
15468 darwin* | rhapsody*)
15469 dynamic_linker="$host_os dyld"
15470 version_type=darwin
15471 need_lib_prefix=no
15472 need_version=no
15473 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15474 soname_spec='${libname}${release}${major}$shared_ext'
15475 shlibpath_overrides_runpath=yes
15476 shlibpath_var=DYLD_LIBRARY_PATH
15477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15482 dgux*)
15483 version_type=linux
15484 need_lib_prefix=no
15485 need_version=no
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15491 freebsd* | dragonfly*)
15492 # DragonFly does not have aout. When/if they implement a new
15493 # versioning mechanism, adjust this.
15494 if test -x /usr/bin/objformat; then
15495 objformat=`/usr/bin/objformat`
15496 else
15497 case $host_os in
15498 freebsd[23].*) objformat=aout ;;
15499 *) objformat=elf ;;
15500 esac
15502 version_type=freebsd-$objformat
15503 case $version_type in
15504 freebsd-elf*)
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15506 need_version=no
15507 need_lib_prefix=no
15509 freebsd-*)
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15511 need_version=yes
15513 esac
15514 shlibpath_var=LD_LIBRARY_PATH
15515 case $host_os in
15516 freebsd2.*)
15517 shlibpath_overrides_runpath=yes
15519 freebsd3.[01]* | freebsdelf3.[01]*)
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15525 shlibpath_overrides_runpath=no
15526 hardcode_into_libs=yes
15528 *) # from 4.6 on, and DragonFly
15529 shlibpath_overrides_runpath=yes
15530 hardcode_into_libs=yes
15532 esac
15535 gnu*)
15536 version_type=linux
15537 need_lib_prefix=no
15538 need_version=no
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15540 soname_spec='${libname}${release}${shared_ext}$major'
15541 shlibpath_var=LD_LIBRARY_PATH
15542 hardcode_into_libs=yes
15545 haiku*)
15546 version_type=linux
15547 need_lib_prefix=no
15548 need_version=no
15549 dynamic_linker="$host_os runtime_loader"
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 shlibpath_var=LIBRARY_PATH
15553 shlibpath_overrides_runpath=yes
15554 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15555 hardcode_into_libs=yes
15558 hpux9* | hpux10* | hpux11*)
15559 # Give a soname corresponding to the major version so that dld.sl refuses to
15560 # link against other versions.
15561 version_type=sunos
15562 need_lib_prefix=no
15563 need_version=no
15564 case $host_cpu in
15565 ia64*)
15566 shrext_cmds='.so'
15567 hardcode_into_libs=yes
15568 dynamic_linker="$host_os dld.so"
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15575 else
15576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15580 hppa*64*)
15581 shrext_cmds='.sl'
15582 hardcode_into_libs=yes
15583 dynamic_linker="$host_os dld.sl"
15584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15592 shrext_cmds='.sl'
15593 dynamic_linker="$host_os dld.sl"
15594 shlibpath_var=SHLIB_PATH
15595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15599 esac
15600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15601 postinstall_cmds='chmod 555 $lib'
15602 # or fails outright, so override atomically:
15603 install_override_mode=555
15606 interix[3-9]*)
15607 version_type=linux
15608 need_lib_prefix=no
15609 need_version=no
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=no
15615 hardcode_into_libs=yes
15618 irix5* | irix6* | nonstopux*)
15619 case $host_os in
15620 nonstopux*) version_type=nonstopux ;;
15622 if test "$lt_cv_prog_gnu_ld" = yes; then
15623 version_type=linux
15624 else
15625 version_type=irix
15626 fi ;;
15627 esac
15628 need_lib_prefix=no
15629 need_version=no
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15632 case $host_os in
15633 irix5* | nonstopux*)
15634 libsuff= shlibsuff=
15637 case $LD in # libtool.m4 will add one of these switches to LD
15638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15639 libsuff= shlibsuff= libmagic=32-bit;;
15640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15641 libsuff=32 shlibsuff=N32 libmagic=N32;;
15642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15644 *) libsuff= shlibsuff= libmagic=never-match;;
15645 esac
15647 esac
15648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15649 shlibpath_overrides_runpath=no
15650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15652 hardcode_into_libs=yes
15655 # No shared lib support for Linux oldld, aout, or coff.
15656 linux*oldld* | linux*aout* | linux*coff*)
15657 dynamic_linker=no
15660 # This must be Linux ELF.
15662 # uclinux* changes (here and below) have been submitted to the libtool
15663 # project, but have not yet been accepted: they are GCC-local changes
15664 # for the time being. (See
15665 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15666 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15667 version_type=linux
15668 need_lib_prefix=no
15669 need_version=no
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 shlibpath_overrides_runpath=no
15676 # Some binutils ld are patched to set DT_RUNPATH
15677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15678 $as_echo_n "(cached) " >&6
15679 else
15680 lt_cv_shlibpath_overrides_runpath=no
15681 save_LDFLAGS=$LDFLAGS
15682 save_libdir=$libdir
15683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15685 if test x$gcc_no_link = xyes; then
15686 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15688 cat > conftest.$ac_ext <<_ACEOF
15689 program main
15692 _ACEOF
15693 if ac_fn_fc_try_link "$LINENO"; then :
15694 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15695 lt_cv_shlibpath_overrides_runpath=yes
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LDFLAGS=$save_LDFLAGS
15701 libdir=$save_libdir
15705 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15707 # This implies no fast_install, which is unacceptable.
15708 # Some rework will be needed to allow for fast_install
15709 # before this can be enabled.
15710 hardcode_into_libs=yes
15712 # Append ld.so.conf contents to the search path
15713 if test -f /etc/ld.so.conf; then
15714 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' ' '`
15715 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15718 # We used to test for /lib/ld.so.1 and disable shared libraries on
15719 # powerpc, because MkLinux only supported shared libraries with the
15720 # GNU dynamic linker. Since this was broken with cross compilers,
15721 # most powerpc-linux boxes support dynamic linking these days and
15722 # people can always --disable-shared, the test was removed, and we
15723 # assume the GNU/Linux dynamic linker is in use.
15724 dynamic_linker='GNU/Linux ld.so'
15727 netbsd*)
15728 version_type=sunos
15729 need_lib_prefix=no
15730 need_version=no
15731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15734 dynamic_linker='NetBSD (a.out) ld.so'
15735 else
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 dynamic_linker='NetBSD ld.elf_so'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 hardcode_into_libs=yes
15745 newsos6)
15746 version_type=linux
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 shlibpath_overrides_runpath=yes
15752 *nto* | *qnx*)
15753 version_type=qnx
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=no
15760 hardcode_into_libs=yes
15761 dynamic_linker='ldqnx.so'
15764 openbsd*)
15765 version_type=sunos
15766 sys_lib_dlsearch_path_spec="/usr/lib"
15767 need_lib_prefix=no
15768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15769 case $host_os in
15770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15771 *) need_version=no ;;
15772 esac
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15777 case $host_os in
15778 openbsd2.[89] | openbsd2.[89].*)
15779 shlibpath_overrides_runpath=no
15782 shlibpath_overrides_runpath=yes
15784 esac
15785 else
15786 shlibpath_overrides_runpath=yes
15790 os2*)
15791 libname_spec='$name'
15792 shrext_cmds=".dll"
15793 need_lib_prefix=no
15794 library_names_spec='$libname${shared_ext} $libname.a'
15795 dynamic_linker='OS/2 ld.exe'
15796 shlibpath_var=LIBPATH
15799 osf3* | osf4* | osf5*)
15800 version_type=osf
15801 need_lib_prefix=no
15802 need_version=no
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15810 rdos*)
15811 dynamic_linker=no
15814 solaris*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 # ldd complains unless libraries are executable
15824 postinstall_cmds='chmod +x $lib'
15827 sunos4*)
15828 version_type=sunos
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15833 if test "$with_gnu_ld" = yes; then
15834 need_lib_prefix=no
15836 need_version=yes
15839 sysv4 | sysv4.3*)
15840 version_type=linux
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 case $host_vendor in
15845 sni)
15846 shlibpath_overrides_runpath=no
15847 need_lib_prefix=no
15848 runpath_var=LD_RUN_PATH
15850 siemens)
15851 need_lib_prefix=no
15853 motorola)
15854 need_lib_prefix=no
15855 need_version=no
15856 shlibpath_overrides_runpath=no
15857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15859 esac
15862 sysv4*MP*)
15863 if test -d /usr/nec ;then
15864 version_type=linux
15865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15866 soname_spec='$libname${shared_ext}.$major'
15867 shlibpath_var=LD_LIBRARY_PATH
15871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15872 version_type=freebsd-elf
15873 need_lib_prefix=no
15874 need_version=no
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 shlibpath_overrides_runpath=yes
15879 hardcode_into_libs=yes
15880 if test "$with_gnu_ld" = yes; then
15881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15882 else
15883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15884 case $host_os in
15885 sco3.2v5*)
15886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15888 esac
15890 sys_lib_dlsearch_path_spec='/usr/lib'
15893 tpf*)
15894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15895 version_type=linux
15896 need_lib_prefix=no
15897 need_version=no
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=no
15901 hardcode_into_libs=yes
15904 uts4*)
15905 version_type=linux
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 shlibpath_var=LD_LIBRARY_PATH
15912 dynamic_linker=no
15914 esac
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15916 $as_echo "$dynamic_linker" >&6; }
15917 test "$dynamic_linker" = no && can_build_shared=no
15919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15920 if test "$GCC" = yes; then
15921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15924 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15925 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15928 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15969 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15970 hardcode_action_FC=
15971 if test -n "$hardcode_libdir_flag_spec_FC" ||
15972 test -n "$runpath_var_FC" ||
15973 test "X$hardcode_automatic_FC" = "Xyes" ; then
15975 # We can hardcode non-existent directories.
15976 if test "$hardcode_direct_FC" != no &&
15977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15978 # have to relink, otherwise we might link with an installed library
15979 # when we should be linking with a yet-to-be-installed one
15980 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15981 test "$hardcode_minus_L_FC" != no; then
15982 # Linking always hardcodes the temporary library directory.
15983 hardcode_action_FC=relink
15984 else
15985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15986 hardcode_action_FC=immediate
15988 else
15989 # We cannot hardcode anything, or else we can only hardcode existing
15990 # directories.
15991 hardcode_action_FC=unsupported
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15994 $as_echo "$hardcode_action_FC" >&6; }
15996 if test "$hardcode_action_FC" = relink ||
15997 test "$inherit_rpath_FC" = yes; then
15998 # Fast installation is not supported
15999 enable_fast_install=no
16000 elif test "$shlibpath_overrides_runpath" = yes ||
16001 test "$enable_shared" = no; then
16002 # Fast installation is not necessary
16003 enable_fast_install=needless
16012 fi # test -n "$compiler"
16014 GCC=$lt_save_GCC
16015 CC="$lt_save_CC"
16016 fi # test "$_lt_disable_FC" != yes
16018 ac_ext=c
16019 ac_cpp='$CPP $CPPFLAGS'
16020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16026 # extra LD Flags which are required for targets
16027 case "${host}" in
16028 *-darwin*)
16029 # Darwin needs -single_module when linking libgfortran
16030 extra_ldflags_libgfortran=-Wl,-single_module
16032 esac
16035 # We need a working compiler at that point, otherwise give a clear
16036 # error message and bail out.
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16039 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16040 ac_ext=${ac_fc_srcext-f}
16041 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16042 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16045 cat > conftest.$ac_ext <<_ACEOF
16047 program foo
16048 real, parameter :: bar = sin (12.34 / 2.5)
16049 end program foo
16050 _ACEOF
16051 if ac_fn_fc_try_compile "$LINENO"; then :
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16053 $as_echo "yes" >&6; }
16054 else
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056 $as_echo "no" >&6; }
16057 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 ac_ext=c
16062 ac_cpp='$CPP $CPPFLAGS'
16063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16069 # Check whether --enable-largefile was given.
16070 if test "${enable_largefile+set}" = set; then :
16071 enableval=$enable_largefile;
16074 if test "$enable_largefile" != no; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16077 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16078 if ${ac_cv_sys_largefile_CC+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 ac_cv_sys_largefile_CC=no
16082 if test "$GCC" != yes; then
16083 ac_save_CC=$CC
16084 while :; do
16085 # IRIX 6.2 and later do not support large files by default,
16086 # so use the C compiler's -n32 option if that helps.
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <sys/types.h>
16090 /* Check that off_t can represent 2**63 - 1 correctly.
16091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16092 since some C++ compilers masquerading as C compilers
16093 incorrectly reject 9223372036854775807. */
16094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16096 && LARGE_OFF_T % 2147483647 == 1)
16097 ? 1 : -1];
16099 main ()
16103 return 0;
16105 _ACEOF
16106 if ac_fn_c_try_compile "$LINENO"; then :
16107 break
16109 rm -f core conftest.err conftest.$ac_objext
16110 CC="$CC -n32"
16111 if ac_fn_c_try_compile "$LINENO"; then :
16112 ac_cv_sys_largefile_CC=' -n32'; break
16114 rm -f core conftest.err conftest.$ac_objext
16115 break
16116 done
16117 CC=$ac_save_CC
16118 rm -f conftest.$ac_ext
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16122 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16123 if test "$ac_cv_sys_largefile_CC" != no; then
16124 CC=$CC$ac_cv_sys_largefile_CC
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16128 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16129 if ${ac_cv_sys_file_offset_bits+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 while :; do
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 #include <sys/types.h>
16136 /* Check that off_t can represent 2**63 - 1 correctly.
16137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16138 since some C++ compilers masquerading as C compilers
16139 incorrectly reject 9223372036854775807. */
16140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16142 && LARGE_OFF_T % 2147483647 == 1)
16143 ? 1 : -1];
16145 main ()
16149 return 0;
16151 _ACEOF
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153 ac_cv_sys_file_offset_bits=no; break
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 #define _FILE_OFFSET_BITS 64
16159 #include <sys/types.h>
16160 /* Check that off_t can represent 2**63 - 1 correctly.
16161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16162 since some C++ compilers masquerading as C compilers
16163 incorrectly reject 9223372036854775807. */
16164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16166 && LARGE_OFF_T % 2147483647 == 1)
16167 ? 1 : -1];
16169 main ()
16173 return 0;
16175 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"; then :
16177 ac_cv_sys_file_offset_bits=64; break
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 ac_cv_sys_file_offset_bits=unknown
16181 break
16182 done
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16185 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16186 case $ac_cv_sys_file_offset_bits in #(
16187 no | unknown) ;;
16189 cat >>confdefs.h <<_ACEOF
16190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16191 _ACEOF
16193 esac
16194 rm -rf conftest*
16195 if test $ac_cv_sys_file_offset_bits = unknown; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16197 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16198 if ${ac_cv_sys_large_files+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 while :; do
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 #include <sys/types.h>
16205 /* Check that off_t can represent 2**63 - 1 correctly.
16206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16207 since some C++ compilers masquerading as C compilers
16208 incorrectly reject 9223372036854775807. */
16209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16211 && LARGE_OFF_T % 2147483647 == 1)
16212 ? 1 : -1];
16214 main ()
16218 return 0;
16220 _ACEOF
16221 if ac_fn_c_try_compile "$LINENO"; then :
16222 ac_cv_sys_large_files=no; break
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #define _LARGE_FILES 1
16228 #include <sys/types.h>
16229 /* Check that off_t can represent 2**63 - 1 correctly.
16230 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16231 since some C++ compilers masquerading as C compilers
16232 incorrectly reject 9223372036854775807. */
16233 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16234 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16235 && LARGE_OFF_T % 2147483647 == 1)
16236 ? 1 : -1];
16238 main ()
16242 return 0;
16244 _ACEOF
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246 ac_cv_sys_large_files=1; break
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 ac_cv_sys_large_files=unknown
16250 break
16251 done
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16254 $as_echo "$ac_cv_sys_large_files" >&6; }
16255 case $ac_cv_sys_large_files in #(
16256 no | unknown) ;;
16258 cat >>confdefs.h <<_ACEOF
16259 #define _LARGE_FILES $ac_cv_sys_large_files
16260 _ACEOF
16262 esac
16263 rm -rf conftest*
16270 # Types
16271 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16272 if test "x$ac_cv_type_off_t" = xyes; then :
16274 else
16276 cat >>confdefs.h <<_ACEOF
16277 #define off_t long int
16278 _ACEOF
16283 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16284 if test "x$ac_cv_type_intptr_t" = xyes; then :
16286 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16288 else
16289 for ac_type in 'int' 'long int' 'long long int'; do
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 $ac_includes_default
16294 main ()
16296 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16297 test_array [0] = 0;
16298 return test_array [0];
16301 return 0;
16303 _ACEOF
16304 if ac_fn_c_try_compile "$LINENO"; then :
16306 cat >>confdefs.h <<_ACEOF
16307 #define intptr_t $ac_type
16308 _ACEOF
16310 ac_type=
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313 test -z "$ac_type" && break
16314 done
16319 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16320 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16322 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16324 else
16325 for ac_type in 'unsigned int' 'unsigned long int' \
16326 'unsigned long long int'; do
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 $ac_includes_default
16331 main ()
16333 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16334 test_array [0] = 0;
16335 return test_array [0];
16338 return 0;
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"; then :
16343 cat >>confdefs.h <<_ACEOF
16344 #define uintptr_t $ac_type
16345 _ACEOF
16347 ac_type=
16349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16350 test -z "$ac_type" && break
16351 done
16355 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16356 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16358 cat >>confdefs.h <<_ACEOF
16359 #define HAVE_PTRDIFF_T 1
16360 _ACEOF
16366 # check header files (we assume C89 is available, so don't check for that)
16370 for ac_header in $ac_header_list
16371 do :
16372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16376 cat >>confdefs.h <<_ACEOF
16377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16378 _ACEOF
16382 done
16422 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16424 acx_cv_header_stdint=stddef.h
16425 acx_cv_header_stdint_kind="(already complete)"
16426 for i in stdint.h $inttype_headers; do
16427 unset ac_cv_type_uintptr_t
16428 unset ac_cv_type_uintmax_t
16429 unset ac_cv_type_int_least32_t
16430 unset ac_cv_type_int_fast32_t
16431 unset ac_cv_type_uint64_t
16432 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16433 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16434 #include <$i>
16436 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16437 acx_cv_header_stdint=$i
16438 else
16439 continue
16442 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16443 #include <$i>
16445 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16447 else
16448 acx_cv_header_stdint_kind="(mostly complete)"
16451 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16452 #include <$i>
16454 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16456 else
16457 acx_cv_header_stdint_kind="(mostly complete)"
16460 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16461 #include <$i>
16463 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16465 else
16466 acx_cv_header_stdint_kind="(mostly complete)"
16469 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16470 #include <$i>
16472 if test "x$ac_cv_type_uint64_t" = xyes; then :
16474 else
16475 acx_cv_header_stdint_kind="(lacks uint64_t)"
16478 break
16479 done
16480 if test "$acx_cv_header_stdint" = stddef.h; then
16481 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16482 for i in stdint.h $inttype_headers; do
16483 unset ac_cv_type_uintptr_t
16484 unset ac_cv_type_uint32_t
16485 unset ac_cv_type_uint64_t
16486 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16487 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16488 #include <$i>
16490 if test "x$ac_cv_type_uint32_t" = xyes; then :
16491 acx_cv_header_stdint=$i
16492 else
16493 continue
16496 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16497 #include <$i>
16499 if test "x$ac_cv_type_uint64_t" = xyes; then :
16503 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16504 #include <$i>
16506 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16510 break
16511 done
16513 if test "$acx_cv_header_stdint" = stddef.h; then
16514 acx_cv_header_stdint_kind="(u_intXX_t style)"
16515 for i in sys/types.h $inttype_headers; do
16516 unset ac_cv_type_u_int32_t
16517 unset ac_cv_type_u_int64_t
16518 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16519 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16520 #include <$i>
16522 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16523 acx_cv_header_stdint=$i
16524 else
16525 continue
16528 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16529 #include <$i>
16531 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16535 break
16536 done
16538 if test "$acx_cv_header_stdint" = stddef.h; then
16539 acx_cv_header_stdint_kind="(using manual detection)"
16542 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16543 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16544 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16545 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16546 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16548 # ----------------- Summarize what we found so far
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16551 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16553 case `$as_basename -- gstdint.h ||
16554 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16555 Xgstdint.h : 'X\(//\)$' \| \
16556 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16557 $as_echo X/gstdint.h |
16558 sed '/^.*\/\([^/][^/]*\)\/*$/{
16559 s//\1/
16562 /^X\/\(\/\/\)$/{
16563 s//\1/
16566 /^X\/\(\/\).*/{
16567 s//\1/
16570 s/.*/./; q'` in
16571 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16572 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16573 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16574 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16575 *) ;;
16576 esac
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16579 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16581 # ----------------- done included file, check C basic types --------
16583 # Lacking an uintptr_t? Test size of void *
16584 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16585 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16588 # This bug is HP SR number 8606223364.
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16590 $as_echo_n "checking size of void *... " >&6; }
16591 if ${ac_cv_sizeof_void_p+:} false; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16596 else
16597 if test "$ac_cv_type_void_p" = yes; then
16598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16600 as_fn_error 77 "cannot compute sizeof (void *)
16601 See \`config.log' for more details" "$LINENO" 5; }
16602 else
16603 ac_cv_sizeof_void_p=0
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16609 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16613 cat >>confdefs.h <<_ACEOF
16614 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16615 _ACEOF
16618 esac
16620 # Lacking an uint64_t? Test size of long
16621 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16622 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16625 # This bug is HP SR number 8606223364.
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16627 $as_echo_n "checking size of long... " >&6; }
16628 if ${ac_cv_sizeof_long+:} false; then :
16629 $as_echo_n "(cached) " >&6
16630 else
16631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16633 else
16634 if test "$ac_cv_type_long" = yes; then
16635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16637 as_fn_error 77 "cannot compute sizeof (long)
16638 See \`config.log' for more details" "$LINENO" 5; }
16639 else
16640 ac_cv_sizeof_long=0
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16646 $as_echo "$ac_cv_sizeof_long" >&6; }
16650 cat >>confdefs.h <<_ACEOF
16651 #define SIZEOF_LONG $ac_cv_sizeof_long
16652 _ACEOF
16655 esac
16657 if test $acx_cv_header_stdint = stddef.h; then
16658 # Lacking a good header? Test size of everything and deduce all types.
16659 # The cast to long int works around a bug in the HP C Compiler
16660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16662 # This bug is HP SR number 8606223364.
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16664 $as_echo_n "checking size of int... " >&6; }
16665 if ${ac_cv_sizeof_int+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16670 else
16671 if test "$ac_cv_type_int" = yes; then
16672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16674 as_fn_error 77 "cannot compute sizeof (int)
16675 See \`config.log' for more details" "$LINENO" 5; }
16676 else
16677 ac_cv_sizeof_int=0
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16683 $as_echo "$ac_cv_sizeof_int" >&6; }
16687 cat >>confdefs.h <<_ACEOF
16688 #define SIZEOF_INT $ac_cv_sizeof_int
16689 _ACEOF
16692 # The cast to long int works around a bug in the HP C Compiler
16693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16695 # This bug is HP SR number 8606223364.
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16697 $as_echo_n "checking size of short... " >&6; }
16698 if ${ac_cv_sizeof_short+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16703 else
16704 if test "$ac_cv_type_short" = yes; then
16705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16707 as_fn_error 77 "cannot compute sizeof (short)
16708 See \`config.log' for more details" "$LINENO" 5; }
16709 else
16710 ac_cv_sizeof_short=0
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16716 $as_echo "$ac_cv_sizeof_short" >&6; }
16720 cat >>confdefs.h <<_ACEOF
16721 #define SIZEOF_SHORT $ac_cv_sizeof_short
16722 _ACEOF
16725 # The cast to long int works around a bug in the HP C Compiler
16726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16728 # This bug is HP SR number 8606223364.
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16730 $as_echo_n "checking size of char... " >&6; }
16731 if ${ac_cv_sizeof_char+:} false; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16736 else
16737 if test "$ac_cv_type_char" = yes; then
16738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16740 as_fn_error 77 "cannot compute sizeof (char)
16741 See \`config.log' for more details" "$LINENO" 5; }
16742 else
16743 ac_cv_sizeof_char=0
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16749 $as_echo "$ac_cv_sizeof_char" >&6; }
16753 cat >>confdefs.h <<_ACEOF
16754 #define SIZEOF_CHAR $ac_cv_sizeof_char
16755 _ACEOF
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16760 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16761 case "$ac_cv_sizeof_char" in
16762 1) acx_cv_type_int8_t=char ;;
16763 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16764 esac
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16766 $as_echo "$acx_cv_type_int8_t" >&6; }
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16769 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16770 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16771 2:*) acx_cv_type_int16_t=int ;;
16772 *:2) acx_cv_type_int16_t=short ;;
16773 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16774 esac
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16776 $as_echo "$acx_cv_type_int16_t" >&6; }
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16779 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16780 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16781 4:*) acx_cv_type_int32_t=int ;;
16782 *:4) acx_cv_type_int32_t=long ;;
16783 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16784 esac
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16786 $as_echo "$acx_cv_type_int32_t" >&6; }
16789 # These tests are here to make the output prettier
16791 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16792 case "$ac_cv_sizeof_long" in
16793 8) acx_cv_type_int64_t=long ;;
16794 esac
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16796 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16798 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16801 # Now we can use the above types
16803 if test "$ac_cv_type_uintptr_t" != yes; then
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16805 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16806 case $ac_cv_sizeof_void_p in
16807 2) acx_cv_type_intptr_t=int16_t ;;
16808 4) acx_cv_type_intptr_t=int32_t ;;
16809 8) acx_cv_type_intptr_t=int64_t ;;
16810 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16811 esac
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16813 $as_echo "$acx_cv_type_intptr_t" >&6; }
16816 # ----------------- done all checks, emit header -------------
16817 ac_config_commands="$ac_config_commands gstdint.h"
16822 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16823 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16825 cat >>confdefs.h <<_ACEOF
16826 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16827 _ACEOF
16831 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16832 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16834 cat >>confdefs.h <<_ACEOF
16835 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16836 _ACEOF
16840 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16841 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_STRUCT_STAT_ST_RDEV 1
16845 _ACEOF
16851 case "${host}--x${with_newlib}" in
16852 mips*--xyes)
16853 hardwire_newlib=1;;
16854 nvptx*--xyes)
16855 hardwire_newlib=1;;
16856 esac
16858 # Check for library functions.
16859 if test "${hardwire_newlib:-0}" -eq 1; then
16860 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16861 # may not work correctly, because the compiler may not be able to
16862 # link executables.
16864 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16867 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16870 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16873 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16876 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16879 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16882 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16885 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16888 # At some point, we should differentiate between architectures
16889 # like x86, which have long double versions, and alpha/powerpc/etc.,
16890 # which don't. For the time being, punt.
16891 if test x"long_double_math_on_this_cpu" = x"yes"; then
16893 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16896 else
16900 for ac_func in $ac_func_list
16901 do :
16902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16905 cat >>confdefs.h <<_ACEOF
16906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16907 _ACEOF
16910 done
17023 # Check strerror_r, cannot be above as versions with two and three arguments exist
17025 ac_save_CFLAGS="$CFLAGS"
17026 CFLAGS="-Wimplicit-function-declaration -Werror"
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 #define _GNU_SOURCE 1
17030 #include <string.h>
17031 #include <locale.h>
17033 main ()
17035 char s[128]; strerror_r(5, s, 128);
17037 return 0;
17039 _ACEOF
17040 if ac_fn_c_try_compile "$LINENO"; then :
17042 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 CFLAGS="$ac_save_CFLAGS"
17048 ac_save_CFLAGS="$CFLAGS"
17049 CFLAGS="-Wimplicit-function-declaration -Werror"
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #define _GNU_SOURCE 1
17053 #include <string.h>
17054 #include <locale.h>
17056 main ()
17058 char s[128]; strerror_r(5, s);
17060 return 0;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"; then :
17065 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 CFLAGS="$ac_save_CFLAGS"
17072 # Check for C99 (and other IEEE) math functions
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17074 $as_echo_n "checking for sin in -lm... " >&6; }
17075 if ${ac_cv_lib_m_sin+:} false; then :
17076 $as_echo_n "(cached) " >&6
17077 else
17078 ac_check_lib_save_LIBS=$LIBS
17079 LIBS="-lm $LIBS"
17080 if test x$gcc_no_link = xyes; then
17081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17086 /* Override any GCC internal prototype to avoid an error.
17087 Use char because int might match the return type of a GCC
17088 builtin and then its argument prototype would still apply. */
17089 #ifdef __cplusplus
17090 extern "C"
17091 #endif
17092 char sin ();
17094 main ()
17096 return sin ();
17098 return 0;
17100 _ACEOF
17101 if ac_fn_c_try_link "$LINENO"; then :
17102 ac_cv_lib_m_sin=yes
17103 else
17104 ac_cv_lib_m_sin=no
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17111 $as_echo "$ac_cv_lib_m_sin" >&6; }
17112 if test "x$ac_cv_lib_m_sin" = xyes; then :
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_LIBM 1
17115 _ACEOF
17117 LIBS="-lm $LIBS"
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17128 $as_echo_n "checking for acosf... " >&6; }
17129 if ${gcc_cv_math_func_acosf+:} false; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 if test x$gcc_no_link = xyes; then
17133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17138 #ifdef HAVE_COMPLEX_H
17139 #include <complex.h>
17140 #endif
17141 #ifdef HAVE_MATH_H
17142 #include <math.h>
17143 #endif
17145 int (*ptr)() = (int (*)())acosf;
17148 main ()
17150 return 0;
17153 _ACEOF
17154 if ac_fn_c_try_link "$LINENO"; then :
17155 gcc_cv_math_func_acosf=yes
17156 else
17157 gcc_cv_math_func_acosf=no
17159 rm -f core conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17163 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17164 if test $gcc_cv_math_func_acosf = yes; then
17166 cat >>confdefs.h <<_ACEOF
17167 #define HAVE_ACOSF 1
17168 _ACEOF
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17176 $as_echo_n "checking for acos... " >&6; }
17177 if ${gcc_cv_math_func_acos+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 if test x$gcc_no_link = xyes; then
17181 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17186 #ifdef HAVE_COMPLEX_H
17187 #include <complex.h>
17188 #endif
17189 #ifdef HAVE_MATH_H
17190 #include <math.h>
17191 #endif
17193 int (*ptr)() = (int (*)())acos;
17196 main ()
17198 return 0;
17201 _ACEOF
17202 if ac_fn_c_try_link "$LINENO"; then :
17203 gcc_cv_math_func_acos=yes
17204 else
17205 gcc_cv_math_func_acos=no
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17211 $as_echo "$gcc_cv_math_func_acos" >&6; }
17212 if test $gcc_cv_math_func_acos = yes; then
17214 cat >>confdefs.h <<_ACEOF
17215 #define HAVE_ACOS 1
17216 _ACEOF
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17224 $as_echo_n "checking for acosl... " >&6; }
17225 if ${gcc_cv_math_func_acosl+:} false; then :
17226 $as_echo_n "(cached) " >&6
17227 else
17228 if test x$gcc_no_link = xyes; then
17229 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17234 #ifdef HAVE_COMPLEX_H
17235 #include <complex.h>
17236 #endif
17237 #ifdef HAVE_MATH_H
17238 #include <math.h>
17239 #endif
17241 int (*ptr)() = (int (*)())acosl;
17244 main ()
17246 return 0;
17249 _ACEOF
17250 if ac_fn_c_try_link "$LINENO"; then :
17251 gcc_cv_math_func_acosl=yes
17252 else
17253 gcc_cv_math_func_acosl=no
17255 rm -f core conftest.err conftest.$ac_objext \
17256 conftest$ac_exeext conftest.$ac_ext
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17259 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17260 if test $gcc_cv_math_func_acosl = yes; then
17262 cat >>confdefs.h <<_ACEOF
17263 #define HAVE_ACOSL 1
17264 _ACEOF
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17272 $as_echo_n "checking for acoshf... " >&6; }
17273 if ${gcc_cv_math_func_acoshf+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 if test x$gcc_no_link = xyes; then
17277 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17282 #ifdef HAVE_COMPLEX_H
17283 #include <complex.h>
17284 #endif
17285 #ifdef HAVE_MATH_H
17286 #include <math.h>
17287 #endif
17289 int (*ptr)() = (int (*)())acoshf;
17292 main ()
17294 return 0;
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 gcc_cv_math_func_acoshf=yes
17300 else
17301 gcc_cv_math_func_acoshf=no
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17307 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17308 if test $gcc_cv_math_func_acoshf = yes; then
17310 cat >>confdefs.h <<_ACEOF
17311 #define HAVE_ACOSHF 1
17312 _ACEOF
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17320 $as_echo_n "checking for acosh... " >&6; }
17321 if ${gcc_cv_math_func_acosh+:} false; then :
17322 $as_echo_n "(cached) " >&6
17323 else
17324 if test x$gcc_no_link = xyes; then
17325 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17330 #ifdef HAVE_COMPLEX_H
17331 #include <complex.h>
17332 #endif
17333 #ifdef HAVE_MATH_H
17334 #include <math.h>
17335 #endif
17337 int (*ptr)() = (int (*)())acosh;
17340 main ()
17342 return 0;
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347 gcc_cv_math_func_acosh=yes
17348 else
17349 gcc_cv_math_func_acosh=no
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17355 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17356 if test $gcc_cv_math_func_acosh = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define HAVE_ACOSH 1
17360 _ACEOF
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17368 $as_echo_n "checking for acoshl... " >&6; }
17369 if ${gcc_cv_math_func_acoshl+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 if test x$gcc_no_link = xyes; then
17373 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17378 #ifdef HAVE_COMPLEX_H
17379 #include <complex.h>
17380 #endif
17381 #ifdef HAVE_MATH_H
17382 #include <math.h>
17383 #endif
17385 int (*ptr)() = (int (*)())acoshl;
17388 main ()
17390 return 0;
17393 _ACEOF
17394 if ac_fn_c_try_link "$LINENO"; then :
17395 gcc_cv_math_func_acoshl=yes
17396 else
17397 gcc_cv_math_func_acoshl=no
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17403 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17404 if test $gcc_cv_math_func_acoshl = yes; then
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_ACOSHL 1
17408 _ACEOF
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17416 $as_echo_n "checking for asinf... " >&6; }
17417 if ${gcc_cv_math_func_asinf+:} false; then :
17418 $as_echo_n "(cached) " >&6
17419 else
17420 if test x$gcc_no_link = xyes; then
17421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17426 #ifdef HAVE_COMPLEX_H
17427 #include <complex.h>
17428 #endif
17429 #ifdef HAVE_MATH_H
17430 #include <math.h>
17431 #endif
17433 int (*ptr)() = (int (*)())asinf;
17436 main ()
17438 return 0;
17441 _ACEOF
17442 if ac_fn_c_try_link "$LINENO"; then :
17443 gcc_cv_math_func_asinf=yes
17444 else
17445 gcc_cv_math_func_asinf=no
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17451 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17452 if test $gcc_cv_math_func_asinf = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define HAVE_ASINF 1
17456 _ACEOF
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17464 $as_echo_n "checking for asin... " >&6; }
17465 if ${gcc_cv_math_func_asin+:} false; then :
17466 $as_echo_n "(cached) " >&6
17467 else
17468 if test x$gcc_no_link = xyes; then
17469 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17474 #ifdef HAVE_COMPLEX_H
17475 #include <complex.h>
17476 #endif
17477 #ifdef HAVE_MATH_H
17478 #include <math.h>
17479 #endif
17481 int (*ptr)() = (int (*)())asin;
17484 main ()
17486 return 0;
17489 _ACEOF
17490 if ac_fn_c_try_link "$LINENO"; then :
17491 gcc_cv_math_func_asin=yes
17492 else
17493 gcc_cv_math_func_asin=no
17495 rm -f core conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17499 $as_echo "$gcc_cv_math_func_asin" >&6; }
17500 if test $gcc_cv_math_func_asin = yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define HAVE_ASIN 1
17504 _ACEOF
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17512 $as_echo_n "checking for asinl... " >&6; }
17513 if ${gcc_cv_math_func_asinl+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516 if test x$gcc_no_link = xyes; then
17517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17522 #ifdef HAVE_COMPLEX_H
17523 #include <complex.h>
17524 #endif
17525 #ifdef HAVE_MATH_H
17526 #include <math.h>
17527 #endif
17529 int (*ptr)() = (int (*)())asinl;
17532 main ()
17534 return 0;
17537 _ACEOF
17538 if ac_fn_c_try_link "$LINENO"; then :
17539 gcc_cv_math_func_asinl=yes
17540 else
17541 gcc_cv_math_func_asinl=no
17543 rm -f core conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17547 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17548 if test $gcc_cv_math_func_asinl = yes; then
17550 cat >>confdefs.h <<_ACEOF
17551 #define HAVE_ASINL 1
17552 _ACEOF
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17560 $as_echo_n "checking for asinhf... " >&6; }
17561 if ${gcc_cv_math_func_asinhf+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564 if test x$gcc_no_link = xyes; then
17565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17570 #ifdef HAVE_COMPLEX_H
17571 #include <complex.h>
17572 #endif
17573 #ifdef HAVE_MATH_H
17574 #include <math.h>
17575 #endif
17577 int (*ptr)() = (int (*)())asinhf;
17580 main ()
17582 return 0;
17585 _ACEOF
17586 if ac_fn_c_try_link "$LINENO"; then :
17587 gcc_cv_math_func_asinhf=yes
17588 else
17589 gcc_cv_math_func_asinhf=no
17591 rm -f core conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17595 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17596 if test $gcc_cv_math_func_asinhf = yes; then
17598 cat >>confdefs.h <<_ACEOF
17599 #define HAVE_ASINHF 1
17600 _ACEOF
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17608 $as_echo_n "checking for asinh... " >&6; }
17609 if ${gcc_cv_math_func_asinh+:} false; then :
17610 $as_echo_n "(cached) " >&6
17611 else
17612 if test x$gcc_no_link = xyes; then
17613 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 #ifdef HAVE_COMPLEX_H
17619 #include <complex.h>
17620 #endif
17621 #ifdef HAVE_MATH_H
17622 #include <math.h>
17623 #endif
17625 int (*ptr)() = (int (*)())asinh;
17628 main ()
17630 return 0;
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635 gcc_cv_math_func_asinh=yes
17636 else
17637 gcc_cv_math_func_asinh=no
17639 rm -f core conftest.err conftest.$ac_objext \
17640 conftest$ac_exeext conftest.$ac_ext
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17643 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17644 if test $gcc_cv_math_func_asinh = yes; then
17646 cat >>confdefs.h <<_ACEOF
17647 #define HAVE_ASINH 1
17648 _ACEOF
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17656 $as_echo_n "checking for asinhl... " >&6; }
17657 if ${gcc_cv_math_func_asinhl+:} false; then :
17658 $as_echo_n "(cached) " >&6
17659 else
17660 if test x$gcc_no_link = xyes; then
17661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17666 #ifdef HAVE_COMPLEX_H
17667 #include <complex.h>
17668 #endif
17669 #ifdef HAVE_MATH_H
17670 #include <math.h>
17671 #endif
17673 int (*ptr)() = (int (*)())asinhl;
17676 main ()
17678 return 0;
17681 _ACEOF
17682 if ac_fn_c_try_link "$LINENO"; then :
17683 gcc_cv_math_func_asinhl=yes
17684 else
17685 gcc_cv_math_func_asinhl=no
17687 rm -f core conftest.err conftest.$ac_objext \
17688 conftest$ac_exeext conftest.$ac_ext
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17691 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17692 if test $gcc_cv_math_func_asinhl = yes; then
17694 cat >>confdefs.h <<_ACEOF
17695 #define HAVE_ASINHL 1
17696 _ACEOF
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17704 $as_echo_n "checking for atan2f... " >&6; }
17705 if ${gcc_cv_math_func_atan2f+:} false; then :
17706 $as_echo_n "(cached) " >&6
17707 else
17708 if test x$gcc_no_link = xyes; then
17709 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17714 #ifdef HAVE_COMPLEX_H
17715 #include <complex.h>
17716 #endif
17717 #ifdef HAVE_MATH_H
17718 #include <math.h>
17719 #endif
17721 int (*ptr)() = (int (*)())atan2f;
17724 main ()
17726 return 0;
17729 _ACEOF
17730 if ac_fn_c_try_link "$LINENO"; then :
17731 gcc_cv_math_func_atan2f=yes
17732 else
17733 gcc_cv_math_func_atan2f=no
17735 rm -f core conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17739 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17740 if test $gcc_cv_math_func_atan2f = yes; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_ATAN2F 1
17744 _ACEOF
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17752 $as_echo_n "checking for atan2... " >&6; }
17753 if ${gcc_cv_math_func_atan2+:} false; then :
17754 $as_echo_n "(cached) " >&6
17755 else
17756 if test x$gcc_no_link = xyes; then
17757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17762 #ifdef HAVE_COMPLEX_H
17763 #include <complex.h>
17764 #endif
17765 #ifdef HAVE_MATH_H
17766 #include <math.h>
17767 #endif
17769 int (*ptr)() = (int (*)())atan2;
17772 main ()
17774 return 0;
17777 _ACEOF
17778 if ac_fn_c_try_link "$LINENO"; then :
17779 gcc_cv_math_func_atan2=yes
17780 else
17781 gcc_cv_math_func_atan2=no
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17787 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17788 if test $gcc_cv_math_func_atan2 = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_ATAN2 1
17792 _ACEOF
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17800 $as_echo_n "checking for atan2l... " >&6; }
17801 if ${gcc_cv_math_func_atan2l+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 if test x$gcc_no_link = xyes; then
17805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17810 #ifdef HAVE_COMPLEX_H
17811 #include <complex.h>
17812 #endif
17813 #ifdef HAVE_MATH_H
17814 #include <math.h>
17815 #endif
17817 int (*ptr)() = (int (*)())atan2l;
17820 main ()
17822 return 0;
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 gcc_cv_math_func_atan2l=yes
17828 else
17829 gcc_cv_math_func_atan2l=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17835 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17836 if test $gcc_cv_math_func_atan2l = yes; then
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_ATAN2L 1
17840 _ACEOF
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17848 $as_echo_n "checking for atanf... " >&6; }
17849 if ${gcc_cv_math_func_atanf+:} false; then :
17850 $as_echo_n "(cached) " >&6
17851 else
17852 if test x$gcc_no_link = xyes; then
17853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17858 #ifdef HAVE_COMPLEX_H
17859 #include <complex.h>
17860 #endif
17861 #ifdef HAVE_MATH_H
17862 #include <math.h>
17863 #endif
17865 int (*ptr)() = (int (*)())atanf;
17868 main ()
17870 return 0;
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 gcc_cv_math_func_atanf=yes
17876 else
17877 gcc_cv_math_func_atanf=no
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17883 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17884 if test $gcc_cv_math_func_atanf = yes; then
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE_ATANF 1
17888 _ACEOF
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17896 $as_echo_n "checking for atan... " >&6; }
17897 if ${gcc_cv_math_func_atan+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 if test x$gcc_no_link = xyes; then
17901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17906 #ifdef HAVE_COMPLEX_H
17907 #include <complex.h>
17908 #endif
17909 #ifdef HAVE_MATH_H
17910 #include <math.h>
17911 #endif
17913 int (*ptr)() = (int (*)())atan;
17916 main ()
17918 return 0;
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"; then :
17923 gcc_cv_math_func_atan=yes
17924 else
17925 gcc_cv_math_func_atan=no
17927 rm -f core conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17931 $as_echo "$gcc_cv_math_func_atan" >&6; }
17932 if test $gcc_cv_math_func_atan = yes; then
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_ATAN 1
17936 _ACEOF
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17944 $as_echo_n "checking for atanl... " >&6; }
17945 if ${gcc_cv_math_func_atanl+:} false; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17948 if test x$gcc_no_link = xyes; then
17949 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17954 #ifdef HAVE_COMPLEX_H
17955 #include <complex.h>
17956 #endif
17957 #ifdef HAVE_MATH_H
17958 #include <math.h>
17959 #endif
17961 int (*ptr)() = (int (*)())atanl;
17964 main ()
17966 return 0;
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"; then :
17971 gcc_cv_math_func_atanl=yes
17972 else
17973 gcc_cv_math_func_atanl=no
17975 rm -f core conftest.err conftest.$ac_objext \
17976 conftest$ac_exeext conftest.$ac_ext
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17979 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17980 if test $gcc_cv_math_func_atanl = yes; then
17982 cat >>confdefs.h <<_ACEOF
17983 #define HAVE_ATANL 1
17984 _ACEOF
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17992 $as_echo_n "checking for atanhf... " >&6; }
17993 if ${gcc_cv_math_func_atanhf+:} false; then :
17994 $as_echo_n "(cached) " >&6
17995 else
17996 if test x$gcc_no_link = xyes; then
17997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 #ifdef HAVE_COMPLEX_H
18003 #include <complex.h>
18004 #endif
18005 #ifdef HAVE_MATH_H
18006 #include <math.h>
18007 #endif
18009 int (*ptr)() = (int (*)())atanhf;
18012 main ()
18014 return 0;
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 gcc_cv_math_func_atanhf=yes
18020 else
18021 gcc_cv_math_func_atanhf=no
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18027 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
18028 if test $gcc_cv_math_func_atanhf = yes; then
18030 cat >>confdefs.h <<_ACEOF
18031 #define HAVE_ATANHF 1
18032 _ACEOF
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18040 $as_echo_n "checking for atanh... " >&6; }
18041 if ${gcc_cv_math_func_atanh+:} false; then :
18042 $as_echo_n "(cached) " >&6
18043 else
18044 if test x$gcc_no_link = xyes; then
18045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18050 #ifdef HAVE_COMPLEX_H
18051 #include <complex.h>
18052 #endif
18053 #ifdef HAVE_MATH_H
18054 #include <math.h>
18055 #endif
18057 int (*ptr)() = (int (*)())atanh;
18060 main ()
18062 return 0;
18065 _ACEOF
18066 if ac_fn_c_try_link "$LINENO"; then :
18067 gcc_cv_math_func_atanh=yes
18068 else
18069 gcc_cv_math_func_atanh=no
18071 rm -f core conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18075 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18076 if test $gcc_cv_math_func_atanh = yes; then
18078 cat >>confdefs.h <<_ACEOF
18079 #define HAVE_ATANH 1
18080 _ACEOF
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18088 $as_echo_n "checking for atanhl... " >&6; }
18089 if ${gcc_cv_math_func_atanhl+:} false; then :
18090 $as_echo_n "(cached) " >&6
18091 else
18092 if test x$gcc_no_link = xyes; then
18093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 #ifdef HAVE_COMPLEX_H
18099 #include <complex.h>
18100 #endif
18101 #ifdef HAVE_MATH_H
18102 #include <math.h>
18103 #endif
18105 int (*ptr)() = (int (*)())atanhl;
18108 main ()
18110 return 0;
18113 _ACEOF
18114 if ac_fn_c_try_link "$LINENO"; then :
18115 gcc_cv_math_func_atanhl=yes
18116 else
18117 gcc_cv_math_func_atanhl=no
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18123 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18124 if test $gcc_cv_math_func_atanhl = yes; then
18126 cat >>confdefs.h <<_ACEOF
18127 #define HAVE_ATANHL 1
18128 _ACEOF
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18136 $as_echo_n "checking for cargf... " >&6; }
18137 if ${gcc_cv_math_func_cargf+:} false; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140 if test x$gcc_no_link = xyes; then
18141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18146 #ifdef HAVE_COMPLEX_H
18147 #include <complex.h>
18148 #endif
18149 #ifdef HAVE_MATH_H
18150 #include <math.h>
18151 #endif
18153 int (*ptr)() = (int (*)())cargf;
18156 main ()
18158 return 0;
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 gcc_cv_math_func_cargf=yes
18164 else
18165 gcc_cv_math_func_cargf=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18171 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18172 if test $gcc_cv_math_func_cargf = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175 #define HAVE_CARGF 1
18176 _ACEOF
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18184 $as_echo_n "checking for carg... " >&6; }
18185 if ${gcc_cv_math_func_carg+:} false; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 if test x$gcc_no_link = xyes; then
18189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18194 #ifdef HAVE_COMPLEX_H
18195 #include <complex.h>
18196 #endif
18197 #ifdef HAVE_MATH_H
18198 #include <math.h>
18199 #endif
18201 int (*ptr)() = (int (*)())carg;
18204 main ()
18206 return 0;
18209 _ACEOF
18210 if ac_fn_c_try_link "$LINENO"; then :
18211 gcc_cv_math_func_carg=yes
18212 else
18213 gcc_cv_math_func_carg=no
18215 rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18219 $as_echo "$gcc_cv_math_func_carg" >&6; }
18220 if test $gcc_cv_math_func_carg = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223 #define HAVE_CARG 1
18224 _ACEOF
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18232 $as_echo_n "checking for cargl... " >&6; }
18233 if ${gcc_cv_math_func_cargl+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 if test x$gcc_no_link = xyes; then
18237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18242 #ifdef HAVE_COMPLEX_H
18243 #include <complex.h>
18244 #endif
18245 #ifdef HAVE_MATH_H
18246 #include <math.h>
18247 #endif
18249 int (*ptr)() = (int (*)())cargl;
18252 main ()
18254 return 0;
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 gcc_cv_math_func_cargl=yes
18260 else
18261 gcc_cv_math_func_cargl=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18267 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18268 if test $gcc_cv_math_func_cargl = yes; then
18270 cat >>confdefs.h <<_ACEOF
18271 #define HAVE_CARGL 1
18272 _ACEOF
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18280 $as_echo_n "checking for ceilf... " >&6; }
18281 if ${gcc_cv_math_func_ceilf+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 if test x$gcc_no_link = xyes; then
18285 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18290 #ifdef HAVE_COMPLEX_H
18291 #include <complex.h>
18292 #endif
18293 #ifdef HAVE_MATH_H
18294 #include <math.h>
18295 #endif
18297 int (*ptr)() = (int (*)())ceilf;
18300 main ()
18302 return 0;
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"; then :
18307 gcc_cv_math_func_ceilf=yes
18308 else
18309 gcc_cv_math_func_ceilf=no
18311 rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18315 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18316 if test $gcc_cv_math_func_ceilf = yes; then
18318 cat >>confdefs.h <<_ACEOF
18319 #define HAVE_CEILF 1
18320 _ACEOF
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18328 $as_echo_n "checking for ceil... " >&6; }
18329 if ${gcc_cv_math_func_ceil+:} false; then :
18330 $as_echo_n "(cached) " >&6
18331 else
18332 if test x$gcc_no_link = xyes; then
18333 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18338 #ifdef HAVE_COMPLEX_H
18339 #include <complex.h>
18340 #endif
18341 #ifdef HAVE_MATH_H
18342 #include <math.h>
18343 #endif
18345 int (*ptr)() = (int (*)())ceil;
18348 main ()
18350 return 0;
18353 _ACEOF
18354 if ac_fn_c_try_link "$LINENO"; then :
18355 gcc_cv_math_func_ceil=yes
18356 else
18357 gcc_cv_math_func_ceil=no
18359 rm -f core conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18363 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18364 if test $gcc_cv_math_func_ceil = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define HAVE_CEIL 1
18368 _ACEOF
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18376 $as_echo_n "checking for ceill... " >&6; }
18377 if ${gcc_cv_math_func_ceill+:} false; then :
18378 $as_echo_n "(cached) " >&6
18379 else
18380 if test x$gcc_no_link = xyes; then
18381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18386 #ifdef HAVE_COMPLEX_H
18387 #include <complex.h>
18388 #endif
18389 #ifdef HAVE_MATH_H
18390 #include <math.h>
18391 #endif
18393 int (*ptr)() = (int (*)())ceill;
18396 main ()
18398 return 0;
18401 _ACEOF
18402 if ac_fn_c_try_link "$LINENO"; then :
18403 gcc_cv_math_func_ceill=yes
18404 else
18405 gcc_cv_math_func_ceill=no
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18411 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18412 if test $gcc_cv_math_func_ceill = yes; then
18414 cat >>confdefs.h <<_ACEOF
18415 #define HAVE_CEILL 1
18416 _ACEOF
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18424 $as_echo_n "checking for copysignf... " >&6; }
18425 if ${gcc_cv_math_func_copysignf+:} false; then :
18426 $as_echo_n "(cached) " >&6
18427 else
18428 if test x$gcc_no_link = xyes; then
18429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18434 #ifdef HAVE_COMPLEX_H
18435 #include <complex.h>
18436 #endif
18437 #ifdef HAVE_MATH_H
18438 #include <math.h>
18439 #endif
18441 int (*ptr)() = (int (*)())copysignf;
18444 main ()
18446 return 0;
18449 _ACEOF
18450 if ac_fn_c_try_link "$LINENO"; then :
18451 gcc_cv_math_func_copysignf=yes
18452 else
18453 gcc_cv_math_func_copysignf=no
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18459 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18460 if test $gcc_cv_math_func_copysignf = yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_COPYSIGNF 1
18464 _ACEOF
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18472 $as_echo_n "checking for copysign... " >&6; }
18473 if ${gcc_cv_math_func_copysign+:} false; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 if test x$gcc_no_link = xyes; then
18477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18482 #ifdef HAVE_COMPLEX_H
18483 #include <complex.h>
18484 #endif
18485 #ifdef HAVE_MATH_H
18486 #include <math.h>
18487 #endif
18489 int (*ptr)() = (int (*)())copysign;
18492 main ()
18494 return 0;
18497 _ACEOF
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 gcc_cv_math_func_copysign=yes
18500 else
18501 gcc_cv_math_func_copysign=no
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18507 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18508 if test $gcc_cv_math_func_copysign = yes; then
18510 cat >>confdefs.h <<_ACEOF
18511 #define HAVE_COPYSIGN 1
18512 _ACEOF
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18520 $as_echo_n "checking for copysignl... " >&6; }
18521 if ${gcc_cv_math_func_copysignl+:} false; then :
18522 $as_echo_n "(cached) " >&6
18523 else
18524 if test x$gcc_no_link = xyes; then
18525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18530 #ifdef HAVE_COMPLEX_H
18531 #include <complex.h>
18532 #endif
18533 #ifdef HAVE_MATH_H
18534 #include <math.h>
18535 #endif
18537 int (*ptr)() = (int (*)())copysignl;
18540 main ()
18542 return 0;
18545 _ACEOF
18546 if ac_fn_c_try_link "$LINENO"; then :
18547 gcc_cv_math_func_copysignl=yes
18548 else
18549 gcc_cv_math_func_copysignl=no
18551 rm -f core conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18555 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18556 if test $gcc_cv_math_func_copysignl = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define HAVE_COPYSIGNL 1
18560 _ACEOF
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18568 $as_echo_n "checking for cosf... " >&6; }
18569 if ${gcc_cv_math_func_cosf+:} false; then :
18570 $as_echo_n "(cached) " >&6
18571 else
18572 if test x$gcc_no_link = xyes; then
18573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576 /* end confdefs.h. */
18578 #ifdef HAVE_COMPLEX_H
18579 #include <complex.h>
18580 #endif
18581 #ifdef HAVE_MATH_H
18582 #include <math.h>
18583 #endif
18585 int (*ptr)() = (int (*)())cosf;
18588 main ()
18590 return 0;
18593 _ACEOF
18594 if ac_fn_c_try_link "$LINENO"; then :
18595 gcc_cv_math_func_cosf=yes
18596 else
18597 gcc_cv_math_func_cosf=no
18599 rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18603 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18604 if test $gcc_cv_math_func_cosf = yes; then
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_COSF 1
18608 _ACEOF
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18616 $as_echo_n "checking for cos... " >&6; }
18617 if ${gcc_cv_math_func_cos+:} false; then :
18618 $as_echo_n "(cached) " >&6
18619 else
18620 if test x$gcc_no_link = xyes; then
18621 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18626 #ifdef HAVE_COMPLEX_H
18627 #include <complex.h>
18628 #endif
18629 #ifdef HAVE_MATH_H
18630 #include <math.h>
18631 #endif
18633 int (*ptr)() = (int (*)())cos;
18636 main ()
18638 return 0;
18641 _ACEOF
18642 if ac_fn_c_try_link "$LINENO"; then :
18643 gcc_cv_math_func_cos=yes
18644 else
18645 gcc_cv_math_func_cos=no
18647 rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18651 $as_echo "$gcc_cv_math_func_cos" >&6; }
18652 if test $gcc_cv_math_func_cos = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define HAVE_COS 1
18656 _ACEOF
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18664 $as_echo_n "checking for cosl... " >&6; }
18665 if ${gcc_cv_math_func_cosl+:} false; then :
18666 $as_echo_n "(cached) " >&6
18667 else
18668 if test x$gcc_no_link = xyes; then
18669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h. */
18674 #ifdef HAVE_COMPLEX_H
18675 #include <complex.h>
18676 #endif
18677 #ifdef HAVE_MATH_H
18678 #include <math.h>
18679 #endif
18681 int (*ptr)() = (int (*)())cosl;
18684 main ()
18686 return 0;
18689 _ACEOF
18690 if ac_fn_c_try_link "$LINENO"; then :
18691 gcc_cv_math_func_cosl=yes
18692 else
18693 gcc_cv_math_func_cosl=no
18695 rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18699 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18700 if test $gcc_cv_math_func_cosl = yes; then
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_COSL 1
18704 _ACEOF
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18712 $as_echo_n "checking for ccosf... " >&6; }
18713 if ${gcc_cv_math_func_ccosf+:} false; then :
18714 $as_echo_n "(cached) " >&6
18715 else
18716 if test x$gcc_no_link = xyes; then
18717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18722 #ifdef HAVE_COMPLEX_H
18723 #include <complex.h>
18724 #endif
18725 #ifdef HAVE_MATH_H
18726 #include <math.h>
18727 #endif
18729 int (*ptr)() = (int (*)())ccosf;
18732 main ()
18734 return 0;
18737 _ACEOF
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 gcc_cv_math_func_ccosf=yes
18740 else
18741 gcc_cv_math_func_ccosf=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18747 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18748 if test $gcc_cv_math_func_ccosf = yes; then
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_CCOSF 1
18752 _ACEOF
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18760 $as_echo_n "checking for ccos... " >&6; }
18761 if ${gcc_cv_math_func_ccos+:} false; then :
18762 $as_echo_n "(cached) " >&6
18763 else
18764 if test x$gcc_no_link = xyes; then
18765 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h. */
18770 #ifdef HAVE_COMPLEX_H
18771 #include <complex.h>
18772 #endif
18773 #ifdef HAVE_MATH_H
18774 #include <math.h>
18775 #endif
18777 int (*ptr)() = (int (*)())ccos;
18780 main ()
18782 return 0;
18785 _ACEOF
18786 if ac_fn_c_try_link "$LINENO"; then :
18787 gcc_cv_math_func_ccos=yes
18788 else
18789 gcc_cv_math_func_ccos=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18795 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18796 if test $gcc_cv_math_func_ccos = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_CCOS 1
18800 _ACEOF
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18808 $as_echo_n "checking for ccosl... " >&6; }
18809 if ${gcc_cv_math_func_ccosl+:} false; then :
18810 $as_echo_n "(cached) " >&6
18811 else
18812 if test x$gcc_no_link = xyes; then
18813 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18818 #ifdef HAVE_COMPLEX_H
18819 #include <complex.h>
18820 #endif
18821 #ifdef HAVE_MATH_H
18822 #include <math.h>
18823 #endif
18825 int (*ptr)() = (int (*)())ccosl;
18828 main ()
18830 return 0;
18833 _ACEOF
18834 if ac_fn_c_try_link "$LINENO"; then :
18835 gcc_cv_math_func_ccosl=yes
18836 else
18837 gcc_cv_math_func_ccosl=no
18839 rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18843 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18844 if test $gcc_cv_math_func_ccosl = yes; then
18846 cat >>confdefs.h <<_ACEOF
18847 #define HAVE_CCOSL 1
18848 _ACEOF
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18856 $as_echo_n "checking for coshf... " >&6; }
18857 if ${gcc_cv_math_func_coshf+:} false; then :
18858 $as_echo_n "(cached) " >&6
18859 else
18860 if test x$gcc_no_link = xyes; then
18861 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18866 #ifdef HAVE_COMPLEX_H
18867 #include <complex.h>
18868 #endif
18869 #ifdef HAVE_MATH_H
18870 #include <math.h>
18871 #endif
18873 int (*ptr)() = (int (*)())coshf;
18876 main ()
18878 return 0;
18881 _ACEOF
18882 if ac_fn_c_try_link "$LINENO"; then :
18883 gcc_cv_math_func_coshf=yes
18884 else
18885 gcc_cv_math_func_coshf=no
18887 rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18891 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18892 if test $gcc_cv_math_func_coshf = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895 #define HAVE_COSHF 1
18896 _ACEOF
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18904 $as_echo_n "checking for cosh... " >&6; }
18905 if ${gcc_cv_math_func_cosh+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907 else
18908 if test x$gcc_no_link = xyes; then
18909 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h. */
18914 #ifdef HAVE_COMPLEX_H
18915 #include <complex.h>
18916 #endif
18917 #ifdef HAVE_MATH_H
18918 #include <math.h>
18919 #endif
18921 int (*ptr)() = (int (*)())cosh;
18924 main ()
18926 return 0;
18929 _ACEOF
18930 if ac_fn_c_try_link "$LINENO"; then :
18931 gcc_cv_math_func_cosh=yes
18932 else
18933 gcc_cv_math_func_cosh=no
18935 rm -f core conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext conftest.$ac_ext
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18939 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18940 if test $gcc_cv_math_func_cosh = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_COSH 1
18944 _ACEOF
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18952 $as_echo_n "checking for coshl... " >&6; }
18953 if ${gcc_cv_math_func_coshl+:} false; then :
18954 $as_echo_n "(cached) " >&6
18955 else
18956 if test x$gcc_no_link = xyes; then
18957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18962 #ifdef HAVE_COMPLEX_H
18963 #include <complex.h>
18964 #endif
18965 #ifdef HAVE_MATH_H
18966 #include <math.h>
18967 #endif
18969 int (*ptr)() = (int (*)())coshl;
18972 main ()
18974 return 0;
18977 _ACEOF
18978 if ac_fn_c_try_link "$LINENO"; then :
18979 gcc_cv_math_func_coshl=yes
18980 else
18981 gcc_cv_math_func_coshl=no
18983 rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18987 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18988 if test $gcc_cv_math_func_coshl = yes; then
18990 cat >>confdefs.h <<_ACEOF
18991 #define HAVE_COSHL 1
18992 _ACEOF
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19000 $as_echo_n "checking for ccoshf... " >&6; }
19001 if ${gcc_cv_math_func_ccoshf+:} false; then :
19002 $as_echo_n "(cached) " >&6
19003 else
19004 if test x$gcc_no_link = xyes; then
19005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19010 #ifdef HAVE_COMPLEX_H
19011 #include <complex.h>
19012 #endif
19013 #ifdef HAVE_MATH_H
19014 #include <math.h>
19015 #endif
19017 int (*ptr)() = (int (*)())ccoshf;
19020 main ()
19022 return 0;
19025 _ACEOF
19026 if ac_fn_c_try_link "$LINENO"; then :
19027 gcc_cv_math_func_ccoshf=yes
19028 else
19029 gcc_cv_math_func_ccoshf=no
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19035 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19036 if test $gcc_cv_math_func_ccoshf = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define HAVE_CCOSHF 1
19040 _ACEOF
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19048 $as_echo_n "checking for ccosh... " >&6; }
19049 if ${gcc_cv_math_func_ccosh+:} false; then :
19050 $as_echo_n "(cached) " >&6
19051 else
19052 if test x$gcc_no_link = xyes; then
19053 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056 /* end confdefs.h. */
19058 #ifdef HAVE_COMPLEX_H
19059 #include <complex.h>
19060 #endif
19061 #ifdef HAVE_MATH_H
19062 #include <math.h>
19063 #endif
19065 int (*ptr)() = (int (*)())ccosh;
19068 main ()
19070 return 0;
19073 _ACEOF
19074 if ac_fn_c_try_link "$LINENO"; then :
19075 gcc_cv_math_func_ccosh=yes
19076 else
19077 gcc_cv_math_func_ccosh=no
19079 rm -f core conftest.err conftest.$ac_objext \
19080 conftest$ac_exeext conftest.$ac_ext
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19083 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19084 if test $gcc_cv_math_func_ccosh = yes; then
19086 cat >>confdefs.h <<_ACEOF
19087 #define HAVE_CCOSH 1
19088 _ACEOF
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19096 $as_echo_n "checking for ccoshl... " >&6; }
19097 if ${gcc_cv_math_func_ccoshl+:} false; then :
19098 $as_echo_n "(cached) " >&6
19099 else
19100 if test x$gcc_no_link = xyes; then
19101 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19106 #ifdef HAVE_COMPLEX_H
19107 #include <complex.h>
19108 #endif
19109 #ifdef HAVE_MATH_H
19110 #include <math.h>
19111 #endif
19113 int (*ptr)() = (int (*)())ccoshl;
19116 main ()
19118 return 0;
19121 _ACEOF
19122 if ac_fn_c_try_link "$LINENO"; then :
19123 gcc_cv_math_func_ccoshl=yes
19124 else
19125 gcc_cv_math_func_ccoshl=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19131 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19132 if test $gcc_cv_math_func_ccoshl = yes; then
19134 cat >>confdefs.h <<_ACEOF
19135 #define HAVE_CCOSHL 1
19136 _ACEOF
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19144 $as_echo_n "checking for expf... " >&6; }
19145 if ${gcc_cv_math_func_expf+:} false; then :
19146 $as_echo_n "(cached) " >&6
19147 else
19148 if test x$gcc_no_link = xyes; then
19149 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19154 #ifdef HAVE_COMPLEX_H
19155 #include <complex.h>
19156 #endif
19157 #ifdef HAVE_MATH_H
19158 #include <math.h>
19159 #endif
19161 int (*ptr)() = (int (*)())expf;
19164 main ()
19166 return 0;
19169 _ACEOF
19170 if ac_fn_c_try_link "$LINENO"; then :
19171 gcc_cv_math_func_expf=yes
19172 else
19173 gcc_cv_math_func_expf=no
19175 rm -f core conftest.err conftest.$ac_objext \
19176 conftest$ac_exeext conftest.$ac_ext
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19179 $as_echo "$gcc_cv_math_func_expf" >&6; }
19180 if test $gcc_cv_math_func_expf = yes; then
19182 cat >>confdefs.h <<_ACEOF
19183 #define HAVE_EXPF 1
19184 _ACEOF
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19192 $as_echo_n "checking for exp... " >&6; }
19193 if ${gcc_cv_math_func_exp+:} false; then :
19194 $as_echo_n "(cached) " >&6
19195 else
19196 if test x$gcc_no_link = xyes; then
19197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19202 #ifdef HAVE_COMPLEX_H
19203 #include <complex.h>
19204 #endif
19205 #ifdef HAVE_MATH_H
19206 #include <math.h>
19207 #endif
19209 int (*ptr)() = (int (*)())exp;
19212 main ()
19214 return 0;
19217 _ACEOF
19218 if ac_fn_c_try_link "$LINENO"; then :
19219 gcc_cv_math_func_exp=yes
19220 else
19221 gcc_cv_math_func_exp=no
19223 rm -f core conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19227 $as_echo "$gcc_cv_math_func_exp" >&6; }
19228 if test $gcc_cv_math_func_exp = yes; then
19230 cat >>confdefs.h <<_ACEOF
19231 #define HAVE_EXP 1
19232 _ACEOF
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19240 $as_echo_n "checking for expl... " >&6; }
19241 if ${gcc_cv_math_func_expl+:} false; then :
19242 $as_echo_n "(cached) " >&6
19243 else
19244 if test x$gcc_no_link = xyes; then
19245 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h. */
19250 #ifdef HAVE_COMPLEX_H
19251 #include <complex.h>
19252 #endif
19253 #ifdef HAVE_MATH_H
19254 #include <math.h>
19255 #endif
19257 int (*ptr)() = (int (*)())expl;
19260 main ()
19262 return 0;
19265 _ACEOF
19266 if ac_fn_c_try_link "$LINENO"; then :
19267 gcc_cv_math_func_expl=yes
19268 else
19269 gcc_cv_math_func_expl=no
19271 rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19275 $as_echo "$gcc_cv_math_func_expl" >&6; }
19276 if test $gcc_cv_math_func_expl = yes; then
19278 cat >>confdefs.h <<_ACEOF
19279 #define HAVE_EXPL 1
19280 _ACEOF
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19288 $as_echo_n "checking for cexpf... " >&6; }
19289 if ${gcc_cv_math_func_cexpf+:} false; then :
19290 $as_echo_n "(cached) " >&6
19291 else
19292 if test x$gcc_no_link = xyes; then
19293 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19298 #ifdef HAVE_COMPLEX_H
19299 #include <complex.h>
19300 #endif
19301 #ifdef HAVE_MATH_H
19302 #include <math.h>
19303 #endif
19305 int (*ptr)() = (int (*)())cexpf;
19308 main ()
19310 return 0;
19313 _ACEOF
19314 if ac_fn_c_try_link "$LINENO"; then :
19315 gcc_cv_math_func_cexpf=yes
19316 else
19317 gcc_cv_math_func_cexpf=no
19319 rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19323 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19324 if test $gcc_cv_math_func_cexpf = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_CEXPF 1
19328 _ACEOF
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19336 $as_echo_n "checking for cexp... " >&6; }
19337 if ${gcc_cv_math_func_cexp+:} false; then :
19338 $as_echo_n "(cached) " >&6
19339 else
19340 if test x$gcc_no_link = xyes; then
19341 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 #ifdef HAVE_COMPLEX_H
19347 #include <complex.h>
19348 #endif
19349 #ifdef HAVE_MATH_H
19350 #include <math.h>
19351 #endif
19353 int (*ptr)() = (int (*)())cexp;
19356 main ()
19358 return 0;
19361 _ACEOF
19362 if ac_fn_c_try_link "$LINENO"; then :
19363 gcc_cv_math_func_cexp=yes
19364 else
19365 gcc_cv_math_func_cexp=no
19367 rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19371 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19372 if test $gcc_cv_math_func_cexp = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_CEXP 1
19376 _ACEOF
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19384 $as_echo_n "checking for cexpl... " >&6; }
19385 if ${gcc_cv_math_func_cexpl+:} false; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 if test x$gcc_no_link = xyes; then
19389 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19394 #ifdef HAVE_COMPLEX_H
19395 #include <complex.h>
19396 #endif
19397 #ifdef HAVE_MATH_H
19398 #include <math.h>
19399 #endif
19401 int (*ptr)() = (int (*)())cexpl;
19404 main ()
19406 return 0;
19409 _ACEOF
19410 if ac_fn_c_try_link "$LINENO"; then :
19411 gcc_cv_math_func_cexpl=yes
19412 else
19413 gcc_cv_math_func_cexpl=no
19415 rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19419 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19420 if test $gcc_cv_math_func_cexpl = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_CEXPL 1
19424 _ACEOF
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19432 $as_echo_n "checking for fabsf... " >&6; }
19433 if ${gcc_cv_math_func_fabsf+:} false; then :
19434 $as_echo_n "(cached) " >&6
19435 else
19436 if test x$gcc_no_link = xyes; then
19437 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 #ifdef HAVE_COMPLEX_H
19443 #include <complex.h>
19444 #endif
19445 #ifdef HAVE_MATH_H
19446 #include <math.h>
19447 #endif
19449 int (*ptr)() = (int (*)())fabsf;
19452 main ()
19454 return 0;
19457 _ACEOF
19458 if ac_fn_c_try_link "$LINENO"; then :
19459 gcc_cv_math_func_fabsf=yes
19460 else
19461 gcc_cv_math_func_fabsf=no
19463 rm -f core conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19467 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19468 if test $gcc_cv_math_func_fabsf = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define HAVE_FABSF 1
19472 _ACEOF
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19480 $as_echo_n "checking for fabs... " >&6; }
19481 if ${gcc_cv_math_func_fabs+:} false; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 if test x$gcc_no_link = xyes; then
19485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488 /* end confdefs.h. */
19490 #ifdef HAVE_COMPLEX_H
19491 #include <complex.h>
19492 #endif
19493 #ifdef HAVE_MATH_H
19494 #include <math.h>
19495 #endif
19497 int (*ptr)() = (int (*)())fabs;
19500 main ()
19502 return 0;
19505 _ACEOF
19506 if ac_fn_c_try_link "$LINENO"; then :
19507 gcc_cv_math_func_fabs=yes
19508 else
19509 gcc_cv_math_func_fabs=no
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19515 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19516 if test $gcc_cv_math_func_fabs = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519 #define HAVE_FABS 1
19520 _ACEOF
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19528 $as_echo_n "checking for fabsl... " >&6; }
19529 if ${gcc_cv_math_func_fabsl+:} false; then :
19530 $as_echo_n "(cached) " >&6
19531 else
19532 if test x$gcc_no_link = xyes; then
19533 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19538 #ifdef HAVE_COMPLEX_H
19539 #include <complex.h>
19540 #endif
19541 #ifdef HAVE_MATH_H
19542 #include <math.h>
19543 #endif
19545 int (*ptr)() = (int (*)())fabsl;
19548 main ()
19550 return 0;
19553 _ACEOF
19554 if ac_fn_c_try_link "$LINENO"; then :
19555 gcc_cv_math_func_fabsl=yes
19556 else
19557 gcc_cv_math_func_fabsl=no
19559 rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19563 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19564 if test $gcc_cv_math_func_fabsl = yes; then
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_FABSL 1
19568 _ACEOF
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19576 $as_echo_n "checking for cabsf... " >&6; }
19577 if ${gcc_cv_math_func_cabsf+:} false; then :
19578 $as_echo_n "(cached) " >&6
19579 else
19580 if test x$gcc_no_link = xyes; then
19581 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19584 /* end confdefs.h. */
19586 #ifdef HAVE_COMPLEX_H
19587 #include <complex.h>
19588 #endif
19589 #ifdef HAVE_MATH_H
19590 #include <math.h>
19591 #endif
19593 int (*ptr)() = (int (*)())cabsf;
19596 main ()
19598 return 0;
19601 _ACEOF
19602 if ac_fn_c_try_link "$LINENO"; then :
19603 gcc_cv_math_func_cabsf=yes
19604 else
19605 gcc_cv_math_func_cabsf=no
19607 rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19611 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19612 if test $gcc_cv_math_func_cabsf = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_CABSF 1
19616 _ACEOF
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19624 $as_echo_n "checking for cabs... " >&6; }
19625 if ${gcc_cv_math_func_cabs+:} false; then :
19626 $as_echo_n "(cached) " >&6
19627 else
19628 if test x$gcc_no_link = xyes; then
19629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h. */
19634 #ifdef HAVE_COMPLEX_H
19635 #include <complex.h>
19636 #endif
19637 #ifdef HAVE_MATH_H
19638 #include <math.h>
19639 #endif
19641 int (*ptr)() = (int (*)())cabs;
19644 main ()
19646 return 0;
19649 _ACEOF
19650 if ac_fn_c_try_link "$LINENO"; then :
19651 gcc_cv_math_func_cabs=yes
19652 else
19653 gcc_cv_math_func_cabs=no
19655 rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19659 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19660 if test $gcc_cv_math_func_cabs = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663 #define HAVE_CABS 1
19664 _ACEOF
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19672 $as_echo_n "checking for cabsl... " >&6; }
19673 if ${gcc_cv_math_func_cabsl+:} false; then :
19674 $as_echo_n "(cached) " >&6
19675 else
19676 if test x$gcc_no_link = xyes; then
19677 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19682 #ifdef HAVE_COMPLEX_H
19683 #include <complex.h>
19684 #endif
19685 #ifdef HAVE_MATH_H
19686 #include <math.h>
19687 #endif
19689 int (*ptr)() = (int (*)())cabsl;
19692 main ()
19694 return 0;
19697 _ACEOF
19698 if ac_fn_c_try_link "$LINENO"; then :
19699 gcc_cv_math_func_cabsl=yes
19700 else
19701 gcc_cv_math_func_cabsl=no
19703 rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19707 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19708 if test $gcc_cv_math_func_cabsl = yes; then
19710 cat >>confdefs.h <<_ACEOF
19711 #define HAVE_CABSL 1
19712 _ACEOF
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19720 $as_echo_n "checking for floorf... " >&6; }
19721 if ${gcc_cv_math_func_floorf+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19724 if test x$gcc_no_link = xyes; then
19725 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19728 /* end confdefs.h. */
19730 #ifdef HAVE_COMPLEX_H
19731 #include <complex.h>
19732 #endif
19733 #ifdef HAVE_MATH_H
19734 #include <math.h>
19735 #endif
19737 int (*ptr)() = (int (*)())floorf;
19740 main ()
19742 return 0;
19745 _ACEOF
19746 if ac_fn_c_try_link "$LINENO"; then :
19747 gcc_cv_math_func_floorf=yes
19748 else
19749 gcc_cv_math_func_floorf=no
19751 rm -f core conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19755 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19756 if test $gcc_cv_math_func_floorf = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759 #define HAVE_FLOORF 1
19760 _ACEOF
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19768 $as_echo_n "checking for floor... " >&6; }
19769 if ${gcc_cv_math_func_floor+:} false; then :
19770 $as_echo_n "(cached) " >&6
19771 else
19772 if test x$gcc_no_link = xyes; then
19773 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h. */
19778 #ifdef HAVE_COMPLEX_H
19779 #include <complex.h>
19780 #endif
19781 #ifdef HAVE_MATH_H
19782 #include <math.h>
19783 #endif
19785 int (*ptr)() = (int (*)())floor;
19788 main ()
19790 return 0;
19793 _ACEOF
19794 if ac_fn_c_try_link "$LINENO"; then :
19795 gcc_cv_math_func_floor=yes
19796 else
19797 gcc_cv_math_func_floor=no
19799 rm -f core conftest.err conftest.$ac_objext \
19800 conftest$ac_exeext conftest.$ac_ext
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19803 $as_echo "$gcc_cv_math_func_floor" >&6; }
19804 if test $gcc_cv_math_func_floor = yes; then
19806 cat >>confdefs.h <<_ACEOF
19807 #define HAVE_FLOOR 1
19808 _ACEOF
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19816 $as_echo_n "checking for floorl... " >&6; }
19817 if ${gcc_cv_math_func_floorl+:} false; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 if test x$gcc_no_link = xyes; then
19821 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h. */
19826 #ifdef HAVE_COMPLEX_H
19827 #include <complex.h>
19828 #endif
19829 #ifdef HAVE_MATH_H
19830 #include <math.h>
19831 #endif
19833 int (*ptr)() = (int (*)())floorl;
19836 main ()
19838 return 0;
19841 _ACEOF
19842 if ac_fn_c_try_link "$LINENO"; then :
19843 gcc_cv_math_func_floorl=yes
19844 else
19845 gcc_cv_math_func_floorl=no
19847 rm -f core conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19851 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19852 if test $gcc_cv_math_func_floorl = yes; then
19854 cat >>confdefs.h <<_ACEOF
19855 #define HAVE_FLOORL 1
19856 _ACEOF
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19864 $as_echo_n "checking for fmaf... " >&6; }
19865 if ${gcc_cv_math_func_fmaf+:} false; then :
19866 $as_echo_n "(cached) " >&6
19867 else
19868 if test x$gcc_no_link = xyes; then
19869 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19874 #ifdef HAVE_COMPLEX_H
19875 #include <complex.h>
19876 #endif
19877 #ifdef HAVE_MATH_H
19878 #include <math.h>
19879 #endif
19881 int (*ptr)() = (int (*)())fmaf;
19884 main ()
19886 return 0;
19889 _ACEOF
19890 if ac_fn_c_try_link "$LINENO"; then :
19891 gcc_cv_math_func_fmaf=yes
19892 else
19893 gcc_cv_math_func_fmaf=no
19895 rm -f core conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
19899 $as_echo "$gcc_cv_math_func_fmaf" >&6; }
19900 if test $gcc_cv_math_func_fmaf = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_FMAF 1
19904 _ACEOF
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
19912 $as_echo_n "checking for fma... " >&6; }
19913 if ${gcc_cv_math_func_fma+:} false; then :
19914 $as_echo_n "(cached) " >&6
19915 else
19916 if test x$gcc_no_link = xyes; then
19917 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19922 #ifdef HAVE_COMPLEX_H
19923 #include <complex.h>
19924 #endif
19925 #ifdef HAVE_MATH_H
19926 #include <math.h>
19927 #endif
19929 int (*ptr)() = (int (*)())fma;
19932 main ()
19934 return 0;
19937 _ACEOF
19938 if ac_fn_c_try_link "$LINENO"; then :
19939 gcc_cv_math_func_fma=yes
19940 else
19941 gcc_cv_math_func_fma=no
19943 rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
19947 $as_echo "$gcc_cv_math_func_fma" >&6; }
19948 if test $gcc_cv_math_func_fma = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_FMA 1
19952 _ACEOF
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
19960 $as_echo_n "checking for fmal... " >&6; }
19961 if ${gcc_cv_math_func_fmal+:} false; then :
19962 $as_echo_n "(cached) " >&6
19963 else
19964 if test x$gcc_no_link = xyes; then
19965 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 #ifdef HAVE_COMPLEX_H
19971 #include <complex.h>
19972 #endif
19973 #ifdef HAVE_MATH_H
19974 #include <math.h>
19975 #endif
19977 int (*ptr)() = (int (*)())fmal;
19980 main ()
19982 return 0;
19985 _ACEOF
19986 if ac_fn_c_try_link "$LINENO"; then :
19987 gcc_cv_math_func_fmal=yes
19988 else
19989 gcc_cv_math_func_fmal=no
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
19995 $as_echo "$gcc_cv_math_func_fmal" >&6; }
19996 if test $gcc_cv_math_func_fmal = yes; then
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_FMAL 1
20000 _ACEOF
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20008 $as_echo_n "checking for fmodf... " >&6; }
20009 if ${gcc_cv_math_func_fmodf+:} false; then :
20010 $as_echo_n "(cached) " >&6
20011 else
20012 if test x$gcc_no_link = xyes; then
20013 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h. */
20018 #ifdef HAVE_COMPLEX_H
20019 #include <complex.h>
20020 #endif
20021 #ifdef HAVE_MATH_H
20022 #include <math.h>
20023 #endif
20025 int (*ptr)() = (int (*)())fmodf;
20028 main ()
20030 return 0;
20033 _ACEOF
20034 if ac_fn_c_try_link "$LINENO"; then :
20035 gcc_cv_math_func_fmodf=yes
20036 else
20037 gcc_cv_math_func_fmodf=no
20039 rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20043 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
20044 if test $gcc_cv_math_func_fmodf = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047 #define HAVE_FMODF 1
20048 _ACEOF
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20056 $as_echo_n "checking for fmod... " >&6; }
20057 if ${gcc_cv_math_func_fmod+:} false; then :
20058 $as_echo_n "(cached) " >&6
20059 else
20060 if test x$gcc_no_link = xyes; then
20061 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20066 #ifdef HAVE_COMPLEX_H
20067 #include <complex.h>
20068 #endif
20069 #ifdef HAVE_MATH_H
20070 #include <math.h>
20071 #endif
20073 int (*ptr)() = (int (*)())fmod;
20076 main ()
20078 return 0;
20081 _ACEOF
20082 if ac_fn_c_try_link "$LINENO"; then :
20083 gcc_cv_math_func_fmod=yes
20084 else
20085 gcc_cv_math_func_fmod=no
20087 rm -f core conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext conftest.$ac_ext
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20091 $as_echo "$gcc_cv_math_func_fmod" >&6; }
20092 if test $gcc_cv_math_func_fmod = yes; then
20094 cat >>confdefs.h <<_ACEOF
20095 #define HAVE_FMOD 1
20096 _ACEOF
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20104 $as_echo_n "checking for fmodl... " >&6; }
20105 if ${gcc_cv_math_func_fmodl+:} false; then :
20106 $as_echo_n "(cached) " >&6
20107 else
20108 if test x$gcc_no_link = xyes; then
20109 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h. */
20114 #ifdef HAVE_COMPLEX_H
20115 #include <complex.h>
20116 #endif
20117 #ifdef HAVE_MATH_H
20118 #include <math.h>
20119 #endif
20121 int (*ptr)() = (int (*)())fmodl;
20124 main ()
20126 return 0;
20129 _ACEOF
20130 if ac_fn_c_try_link "$LINENO"; then :
20131 gcc_cv_math_func_fmodl=yes
20132 else
20133 gcc_cv_math_func_fmodl=no
20135 rm -f core conftest.err conftest.$ac_objext \
20136 conftest$ac_exeext conftest.$ac_ext
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20139 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
20140 if test $gcc_cv_math_func_fmodl = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_FMODL 1
20144 _ACEOF
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20152 $as_echo_n "checking for frexpf... " >&6; }
20153 if ${gcc_cv_math_func_frexpf+:} false; then :
20154 $as_echo_n "(cached) " >&6
20155 else
20156 if test x$gcc_no_link = xyes; then
20157 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20162 #ifdef HAVE_COMPLEX_H
20163 #include <complex.h>
20164 #endif
20165 #ifdef HAVE_MATH_H
20166 #include <math.h>
20167 #endif
20169 int (*ptr)() = (int (*)())frexpf;
20172 main ()
20174 return 0;
20177 _ACEOF
20178 if ac_fn_c_try_link "$LINENO"; then :
20179 gcc_cv_math_func_frexpf=yes
20180 else
20181 gcc_cv_math_func_frexpf=no
20183 rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20187 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20188 if test $gcc_cv_math_func_frexpf = yes; then
20190 cat >>confdefs.h <<_ACEOF
20191 #define HAVE_FREXPF 1
20192 _ACEOF
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20200 $as_echo_n "checking for frexp... " >&6; }
20201 if ${gcc_cv_math_func_frexp+:} false; then :
20202 $as_echo_n "(cached) " >&6
20203 else
20204 if test x$gcc_no_link = xyes; then
20205 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h. */
20210 #ifdef HAVE_COMPLEX_H
20211 #include <complex.h>
20212 #endif
20213 #ifdef HAVE_MATH_H
20214 #include <math.h>
20215 #endif
20217 int (*ptr)() = (int (*)())frexp;
20220 main ()
20222 return 0;
20225 _ACEOF
20226 if ac_fn_c_try_link "$LINENO"; then :
20227 gcc_cv_math_func_frexp=yes
20228 else
20229 gcc_cv_math_func_frexp=no
20231 rm -f core conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20235 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20236 if test $gcc_cv_math_func_frexp = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_FREXP 1
20240 _ACEOF
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20248 $as_echo_n "checking for frexpl... " >&6; }
20249 if ${gcc_cv_math_func_frexpl+:} false; then :
20250 $as_echo_n "(cached) " >&6
20251 else
20252 if test x$gcc_no_link = xyes; then
20253 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20258 #ifdef HAVE_COMPLEX_H
20259 #include <complex.h>
20260 #endif
20261 #ifdef HAVE_MATH_H
20262 #include <math.h>
20263 #endif
20265 int (*ptr)() = (int (*)())frexpl;
20268 main ()
20270 return 0;
20273 _ACEOF
20274 if ac_fn_c_try_link "$LINENO"; then :
20275 gcc_cv_math_func_frexpl=yes
20276 else
20277 gcc_cv_math_func_frexpl=no
20279 rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20283 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20284 if test $gcc_cv_math_func_frexpl = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_FREXPL 1
20288 _ACEOF
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20296 $as_echo_n "checking for hypotf... " >&6; }
20297 if ${gcc_cv_math_func_hypotf+:} false; then :
20298 $as_echo_n "(cached) " >&6
20299 else
20300 if test x$gcc_no_link = xyes; then
20301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h. */
20306 #ifdef HAVE_COMPLEX_H
20307 #include <complex.h>
20308 #endif
20309 #ifdef HAVE_MATH_H
20310 #include <math.h>
20311 #endif
20313 int (*ptr)() = (int (*)())hypotf;
20316 main ()
20318 return 0;
20321 _ACEOF
20322 if ac_fn_c_try_link "$LINENO"; then :
20323 gcc_cv_math_func_hypotf=yes
20324 else
20325 gcc_cv_math_func_hypotf=no
20327 rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext conftest.$ac_ext
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20331 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20332 if test $gcc_cv_math_func_hypotf = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define HAVE_HYPOTF 1
20336 _ACEOF
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20344 $as_echo_n "checking for hypot... " >&6; }
20345 if ${gcc_cv_math_func_hypot+:} false; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 if test x$gcc_no_link = xyes; then
20349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20354 #ifdef HAVE_COMPLEX_H
20355 #include <complex.h>
20356 #endif
20357 #ifdef HAVE_MATH_H
20358 #include <math.h>
20359 #endif
20361 int (*ptr)() = (int (*)())hypot;
20364 main ()
20366 return 0;
20369 _ACEOF
20370 if ac_fn_c_try_link "$LINENO"; then :
20371 gcc_cv_math_func_hypot=yes
20372 else
20373 gcc_cv_math_func_hypot=no
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20379 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20380 if test $gcc_cv_math_func_hypot = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define HAVE_HYPOT 1
20384 _ACEOF
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20392 $as_echo_n "checking for hypotl... " >&6; }
20393 if ${gcc_cv_math_func_hypotl+:} false; then :
20394 $as_echo_n "(cached) " >&6
20395 else
20396 if test x$gcc_no_link = xyes; then
20397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20402 #ifdef HAVE_COMPLEX_H
20403 #include <complex.h>
20404 #endif
20405 #ifdef HAVE_MATH_H
20406 #include <math.h>
20407 #endif
20409 int (*ptr)() = (int (*)())hypotl;
20412 main ()
20414 return 0;
20417 _ACEOF
20418 if ac_fn_c_try_link "$LINENO"; then :
20419 gcc_cv_math_func_hypotl=yes
20420 else
20421 gcc_cv_math_func_hypotl=no
20423 rm -f core conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20427 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20428 if test $gcc_cv_math_func_hypotl = yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define HAVE_HYPOTL 1
20432 _ACEOF
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20440 $as_echo_n "checking for ldexpf... " >&6; }
20441 if ${gcc_cv_math_func_ldexpf+:} false; then :
20442 $as_echo_n "(cached) " >&6
20443 else
20444 if test x$gcc_no_link = xyes; then
20445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20450 #ifdef HAVE_COMPLEX_H
20451 #include <complex.h>
20452 #endif
20453 #ifdef HAVE_MATH_H
20454 #include <math.h>
20455 #endif
20457 int (*ptr)() = (int (*)())ldexpf;
20460 main ()
20462 return 0;
20465 _ACEOF
20466 if ac_fn_c_try_link "$LINENO"; then :
20467 gcc_cv_math_func_ldexpf=yes
20468 else
20469 gcc_cv_math_func_ldexpf=no
20471 rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20475 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20476 if test $gcc_cv_math_func_ldexpf = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define HAVE_LDEXPF 1
20480 _ACEOF
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20488 $as_echo_n "checking for ldexp... " >&6; }
20489 if ${gcc_cv_math_func_ldexp+:} false; then :
20490 $as_echo_n "(cached) " >&6
20491 else
20492 if test x$gcc_no_link = xyes; then
20493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 #ifdef HAVE_COMPLEX_H
20499 #include <complex.h>
20500 #endif
20501 #ifdef HAVE_MATH_H
20502 #include <math.h>
20503 #endif
20505 int (*ptr)() = (int (*)())ldexp;
20508 main ()
20510 return 0;
20513 _ACEOF
20514 if ac_fn_c_try_link "$LINENO"; then :
20515 gcc_cv_math_func_ldexp=yes
20516 else
20517 gcc_cv_math_func_ldexp=no
20519 rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20523 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20524 if test $gcc_cv_math_func_ldexp = yes; then
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_LDEXP 1
20528 _ACEOF
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20536 $as_echo_n "checking for ldexpl... " >&6; }
20537 if ${gcc_cv_math_func_ldexpl+:} false; then :
20538 $as_echo_n "(cached) " >&6
20539 else
20540 if test x$gcc_no_link = xyes; then
20541 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20546 #ifdef HAVE_COMPLEX_H
20547 #include <complex.h>
20548 #endif
20549 #ifdef HAVE_MATH_H
20550 #include <math.h>
20551 #endif
20553 int (*ptr)() = (int (*)())ldexpl;
20556 main ()
20558 return 0;
20561 _ACEOF
20562 if ac_fn_c_try_link "$LINENO"; then :
20563 gcc_cv_math_func_ldexpl=yes
20564 else
20565 gcc_cv_math_func_ldexpl=no
20567 rm -f core conftest.err conftest.$ac_objext \
20568 conftest$ac_exeext conftest.$ac_ext
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20571 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20572 if test $gcc_cv_math_func_ldexpl = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_LDEXPL 1
20576 _ACEOF
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20584 $as_echo_n "checking for logf... " >&6; }
20585 if ${gcc_cv_math_func_logf+:} false; then :
20586 $as_echo_n "(cached) " >&6
20587 else
20588 if test x$gcc_no_link = xyes; then
20589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20594 #ifdef HAVE_COMPLEX_H
20595 #include <complex.h>
20596 #endif
20597 #ifdef HAVE_MATH_H
20598 #include <math.h>
20599 #endif
20601 int (*ptr)() = (int (*)())logf;
20604 main ()
20606 return 0;
20609 _ACEOF
20610 if ac_fn_c_try_link "$LINENO"; then :
20611 gcc_cv_math_func_logf=yes
20612 else
20613 gcc_cv_math_func_logf=no
20615 rm -f core conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20619 $as_echo "$gcc_cv_math_func_logf" >&6; }
20620 if test $gcc_cv_math_func_logf = yes; then
20622 cat >>confdefs.h <<_ACEOF
20623 #define HAVE_LOGF 1
20624 _ACEOF
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20632 $as_echo_n "checking for log... " >&6; }
20633 if ${gcc_cv_math_func_log+:} false; then :
20634 $as_echo_n "(cached) " >&6
20635 else
20636 if test x$gcc_no_link = xyes; then
20637 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20642 #ifdef HAVE_COMPLEX_H
20643 #include <complex.h>
20644 #endif
20645 #ifdef HAVE_MATH_H
20646 #include <math.h>
20647 #endif
20649 int (*ptr)() = (int (*)())log;
20652 main ()
20654 return 0;
20657 _ACEOF
20658 if ac_fn_c_try_link "$LINENO"; then :
20659 gcc_cv_math_func_log=yes
20660 else
20661 gcc_cv_math_func_log=no
20663 rm -f core conftest.err conftest.$ac_objext \
20664 conftest$ac_exeext conftest.$ac_ext
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20667 $as_echo "$gcc_cv_math_func_log" >&6; }
20668 if test $gcc_cv_math_func_log = yes; then
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_LOG 1
20672 _ACEOF
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20680 $as_echo_n "checking for logl... " >&6; }
20681 if ${gcc_cv_math_func_logl+:} false; then :
20682 $as_echo_n "(cached) " >&6
20683 else
20684 if test x$gcc_no_link = xyes; then
20685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h. */
20690 #ifdef HAVE_COMPLEX_H
20691 #include <complex.h>
20692 #endif
20693 #ifdef HAVE_MATH_H
20694 #include <math.h>
20695 #endif
20697 int (*ptr)() = (int (*)())logl;
20700 main ()
20702 return 0;
20705 _ACEOF
20706 if ac_fn_c_try_link "$LINENO"; then :
20707 gcc_cv_math_func_logl=yes
20708 else
20709 gcc_cv_math_func_logl=no
20711 rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20715 $as_echo "$gcc_cv_math_func_logl" >&6; }
20716 if test $gcc_cv_math_func_logl = yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define HAVE_LOGL 1
20720 _ACEOF
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20728 $as_echo_n "checking for clogf... " >&6; }
20729 if ${gcc_cv_math_func_clogf+:} false; then :
20730 $as_echo_n "(cached) " >&6
20731 else
20732 if test x$gcc_no_link = xyes; then
20733 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20738 #ifdef HAVE_COMPLEX_H
20739 #include <complex.h>
20740 #endif
20741 #ifdef HAVE_MATH_H
20742 #include <math.h>
20743 #endif
20745 int (*ptr)() = (int (*)())clogf;
20748 main ()
20750 return 0;
20753 _ACEOF
20754 if ac_fn_c_try_link "$LINENO"; then :
20755 gcc_cv_math_func_clogf=yes
20756 else
20757 gcc_cv_math_func_clogf=no
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20763 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20764 if test $gcc_cv_math_func_clogf = yes; then
20766 cat >>confdefs.h <<_ACEOF
20767 #define HAVE_CLOGF 1
20768 _ACEOF
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20776 $as_echo_n "checking for clog... " >&6; }
20777 if ${gcc_cv_math_func_clog+:} false; then :
20778 $as_echo_n "(cached) " >&6
20779 else
20780 if test x$gcc_no_link = xyes; then
20781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20786 #ifdef HAVE_COMPLEX_H
20787 #include <complex.h>
20788 #endif
20789 #ifdef HAVE_MATH_H
20790 #include <math.h>
20791 #endif
20793 int (*ptr)() = (int (*)())clog;
20796 main ()
20798 return 0;
20801 _ACEOF
20802 if ac_fn_c_try_link "$LINENO"; then :
20803 gcc_cv_math_func_clog=yes
20804 else
20805 gcc_cv_math_func_clog=no
20807 rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20811 $as_echo "$gcc_cv_math_func_clog" >&6; }
20812 if test $gcc_cv_math_func_clog = yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define HAVE_CLOG 1
20816 _ACEOF
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20824 $as_echo_n "checking for clogl... " >&6; }
20825 if ${gcc_cv_math_func_clogl+:} false; then :
20826 $as_echo_n "(cached) " >&6
20827 else
20828 if test x$gcc_no_link = xyes; then
20829 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20834 #ifdef HAVE_COMPLEX_H
20835 #include <complex.h>
20836 #endif
20837 #ifdef HAVE_MATH_H
20838 #include <math.h>
20839 #endif
20841 int (*ptr)() = (int (*)())clogl;
20844 main ()
20846 return 0;
20849 _ACEOF
20850 if ac_fn_c_try_link "$LINENO"; then :
20851 gcc_cv_math_func_clogl=yes
20852 else
20853 gcc_cv_math_func_clogl=no
20855 rm -f core conftest.err conftest.$ac_objext \
20856 conftest$ac_exeext conftest.$ac_ext
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20859 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20860 if test $gcc_cv_math_func_clogl = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863 #define HAVE_CLOGL 1
20864 _ACEOF
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20872 $as_echo_n "checking for log10f... " >&6; }
20873 if ${gcc_cv_math_func_log10f+:} false; then :
20874 $as_echo_n "(cached) " >&6
20875 else
20876 if test x$gcc_no_link = xyes; then
20877 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20882 #ifdef HAVE_COMPLEX_H
20883 #include <complex.h>
20884 #endif
20885 #ifdef HAVE_MATH_H
20886 #include <math.h>
20887 #endif
20889 int (*ptr)() = (int (*)())log10f;
20892 main ()
20894 return 0;
20897 _ACEOF
20898 if ac_fn_c_try_link "$LINENO"; then :
20899 gcc_cv_math_func_log10f=yes
20900 else
20901 gcc_cv_math_func_log10f=no
20903 rm -f core conftest.err conftest.$ac_objext \
20904 conftest$ac_exeext conftest.$ac_ext
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20907 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20908 if test $gcc_cv_math_func_log10f = yes; then
20910 cat >>confdefs.h <<_ACEOF
20911 #define HAVE_LOG10F 1
20912 _ACEOF
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20920 $as_echo_n "checking for log10... " >&6; }
20921 if ${gcc_cv_math_func_log10+:} false; then :
20922 $as_echo_n "(cached) " >&6
20923 else
20924 if test x$gcc_no_link = xyes; then
20925 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h. */
20930 #ifdef HAVE_COMPLEX_H
20931 #include <complex.h>
20932 #endif
20933 #ifdef HAVE_MATH_H
20934 #include <math.h>
20935 #endif
20937 int (*ptr)() = (int (*)())log10;
20940 main ()
20942 return 0;
20945 _ACEOF
20946 if ac_fn_c_try_link "$LINENO"; then :
20947 gcc_cv_math_func_log10=yes
20948 else
20949 gcc_cv_math_func_log10=no
20951 rm -f core conftest.err conftest.$ac_objext \
20952 conftest$ac_exeext conftest.$ac_ext
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20955 $as_echo "$gcc_cv_math_func_log10" >&6; }
20956 if test $gcc_cv_math_func_log10 = yes; then
20958 cat >>confdefs.h <<_ACEOF
20959 #define HAVE_LOG10 1
20960 _ACEOF
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20968 $as_echo_n "checking for log10l... " >&6; }
20969 if ${gcc_cv_math_func_log10l+:} false; then :
20970 $as_echo_n "(cached) " >&6
20971 else
20972 if test x$gcc_no_link = xyes; then
20973 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20978 #ifdef HAVE_COMPLEX_H
20979 #include <complex.h>
20980 #endif
20981 #ifdef HAVE_MATH_H
20982 #include <math.h>
20983 #endif
20985 int (*ptr)() = (int (*)())log10l;
20988 main ()
20990 return 0;
20993 _ACEOF
20994 if ac_fn_c_try_link "$LINENO"; then :
20995 gcc_cv_math_func_log10l=yes
20996 else
20997 gcc_cv_math_func_log10l=no
20999 rm -f core conftest.err conftest.$ac_objext \
21000 conftest$ac_exeext conftest.$ac_ext
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21003 $as_echo "$gcc_cv_math_func_log10l" >&6; }
21004 if test $gcc_cv_math_func_log10l = yes; then
21006 cat >>confdefs.h <<_ACEOF
21007 #define HAVE_LOG10L 1
21008 _ACEOF
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21016 $as_echo_n "checking for clog10f... " >&6; }
21017 if ${gcc_cv_math_func_clog10f+:} false; then :
21018 $as_echo_n "(cached) " >&6
21019 else
21020 if test x$gcc_no_link = xyes; then
21021 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21026 #ifdef HAVE_COMPLEX_H
21027 #include <complex.h>
21028 #endif
21029 #ifdef HAVE_MATH_H
21030 #include <math.h>
21031 #endif
21033 int (*ptr)() = (int (*)())clog10f;
21036 main ()
21038 return 0;
21041 _ACEOF
21042 if ac_fn_c_try_link "$LINENO"; then :
21043 gcc_cv_math_func_clog10f=yes
21044 else
21045 gcc_cv_math_func_clog10f=no
21047 rm -f core conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21051 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
21052 if test $gcc_cv_math_func_clog10f = yes; then
21054 cat >>confdefs.h <<_ACEOF
21055 #define HAVE_CLOG10F 1
21056 _ACEOF
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21064 $as_echo_n "checking for clog10... " >&6; }
21065 if ${gcc_cv_math_func_clog10+:} false; then :
21066 $as_echo_n "(cached) " >&6
21067 else
21068 if test x$gcc_no_link = xyes; then
21069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 #ifdef HAVE_COMPLEX_H
21075 #include <complex.h>
21076 #endif
21077 #ifdef HAVE_MATH_H
21078 #include <math.h>
21079 #endif
21081 int (*ptr)() = (int (*)())clog10;
21084 main ()
21086 return 0;
21089 _ACEOF
21090 if ac_fn_c_try_link "$LINENO"; then :
21091 gcc_cv_math_func_clog10=yes
21092 else
21093 gcc_cv_math_func_clog10=no
21095 rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21099 $as_echo "$gcc_cv_math_func_clog10" >&6; }
21100 if test $gcc_cv_math_func_clog10 = yes; then
21102 cat >>confdefs.h <<_ACEOF
21103 #define HAVE_CLOG10 1
21104 _ACEOF
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21112 $as_echo_n "checking for clog10l... " >&6; }
21113 if ${gcc_cv_math_func_clog10l+:} false; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 if test x$gcc_no_link = xyes; then
21117 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21122 #ifdef HAVE_COMPLEX_H
21123 #include <complex.h>
21124 #endif
21125 #ifdef HAVE_MATH_H
21126 #include <math.h>
21127 #endif
21129 int (*ptr)() = (int (*)())clog10l;
21132 main ()
21134 return 0;
21137 _ACEOF
21138 if ac_fn_c_try_link "$LINENO"; then :
21139 gcc_cv_math_func_clog10l=yes
21140 else
21141 gcc_cv_math_func_clog10l=no
21143 rm -f core conftest.err conftest.$ac_objext \
21144 conftest$ac_exeext conftest.$ac_ext
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21147 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
21148 if test $gcc_cv_math_func_clog10l = yes; then
21150 cat >>confdefs.h <<_ACEOF
21151 #define HAVE_CLOG10L 1
21152 _ACEOF
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21160 $as_echo_n "checking for nextafterf... " >&6; }
21161 if ${gcc_cv_math_func_nextafterf+:} false; then :
21162 $as_echo_n "(cached) " >&6
21163 else
21164 if test x$gcc_no_link = xyes; then
21165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21170 #ifdef HAVE_COMPLEX_H
21171 #include <complex.h>
21172 #endif
21173 #ifdef HAVE_MATH_H
21174 #include <math.h>
21175 #endif
21177 int (*ptr)() = (int (*)())nextafterf;
21180 main ()
21182 return 0;
21185 _ACEOF
21186 if ac_fn_c_try_link "$LINENO"; then :
21187 gcc_cv_math_func_nextafterf=yes
21188 else
21189 gcc_cv_math_func_nextafterf=no
21191 rm -f core conftest.err conftest.$ac_objext \
21192 conftest$ac_exeext conftest.$ac_ext
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21195 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21196 if test $gcc_cv_math_func_nextafterf = yes; then
21198 cat >>confdefs.h <<_ACEOF
21199 #define HAVE_NEXTAFTERF 1
21200 _ACEOF
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21208 $as_echo_n "checking for nextafter... " >&6; }
21209 if ${gcc_cv_math_func_nextafter+:} false; then :
21210 $as_echo_n "(cached) " >&6
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. */
21218 #ifdef HAVE_COMPLEX_H
21219 #include <complex.h>
21220 #endif
21221 #ifdef HAVE_MATH_H
21222 #include <math.h>
21223 #endif
21225 int (*ptr)() = (int (*)())nextafter;
21228 main ()
21230 return 0;
21233 _ACEOF
21234 if ac_fn_c_try_link "$LINENO"; then :
21235 gcc_cv_math_func_nextafter=yes
21236 else
21237 gcc_cv_math_func_nextafter=no
21239 rm -f core conftest.err conftest.$ac_objext \
21240 conftest$ac_exeext conftest.$ac_ext
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21243 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21244 if test $gcc_cv_math_func_nextafter = yes; then
21246 cat >>confdefs.h <<_ACEOF
21247 #define HAVE_NEXTAFTER 1
21248 _ACEOF
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21256 $as_echo_n "checking for nextafterl... " >&6; }
21257 if ${gcc_cv_math_func_nextafterl+:} false; then :
21258 $as_echo_n "(cached) " >&6
21259 else
21260 if test x$gcc_no_link = xyes; then
21261 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21266 #ifdef HAVE_COMPLEX_H
21267 #include <complex.h>
21268 #endif
21269 #ifdef HAVE_MATH_H
21270 #include <math.h>
21271 #endif
21273 int (*ptr)() = (int (*)())nextafterl;
21276 main ()
21278 return 0;
21281 _ACEOF
21282 if ac_fn_c_try_link "$LINENO"; then :
21283 gcc_cv_math_func_nextafterl=yes
21284 else
21285 gcc_cv_math_func_nextafterl=no
21287 rm -f core conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21291 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21292 if test $gcc_cv_math_func_nextafterl = yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define HAVE_NEXTAFTERL 1
21296 _ACEOF
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21304 $as_echo_n "checking for powf... " >&6; }
21305 if ${gcc_cv_math_func_powf+:} false; then :
21306 $as_echo_n "(cached) " >&6
21307 else
21308 if test x$gcc_no_link = xyes; then
21309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21314 #ifdef HAVE_COMPLEX_H
21315 #include <complex.h>
21316 #endif
21317 #ifdef HAVE_MATH_H
21318 #include <math.h>
21319 #endif
21321 int (*ptr)() = (int (*)())powf;
21324 main ()
21326 return 0;
21329 _ACEOF
21330 if ac_fn_c_try_link "$LINENO"; then :
21331 gcc_cv_math_func_powf=yes
21332 else
21333 gcc_cv_math_func_powf=no
21335 rm -f core conftest.err conftest.$ac_objext \
21336 conftest$ac_exeext conftest.$ac_ext
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21339 $as_echo "$gcc_cv_math_func_powf" >&6; }
21340 if test $gcc_cv_math_func_powf = yes; then
21342 cat >>confdefs.h <<_ACEOF
21343 #define HAVE_POWF 1
21344 _ACEOF
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21352 $as_echo_n "checking for pow... " >&6; }
21353 if ${gcc_cv_math_func_pow+:} false; then :
21354 $as_echo_n "(cached) " >&6
21355 else
21356 if test x$gcc_no_link = xyes; then
21357 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21360 /* end confdefs.h. */
21362 #ifdef HAVE_COMPLEX_H
21363 #include <complex.h>
21364 #endif
21365 #ifdef HAVE_MATH_H
21366 #include <math.h>
21367 #endif
21369 int (*ptr)() = (int (*)())pow;
21372 main ()
21374 return 0;
21377 _ACEOF
21378 if ac_fn_c_try_link "$LINENO"; then :
21379 gcc_cv_math_func_pow=yes
21380 else
21381 gcc_cv_math_func_pow=no
21383 rm -f core conftest.err conftest.$ac_objext \
21384 conftest$ac_exeext conftest.$ac_ext
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21387 $as_echo "$gcc_cv_math_func_pow" >&6; }
21388 if test $gcc_cv_math_func_pow = yes; then
21390 cat >>confdefs.h <<_ACEOF
21391 #define HAVE_POW 1
21392 _ACEOF
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21400 $as_echo_n "checking for cpowf... " >&6; }
21401 if ${gcc_cv_math_func_cpowf+:} false; then :
21402 $as_echo_n "(cached) " >&6
21403 else
21404 if test x$gcc_no_link = xyes; then
21405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21410 #ifdef HAVE_COMPLEX_H
21411 #include <complex.h>
21412 #endif
21413 #ifdef HAVE_MATH_H
21414 #include <math.h>
21415 #endif
21417 int (*ptr)() = (int (*)())cpowf;
21420 main ()
21422 return 0;
21425 _ACEOF
21426 if ac_fn_c_try_link "$LINENO"; then :
21427 gcc_cv_math_func_cpowf=yes
21428 else
21429 gcc_cv_math_func_cpowf=no
21431 rm -f core conftest.err conftest.$ac_objext \
21432 conftest$ac_exeext conftest.$ac_ext
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21435 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21436 if test $gcc_cv_math_func_cpowf = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_CPOWF 1
21440 _ACEOF
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21448 $as_echo_n "checking for cpow... " >&6; }
21449 if ${gcc_cv_math_func_cpow+:} false; then :
21450 $as_echo_n "(cached) " >&6
21451 else
21452 if test x$gcc_no_link = xyes; then
21453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 #ifdef HAVE_COMPLEX_H
21459 #include <complex.h>
21460 #endif
21461 #ifdef HAVE_MATH_H
21462 #include <math.h>
21463 #endif
21465 int (*ptr)() = (int (*)())cpow;
21468 main ()
21470 return 0;
21473 _ACEOF
21474 if ac_fn_c_try_link "$LINENO"; then :
21475 gcc_cv_math_func_cpow=yes
21476 else
21477 gcc_cv_math_func_cpow=no
21479 rm -f core conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext conftest.$ac_ext
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21483 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21484 if test $gcc_cv_math_func_cpow = yes; then
21486 cat >>confdefs.h <<_ACEOF
21487 #define HAVE_CPOW 1
21488 _ACEOF
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21496 $as_echo_n "checking for cpowl... " >&6; }
21497 if ${gcc_cv_math_func_cpowl+:} false; then :
21498 $as_echo_n "(cached) " >&6
21499 else
21500 if test x$gcc_no_link = xyes; then
21501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21506 #ifdef HAVE_COMPLEX_H
21507 #include <complex.h>
21508 #endif
21509 #ifdef HAVE_MATH_H
21510 #include <math.h>
21511 #endif
21513 int (*ptr)() = (int (*)())cpowl;
21516 main ()
21518 return 0;
21521 _ACEOF
21522 if ac_fn_c_try_link "$LINENO"; then :
21523 gcc_cv_math_func_cpowl=yes
21524 else
21525 gcc_cv_math_func_cpowl=no
21527 rm -f core conftest.err conftest.$ac_objext \
21528 conftest$ac_exeext conftest.$ac_ext
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21531 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21532 if test $gcc_cv_math_func_cpowl = yes; then
21534 cat >>confdefs.h <<_ACEOF
21535 #define HAVE_CPOWL 1
21536 _ACEOF
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21544 $as_echo_n "checking for roundf... " >&6; }
21545 if ${gcc_cv_math_func_roundf+:} false; then :
21546 $as_echo_n "(cached) " >&6
21547 else
21548 if test x$gcc_no_link = xyes; then
21549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21552 /* end confdefs.h. */
21554 #ifdef HAVE_COMPLEX_H
21555 #include <complex.h>
21556 #endif
21557 #ifdef HAVE_MATH_H
21558 #include <math.h>
21559 #endif
21561 int (*ptr)() = (int (*)())roundf;
21564 main ()
21566 return 0;
21569 _ACEOF
21570 if ac_fn_c_try_link "$LINENO"; then :
21571 gcc_cv_math_func_roundf=yes
21572 else
21573 gcc_cv_math_func_roundf=no
21575 rm -f core conftest.err conftest.$ac_objext \
21576 conftest$ac_exeext conftest.$ac_ext
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21579 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21580 if test $gcc_cv_math_func_roundf = yes; then
21582 cat >>confdefs.h <<_ACEOF
21583 #define HAVE_ROUNDF 1
21584 _ACEOF
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21592 $as_echo_n "checking for round... " >&6; }
21593 if ${gcc_cv_math_func_round+:} false; then :
21594 $as_echo_n "(cached) " >&6
21595 else
21596 if test x$gcc_no_link = xyes; then
21597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21600 /* end confdefs.h. */
21602 #ifdef HAVE_COMPLEX_H
21603 #include <complex.h>
21604 #endif
21605 #ifdef HAVE_MATH_H
21606 #include <math.h>
21607 #endif
21609 int (*ptr)() = (int (*)())round;
21612 main ()
21614 return 0;
21617 _ACEOF
21618 if ac_fn_c_try_link "$LINENO"; then :
21619 gcc_cv_math_func_round=yes
21620 else
21621 gcc_cv_math_func_round=no
21623 rm -f core conftest.err conftest.$ac_objext \
21624 conftest$ac_exeext conftest.$ac_ext
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21627 $as_echo "$gcc_cv_math_func_round" >&6; }
21628 if test $gcc_cv_math_func_round = yes; then
21630 cat >>confdefs.h <<_ACEOF
21631 #define HAVE_ROUND 1
21632 _ACEOF
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21640 $as_echo_n "checking for roundl... " >&6; }
21641 if ${gcc_cv_math_func_roundl+:} false; then :
21642 $as_echo_n "(cached) " >&6
21643 else
21644 if test x$gcc_no_link = xyes; then
21645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21648 /* end confdefs.h. */
21650 #ifdef HAVE_COMPLEX_H
21651 #include <complex.h>
21652 #endif
21653 #ifdef HAVE_MATH_H
21654 #include <math.h>
21655 #endif
21657 int (*ptr)() = (int (*)())roundl;
21660 main ()
21662 return 0;
21665 _ACEOF
21666 if ac_fn_c_try_link "$LINENO"; then :
21667 gcc_cv_math_func_roundl=yes
21668 else
21669 gcc_cv_math_func_roundl=no
21671 rm -f core conftest.err conftest.$ac_objext \
21672 conftest$ac_exeext conftest.$ac_ext
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21675 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21676 if test $gcc_cv_math_func_roundl = yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_ROUNDL 1
21680 _ACEOF
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21688 $as_echo_n "checking for lroundf... " >&6; }
21689 if ${gcc_cv_math_func_lroundf+:} false; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 if test x$gcc_no_link = xyes; then
21693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21698 #ifdef HAVE_COMPLEX_H
21699 #include <complex.h>
21700 #endif
21701 #ifdef HAVE_MATH_H
21702 #include <math.h>
21703 #endif
21705 int (*ptr)() = (int (*)())lroundf;
21708 main ()
21710 return 0;
21713 _ACEOF
21714 if ac_fn_c_try_link "$LINENO"; then :
21715 gcc_cv_math_func_lroundf=yes
21716 else
21717 gcc_cv_math_func_lroundf=no
21719 rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21723 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21724 if test $gcc_cv_math_func_lroundf = yes; then
21726 cat >>confdefs.h <<_ACEOF
21727 #define HAVE_LROUNDF 1
21728 _ACEOF
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21736 $as_echo_n "checking for lround... " >&6; }
21737 if ${gcc_cv_math_func_lround+:} false; then :
21738 $as_echo_n "(cached) " >&6
21739 else
21740 if test x$gcc_no_link = xyes; then
21741 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744 /* end confdefs.h. */
21746 #ifdef HAVE_COMPLEX_H
21747 #include <complex.h>
21748 #endif
21749 #ifdef HAVE_MATH_H
21750 #include <math.h>
21751 #endif
21753 int (*ptr)() = (int (*)())lround;
21756 main ()
21758 return 0;
21761 _ACEOF
21762 if ac_fn_c_try_link "$LINENO"; then :
21763 gcc_cv_math_func_lround=yes
21764 else
21765 gcc_cv_math_func_lround=no
21767 rm -f core conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21771 $as_echo "$gcc_cv_math_func_lround" >&6; }
21772 if test $gcc_cv_math_func_lround = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_LROUND 1
21776 _ACEOF
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21784 $as_echo_n "checking for lroundl... " >&6; }
21785 if ${gcc_cv_math_func_lroundl+:} false; then :
21786 $as_echo_n "(cached) " >&6
21787 else
21788 if test x$gcc_no_link = xyes; then
21789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21794 #ifdef HAVE_COMPLEX_H
21795 #include <complex.h>
21796 #endif
21797 #ifdef HAVE_MATH_H
21798 #include <math.h>
21799 #endif
21801 int (*ptr)() = (int (*)())lroundl;
21804 main ()
21806 return 0;
21809 _ACEOF
21810 if ac_fn_c_try_link "$LINENO"; then :
21811 gcc_cv_math_func_lroundl=yes
21812 else
21813 gcc_cv_math_func_lroundl=no
21815 rm -f core conftest.err conftest.$ac_objext \
21816 conftest$ac_exeext conftest.$ac_ext
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21819 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21820 if test $gcc_cv_math_func_lroundl = yes; then
21822 cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LROUNDL 1
21824 _ACEOF
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21832 $as_echo_n "checking for llroundf... " >&6; }
21833 if ${gcc_cv_math_func_llroundf+:} false; then :
21834 $as_echo_n "(cached) " >&6
21835 else
21836 if test x$gcc_no_link = xyes; then
21837 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21842 #ifdef HAVE_COMPLEX_H
21843 #include <complex.h>
21844 #endif
21845 #ifdef HAVE_MATH_H
21846 #include <math.h>
21847 #endif
21849 int (*ptr)() = (int (*)())llroundf;
21852 main ()
21854 return 0;
21857 _ACEOF
21858 if ac_fn_c_try_link "$LINENO"; then :
21859 gcc_cv_math_func_llroundf=yes
21860 else
21861 gcc_cv_math_func_llroundf=no
21863 rm -f core conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21867 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21868 if test $gcc_cv_math_func_llroundf = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define HAVE_LLROUNDF 1
21872 _ACEOF
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21880 $as_echo_n "checking for llround... " >&6; }
21881 if ${gcc_cv_math_func_llround+:} false; then :
21882 $as_echo_n "(cached) " >&6
21883 else
21884 if test x$gcc_no_link = xyes; then
21885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21890 #ifdef HAVE_COMPLEX_H
21891 #include <complex.h>
21892 #endif
21893 #ifdef HAVE_MATH_H
21894 #include <math.h>
21895 #endif
21897 int (*ptr)() = (int (*)())llround;
21900 main ()
21902 return 0;
21905 _ACEOF
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 gcc_cv_math_func_llround=yes
21908 else
21909 gcc_cv_math_func_llround=no
21911 rm -f core conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21915 $as_echo "$gcc_cv_math_func_llround" >&6; }
21916 if test $gcc_cv_math_func_llround = yes; then
21918 cat >>confdefs.h <<_ACEOF
21919 #define HAVE_LLROUND 1
21920 _ACEOF
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21928 $as_echo_n "checking for llroundl... " >&6; }
21929 if ${gcc_cv_math_func_llroundl+:} false; then :
21930 $as_echo_n "(cached) " >&6
21931 else
21932 if test x$gcc_no_link = xyes; then
21933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21938 #ifdef HAVE_COMPLEX_H
21939 #include <complex.h>
21940 #endif
21941 #ifdef HAVE_MATH_H
21942 #include <math.h>
21943 #endif
21945 int (*ptr)() = (int (*)())llroundl;
21948 main ()
21950 return 0;
21953 _ACEOF
21954 if ac_fn_c_try_link "$LINENO"; then :
21955 gcc_cv_math_func_llroundl=yes
21956 else
21957 gcc_cv_math_func_llroundl=no
21959 rm -f core conftest.err conftest.$ac_objext \
21960 conftest$ac_exeext conftest.$ac_ext
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21963 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21964 if test $gcc_cv_math_func_llroundl = yes; then
21966 cat >>confdefs.h <<_ACEOF
21967 #define HAVE_LLROUNDL 1
21968 _ACEOF
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21976 $as_echo_n "checking for scalbnf... " >&6; }
21977 if ${gcc_cv_math_func_scalbnf+:} false; then :
21978 $as_echo_n "(cached) " >&6
21979 else
21980 if test x$gcc_no_link = xyes; then
21981 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21984 /* end confdefs.h. */
21986 #ifdef HAVE_COMPLEX_H
21987 #include <complex.h>
21988 #endif
21989 #ifdef HAVE_MATH_H
21990 #include <math.h>
21991 #endif
21993 int (*ptr)() = (int (*)())scalbnf;
21996 main ()
21998 return 0;
22001 _ACEOF
22002 if ac_fn_c_try_link "$LINENO"; then :
22003 gcc_cv_math_func_scalbnf=yes
22004 else
22005 gcc_cv_math_func_scalbnf=no
22007 rm -f core conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22011 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22012 if test $gcc_cv_math_func_scalbnf = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_SCALBNF 1
22016 _ACEOF
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22024 $as_echo_n "checking for scalbn... " >&6; }
22025 if ${gcc_cv_math_func_scalbn+:} false; then :
22026 $as_echo_n "(cached) " >&6
22027 else
22028 if test x$gcc_no_link = xyes; then
22029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22034 #ifdef HAVE_COMPLEX_H
22035 #include <complex.h>
22036 #endif
22037 #ifdef HAVE_MATH_H
22038 #include <math.h>
22039 #endif
22041 int (*ptr)() = (int (*)())scalbn;
22044 main ()
22046 return 0;
22049 _ACEOF
22050 if ac_fn_c_try_link "$LINENO"; then :
22051 gcc_cv_math_func_scalbn=yes
22052 else
22053 gcc_cv_math_func_scalbn=no
22055 rm -f core conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22059 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
22060 if test $gcc_cv_math_func_scalbn = yes; then
22062 cat >>confdefs.h <<_ACEOF
22063 #define HAVE_SCALBN 1
22064 _ACEOF
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22072 $as_echo_n "checking for scalbnl... " >&6; }
22073 if ${gcc_cv_math_func_scalbnl+:} false; then :
22074 $as_echo_n "(cached) " >&6
22075 else
22076 if test x$gcc_no_link = xyes; then
22077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h. */
22082 #ifdef HAVE_COMPLEX_H
22083 #include <complex.h>
22084 #endif
22085 #ifdef HAVE_MATH_H
22086 #include <math.h>
22087 #endif
22089 int (*ptr)() = (int (*)())scalbnl;
22092 main ()
22094 return 0;
22097 _ACEOF
22098 if ac_fn_c_try_link "$LINENO"; then :
22099 gcc_cv_math_func_scalbnl=yes
22100 else
22101 gcc_cv_math_func_scalbnl=no
22103 rm -f core conftest.err conftest.$ac_objext \
22104 conftest$ac_exeext conftest.$ac_ext
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22107 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22108 if test $gcc_cv_math_func_scalbnl = yes; then
22110 cat >>confdefs.h <<_ACEOF
22111 #define HAVE_SCALBNL 1
22112 _ACEOF
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22120 $as_echo_n "checking for sinf... " >&6; }
22121 if ${gcc_cv_math_func_sinf+:} false; then :
22122 $as_echo_n "(cached) " >&6
22123 else
22124 if test x$gcc_no_link = xyes; then
22125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22130 #ifdef HAVE_COMPLEX_H
22131 #include <complex.h>
22132 #endif
22133 #ifdef HAVE_MATH_H
22134 #include <math.h>
22135 #endif
22137 int (*ptr)() = (int (*)())sinf;
22140 main ()
22142 return 0;
22145 _ACEOF
22146 if ac_fn_c_try_link "$LINENO"; then :
22147 gcc_cv_math_func_sinf=yes
22148 else
22149 gcc_cv_math_func_sinf=no
22151 rm -f core conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22155 $as_echo "$gcc_cv_math_func_sinf" >&6; }
22156 if test $gcc_cv_math_func_sinf = yes; then
22158 cat >>confdefs.h <<_ACEOF
22159 #define HAVE_SINF 1
22160 _ACEOF
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22168 $as_echo_n "checking for sin... " >&6; }
22169 if ${gcc_cv_math_func_sin+:} false; then :
22170 $as_echo_n "(cached) " >&6
22171 else
22172 if test x$gcc_no_link = xyes; then
22173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22178 #ifdef HAVE_COMPLEX_H
22179 #include <complex.h>
22180 #endif
22181 #ifdef HAVE_MATH_H
22182 #include <math.h>
22183 #endif
22185 int (*ptr)() = (int (*)())sin;
22188 main ()
22190 return 0;
22193 _ACEOF
22194 if ac_fn_c_try_link "$LINENO"; then :
22195 gcc_cv_math_func_sin=yes
22196 else
22197 gcc_cv_math_func_sin=no
22199 rm -f core conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22203 $as_echo "$gcc_cv_math_func_sin" >&6; }
22204 if test $gcc_cv_math_func_sin = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define HAVE_SIN 1
22208 _ACEOF
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22216 $as_echo_n "checking for sinl... " >&6; }
22217 if ${gcc_cv_math_func_sinl+:} false; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 if test x$gcc_no_link = xyes; then
22221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22226 #ifdef HAVE_COMPLEX_H
22227 #include <complex.h>
22228 #endif
22229 #ifdef HAVE_MATH_H
22230 #include <math.h>
22231 #endif
22233 int (*ptr)() = (int (*)())sinl;
22236 main ()
22238 return 0;
22241 _ACEOF
22242 if ac_fn_c_try_link "$LINENO"; then :
22243 gcc_cv_math_func_sinl=yes
22244 else
22245 gcc_cv_math_func_sinl=no
22247 rm -f core conftest.err conftest.$ac_objext \
22248 conftest$ac_exeext conftest.$ac_ext
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22251 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22252 if test $gcc_cv_math_func_sinl = yes; then
22254 cat >>confdefs.h <<_ACEOF
22255 #define HAVE_SINL 1
22256 _ACEOF
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22264 $as_echo_n "checking for csinf... " >&6; }
22265 if ${gcc_cv_math_func_csinf+:} false; then :
22266 $as_echo_n "(cached) " >&6
22267 else
22268 if test x$gcc_no_link = xyes; then
22269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22272 /* end confdefs.h. */
22274 #ifdef HAVE_COMPLEX_H
22275 #include <complex.h>
22276 #endif
22277 #ifdef HAVE_MATH_H
22278 #include <math.h>
22279 #endif
22281 int (*ptr)() = (int (*)())csinf;
22284 main ()
22286 return 0;
22289 _ACEOF
22290 if ac_fn_c_try_link "$LINENO"; then :
22291 gcc_cv_math_func_csinf=yes
22292 else
22293 gcc_cv_math_func_csinf=no
22295 rm -f core conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22299 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22300 if test $gcc_cv_math_func_csinf = yes; then
22302 cat >>confdefs.h <<_ACEOF
22303 #define HAVE_CSINF 1
22304 _ACEOF
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22312 $as_echo_n "checking for csin... " >&6; }
22313 if ${gcc_cv_math_func_csin+:} false; then :
22314 $as_echo_n "(cached) " >&6
22315 else
22316 if test x$gcc_no_link = xyes; then
22317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h. */
22322 #ifdef HAVE_COMPLEX_H
22323 #include <complex.h>
22324 #endif
22325 #ifdef HAVE_MATH_H
22326 #include <math.h>
22327 #endif
22329 int (*ptr)() = (int (*)())csin;
22332 main ()
22334 return 0;
22337 _ACEOF
22338 if ac_fn_c_try_link "$LINENO"; then :
22339 gcc_cv_math_func_csin=yes
22340 else
22341 gcc_cv_math_func_csin=no
22343 rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22347 $as_echo "$gcc_cv_math_func_csin" >&6; }
22348 if test $gcc_cv_math_func_csin = yes; then
22350 cat >>confdefs.h <<_ACEOF
22351 #define HAVE_CSIN 1
22352 _ACEOF
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22360 $as_echo_n "checking for csinl... " >&6; }
22361 if ${gcc_cv_math_func_csinl+:} false; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22364 if test x$gcc_no_link = xyes; then
22365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22370 #ifdef HAVE_COMPLEX_H
22371 #include <complex.h>
22372 #endif
22373 #ifdef HAVE_MATH_H
22374 #include <math.h>
22375 #endif
22377 int (*ptr)() = (int (*)())csinl;
22380 main ()
22382 return 0;
22385 _ACEOF
22386 if ac_fn_c_try_link "$LINENO"; then :
22387 gcc_cv_math_func_csinl=yes
22388 else
22389 gcc_cv_math_func_csinl=no
22391 rm -f core conftest.err conftest.$ac_objext \
22392 conftest$ac_exeext conftest.$ac_ext
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22395 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22396 if test $gcc_cv_math_func_csinl = yes; then
22398 cat >>confdefs.h <<_ACEOF
22399 #define HAVE_CSINL 1
22400 _ACEOF
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22408 $as_echo_n "checking for sinhf... " >&6; }
22409 if ${gcc_cv_math_func_sinhf+:} false; then :
22410 $as_echo_n "(cached) " >&6
22411 else
22412 if test x$gcc_no_link = xyes; then
22413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22418 #ifdef HAVE_COMPLEX_H
22419 #include <complex.h>
22420 #endif
22421 #ifdef HAVE_MATH_H
22422 #include <math.h>
22423 #endif
22425 int (*ptr)() = (int (*)())sinhf;
22428 main ()
22430 return 0;
22433 _ACEOF
22434 if ac_fn_c_try_link "$LINENO"; then :
22435 gcc_cv_math_func_sinhf=yes
22436 else
22437 gcc_cv_math_func_sinhf=no
22439 rm -f core conftest.err conftest.$ac_objext \
22440 conftest$ac_exeext conftest.$ac_ext
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22443 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22444 if test $gcc_cv_math_func_sinhf = yes; then
22446 cat >>confdefs.h <<_ACEOF
22447 #define HAVE_SINHF 1
22448 _ACEOF
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22456 $as_echo_n "checking for sinh... " >&6; }
22457 if ${gcc_cv_math_func_sinh+:} false; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 if test x$gcc_no_link = xyes; then
22461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22466 #ifdef HAVE_COMPLEX_H
22467 #include <complex.h>
22468 #endif
22469 #ifdef HAVE_MATH_H
22470 #include <math.h>
22471 #endif
22473 int (*ptr)() = (int (*)())sinh;
22476 main ()
22478 return 0;
22481 _ACEOF
22482 if ac_fn_c_try_link "$LINENO"; then :
22483 gcc_cv_math_func_sinh=yes
22484 else
22485 gcc_cv_math_func_sinh=no
22487 rm -f core conftest.err conftest.$ac_objext \
22488 conftest$ac_exeext conftest.$ac_ext
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22491 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22492 if test $gcc_cv_math_func_sinh = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_SINH 1
22496 _ACEOF
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22504 $as_echo_n "checking for sinhl... " >&6; }
22505 if ${gcc_cv_math_func_sinhl+:} false; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 if test x$gcc_no_link = xyes; then
22509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22512 /* end confdefs.h. */
22514 #ifdef HAVE_COMPLEX_H
22515 #include <complex.h>
22516 #endif
22517 #ifdef HAVE_MATH_H
22518 #include <math.h>
22519 #endif
22521 int (*ptr)() = (int (*)())sinhl;
22524 main ()
22526 return 0;
22529 _ACEOF
22530 if ac_fn_c_try_link "$LINENO"; then :
22531 gcc_cv_math_func_sinhl=yes
22532 else
22533 gcc_cv_math_func_sinhl=no
22535 rm -f core conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22539 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22540 if test $gcc_cv_math_func_sinhl = yes; then
22542 cat >>confdefs.h <<_ACEOF
22543 #define HAVE_SINHL 1
22544 _ACEOF
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22552 $as_echo_n "checking for csinhf... " >&6; }
22553 if ${gcc_cv_math_func_csinhf+:} false; then :
22554 $as_echo_n "(cached) " >&6
22555 else
22556 if test x$gcc_no_link = xyes; then
22557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22562 #ifdef HAVE_COMPLEX_H
22563 #include <complex.h>
22564 #endif
22565 #ifdef HAVE_MATH_H
22566 #include <math.h>
22567 #endif
22569 int (*ptr)() = (int (*)())csinhf;
22572 main ()
22574 return 0;
22577 _ACEOF
22578 if ac_fn_c_try_link "$LINENO"; then :
22579 gcc_cv_math_func_csinhf=yes
22580 else
22581 gcc_cv_math_func_csinhf=no
22583 rm -f core conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext conftest.$ac_ext
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22587 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22588 if test $gcc_cv_math_func_csinhf = yes; then
22590 cat >>confdefs.h <<_ACEOF
22591 #define HAVE_CSINHF 1
22592 _ACEOF
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22600 $as_echo_n "checking for csinh... " >&6; }
22601 if ${gcc_cv_math_func_csinh+:} false; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 if test x$gcc_no_link = xyes; then
22605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h. */
22610 #ifdef HAVE_COMPLEX_H
22611 #include <complex.h>
22612 #endif
22613 #ifdef HAVE_MATH_H
22614 #include <math.h>
22615 #endif
22617 int (*ptr)() = (int (*)())csinh;
22620 main ()
22622 return 0;
22625 _ACEOF
22626 if ac_fn_c_try_link "$LINENO"; then :
22627 gcc_cv_math_func_csinh=yes
22628 else
22629 gcc_cv_math_func_csinh=no
22631 rm -f core conftest.err conftest.$ac_objext \
22632 conftest$ac_exeext conftest.$ac_ext
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22635 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22636 if test $gcc_cv_math_func_csinh = yes; then
22638 cat >>confdefs.h <<_ACEOF
22639 #define HAVE_CSINH 1
22640 _ACEOF
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22648 $as_echo_n "checking for csinhl... " >&6; }
22649 if ${gcc_cv_math_func_csinhl+:} false; then :
22650 $as_echo_n "(cached) " >&6
22651 else
22652 if test x$gcc_no_link = xyes; then
22653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22658 #ifdef HAVE_COMPLEX_H
22659 #include <complex.h>
22660 #endif
22661 #ifdef HAVE_MATH_H
22662 #include <math.h>
22663 #endif
22665 int (*ptr)() = (int (*)())csinhl;
22668 main ()
22670 return 0;
22673 _ACEOF
22674 if ac_fn_c_try_link "$LINENO"; then :
22675 gcc_cv_math_func_csinhl=yes
22676 else
22677 gcc_cv_math_func_csinhl=no
22679 rm -f core conftest.err conftest.$ac_objext \
22680 conftest$ac_exeext conftest.$ac_ext
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22683 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22684 if test $gcc_cv_math_func_csinhl = yes; then
22686 cat >>confdefs.h <<_ACEOF
22687 #define HAVE_CSINHL 1
22688 _ACEOF
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22696 $as_echo_n "checking for sqrtf... " >&6; }
22697 if ${gcc_cv_math_func_sqrtf+:} false; then :
22698 $as_echo_n "(cached) " >&6
22699 else
22700 if test x$gcc_no_link = xyes; then
22701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h. */
22706 #ifdef HAVE_COMPLEX_H
22707 #include <complex.h>
22708 #endif
22709 #ifdef HAVE_MATH_H
22710 #include <math.h>
22711 #endif
22713 int (*ptr)() = (int (*)())sqrtf;
22716 main ()
22718 return 0;
22721 _ACEOF
22722 if ac_fn_c_try_link "$LINENO"; then :
22723 gcc_cv_math_func_sqrtf=yes
22724 else
22725 gcc_cv_math_func_sqrtf=no
22727 rm -f core conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22731 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22732 if test $gcc_cv_math_func_sqrtf = yes; then
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_SQRTF 1
22736 _ACEOF
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22744 $as_echo_n "checking for sqrt... " >&6; }
22745 if ${gcc_cv_math_func_sqrt+:} false; then :
22746 $as_echo_n "(cached) " >&6
22747 else
22748 if test x$gcc_no_link = xyes; then
22749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22754 #ifdef HAVE_COMPLEX_H
22755 #include <complex.h>
22756 #endif
22757 #ifdef HAVE_MATH_H
22758 #include <math.h>
22759 #endif
22761 int (*ptr)() = (int (*)())sqrt;
22764 main ()
22766 return 0;
22769 _ACEOF
22770 if ac_fn_c_try_link "$LINENO"; then :
22771 gcc_cv_math_func_sqrt=yes
22772 else
22773 gcc_cv_math_func_sqrt=no
22775 rm -f core conftest.err conftest.$ac_objext \
22776 conftest$ac_exeext conftest.$ac_ext
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22779 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22780 if test $gcc_cv_math_func_sqrt = yes; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define HAVE_SQRT 1
22784 _ACEOF
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22792 $as_echo_n "checking for sqrtl... " >&6; }
22793 if ${gcc_cv_math_func_sqrtl+:} false; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 if test x$gcc_no_link = xyes; then
22797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h. */
22802 #ifdef HAVE_COMPLEX_H
22803 #include <complex.h>
22804 #endif
22805 #ifdef HAVE_MATH_H
22806 #include <math.h>
22807 #endif
22809 int (*ptr)() = (int (*)())sqrtl;
22812 main ()
22814 return 0;
22817 _ACEOF
22818 if ac_fn_c_try_link "$LINENO"; then :
22819 gcc_cv_math_func_sqrtl=yes
22820 else
22821 gcc_cv_math_func_sqrtl=no
22823 rm -f core conftest.err conftest.$ac_objext \
22824 conftest$ac_exeext conftest.$ac_ext
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22827 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22828 if test $gcc_cv_math_func_sqrtl = yes; then
22830 cat >>confdefs.h <<_ACEOF
22831 #define HAVE_SQRTL 1
22832 _ACEOF
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22840 $as_echo_n "checking for csqrtf... " >&6; }
22841 if ${gcc_cv_math_func_csqrtf+:} false; then :
22842 $as_echo_n "(cached) " >&6
22843 else
22844 if test x$gcc_no_link = xyes; then
22845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h. */
22850 #ifdef HAVE_COMPLEX_H
22851 #include <complex.h>
22852 #endif
22853 #ifdef HAVE_MATH_H
22854 #include <math.h>
22855 #endif
22857 int (*ptr)() = (int (*)())csqrtf;
22860 main ()
22862 return 0;
22865 _ACEOF
22866 if ac_fn_c_try_link "$LINENO"; then :
22867 gcc_cv_math_func_csqrtf=yes
22868 else
22869 gcc_cv_math_func_csqrtf=no
22871 rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22875 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22876 if test $gcc_cv_math_func_csqrtf = yes; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_CSQRTF 1
22880 _ACEOF
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22888 $as_echo_n "checking for csqrt... " >&6; }
22889 if ${gcc_cv_math_func_csqrt+:} false; then :
22890 $as_echo_n "(cached) " >&6
22891 else
22892 if test x$gcc_no_link = xyes; then
22893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22898 #ifdef HAVE_COMPLEX_H
22899 #include <complex.h>
22900 #endif
22901 #ifdef HAVE_MATH_H
22902 #include <math.h>
22903 #endif
22905 int (*ptr)() = (int (*)())csqrt;
22908 main ()
22910 return 0;
22913 _ACEOF
22914 if ac_fn_c_try_link "$LINENO"; then :
22915 gcc_cv_math_func_csqrt=yes
22916 else
22917 gcc_cv_math_func_csqrt=no
22919 rm -f core conftest.err conftest.$ac_objext \
22920 conftest$ac_exeext conftest.$ac_ext
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22923 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22924 if test $gcc_cv_math_func_csqrt = yes; then
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_CSQRT 1
22928 _ACEOF
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22936 $as_echo_n "checking for csqrtl... " >&6; }
22937 if ${gcc_cv_math_func_csqrtl+:} false; then :
22938 $as_echo_n "(cached) " >&6
22939 else
22940 if test x$gcc_no_link = xyes; then
22941 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h. */
22946 #ifdef HAVE_COMPLEX_H
22947 #include <complex.h>
22948 #endif
22949 #ifdef HAVE_MATH_H
22950 #include <math.h>
22951 #endif
22953 int (*ptr)() = (int (*)())csqrtl;
22956 main ()
22958 return 0;
22961 _ACEOF
22962 if ac_fn_c_try_link "$LINENO"; then :
22963 gcc_cv_math_func_csqrtl=yes
22964 else
22965 gcc_cv_math_func_csqrtl=no
22967 rm -f core conftest.err conftest.$ac_objext \
22968 conftest$ac_exeext conftest.$ac_ext
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22971 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22972 if test $gcc_cv_math_func_csqrtl = yes; then
22974 cat >>confdefs.h <<_ACEOF
22975 #define HAVE_CSQRTL 1
22976 _ACEOF
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22984 $as_echo_n "checking for tanf... " >&6; }
22985 if ${gcc_cv_math_func_tanf+:} false; then :
22986 $as_echo_n "(cached) " >&6
22987 else
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. */
22994 #ifdef HAVE_COMPLEX_H
22995 #include <complex.h>
22996 #endif
22997 #ifdef HAVE_MATH_H
22998 #include <math.h>
22999 #endif
23001 int (*ptr)() = (int (*)())tanf;
23004 main ()
23006 return 0;
23009 _ACEOF
23010 if ac_fn_c_try_link "$LINENO"; then :
23011 gcc_cv_math_func_tanf=yes
23012 else
23013 gcc_cv_math_func_tanf=no
23015 rm -f core conftest.err conftest.$ac_objext \
23016 conftest$ac_exeext conftest.$ac_ext
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23019 $as_echo "$gcc_cv_math_func_tanf" >&6; }
23020 if test $gcc_cv_math_func_tanf = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_TANF 1
23024 _ACEOF
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23032 $as_echo_n "checking for tan... " >&6; }
23033 if ${gcc_cv_math_func_tan+:} false; then :
23034 $as_echo_n "(cached) " >&6
23035 else
23036 if test x$gcc_no_link = xyes; then
23037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040 /* end confdefs.h. */
23042 #ifdef HAVE_COMPLEX_H
23043 #include <complex.h>
23044 #endif
23045 #ifdef HAVE_MATH_H
23046 #include <math.h>
23047 #endif
23049 int (*ptr)() = (int (*)())tan;
23052 main ()
23054 return 0;
23057 _ACEOF
23058 if ac_fn_c_try_link "$LINENO"; then :
23059 gcc_cv_math_func_tan=yes
23060 else
23061 gcc_cv_math_func_tan=no
23063 rm -f core conftest.err conftest.$ac_objext \
23064 conftest$ac_exeext conftest.$ac_ext
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23067 $as_echo "$gcc_cv_math_func_tan" >&6; }
23068 if test $gcc_cv_math_func_tan = yes; then
23070 cat >>confdefs.h <<_ACEOF
23071 #define HAVE_TAN 1
23072 _ACEOF
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23080 $as_echo_n "checking for tanl... " >&6; }
23081 if ${gcc_cv_math_func_tanl+:} false; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 if test x$gcc_no_link = xyes; then
23085 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23090 #ifdef HAVE_COMPLEX_H
23091 #include <complex.h>
23092 #endif
23093 #ifdef HAVE_MATH_H
23094 #include <math.h>
23095 #endif
23097 int (*ptr)() = (int (*)())tanl;
23100 main ()
23102 return 0;
23105 _ACEOF
23106 if ac_fn_c_try_link "$LINENO"; then :
23107 gcc_cv_math_func_tanl=yes
23108 else
23109 gcc_cv_math_func_tanl=no
23111 rm -f core conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23115 $as_echo "$gcc_cv_math_func_tanl" >&6; }
23116 if test $gcc_cv_math_func_tanl = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define HAVE_TANL 1
23120 _ACEOF
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23128 $as_echo_n "checking for ctanf... " >&6; }
23129 if ${gcc_cv_math_func_ctanf+:} false; then :
23130 $as_echo_n "(cached) " >&6
23131 else
23132 if test x$gcc_no_link = xyes; then
23133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23138 #ifdef HAVE_COMPLEX_H
23139 #include <complex.h>
23140 #endif
23141 #ifdef HAVE_MATH_H
23142 #include <math.h>
23143 #endif
23145 int (*ptr)() = (int (*)())ctanf;
23148 main ()
23150 return 0;
23153 _ACEOF
23154 if ac_fn_c_try_link "$LINENO"; then :
23155 gcc_cv_math_func_ctanf=yes
23156 else
23157 gcc_cv_math_func_ctanf=no
23159 rm -f core conftest.err conftest.$ac_objext \
23160 conftest$ac_exeext conftest.$ac_ext
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23163 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
23164 if test $gcc_cv_math_func_ctanf = yes; then
23166 cat >>confdefs.h <<_ACEOF
23167 #define HAVE_CTANF 1
23168 _ACEOF
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23176 $as_echo_n "checking for ctan... " >&6; }
23177 if ${gcc_cv_math_func_ctan+:} false; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 if test x$gcc_no_link = xyes; then
23181 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184 /* end confdefs.h. */
23186 #ifdef HAVE_COMPLEX_H
23187 #include <complex.h>
23188 #endif
23189 #ifdef HAVE_MATH_H
23190 #include <math.h>
23191 #endif
23193 int (*ptr)() = (int (*)())ctan;
23196 main ()
23198 return 0;
23201 _ACEOF
23202 if ac_fn_c_try_link "$LINENO"; then :
23203 gcc_cv_math_func_ctan=yes
23204 else
23205 gcc_cv_math_func_ctan=no
23207 rm -f core conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23211 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23212 if test $gcc_cv_math_func_ctan = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define HAVE_CTAN 1
23216 _ACEOF
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23224 $as_echo_n "checking for ctanl... " >&6; }
23225 if ${gcc_cv_math_func_ctanl+:} false; then :
23226 $as_echo_n "(cached) " >&6
23227 else
23228 if test x$gcc_no_link = xyes; then
23229 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23232 /* end confdefs.h. */
23234 #ifdef HAVE_COMPLEX_H
23235 #include <complex.h>
23236 #endif
23237 #ifdef HAVE_MATH_H
23238 #include <math.h>
23239 #endif
23241 int (*ptr)() = (int (*)())ctanl;
23244 main ()
23246 return 0;
23249 _ACEOF
23250 if ac_fn_c_try_link "$LINENO"; then :
23251 gcc_cv_math_func_ctanl=yes
23252 else
23253 gcc_cv_math_func_ctanl=no
23255 rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23259 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23260 if test $gcc_cv_math_func_ctanl = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263 #define HAVE_CTANL 1
23264 _ACEOF
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23272 $as_echo_n "checking for tanhf... " >&6; }
23273 if ${gcc_cv_math_func_tanhf+:} false; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 if test x$gcc_no_link = xyes; then
23277 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23282 #ifdef HAVE_COMPLEX_H
23283 #include <complex.h>
23284 #endif
23285 #ifdef HAVE_MATH_H
23286 #include <math.h>
23287 #endif
23289 int (*ptr)() = (int (*)())tanhf;
23292 main ()
23294 return 0;
23297 _ACEOF
23298 if ac_fn_c_try_link "$LINENO"; then :
23299 gcc_cv_math_func_tanhf=yes
23300 else
23301 gcc_cv_math_func_tanhf=no
23303 rm -f core conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23307 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23308 if test $gcc_cv_math_func_tanhf = yes; then
23310 cat >>confdefs.h <<_ACEOF
23311 #define HAVE_TANHF 1
23312 _ACEOF
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23320 $as_echo_n "checking for tanh... " >&6; }
23321 if ${gcc_cv_math_func_tanh+:} false; then :
23322 $as_echo_n "(cached) " >&6
23323 else
23324 if test x$gcc_no_link = xyes; then
23325 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23330 #ifdef HAVE_COMPLEX_H
23331 #include <complex.h>
23332 #endif
23333 #ifdef HAVE_MATH_H
23334 #include <math.h>
23335 #endif
23337 int (*ptr)() = (int (*)())tanh;
23340 main ()
23342 return 0;
23345 _ACEOF
23346 if ac_fn_c_try_link "$LINENO"; then :
23347 gcc_cv_math_func_tanh=yes
23348 else
23349 gcc_cv_math_func_tanh=no
23351 rm -f core conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23355 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23356 if test $gcc_cv_math_func_tanh = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_TANH 1
23360 _ACEOF
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23368 $as_echo_n "checking for tanhl... " >&6; }
23369 if ${gcc_cv_math_func_tanhl+:} false; then :
23370 $as_echo_n "(cached) " >&6
23371 else
23372 if test x$gcc_no_link = xyes; then
23373 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376 /* end confdefs.h. */
23378 #ifdef HAVE_COMPLEX_H
23379 #include <complex.h>
23380 #endif
23381 #ifdef HAVE_MATH_H
23382 #include <math.h>
23383 #endif
23385 int (*ptr)() = (int (*)())tanhl;
23388 main ()
23390 return 0;
23393 _ACEOF
23394 if ac_fn_c_try_link "$LINENO"; then :
23395 gcc_cv_math_func_tanhl=yes
23396 else
23397 gcc_cv_math_func_tanhl=no
23399 rm -f core conftest.err conftest.$ac_objext \
23400 conftest$ac_exeext conftest.$ac_ext
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23403 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23404 if test $gcc_cv_math_func_tanhl = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define HAVE_TANHL 1
23408 _ACEOF
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23416 $as_echo_n "checking for ctanhf... " >&6; }
23417 if ${gcc_cv_math_func_ctanhf+:} false; then :
23418 $as_echo_n "(cached) " >&6
23419 else
23420 if test x$gcc_no_link = xyes; then
23421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h. */
23426 #ifdef HAVE_COMPLEX_H
23427 #include <complex.h>
23428 #endif
23429 #ifdef HAVE_MATH_H
23430 #include <math.h>
23431 #endif
23433 int (*ptr)() = (int (*)())ctanhf;
23436 main ()
23438 return 0;
23441 _ACEOF
23442 if ac_fn_c_try_link "$LINENO"; then :
23443 gcc_cv_math_func_ctanhf=yes
23444 else
23445 gcc_cv_math_func_ctanhf=no
23447 rm -f core conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23451 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23452 if test $gcc_cv_math_func_ctanhf = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define HAVE_CTANHF 1
23456 _ACEOF
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23464 $as_echo_n "checking for ctanh... " >&6; }
23465 if ${gcc_cv_math_func_ctanh+:} false; then :
23466 $as_echo_n "(cached) " >&6
23467 else
23468 if test x$gcc_no_link = xyes; then
23469 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23474 #ifdef HAVE_COMPLEX_H
23475 #include <complex.h>
23476 #endif
23477 #ifdef HAVE_MATH_H
23478 #include <math.h>
23479 #endif
23481 int (*ptr)() = (int (*)())ctanh;
23484 main ()
23486 return 0;
23489 _ACEOF
23490 if ac_fn_c_try_link "$LINENO"; then :
23491 gcc_cv_math_func_ctanh=yes
23492 else
23493 gcc_cv_math_func_ctanh=no
23495 rm -f core conftest.err conftest.$ac_objext \
23496 conftest$ac_exeext conftest.$ac_ext
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23499 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23500 if test $gcc_cv_math_func_ctanh = yes; then
23502 cat >>confdefs.h <<_ACEOF
23503 #define HAVE_CTANH 1
23504 _ACEOF
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23512 $as_echo_n "checking for ctanhl... " >&6; }
23513 if ${gcc_cv_math_func_ctanhl+:} false; then :
23514 $as_echo_n "(cached) " >&6
23515 else
23516 if test x$gcc_no_link = xyes; then
23517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520 /* end confdefs.h. */
23522 #ifdef HAVE_COMPLEX_H
23523 #include <complex.h>
23524 #endif
23525 #ifdef HAVE_MATH_H
23526 #include <math.h>
23527 #endif
23529 int (*ptr)() = (int (*)())ctanhl;
23532 main ()
23534 return 0;
23537 _ACEOF
23538 if ac_fn_c_try_link "$LINENO"; then :
23539 gcc_cv_math_func_ctanhl=yes
23540 else
23541 gcc_cv_math_func_ctanhl=no
23543 rm -f core conftest.err conftest.$ac_objext \
23544 conftest$ac_exeext conftest.$ac_ext
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23547 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23548 if test $gcc_cv_math_func_ctanhl = yes; then
23550 cat >>confdefs.h <<_ACEOF
23551 #define HAVE_CTANHL 1
23552 _ACEOF
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23560 $as_echo_n "checking for truncf... " >&6; }
23561 if ${gcc_cv_math_func_truncf+:} false; then :
23562 $as_echo_n "(cached) " >&6
23563 else
23564 if test x$gcc_no_link = xyes; then
23565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h. */
23570 #ifdef HAVE_COMPLEX_H
23571 #include <complex.h>
23572 #endif
23573 #ifdef HAVE_MATH_H
23574 #include <math.h>
23575 #endif
23577 int (*ptr)() = (int (*)())truncf;
23580 main ()
23582 return 0;
23585 _ACEOF
23586 if ac_fn_c_try_link "$LINENO"; then :
23587 gcc_cv_math_func_truncf=yes
23588 else
23589 gcc_cv_math_func_truncf=no
23591 rm -f core conftest.err conftest.$ac_objext \
23592 conftest$ac_exeext conftest.$ac_ext
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23595 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23596 if test $gcc_cv_math_func_truncf = yes; then
23598 cat >>confdefs.h <<_ACEOF
23599 #define HAVE_TRUNCF 1
23600 _ACEOF
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23608 $as_echo_n "checking for trunc... " >&6; }
23609 if ${gcc_cv_math_func_trunc+:} false; then :
23610 $as_echo_n "(cached) " >&6
23611 else
23612 if test x$gcc_no_link = xyes; then
23613 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23618 #ifdef HAVE_COMPLEX_H
23619 #include <complex.h>
23620 #endif
23621 #ifdef HAVE_MATH_H
23622 #include <math.h>
23623 #endif
23625 int (*ptr)() = (int (*)())trunc;
23628 main ()
23630 return 0;
23633 _ACEOF
23634 if ac_fn_c_try_link "$LINENO"; then :
23635 gcc_cv_math_func_trunc=yes
23636 else
23637 gcc_cv_math_func_trunc=no
23639 rm -f core conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23643 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23644 if test $gcc_cv_math_func_trunc = yes; then
23646 cat >>confdefs.h <<_ACEOF
23647 #define HAVE_TRUNC 1
23648 _ACEOF
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23656 $as_echo_n "checking for truncl... " >&6; }
23657 if ${gcc_cv_math_func_truncl+:} false; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 if test x$gcc_no_link = xyes; then
23661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23664 /* end confdefs.h. */
23666 #ifdef HAVE_COMPLEX_H
23667 #include <complex.h>
23668 #endif
23669 #ifdef HAVE_MATH_H
23670 #include <math.h>
23671 #endif
23673 int (*ptr)() = (int (*)())truncl;
23676 main ()
23678 return 0;
23681 _ACEOF
23682 if ac_fn_c_try_link "$LINENO"; then :
23683 gcc_cv_math_func_truncl=yes
23684 else
23685 gcc_cv_math_func_truncl=no
23687 rm -f core conftest.err conftest.$ac_objext \
23688 conftest$ac_exeext conftest.$ac_ext
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23691 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23692 if test $gcc_cv_math_func_truncl = yes; then
23694 cat >>confdefs.h <<_ACEOF
23695 #define HAVE_TRUNCL 1
23696 _ACEOF
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23704 $as_echo_n "checking for erff... " >&6; }
23705 if ${gcc_cv_math_func_erff+:} false; then :
23706 $as_echo_n "(cached) " >&6
23707 else
23708 if test x$gcc_no_link = xyes; then
23709 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23714 #ifdef HAVE_COMPLEX_H
23715 #include <complex.h>
23716 #endif
23717 #ifdef HAVE_MATH_H
23718 #include <math.h>
23719 #endif
23721 int (*ptr)() = (int (*)())erff;
23724 main ()
23726 return 0;
23729 _ACEOF
23730 if ac_fn_c_try_link "$LINENO"; then :
23731 gcc_cv_math_func_erff=yes
23732 else
23733 gcc_cv_math_func_erff=no
23735 rm -f core conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23739 $as_echo "$gcc_cv_math_func_erff" >&6; }
23740 if test $gcc_cv_math_func_erff = yes; then
23742 cat >>confdefs.h <<_ACEOF
23743 #define HAVE_ERFF 1
23744 _ACEOF
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23752 $as_echo_n "checking for erf... " >&6; }
23753 if ${gcc_cv_math_func_erf+:} false; then :
23754 $as_echo_n "(cached) " >&6
23755 else
23756 if test x$gcc_no_link = xyes; then
23757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23760 /* end confdefs.h. */
23762 #ifdef HAVE_COMPLEX_H
23763 #include <complex.h>
23764 #endif
23765 #ifdef HAVE_MATH_H
23766 #include <math.h>
23767 #endif
23769 int (*ptr)() = (int (*)())erf;
23772 main ()
23774 return 0;
23777 _ACEOF
23778 if ac_fn_c_try_link "$LINENO"; then :
23779 gcc_cv_math_func_erf=yes
23780 else
23781 gcc_cv_math_func_erf=no
23783 rm -f core conftest.err conftest.$ac_objext \
23784 conftest$ac_exeext conftest.$ac_ext
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23787 $as_echo "$gcc_cv_math_func_erf" >&6; }
23788 if test $gcc_cv_math_func_erf = yes; then
23790 cat >>confdefs.h <<_ACEOF
23791 #define HAVE_ERF 1
23792 _ACEOF
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23800 $as_echo_n "checking for erfcf... " >&6; }
23801 if ${gcc_cv_math_func_erfcf+:} false; then :
23802 $as_echo_n "(cached) " >&6
23803 else
23804 if test x$gcc_no_link = xyes; then
23805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808 /* end confdefs.h. */
23810 #ifdef HAVE_COMPLEX_H
23811 #include <complex.h>
23812 #endif
23813 #ifdef HAVE_MATH_H
23814 #include <math.h>
23815 #endif
23817 int (*ptr)() = (int (*)())erfcf;
23820 main ()
23822 return 0;
23825 _ACEOF
23826 if ac_fn_c_try_link "$LINENO"; then :
23827 gcc_cv_math_func_erfcf=yes
23828 else
23829 gcc_cv_math_func_erfcf=no
23831 rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23835 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23836 if test $gcc_cv_math_func_erfcf = yes; then
23838 cat >>confdefs.h <<_ACEOF
23839 #define HAVE_ERFCF 1
23840 _ACEOF
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23848 $as_echo_n "checking for erfc... " >&6; }
23849 if ${gcc_cv_math_func_erfc+:} false; then :
23850 $as_echo_n "(cached) " >&6
23851 else
23852 if test x$gcc_no_link = xyes; then
23853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23856 /* end confdefs.h. */
23858 #ifdef HAVE_COMPLEX_H
23859 #include <complex.h>
23860 #endif
23861 #ifdef HAVE_MATH_H
23862 #include <math.h>
23863 #endif
23865 int (*ptr)() = (int (*)())erfc;
23868 main ()
23870 return 0;
23873 _ACEOF
23874 if ac_fn_c_try_link "$LINENO"; then :
23875 gcc_cv_math_func_erfc=yes
23876 else
23877 gcc_cv_math_func_erfc=no
23879 rm -f core conftest.err conftest.$ac_objext \
23880 conftest$ac_exeext conftest.$ac_ext
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23883 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23884 if test $gcc_cv_math_func_erfc = yes; then
23886 cat >>confdefs.h <<_ACEOF
23887 #define HAVE_ERFC 1
23888 _ACEOF
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23896 $as_echo_n "checking for erfcl... " >&6; }
23897 if ${gcc_cv_math_func_erfcl+:} false; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 if test x$gcc_no_link = xyes; then
23901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904 /* end confdefs.h. */
23906 #ifdef HAVE_COMPLEX_H
23907 #include <complex.h>
23908 #endif
23909 #ifdef HAVE_MATH_H
23910 #include <math.h>
23911 #endif
23913 int (*ptr)() = (int (*)())erfcl;
23916 main ()
23918 return 0;
23921 _ACEOF
23922 if ac_fn_c_try_link "$LINENO"; then :
23923 gcc_cv_math_func_erfcl=yes
23924 else
23925 gcc_cv_math_func_erfcl=no
23927 rm -f core conftest.err conftest.$ac_objext \
23928 conftest$ac_exeext conftest.$ac_ext
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23931 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23932 if test $gcc_cv_math_func_erfcl = yes; then
23934 cat >>confdefs.h <<_ACEOF
23935 #define HAVE_ERFCL 1
23936 _ACEOF
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23944 $as_echo_n "checking for j0f... " >&6; }
23945 if ${gcc_cv_math_func_j0f+:} false; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23948 if test x$gcc_no_link = xyes; then
23949 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23952 /* end confdefs.h. */
23954 #ifdef HAVE_COMPLEX_H
23955 #include <complex.h>
23956 #endif
23957 #ifdef HAVE_MATH_H
23958 #include <math.h>
23959 #endif
23961 int (*ptr)() = (int (*)())j0f;
23964 main ()
23966 return 0;
23969 _ACEOF
23970 if ac_fn_c_try_link "$LINENO"; then :
23971 gcc_cv_math_func_j0f=yes
23972 else
23973 gcc_cv_math_func_j0f=no
23975 rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23979 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23980 if test $gcc_cv_math_func_j0f = yes; then
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_J0F 1
23984 _ACEOF
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23992 $as_echo_n "checking for j0... " >&6; }
23993 if ${gcc_cv_math_func_j0+:} false; then :
23994 $as_echo_n "(cached) " >&6
23995 else
23996 if test x$gcc_no_link = xyes; then
23997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h. */
24002 #ifdef HAVE_COMPLEX_H
24003 #include <complex.h>
24004 #endif
24005 #ifdef HAVE_MATH_H
24006 #include <math.h>
24007 #endif
24009 int (*ptr)() = (int (*)())j0;
24012 main ()
24014 return 0;
24017 _ACEOF
24018 if ac_fn_c_try_link "$LINENO"; then :
24019 gcc_cv_math_func_j0=yes
24020 else
24021 gcc_cv_math_func_j0=no
24023 rm -f core conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24027 $as_echo "$gcc_cv_math_func_j0" >&6; }
24028 if test $gcc_cv_math_func_j0 = yes; then
24030 cat >>confdefs.h <<_ACEOF
24031 #define HAVE_J0 1
24032 _ACEOF
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24040 $as_echo_n "checking for j1f... " >&6; }
24041 if ${gcc_cv_math_func_j1f+:} false; then :
24042 $as_echo_n "(cached) " >&6
24043 else
24044 if test x$gcc_no_link = xyes; then
24045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24048 /* end confdefs.h. */
24050 #ifdef HAVE_COMPLEX_H
24051 #include <complex.h>
24052 #endif
24053 #ifdef HAVE_MATH_H
24054 #include <math.h>
24055 #endif
24057 int (*ptr)() = (int (*)())j1f;
24060 main ()
24062 return 0;
24065 _ACEOF
24066 if ac_fn_c_try_link "$LINENO"; then :
24067 gcc_cv_math_func_j1f=yes
24068 else
24069 gcc_cv_math_func_j1f=no
24071 rm -f core conftest.err conftest.$ac_objext \
24072 conftest$ac_exeext conftest.$ac_ext
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24075 $as_echo "$gcc_cv_math_func_j1f" >&6; }
24076 if test $gcc_cv_math_func_j1f = yes; then
24078 cat >>confdefs.h <<_ACEOF
24079 #define HAVE_J1F 1
24080 _ACEOF
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24088 $as_echo_n "checking for j1... " >&6; }
24089 if ${gcc_cv_math_func_j1+:} false; then :
24090 $as_echo_n "(cached) " >&6
24091 else
24092 if test x$gcc_no_link = xyes; then
24093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24096 /* end confdefs.h. */
24098 #ifdef HAVE_COMPLEX_H
24099 #include <complex.h>
24100 #endif
24101 #ifdef HAVE_MATH_H
24102 #include <math.h>
24103 #endif
24105 int (*ptr)() = (int (*)())j1;
24108 main ()
24110 return 0;
24113 _ACEOF
24114 if ac_fn_c_try_link "$LINENO"; then :
24115 gcc_cv_math_func_j1=yes
24116 else
24117 gcc_cv_math_func_j1=no
24119 rm -f core conftest.err conftest.$ac_objext \
24120 conftest$ac_exeext conftest.$ac_ext
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24123 $as_echo "$gcc_cv_math_func_j1" >&6; }
24124 if test $gcc_cv_math_func_j1 = yes; then
24126 cat >>confdefs.h <<_ACEOF
24127 #define HAVE_J1 1
24128 _ACEOF
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24136 $as_echo_n "checking for jnf... " >&6; }
24137 if ${gcc_cv_math_func_jnf+:} false; then :
24138 $as_echo_n "(cached) " >&6
24139 else
24140 if test x$gcc_no_link = xyes; then
24141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24144 /* end confdefs.h. */
24146 #ifdef HAVE_COMPLEX_H
24147 #include <complex.h>
24148 #endif
24149 #ifdef HAVE_MATH_H
24150 #include <math.h>
24151 #endif
24153 int (*ptr)() = (int (*)())jnf;
24156 main ()
24158 return 0;
24161 _ACEOF
24162 if ac_fn_c_try_link "$LINENO"; then :
24163 gcc_cv_math_func_jnf=yes
24164 else
24165 gcc_cv_math_func_jnf=no
24167 rm -f core conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24171 $as_echo "$gcc_cv_math_func_jnf" >&6; }
24172 if test $gcc_cv_math_func_jnf = yes; then
24174 cat >>confdefs.h <<_ACEOF
24175 #define HAVE_JNF 1
24176 _ACEOF
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24184 $as_echo_n "checking for jn... " >&6; }
24185 if ${gcc_cv_math_func_jn+:} false; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 if test x$gcc_no_link = xyes; then
24189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192 /* end confdefs.h. */
24194 #ifdef HAVE_COMPLEX_H
24195 #include <complex.h>
24196 #endif
24197 #ifdef HAVE_MATH_H
24198 #include <math.h>
24199 #endif
24201 int (*ptr)() = (int (*)())jn;
24204 main ()
24206 return 0;
24209 _ACEOF
24210 if ac_fn_c_try_link "$LINENO"; then :
24211 gcc_cv_math_func_jn=yes
24212 else
24213 gcc_cv_math_func_jn=no
24215 rm -f core conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24219 $as_echo "$gcc_cv_math_func_jn" >&6; }
24220 if test $gcc_cv_math_func_jn = yes; then
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_JN 1
24224 _ACEOF
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24232 $as_echo_n "checking for jnl... " >&6; }
24233 if ${gcc_cv_math_func_jnl+:} false; then :
24234 $as_echo_n "(cached) " >&6
24235 else
24236 if test x$gcc_no_link = xyes; then
24237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240 /* end confdefs.h. */
24242 #ifdef HAVE_COMPLEX_H
24243 #include <complex.h>
24244 #endif
24245 #ifdef HAVE_MATH_H
24246 #include <math.h>
24247 #endif
24249 int (*ptr)() = (int (*)())jnl;
24252 main ()
24254 return 0;
24257 _ACEOF
24258 if ac_fn_c_try_link "$LINENO"; then :
24259 gcc_cv_math_func_jnl=yes
24260 else
24261 gcc_cv_math_func_jnl=no
24263 rm -f core conftest.err conftest.$ac_objext \
24264 conftest$ac_exeext conftest.$ac_ext
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24267 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24268 if test $gcc_cv_math_func_jnl = yes; then
24270 cat >>confdefs.h <<_ACEOF
24271 #define HAVE_JNL 1
24272 _ACEOF
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24280 $as_echo_n "checking for y0f... " >&6; }
24281 if ${gcc_cv_math_func_y0f+:} false; then :
24282 $as_echo_n "(cached) " >&6
24283 else
24284 if test x$gcc_no_link = xyes; then
24285 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24288 /* end confdefs.h. */
24290 #ifdef HAVE_COMPLEX_H
24291 #include <complex.h>
24292 #endif
24293 #ifdef HAVE_MATH_H
24294 #include <math.h>
24295 #endif
24297 int (*ptr)() = (int (*)())y0f;
24300 main ()
24302 return 0;
24305 _ACEOF
24306 if ac_fn_c_try_link "$LINENO"; then :
24307 gcc_cv_math_func_y0f=yes
24308 else
24309 gcc_cv_math_func_y0f=no
24311 rm -f core conftest.err conftest.$ac_objext \
24312 conftest$ac_exeext conftest.$ac_ext
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24315 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24316 if test $gcc_cv_math_func_y0f = yes; then
24318 cat >>confdefs.h <<_ACEOF
24319 #define HAVE_Y0F 1
24320 _ACEOF
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24328 $as_echo_n "checking for y0... " >&6; }
24329 if ${gcc_cv_math_func_y0+:} false; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 if test x$gcc_no_link = xyes; then
24333 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24338 #ifdef HAVE_COMPLEX_H
24339 #include <complex.h>
24340 #endif
24341 #ifdef HAVE_MATH_H
24342 #include <math.h>
24343 #endif
24345 int (*ptr)() = (int (*)())y0;
24348 main ()
24350 return 0;
24353 _ACEOF
24354 if ac_fn_c_try_link "$LINENO"; then :
24355 gcc_cv_math_func_y0=yes
24356 else
24357 gcc_cv_math_func_y0=no
24359 rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24363 $as_echo "$gcc_cv_math_func_y0" >&6; }
24364 if test $gcc_cv_math_func_y0 = yes; then
24366 cat >>confdefs.h <<_ACEOF
24367 #define HAVE_Y0 1
24368 _ACEOF
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24376 $as_echo_n "checking for y1f... " >&6; }
24377 if ${gcc_cv_math_func_y1f+:} false; then :
24378 $as_echo_n "(cached) " >&6
24379 else
24380 if test x$gcc_no_link = xyes; then
24381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24384 /* end confdefs.h. */
24386 #ifdef HAVE_COMPLEX_H
24387 #include <complex.h>
24388 #endif
24389 #ifdef HAVE_MATH_H
24390 #include <math.h>
24391 #endif
24393 int (*ptr)() = (int (*)())y1f;
24396 main ()
24398 return 0;
24401 _ACEOF
24402 if ac_fn_c_try_link "$LINENO"; then :
24403 gcc_cv_math_func_y1f=yes
24404 else
24405 gcc_cv_math_func_y1f=no
24407 rm -f core conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24411 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24412 if test $gcc_cv_math_func_y1f = yes; then
24414 cat >>confdefs.h <<_ACEOF
24415 #define HAVE_Y1F 1
24416 _ACEOF
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24424 $as_echo_n "checking for y1... " >&6; }
24425 if ${gcc_cv_math_func_y1+:} false; then :
24426 $as_echo_n "(cached) " >&6
24427 else
24428 if test x$gcc_no_link = xyes; then
24429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h. */
24434 #ifdef HAVE_COMPLEX_H
24435 #include <complex.h>
24436 #endif
24437 #ifdef HAVE_MATH_H
24438 #include <math.h>
24439 #endif
24441 int (*ptr)() = (int (*)())y1;
24444 main ()
24446 return 0;
24449 _ACEOF
24450 if ac_fn_c_try_link "$LINENO"; then :
24451 gcc_cv_math_func_y1=yes
24452 else
24453 gcc_cv_math_func_y1=no
24455 rm -f core conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24459 $as_echo "$gcc_cv_math_func_y1" >&6; }
24460 if test $gcc_cv_math_func_y1 = yes; then
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_Y1 1
24464 _ACEOF
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24472 $as_echo_n "checking for ynf... " >&6; }
24473 if ${gcc_cv_math_func_ynf+:} false; then :
24474 $as_echo_n "(cached) " >&6
24475 else
24476 if test x$gcc_no_link = xyes; then
24477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h. */
24482 #ifdef HAVE_COMPLEX_H
24483 #include <complex.h>
24484 #endif
24485 #ifdef HAVE_MATH_H
24486 #include <math.h>
24487 #endif
24489 int (*ptr)() = (int (*)())ynf;
24492 main ()
24494 return 0;
24497 _ACEOF
24498 if ac_fn_c_try_link "$LINENO"; then :
24499 gcc_cv_math_func_ynf=yes
24500 else
24501 gcc_cv_math_func_ynf=no
24503 rm -f core conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24507 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24508 if test $gcc_cv_math_func_ynf = yes; then
24510 cat >>confdefs.h <<_ACEOF
24511 #define HAVE_YNF 1
24512 _ACEOF
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24520 $as_echo_n "checking for yn... " >&6; }
24521 if ${gcc_cv_math_func_yn+:} false; then :
24522 $as_echo_n "(cached) " >&6
24523 else
24524 if test x$gcc_no_link = xyes; then
24525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528 /* end confdefs.h. */
24530 #ifdef HAVE_COMPLEX_H
24531 #include <complex.h>
24532 #endif
24533 #ifdef HAVE_MATH_H
24534 #include <math.h>
24535 #endif
24537 int (*ptr)() = (int (*)())yn;
24540 main ()
24542 return 0;
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547 gcc_cv_math_func_yn=yes
24548 else
24549 gcc_cv_math_func_yn=no
24551 rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24555 $as_echo "$gcc_cv_math_func_yn" >&6; }
24556 if test $gcc_cv_math_func_yn = yes; then
24558 cat >>confdefs.h <<_ACEOF
24559 #define HAVE_YN 1
24560 _ACEOF
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24568 $as_echo_n "checking for ynl... " >&6; }
24569 if ${gcc_cv_math_func_ynl+:} false; then :
24570 $as_echo_n "(cached) " >&6
24571 else
24572 if test x$gcc_no_link = xyes; then
24573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24576 /* end confdefs.h. */
24578 #ifdef HAVE_COMPLEX_H
24579 #include <complex.h>
24580 #endif
24581 #ifdef HAVE_MATH_H
24582 #include <math.h>
24583 #endif
24585 int (*ptr)() = (int (*)())ynl;
24588 main ()
24590 return 0;
24593 _ACEOF
24594 if ac_fn_c_try_link "$LINENO"; then :
24595 gcc_cv_math_func_ynl=yes
24596 else
24597 gcc_cv_math_func_ynl=no
24599 rm -f core conftest.err conftest.$ac_objext \
24600 conftest$ac_exeext conftest.$ac_ext
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24603 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24604 if test $gcc_cv_math_func_ynl = yes; then
24606 cat >>confdefs.h <<_ACEOF
24607 #define HAVE_YNL 1
24608 _ACEOF
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24616 $as_echo_n "checking for tgamma... " >&6; }
24617 if ${gcc_cv_math_func_tgamma+:} false; then :
24618 $as_echo_n "(cached) " >&6
24619 else
24620 if test x$gcc_no_link = xyes; then
24621 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24626 #ifdef HAVE_COMPLEX_H
24627 #include <complex.h>
24628 #endif
24629 #ifdef HAVE_MATH_H
24630 #include <math.h>
24631 #endif
24633 int (*ptr)() = (int (*)())tgamma;
24636 main ()
24638 return 0;
24641 _ACEOF
24642 if ac_fn_c_try_link "$LINENO"; then :
24643 gcc_cv_math_func_tgamma=yes
24644 else
24645 gcc_cv_math_func_tgamma=no
24647 rm -f core conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24651 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24652 if test $gcc_cv_math_func_tgamma = yes; then
24654 cat >>confdefs.h <<_ACEOF
24655 #define HAVE_TGAMMA 1
24656 _ACEOF
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24664 $as_echo_n "checking for tgammaf... " >&6; }
24665 if ${gcc_cv_math_func_tgammaf+:} false; then :
24666 $as_echo_n "(cached) " >&6
24667 else
24668 if test x$gcc_no_link = xyes; then
24669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24674 #ifdef HAVE_COMPLEX_H
24675 #include <complex.h>
24676 #endif
24677 #ifdef HAVE_MATH_H
24678 #include <math.h>
24679 #endif
24681 int (*ptr)() = (int (*)())tgammaf;
24684 main ()
24686 return 0;
24689 _ACEOF
24690 if ac_fn_c_try_link "$LINENO"; then :
24691 gcc_cv_math_func_tgammaf=yes
24692 else
24693 gcc_cv_math_func_tgammaf=no
24695 rm -f core conftest.err conftest.$ac_objext \
24696 conftest$ac_exeext conftest.$ac_ext
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24699 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24700 if test $gcc_cv_math_func_tgammaf = yes; then
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_TGAMMAF 1
24704 _ACEOF
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24712 $as_echo_n "checking for lgamma... " >&6; }
24713 if ${gcc_cv_math_func_lgamma+:} false; then :
24714 $as_echo_n "(cached) " >&6
24715 else
24716 if test x$gcc_no_link = xyes; then
24717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24722 #ifdef HAVE_COMPLEX_H
24723 #include <complex.h>
24724 #endif
24725 #ifdef HAVE_MATH_H
24726 #include <math.h>
24727 #endif
24729 int (*ptr)() = (int (*)())lgamma;
24732 main ()
24734 return 0;
24737 _ACEOF
24738 if ac_fn_c_try_link "$LINENO"; then :
24739 gcc_cv_math_func_lgamma=yes
24740 else
24741 gcc_cv_math_func_lgamma=no
24743 rm -f core conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24747 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24748 if test $gcc_cv_math_func_lgamma = yes; then
24750 cat >>confdefs.h <<_ACEOF
24751 #define HAVE_LGAMMA 1
24752 _ACEOF
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24760 $as_echo_n "checking for lgammaf... " >&6; }
24761 if ${gcc_cv_math_func_lgammaf+:} false; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 if test x$gcc_no_link = xyes; then
24765 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h. */
24770 #ifdef HAVE_COMPLEX_H
24771 #include <complex.h>
24772 #endif
24773 #ifdef HAVE_MATH_H
24774 #include <math.h>
24775 #endif
24777 int (*ptr)() = (int (*)())lgammaf;
24780 main ()
24782 return 0;
24785 _ACEOF
24786 if ac_fn_c_try_link "$LINENO"; then :
24787 gcc_cv_math_func_lgammaf=yes
24788 else
24789 gcc_cv_math_func_lgammaf=no
24791 rm -f core conftest.err conftest.$ac_objext \
24792 conftest$ac_exeext conftest.$ac_ext
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24795 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24796 if test $gcc_cv_math_func_lgammaf = yes; then
24798 cat >>confdefs.h <<_ACEOF
24799 #define HAVE_LGAMMAF 1
24800 _ACEOF
24805 # Check for GFORTRAN_C99_1.1 funcs
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24810 $as_echo_n "checking for cacos... " >&6; }
24811 if ${gcc_cv_math_func_cacos+:} false; then :
24812 $as_echo_n "(cached) " >&6
24813 else
24814 if test x$gcc_no_link = xyes; then
24815 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24820 #ifdef HAVE_COMPLEX_H
24821 #include <complex.h>
24822 #endif
24823 #ifdef HAVE_MATH_H
24824 #include <math.h>
24825 #endif
24827 int (*ptr)() = (int (*)())cacos;
24830 main ()
24832 return 0;
24835 _ACEOF
24836 if ac_fn_c_try_link "$LINENO"; then :
24837 gcc_cv_math_func_cacos=yes
24838 else
24839 gcc_cv_math_func_cacos=no
24841 rm -f core conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24845 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24846 if test $gcc_cv_math_func_cacos = yes; then
24848 cat >>confdefs.h <<_ACEOF
24849 #define HAVE_CACOS 1
24850 _ACEOF
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24858 $as_echo_n "checking for cacosf... " >&6; }
24859 if ${gcc_cv_math_func_cacosf+:} false; then :
24860 $as_echo_n "(cached) " >&6
24861 else
24862 if test x$gcc_no_link = xyes; then
24863 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24866 /* end confdefs.h. */
24868 #ifdef HAVE_COMPLEX_H
24869 #include <complex.h>
24870 #endif
24871 #ifdef HAVE_MATH_H
24872 #include <math.h>
24873 #endif
24875 int (*ptr)() = (int (*)())cacosf;
24878 main ()
24880 return 0;
24883 _ACEOF
24884 if ac_fn_c_try_link "$LINENO"; then :
24885 gcc_cv_math_func_cacosf=yes
24886 else
24887 gcc_cv_math_func_cacosf=no
24889 rm -f core conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24893 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24894 if test $gcc_cv_math_func_cacosf = yes; then
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_CACOSF 1
24898 _ACEOF
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24906 $as_echo_n "checking for cacosh... " >&6; }
24907 if ${gcc_cv_math_func_cacosh+:} false; then :
24908 $as_echo_n "(cached) " >&6
24909 else
24910 if test x$gcc_no_link = xyes; then
24911 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24916 #ifdef HAVE_COMPLEX_H
24917 #include <complex.h>
24918 #endif
24919 #ifdef HAVE_MATH_H
24920 #include <math.h>
24921 #endif
24923 int (*ptr)() = (int (*)())cacosh;
24926 main ()
24928 return 0;
24931 _ACEOF
24932 if ac_fn_c_try_link "$LINENO"; then :
24933 gcc_cv_math_func_cacosh=yes
24934 else
24935 gcc_cv_math_func_cacosh=no
24937 rm -f core conftest.err conftest.$ac_objext \
24938 conftest$ac_exeext conftest.$ac_ext
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24941 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24942 if test $gcc_cv_math_func_cacosh = yes; then
24944 cat >>confdefs.h <<_ACEOF
24945 #define HAVE_CACOSH 1
24946 _ACEOF
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24954 $as_echo_n "checking for cacoshf... " >&6; }
24955 if ${gcc_cv_math_func_cacoshf+:} false; then :
24956 $as_echo_n "(cached) " >&6
24957 else
24958 if test x$gcc_no_link = xyes; then
24959 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962 /* end confdefs.h. */
24964 #ifdef HAVE_COMPLEX_H
24965 #include <complex.h>
24966 #endif
24967 #ifdef HAVE_MATH_H
24968 #include <math.h>
24969 #endif
24971 int (*ptr)() = (int (*)())cacoshf;
24974 main ()
24976 return 0;
24979 _ACEOF
24980 if ac_fn_c_try_link "$LINENO"; then :
24981 gcc_cv_math_func_cacoshf=yes
24982 else
24983 gcc_cv_math_func_cacoshf=no
24985 rm -f core conftest.err conftest.$ac_objext \
24986 conftest$ac_exeext conftest.$ac_ext
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24989 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24990 if test $gcc_cv_math_func_cacoshf = yes; then
24992 cat >>confdefs.h <<_ACEOF
24993 #define HAVE_CACOSHF 1
24994 _ACEOF
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25002 $as_echo_n "checking for cacoshl... " >&6; }
25003 if ${gcc_cv_math_func_cacoshl+:} false; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 if test x$gcc_no_link = xyes; then
25007 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25012 #ifdef HAVE_COMPLEX_H
25013 #include <complex.h>
25014 #endif
25015 #ifdef HAVE_MATH_H
25016 #include <math.h>
25017 #endif
25019 int (*ptr)() = (int (*)())cacoshl;
25022 main ()
25024 return 0;
25027 _ACEOF
25028 if ac_fn_c_try_link "$LINENO"; then :
25029 gcc_cv_math_func_cacoshl=yes
25030 else
25031 gcc_cv_math_func_cacoshl=no
25033 rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25037 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25038 if test $gcc_cv_math_func_cacoshl = yes; then
25040 cat >>confdefs.h <<_ACEOF
25041 #define HAVE_CACOSHL 1
25042 _ACEOF
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25050 $as_echo_n "checking for cacosl... " >&6; }
25051 if ${gcc_cv_math_func_cacosl+:} false; then :
25052 $as_echo_n "(cached) " >&6
25053 else
25054 if test x$gcc_no_link = xyes; then
25055 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058 /* end confdefs.h. */
25060 #ifdef HAVE_COMPLEX_H
25061 #include <complex.h>
25062 #endif
25063 #ifdef HAVE_MATH_H
25064 #include <math.h>
25065 #endif
25067 int (*ptr)() = (int (*)())cacosl;
25070 main ()
25072 return 0;
25075 _ACEOF
25076 if ac_fn_c_try_link "$LINENO"; then :
25077 gcc_cv_math_func_cacosl=yes
25078 else
25079 gcc_cv_math_func_cacosl=no
25081 rm -f core conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25085 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
25086 if test $gcc_cv_math_func_cacosl = yes; then
25088 cat >>confdefs.h <<_ACEOF
25089 #define HAVE_CACOSL 1
25090 _ACEOF
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25098 $as_echo_n "checking for casin... " >&6; }
25099 if ${gcc_cv_math_func_casin+:} false; then :
25100 $as_echo_n "(cached) " >&6
25101 else
25102 if test x$gcc_no_link = xyes; then
25103 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25106 /* end confdefs.h. */
25108 #ifdef HAVE_COMPLEX_H
25109 #include <complex.h>
25110 #endif
25111 #ifdef HAVE_MATH_H
25112 #include <math.h>
25113 #endif
25115 int (*ptr)() = (int (*)())casin;
25118 main ()
25120 return 0;
25123 _ACEOF
25124 if ac_fn_c_try_link "$LINENO"; then :
25125 gcc_cv_math_func_casin=yes
25126 else
25127 gcc_cv_math_func_casin=no
25129 rm -f core conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25133 $as_echo "$gcc_cv_math_func_casin" >&6; }
25134 if test $gcc_cv_math_func_casin = yes; then
25136 cat >>confdefs.h <<_ACEOF
25137 #define HAVE_CASIN 1
25138 _ACEOF
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25146 $as_echo_n "checking for casinf... " >&6; }
25147 if ${gcc_cv_math_func_casinf+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 if test x$gcc_no_link = xyes; then
25151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25156 #ifdef HAVE_COMPLEX_H
25157 #include <complex.h>
25158 #endif
25159 #ifdef HAVE_MATH_H
25160 #include <math.h>
25161 #endif
25163 int (*ptr)() = (int (*)())casinf;
25166 main ()
25168 return 0;
25171 _ACEOF
25172 if ac_fn_c_try_link "$LINENO"; then :
25173 gcc_cv_math_func_casinf=yes
25174 else
25175 gcc_cv_math_func_casinf=no
25177 rm -f core conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25181 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25182 if test $gcc_cv_math_func_casinf = yes; then
25184 cat >>confdefs.h <<_ACEOF
25185 #define HAVE_CASINF 1
25186 _ACEOF
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25194 $as_echo_n "checking for casinh... " >&6; }
25195 if ${gcc_cv_math_func_casinh+:} false; then :
25196 $as_echo_n "(cached) " >&6
25197 else
25198 if test x$gcc_no_link = xyes; then
25199 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25202 /* end confdefs.h. */
25204 #ifdef HAVE_COMPLEX_H
25205 #include <complex.h>
25206 #endif
25207 #ifdef HAVE_MATH_H
25208 #include <math.h>
25209 #endif
25211 int (*ptr)() = (int (*)())casinh;
25214 main ()
25216 return 0;
25219 _ACEOF
25220 if ac_fn_c_try_link "$LINENO"; then :
25221 gcc_cv_math_func_casinh=yes
25222 else
25223 gcc_cv_math_func_casinh=no
25225 rm -f core conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25229 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25230 if test $gcc_cv_math_func_casinh = yes; then
25232 cat >>confdefs.h <<_ACEOF
25233 #define HAVE_CASINH 1
25234 _ACEOF
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25242 $as_echo_n "checking for casinhf... " >&6; }
25243 if ${gcc_cv_math_func_casinhf+:} false; then :
25244 $as_echo_n "(cached) " >&6
25245 else
25246 if test x$gcc_no_link = xyes; then
25247 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250 /* end confdefs.h. */
25252 #ifdef HAVE_COMPLEX_H
25253 #include <complex.h>
25254 #endif
25255 #ifdef HAVE_MATH_H
25256 #include <math.h>
25257 #endif
25259 int (*ptr)() = (int (*)())casinhf;
25262 main ()
25264 return 0;
25267 _ACEOF
25268 if ac_fn_c_try_link "$LINENO"; then :
25269 gcc_cv_math_func_casinhf=yes
25270 else
25271 gcc_cv_math_func_casinhf=no
25273 rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25277 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25278 if test $gcc_cv_math_func_casinhf = yes; then
25280 cat >>confdefs.h <<_ACEOF
25281 #define HAVE_CASINHF 1
25282 _ACEOF
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25290 $as_echo_n "checking for casinhl... " >&6; }
25291 if ${gcc_cv_math_func_casinhl+:} false; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 if test x$gcc_no_link = xyes; then
25295 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25298 /* end confdefs.h. */
25300 #ifdef HAVE_COMPLEX_H
25301 #include <complex.h>
25302 #endif
25303 #ifdef HAVE_MATH_H
25304 #include <math.h>
25305 #endif
25307 int (*ptr)() = (int (*)())casinhl;
25310 main ()
25312 return 0;
25315 _ACEOF
25316 if ac_fn_c_try_link "$LINENO"; then :
25317 gcc_cv_math_func_casinhl=yes
25318 else
25319 gcc_cv_math_func_casinhl=no
25321 rm -f core conftest.err conftest.$ac_objext \
25322 conftest$ac_exeext conftest.$ac_ext
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25325 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25326 if test $gcc_cv_math_func_casinhl = yes; then
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_CASINHL 1
25330 _ACEOF
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25338 $as_echo_n "checking for casinl... " >&6; }
25339 if ${gcc_cv_math_func_casinl+:} false; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 if test x$gcc_no_link = xyes; then
25343 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346 /* end confdefs.h. */
25348 #ifdef HAVE_COMPLEX_H
25349 #include <complex.h>
25350 #endif
25351 #ifdef HAVE_MATH_H
25352 #include <math.h>
25353 #endif
25355 int (*ptr)() = (int (*)())casinl;
25358 main ()
25360 return 0;
25363 _ACEOF
25364 if ac_fn_c_try_link "$LINENO"; then :
25365 gcc_cv_math_func_casinl=yes
25366 else
25367 gcc_cv_math_func_casinl=no
25369 rm -f core conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25373 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25374 if test $gcc_cv_math_func_casinl = yes; then
25376 cat >>confdefs.h <<_ACEOF
25377 #define HAVE_CASINL 1
25378 _ACEOF
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25386 $as_echo_n "checking for catan... " >&6; }
25387 if ${gcc_cv_math_func_catan+:} false; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25390 if test x$gcc_no_link = xyes; then
25391 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25396 #ifdef HAVE_COMPLEX_H
25397 #include <complex.h>
25398 #endif
25399 #ifdef HAVE_MATH_H
25400 #include <math.h>
25401 #endif
25403 int (*ptr)() = (int (*)())catan;
25406 main ()
25408 return 0;
25411 _ACEOF
25412 if ac_fn_c_try_link "$LINENO"; then :
25413 gcc_cv_math_func_catan=yes
25414 else
25415 gcc_cv_math_func_catan=no
25417 rm -f core conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25421 $as_echo "$gcc_cv_math_func_catan" >&6; }
25422 if test $gcc_cv_math_func_catan = yes; then
25424 cat >>confdefs.h <<_ACEOF
25425 #define HAVE_CATAN 1
25426 _ACEOF
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25434 $as_echo_n "checking for catanf... " >&6; }
25435 if ${gcc_cv_math_func_catanf+:} false; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 if test x$gcc_no_link = xyes; then
25439 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h. */
25444 #ifdef HAVE_COMPLEX_H
25445 #include <complex.h>
25446 #endif
25447 #ifdef HAVE_MATH_H
25448 #include <math.h>
25449 #endif
25451 int (*ptr)() = (int (*)())catanf;
25454 main ()
25456 return 0;
25459 _ACEOF
25460 if ac_fn_c_try_link "$LINENO"; then :
25461 gcc_cv_math_func_catanf=yes
25462 else
25463 gcc_cv_math_func_catanf=no
25465 rm -f core conftest.err conftest.$ac_objext \
25466 conftest$ac_exeext conftest.$ac_ext
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25469 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25470 if test $gcc_cv_math_func_catanf = yes; then
25472 cat >>confdefs.h <<_ACEOF
25473 #define HAVE_CATANF 1
25474 _ACEOF
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25482 $as_echo_n "checking for catanh... " >&6; }
25483 if ${gcc_cv_math_func_catanh+:} false; then :
25484 $as_echo_n "(cached) " >&6
25485 else
25486 if test x$gcc_no_link = xyes; then
25487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490 /* end confdefs.h. */
25492 #ifdef HAVE_COMPLEX_H
25493 #include <complex.h>
25494 #endif
25495 #ifdef HAVE_MATH_H
25496 #include <math.h>
25497 #endif
25499 int (*ptr)() = (int (*)())catanh;
25502 main ()
25504 return 0;
25507 _ACEOF
25508 if ac_fn_c_try_link "$LINENO"; then :
25509 gcc_cv_math_func_catanh=yes
25510 else
25511 gcc_cv_math_func_catanh=no
25513 rm -f core conftest.err conftest.$ac_objext \
25514 conftest$ac_exeext conftest.$ac_ext
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25517 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25518 if test $gcc_cv_math_func_catanh = yes; then
25520 cat >>confdefs.h <<_ACEOF
25521 #define HAVE_CATANH 1
25522 _ACEOF
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25530 $as_echo_n "checking for catanhf... " >&6; }
25531 if ${gcc_cv_math_func_catanhf+:} false; then :
25532 $as_echo_n "(cached) " >&6
25533 else
25534 if test x$gcc_no_link = xyes; then
25535 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25538 /* end confdefs.h. */
25540 #ifdef HAVE_COMPLEX_H
25541 #include <complex.h>
25542 #endif
25543 #ifdef HAVE_MATH_H
25544 #include <math.h>
25545 #endif
25547 int (*ptr)() = (int (*)())catanhf;
25550 main ()
25552 return 0;
25555 _ACEOF
25556 if ac_fn_c_try_link "$LINENO"; then :
25557 gcc_cv_math_func_catanhf=yes
25558 else
25559 gcc_cv_math_func_catanhf=no
25561 rm -f core conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25565 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25566 if test $gcc_cv_math_func_catanhf = yes; then
25568 cat >>confdefs.h <<_ACEOF
25569 #define HAVE_CATANHF 1
25570 _ACEOF
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25578 $as_echo_n "checking for catanhl... " >&6; }
25579 if ${gcc_cv_math_func_catanhl+:} false; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 if test x$gcc_no_link = xyes; then
25583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25588 #ifdef HAVE_COMPLEX_H
25589 #include <complex.h>
25590 #endif
25591 #ifdef HAVE_MATH_H
25592 #include <math.h>
25593 #endif
25595 int (*ptr)() = (int (*)())catanhl;
25598 main ()
25600 return 0;
25603 _ACEOF
25604 if ac_fn_c_try_link "$LINENO"; then :
25605 gcc_cv_math_func_catanhl=yes
25606 else
25607 gcc_cv_math_func_catanhl=no
25609 rm -f core conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25613 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25614 if test $gcc_cv_math_func_catanhl = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_CATANHL 1
25618 _ACEOF
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25626 $as_echo_n "checking for catanl... " >&6; }
25627 if ${gcc_cv_math_func_catanl+:} false; then :
25628 $as_echo_n "(cached) " >&6
25629 else
25630 if test x$gcc_no_link = xyes; then
25631 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25634 /* end confdefs.h. */
25636 #ifdef HAVE_COMPLEX_H
25637 #include <complex.h>
25638 #endif
25639 #ifdef HAVE_MATH_H
25640 #include <math.h>
25641 #endif
25643 int (*ptr)() = (int (*)())catanl;
25646 main ()
25648 return 0;
25651 _ACEOF
25652 if ac_fn_c_try_link "$LINENO"; then :
25653 gcc_cv_math_func_catanl=yes
25654 else
25655 gcc_cv_math_func_catanl=no
25657 rm -f core conftest.err conftest.$ac_objext \
25658 conftest$ac_exeext conftest.$ac_ext
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25661 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25662 if test $gcc_cv_math_func_catanl = yes; then
25664 cat >>confdefs.h <<_ACEOF
25665 #define HAVE_CATANL 1
25666 _ACEOF
25671 # On AIX, clog is present in libm as __clog
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25673 $as_echo_n "checking for __clog in -lm... " >&6; }
25674 if ${ac_cv_lib_m___clog+:} false; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 ac_check_lib_save_LIBS=$LIBS
25678 LIBS="-lm $LIBS"
25679 if test x$gcc_no_link = xyes; then
25680 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683 /* end confdefs.h. */
25685 /* Override any GCC internal prototype to avoid an error.
25686 Use char because int might match the return type of a GCC
25687 builtin and then its argument prototype would still apply. */
25688 #ifdef __cplusplus
25689 extern "C"
25690 #endif
25691 char __clog ();
25693 main ()
25695 return __clog ();
25697 return 0;
25699 _ACEOF
25700 if ac_fn_c_try_link "$LINENO"; then :
25701 ac_cv_lib_m___clog=yes
25702 else
25703 ac_cv_lib_m___clog=no
25705 rm -f core conftest.err conftest.$ac_objext \
25706 conftest$ac_exeext conftest.$ac_ext
25707 LIBS=$ac_check_lib_save_LIBS
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25710 $as_echo "$ac_cv_lib_m___clog" >&6; }
25711 if test "x$ac_cv_lib_m___clog" = xyes; then :
25713 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25720 if test $gcc_cv_math_func_copysign = no; then
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25722 $as_echo_n "checking for inline __builtin_copysign... " >&6; }
25723 if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
25724 $as_echo_n "(cached) " >&6
25725 else
25726 if test x$gcc_no_link = xyes; then
25727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25730 /* end confdefs.h. */
25732 double
25733 copysign_fallback (double x, double y)
25735 return __builtin_copysign (x, y);
25739 main ()
25741 return 0;
25744 _ACEOF
25745 if ac_fn_c_try_link "$LINENO"; then :
25746 gcc_cv_math_inline_builtin_copysign=yes
25747 else
25748 gcc_cv_math_inline_builtin_copysign=no
25750 rm -f core conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25754 $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25755 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25757 cat >>confdefs.h <<_ACEOF
25758 #define HAVE_INLINE_BUILTIN_COPYSIGN 1
25759 _ACEOF
25765 if test $gcc_cv_math_func_copysignl = no; then
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25767 $as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25768 if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25769 $as_echo_n "(cached) " >&6
25770 else
25771 if test x$gcc_no_link = xyes; then
25772 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25775 /* end confdefs.h. */
25777 long double
25778 copysignl_fallback (long double x, long double y)
25780 return __builtin_copysignl (x, y);
25784 main ()
25786 return 0;
25789 _ACEOF
25790 if ac_fn_c_try_link "$LINENO"; then :
25791 gcc_cv_math_inline_builtin_copysignl=yes
25792 else
25793 gcc_cv_math_inline_builtin_copysignl=no
25795 rm -f core conftest.err conftest.$ac_objext \
25796 conftest$ac_exeext conftest.$ac_ext
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25799 $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25800 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25802 cat >>confdefs.h <<_ACEOF
25803 #define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25804 _ACEOF
25810 if test $gcc_cv_math_func_fabs = no; then
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25812 $as_echo_n "checking for inline __builtin_fabs... " >&6; }
25813 if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25814 $as_echo_n "(cached) " >&6
25815 else
25816 if test x$gcc_no_link = xyes; then
25817 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h. */
25822 double
25823 fabs_fallback (double x)
25825 return __builtin_fabs (x);
25829 main ()
25831 return 0;
25834 _ACEOF
25835 if ac_fn_c_try_link "$LINENO"; then :
25836 gcc_cv_math_inline_builtin_fabs=yes
25837 else
25838 gcc_cv_math_inline_builtin_fabs=no
25840 rm -f core conftest.err conftest.$ac_objext \
25841 conftest$ac_exeext conftest.$ac_ext
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25844 $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25845 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25847 cat >>confdefs.h <<_ACEOF
25848 #define HAVE_INLINE_BUILTIN_FABS 1
25849 _ACEOF
25855 if test $gcc_cv_math_func_fabsl = no; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25857 $as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25858 if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25859 $as_echo_n "(cached) " >&6
25860 else
25861 if test x$gcc_no_link = xyes; then
25862 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h. */
25867 long double
25868 fabsl_fallback (long double x)
25870 return __builtin_fabsl (x);
25874 main ()
25876 return 0;
25879 _ACEOF
25880 if ac_fn_c_try_link "$LINENO"; then :
25881 gcc_cv_math_inline_builtin_fabsl=yes
25882 else
25883 gcc_cv_math_inline_builtin_fabsl=no
25885 rm -f core conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
25889 $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
25890 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
25892 cat >>confdefs.h <<_ACEOF
25893 #define HAVE_INLINE_BUILTIN_FABSL 1
25894 _ACEOF
25899 # Check whether the system has a working stat()
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25902 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25903 if ${libgfor_cv_have_working_stat+:} false; then :
25904 $as_echo_n "(cached) " >&6
25905 else
25907 if test "$cross_compiling" = yes; then :
25909 case "${target}" in
25910 *mingw*) libgfor_cv_have_working_stat=no ;;
25911 *) libgfor_cv_have_working_stat=yes;;
25912 esac
25913 else
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25917 #include <stdio.h>
25918 #include <sys/types.h>
25919 #include <sys/stat.h>
25920 #include <unistd.h>
25922 int main ()
25924 FILE *f, *g;
25925 struct stat st1, st2;
25927 f = fopen ("foo", "w");
25928 g = fopen ("bar", "w");
25929 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25930 return 1;
25931 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25932 return 1;
25933 fclose(f);
25934 fclose(g);
25935 return 0;
25937 _ACEOF
25938 if ac_fn_c_try_run "$LINENO"; then :
25939 libgfor_cv_have_working_stat=yes
25940 else
25941 libgfor_cv_have_working_stat=no
25943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25944 conftest.$ac_objext conftest.beam conftest.$ac_ext
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25949 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25950 if test x"$libgfor_cv_have_working_stat" = xyes; then
25952 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25956 # Check whether __mingw_snprintf() is present
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25959 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25960 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25961 $as_echo_n "(cached) " >&6
25962 else
25964 if test x$gcc_no_link = xyes; then
25965 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25970 #include <stdio.h>
25971 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25974 main ()
25977 __mingw_snprintf (NULL, 0, "%d\n", 1);
25980 return 0;
25982 _ACEOF
25983 if ac_fn_c_try_link "$LINENO"; then :
25984 eval "libgfor_cv_have_mingw_snprintf=yes"
25985 else
25986 eval "libgfor_cv_have_mingw_snprintf=no"
25988 rm -f core conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25993 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25994 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25996 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
26001 # Check whether libquadmath should be used
26002 # Check whether --enable-libquadmath-support was given.
26003 if test "${enable_libquadmath_support+set}" = set; then :
26004 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26005 else
26006 ENABLE_LIBQUADMATH_SUPPORT=yes
26009 enable_libquadmath_support=
26010 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
26011 enable_libquadmath_support=no
26014 # Check whether we have a __float128 type, depends on enable_libquadmath_support
26016 LIBQUADSPEC=
26018 if test "x$enable_libquadmath_support" != xno; then
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26021 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
26022 if ${libgfor_cv_have_float128+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26026 if test x$gcc_no_link = xyes; then
26027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028 /* end confdefs.h. */
26030 typedef _Complex float __attribute__((mode(TC))) __complex128;
26032 __float128 foo (__float128 x)
26035 __complex128 z1, z2;
26037 z1 = x;
26038 z2 = x / 7.Q;
26039 z2 /= z1;
26041 return (__float128) z2;
26044 __float128 bar (__float128 x)
26046 return x * __builtin_huge_valq ();
26050 main ()
26053 foo (1.2Q);
26054 bar (1.2Q);
26057 return 0;
26059 _ACEOF
26060 if ac_fn_c_try_compile "$LINENO"; then :
26062 libgfor_cv_have_float128=yes
26064 else
26066 libgfor_cv_have_float128=no
26069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070 else
26071 if test x$gcc_no_link = xyes; then
26072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h. */
26077 typedef _Complex float __attribute__((mode(TC))) __complex128;
26079 __float128 foo (__float128 x)
26082 __complex128 z1, z2;
26084 z1 = x;
26085 z2 = x / 7.Q;
26086 z2 /= z1;
26088 return (__float128) z2;
26091 __float128 bar (__float128 x)
26093 return x * __builtin_huge_valq ();
26097 main ()
26100 foo (1.2Q);
26101 bar (1.2Q);
26104 return 0;
26106 _ACEOF
26107 if ac_fn_c_try_link "$LINENO"; then :
26109 libgfor_cv_have_float128=yes
26111 else
26113 libgfor_cv_have_float128=no
26116 rm -f core conftest.err conftest.$ac_objext \
26117 conftest$ac_exeext conftest.$ac_ext
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26121 $as_echo "$libgfor_cv_have_float128" >&6; }
26123 if test "x$libgfor_cv_have_float128" = xyes; then
26125 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26128 ac_xsave_c_werror_flag=$ac_c_werror_flag
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26130 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
26131 if ${libgfor_cv_have_as_needed+:} false; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26135 # Test for native Solaris options first.
26136 # No whitespace after -z to pass it through -Wl.
26137 libgfor_cv_as_needed_option="-zignore"
26138 libgfor_cv_no_as_needed_option="-zrecord"
26139 save_LDFLAGS="$LDFLAGS"
26140 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26141 libgfor_cv_have_as_needed=no
26143 ac_c_werror_flag=yes
26144 if test x$gcc_no_link = xyes; then
26145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26148 /* end confdefs.h. */
26151 main ()
26155 return 0;
26157 _ACEOF
26158 if ac_fn_c_try_link "$LINENO"; then :
26159 libgfor_cv_have_as_needed=yes
26160 else
26161 libgfor_cv_have_as_needed=no
26163 rm -f core conftest.err conftest.$ac_objext \
26164 conftest$ac_exeext conftest.$ac_ext
26165 LDFLAGS="$save_LDFLAGS"
26166 if test "x$libgfor_cv_have_as_needed" = xno; then
26167 libgfor_cv_as_needed_option="--as-needed"
26168 libgfor_cv_no_as_needed_option="--no-as-needed"
26169 save_LDFLAGS="$LDFLAGS"
26170 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26171 libgfor_cv_have_as_needed=no
26173 ac_c_werror_flag=yes
26174 if test x$gcc_no_link = xyes; then
26175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26178 /* end confdefs.h. */
26181 main ()
26185 return 0;
26187 _ACEOF
26188 if ac_fn_c_try_link "$LINENO"; then :
26189 libgfor_cv_have_as_needed=yes
26190 else
26191 libgfor_cv_have_as_needed=no
26193 rm -f core conftest.err conftest.$ac_objext \
26194 conftest$ac_exeext conftest.$ac_ext
26195 LDFLAGS="$save_LDFLAGS"
26197 ac_c_werror_flag=$ac_xsave_c_werror_flag
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26201 $as_echo "$libgfor_cv_have_as_needed" >&6; }
26203 if test "x$libgfor_cv_have_as_needed" = xyes; then
26204 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
26205 else
26206 LIBQUADSPEC="-lquadmath"
26208 if test -f ../libquadmath/libquadmath.la; then
26209 LIBQUADLIB=../libquadmath/libquadmath.la
26210 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26211 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26212 else
26213 LIBQUADLIB="-lquadmath"
26214 LIBQUADLIB_DEP=
26215 LIBQUADINCLUDE=
26218 else
26219 # for --disable-quadmath
26220 LIBQUADLIB=
26221 LIBQUADLIB_DEP=
26222 LIBQUADINCLUDE=
26230 if test "x$libgfor_cv_have_float128" = xyes; then
26231 LIBGFOR_BUILD_QUAD_TRUE=
26232 LIBGFOR_BUILD_QUAD_FALSE='#'
26233 else
26234 LIBGFOR_BUILD_QUAD_TRUE='#'
26235 LIBGFOR_BUILD_QUAD_FALSE=
26240 # Check for GNU libc feenableexcept
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26242 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
26243 if ${ac_cv_lib_m_feenableexcept+:} false; then :
26244 $as_echo_n "(cached) " >&6
26245 else
26246 ac_check_lib_save_LIBS=$LIBS
26247 LIBS="-lm $LIBS"
26248 if test x$gcc_no_link = xyes; then
26249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26252 /* end confdefs.h. */
26254 /* Override any GCC internal prototype to avoid an error.
26255 Use char because int might match the return type of a GCC
26256 builtin and then its argument prototype would still apply. */
26257 #ifdef __cplusplus
26258 extern "C"
26259 #endif
26260 char feenableexcept ();
26262 main ()
26264 return feenableexcept ();
26266 return 0;
26268 _ACEOF
26269 if ac_fn_c_try_link "$LINENO"; then :
26270 ac_cv_lib_m_feenableexcept=yes
26271 else
26272 ac_cv_lib_m_feenableexcept=no
26274 rm -f core conftest.err conftest.$ac_objext \
26275 conftest$ac_exeext conftest.$ac_ext
26276 LIBS=$ac_check_lib_save_LIBS
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26279 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
26280 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
26281 have_feenableexcept=yes
26282 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
26287 # At least for glibc, clock_gettime is in librt. But don't
26288 # pull that in if it still doesn't give us the function we want. This
26289 # test is copied from libgomp, and modified to not link in -lrt as
26290 # libgfortran calls clock_gettime via a weak reference if it's found
26291 # in librt.
26292 if test "$ac_cv_func_clock_gettime" = no; then
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26294 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26295 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26296 $as_echo_n "(cached) " >&6
26297 else
26298 ac_check_lib_save_LIBS=$LIBS
26299 LIBS="-lrt $LIBS"
26300 if test x$gcc_no_link = xyes; then
26301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26304 /* end confdefs.h. */
26306 /* Override any GCC internal prototype to avoid an error.
26307 Use char because int might match the return type of a GCC
26308 builtin and then its argument prototype would still apply. */
26309 #ifdef __cplusplus
26310 extern "C"
26311 #endif
26312 char clock_gettime ();
26314 main ()
26316 return clock_gettime ();
26318 return 0;
26320 _ACEOF
26321 if ac_fn_c_try_link "$LINENO"; then :
26322 ac_cv_lib_rt_clock_gettime=yes
26323 else
26324 ac_cv_lib_rt_clock_gettime=no
26326 rm -f core conftest.err conftest.$ac_objext \
26327 conftest$ac_exeext conftest.$ac_ext
26328 LIBS=$ac_check_lib_save_LIBS
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26331 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26332 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26334 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26340 # Check for SysV fpsetmask
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26343 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26344 if ${libgfor_cv_have_fpsetmask+:} false; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26348 if test x$gcc_no_link = xyes; then
26349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h. */
26354 #if HAVE_FLOATINGPOINT_H
26355 # include <floatingpoint.h>
26356 #endif /* HAVE_FLOATINGPOINT_H */
26357 #if HAVE_IEEEFP_H
26358 # include <ieeefp.h>
26359 #endif /* HAVE_IEEEFP_H */
26361 main ()
26363 fpsetmask(0);
26365 return 0;
26367 _ACEOF
26368 if ac_fn_c_try_link "$LINENO"; then :
26369 eval "libgfor_cv_have_fpsetmask=yes"
26370 else
26371 eval "libgfor_cv_have_fpsetmask=no"
26373 rm -f core conftest.err conftest.$ac_objext \
26374 conftest$ac_exeext conftest.$ac_ext
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26378 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26379 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26380 have_fpsetmask=yes
26382 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26386 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26387 #ifdef HAVE_IEEEFP_H
26388 #include <ieeefp.h>
26389 #endif
26390 #include <math.h>
26393 if test "x$ac_cv_type_fp_except" = xyes; then :
26395 cat >>confdefs.h <<_ACEOF
26396 #define HAVE_FP_EXCEPT 1
26397 _ACEOF
26401 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26402 #ifdef HAVE_IEEEFP_H
26403 #include <ieeefp.h>
26404 #endif
26405 #include <math.h>
26408 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26410 cat >>confdefs.h <<_ACEOF
26411 #define HAVE_FP_EXCEPT_T 1
26412 _ACEOF
26417 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26418 #ifdef HAVE_IEEEFP_H
26419 #include <ieeefp.h>
26420 #endif
26421 #include <math.h>
26424 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26426 cat >>confdefs.h <<_ACEOF
26427 #define HAVE_FP_RND 1
26428 _ACEOF
26432 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26433 #ifdef HAVE_IEEEFP_H
26434 #include <ieeefp.h>
26435 #endif
26436 #include <math.h>
26439 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26441 cat >>confdefs.h <<_ACEOF
26442 #define HAVE_FP_RND_T 1
26443 _ACEOF
26449 # Check whether we have fpsetsticky or fpresetsticky
26450 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26451 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26452 have_fpsetsticky=yes
26453 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26457 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26458 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26459 have_fpresetsticky=yes
26460 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26465 # Check for AIX fp_trap and fp_enable
26466 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26467 if test "x$ac_cv_func_fp_trap" = xyes; then :
26468 have_fp_trap=yes
26469 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26473 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26474 if test "x$ac_cv_func_fp_enable" = xyes; then :
26475 have_fp_enable=yes
26476 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26481 # Check if _SOFT_FLOAT is defined
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26484 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26485 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489 /* end confdefs.h. */
26492 main ()
26495 #ifdef _SOFT_FLOAT
26496 int ok;
26497 #else
26498 choke me
26499 #endif
26502 return 0;
26504 _ACEOF
26505 if ac_fn_c_try_compile "$LINENO"; then :
26506 ac_cv_defined__SOFT_FLOAT=yes
26507 else
26508 ac_cv_defined__SOFT_FLOAT=no
26510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26513 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26514 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26515 have_soft_float=yes
26518 # Runs configure.host to set up necessary host-dependent shell variables.
26519 # We then display a message about it, and propagate them through the
26520 # build chain.
26521 . ${srcdir}/configure.host
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26523 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26525 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26526 FPU_HOST_HEADER=config/${fpu_host}.h
26529 # Whether we will build the IEEE modules
26530 if test x${ieee_support} = xyes; then
26531 IEEE_SUPPORT_TRUE=
26532 IEEE_SUPPORT_FALSE='#'
26533 else
26534 IEEE_SUPPORT_TRUE='#'
26535 IEEE_SUPPORT_FALSE=
26540 # Some targets require additional compiler options for IEEE compatibility.
26541 IEEE_FLAGS="${ieee_flags}"
26544 # Conditionalize the makefile for this target machine.
26545 tmake_file_=
26546 for f in ${tmake_file}
26548 if test -f ${srcdir}/config/$f
26549 then
26550 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
26552 done
26553 tmake_file="${tmake_file_}"
26557 # Check for POSIX getpwuid_r
26559 # There are two versions of getpwuid_r, the POSIX one with 5
26560 # arguments, and another one with 4 arguments used by at least HP-UX
26561 # 10.2.
26562 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26564 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26565 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26566 $as_echo_n "(cached) " >&6
26567 else
26569 if test x$gcc_no_link = xyes; then
26570 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26573 /* end confdefs.h. */
26575 #include <stdio.h>
26576 #include <sys/types.h>
26577 #include <pwd.h>
26579 main ()
26582 getpwuid_r(0, NULL, NULL, 0, NULL);
26585 return 0;
26587 _ACEOF
26588 if ac_fn_c_try_link "$LINENO"; then :
26589 libgfor_cv_posix_getpwuid_r="yes"
26590 else
26591 libgfor_cv_posix_getpwuid_r="no"
26593 rm -f core conftest.err conftest.$ac_objext \
26594 conftest$ac_exeext conftest.$ac_ext
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26597 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26599 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26601 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26606 # Check out attribute support.
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26609 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26610 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26611 $as_echo_n "(cached) " >&6
26612 else
26614 save_CFLAGS="$CFLAGS"
26615 CFLAGS="$CFLAGS -Werror"
26616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617 /* end confdefs.h. */
26618 void __attribute__((visibility("hidden"))) foo(void) { }
26620 main ()
26624 return 0;
26626 _ACEOF
26627 if ac_fn_c_try_compile "$LINENO"; then :
26628 libgfor_cv_have_attribute_visibility=yes
26629 else
26630 libgfor_cv_have_attribute_visibility=no
26632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26633 CFLAGS="$save_CFLAGS"
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26636 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26637 if test $libgfor_cv_have_attribute_visibility = yes; then
26639 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26644 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26645 if ${libgfor_cv_have_attribute_alias+:} false; then :
26646 $as_echo_n "(cached) " >&6
26647 else
26649 if test x$gcc_no_link = xyes; then
26650 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26653 /* end confdefs.h. */
26655 void foo(void) { }
26656 extern void bar(void) __attribute__((alias("foo")));
26658 main ()
26660 bar();
26662 return 0;
26664 _ACEOF
26665 if ac_fn_c_try_link "$LINENO"; then :
26666 libgfor_cv_have_attribute_alias=yes
26667 else
26668 libgfor_cv_have_attribute_alias=no
26670 rm -f core conftest.err conftest.$ac_objext \
26671 conftest$ac_exeext conftest.$ac_ext
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26674 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26675 if test $libgfor_cv_have_attribute_alias = yes; then
26677 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26681 # Check out atomic builtins support.
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26684 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26685 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26686 $as_echo_n "(cached) " >&6
26687 else
26689 if test x$gcc_no_link = xyes; then
26690 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26694 int foovar = 0;
26696 main ()
26699 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26700 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26702 return 0;
26704 _ACEOF
26705 if ac_fn_c_try_link "$LINENO"; then :
26706 libgfor_cv_have_atomic_fetch_add=yes
26707 else
26708 libgfor_cv_have_atomic_fetch_add=no
26710 rm -f core conftest.err conftest.$ac_objext \
26711 conftest$ac_exeext conftest.$ac_ext
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26714 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26715 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26717 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26721 # Check out #pragma weak.
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26724 $as_echo_n "checking whether pragma weak works... " >&6; }
26725 if ${libgfor_cv_have_pragma_weak+:} false; then :
26726 $as_echo_n "(cached) " >&6
26727 else
26729 gfor_save_CFLAGS="$CFLAGS"
26730 CFLAGS="$CFLAGS -Wunknown-pragmas"
26731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26732 /* end confdefs.h. */
26734 void foo (void);
26735 #pragma weak foo
26738 main ()
26740 if (foo) foo ();
26742 return 0;
26744 _ACEOF
26745 if ac_fn_c_try_compile "$LINENO"; then :
26746 libgfor_cv_have_pragma_weak=yes
26747 else
26748 libgfor_cv_have_pragma_weak=no
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26753 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26754 if test $libgfor_cv_have_pragma_weak = yes; then
26756 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26759 case "$host" in
26760 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26762 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26765 esac
26767 # Check out weakref support.
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26770 $as_echo_n "checking whether the target supports weakref... " >&6; }
26771 if ${libgfor_cv_have_weakref+:} false; then :
26772 $as_echo_n "(cached) " >&6
26773 else
26775 save_CFLAGS="$CFLAGS"
26776 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26777 if test x$gcc_no_link = xyes; then
26778 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26783 static int mytoto (int) __attribute__((__weakref__("toto")));
26786 main ()
26788 return (mytoto != 0);
26790 return 0;
26792 _ACEOF
26793 if ac_fn_c_try_link "$LINENO"; then :
26794 libgfor_cv_have_weakref=yes
26795 else
26796 libgfor_cv_have_weakref=no
26798 rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
26800 CFLAGS="$save_CFLAGS"
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26803 $as_echo "$libgfor_cv_have_weakref" >&6; }
26804 if test $libgfor_cv_have_weakref = yes; then
26806 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26810 # Various other checks on target
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26813 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26814 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26815 $as_echo_n "(cached) " >&6
26816 else
26818 if test "$cross_compiling" = yes; then :
26820 case "${target}" in
26821 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26822 *) libgfor_cv_have_unlink_open_file=yes;;
26823 esac
26824 else
26825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h. */
26828 #include <errno.h>
26829 #include <fcntl.h>
26830 #include <unistd.h>
26831 #include <sys/stat.h>
26833 int main ()
26835 int fd;
26837 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26838 if (fd <= 0)
26839 return 0;
26840 if (unlink ("testfile") == -1)
26841 return 1;
26842 write (fd, "This is a test\n", 15);
26843 close (fd);
26845 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26846 return 0;
26847 else
26848 return 1;
26850 _ACEOF
26851 if ac_fn_c_try_run "$LINENO"; then :
26852 libgfor_cv_have_unlink_open_file=yes
26853 else
26854 libgfor_cv_have_unlink_open_file=no
26856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26857 conftest.$ac_objext conftest.beam conftest.$ac_ext
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26862 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26863 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26865 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26869 # Check whether line terminator is LF or CRLF
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26872 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26873 if ${libgfor_cv_have_crlf+:} false; then :
26874 $as_echo_n "(cached) " >&6
26875 else
26877 if test "$cross_compiling" = yes; then :
26879 case "${target}" in
26880 *mingw*) libgfor_cv_have_crlf=yes ;;
26881 *) libgfor_cv_have_crlf=no;;
26882 esac
26883 else
26884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h. */
26887 /* This test program should exit with status 0 if system uses a CRLF as
26888 line terminator, and status 1 otherwise.
26889 Since it is used to check for mingw systems, and should return 0 in any
26890 other case, in case of a failure we will not use CRLF. */
26891 #include <sys/stat.h>
26892 #include <stdlib.h>
26893 #include <fcntl.h>
26894 #include <stdio.h>
26896 int main ()
26898 #ifndef O_BINARY
26899 exit(1);
26900 #else
26901 int fd, bytes;
26902 char buff[5];
26904 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26905 if (fd < 0)
26906 exit(1);
26907 if (write (fd, "\n", 1) < 0)
26908 perror ("write");
26910 close (fd);
26912 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26913 exit(1);
26914 bytes = read (fd, buff, 5);
26915 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26916 exit(0);
26917 else
26918 exit(1);
26919 #endif
26921 _ACEOF
26922 if ac_fn_c_try_run "$LINENO"; then :
26923 libgfor_cv_have_crlf=yes
26924 else
26925 libgfor_cv_have_crlf=no
26927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26928 conftest.$ac_objext conftest.beam conftest.$ac_ext
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26933 $as_echo "$libgfor_cv_have_crlf" >&6; }
26934 if test x"$libgfor_cv_have_crlf" = xyes; then
26936 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26940 # Check whether we support AVX extensions
26942 ac_save_CFLAGS="$CFLAGS"
26943 CFLAGS="-O2 -mavx"
26944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h. */
26947 void _mm256_zeroall (void)
26949 __builtin_ia32_vzeroall ();
26952 main ()
26956 return 0;
26958 _ACEOF
26959 if ac_fn_c_try_compile "$LINENO"; then :
26961 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 CFLAGS="$ac_save_CFLAGS"
26968 # Check wether we support AVX2 extensions
26970 ac_save_CFLAGS="$CFLAGS"
26971 CFLAGS="-O2 -mavx2"
26972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h. */
26975 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26976 __v4di
26977 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26979 return __builtin_ia32_andnotsi256 (__X, __Y);
26982 main ()
26986 return 0;
26988 _ACEOF
26989 if ac_fn_c_try_compile "$LINENO"; then :
26991 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26995 CFLAGS="$ac_save_CFLAGS"
26998 # Check wether we support AVX512f extensions
27000 ac_save_CFLAGS="$CFLAGS"
27001 CFLAGS="-O2 -mavx512f"
27002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h. */
27005 typedef double __m512d __attribute__ ((__vector_size__ (64)));
27006 __m512d _mm512_add (__m512d a)
27008 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
27009 /* For -m64/-mx32 also verify that code will work even if
27010 the target uses call saved zmm16+ and needs to emit
27011 unwind info for them (e.g. on mingw). See PR79127. */
27012 #ifdef __x86_64__
27013 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
27014 #endif
27015 return b;
27018 main ()
27022 return 0;
27024 _ACEOF
27025 if ac_fn_c_try_compile "$LINENO"; then :
27027 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 CFLAGS="$ac_save_CFLAGS"
27034 # Check for FMA3 extensions
27036 ac_save_CFLAGS="$CFLAGS"
27037 CFLAGS="-O2 -mfma -mno-fma4"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27041 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27042 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27043 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27045 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27046 (__v4sf)__B,
27047 (__v4sf)__C);
27050 main ()
27054 return 0;
27056 _ACEOF
27057 if ac_fn_c_try_compile "$LINENO"; then :
27059 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063 CFLAGS="$ac_save_CFLAGS"
27066 # Check for FMA4 extensions
27068 ac_save_CFLAGS="$CFLAGS"
27069 CFLAGS="-O2 -mfma4 -mno-fma"
27070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27071 /* end confdefs.h. */
27073 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27074 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27075 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27077 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27078 (__v4sf)__B,
27079 (__v4sf)__C);
27082 main ()
27086 return 0;
27088 _ACEOF
27089 if ac_fn_c_try_compile "$LINENO"; then :
27091 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 CFLAGS="$ac_save_CFLAGS"
27098 # Check if AVX128 works
27100 ac_save_CFLAGS="$CFLAGS"
27101 CFLAGS="-O2 -mavx -mprefer-avx128"
27102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27103 /* end confdefs.h. */
27105 void foo()
27109 main ()
27113 return 0;
27115 _ACEOF
27116 if ac_fn_c_try_compile "$LINENO"; then :
27118 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
27120 if true; then
27121 HAVE_AVX128_TRUE=
27122 HAVE_AVX128_FALSE='#'
27123 else
27124 HAVE_AVX128_TRUE='#'
27125 HAVE_AVX128_FALSE=
27128 else
27129 if false; then
27130 HAVE_AVX128_TRUE=
27131 HAVE_AVX128_FALSE='#'
27132 else
27133 HAVE_AVX128_TRUE='#'
27134 HAVE_AVX128_FALSE=
27138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27139 CFLAGS="$ac_save_CFLAGS"
27142 # Determine what GCC version number to use in filesystem paths.
27144 get_gcc_base_ver="cat"
27146 # Check whether --with-gcc-major-version-only was given.
27147 if test "${with_gcc_major_version_only+set}" = set; then :
27148 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
27149 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
27157 cat >confcache <<\_ACEOF
27158 # This file is a shell script that caches the results of configure
27159 # tests run on this system so they can be shared between configure
27160 # scripts and configure runs, see configure's option --config-cache.
27161 # It is not useful on other systems. If it contains results you don't
27162 # want to keep, you may remove or edit it.
27164 # config.status only pays attention to the cache file if you give it
27165 # the --recheck option to rerun configure.
27167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27169 # following values.
27171 _ACEOF
27173 # The following way of writing the cache mishandles newlines in values,
27174 # but we know of no workaround that is simple, portable, and efficient.
27175 # So, we kill variables containing newlines.
27176 # Ultrix sh set writes to stderr and can't be redirected directly,
27177 # and sets the high bit in the cache file unless we assign to the vars.
27179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27180 eval ac_val=\$$ac_var
27181 case $ac_val in #(
27182 *${as_nl}*)
27183 case $ac_var in #(
27184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27185 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27186 esac
27187 case $ac_var in #(
27188 _ | IFS | as_nl) ;; #(
27189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27190 *) { eval $ac_var=; unset $ac_var;} ;;
27191 esac ;;
27192 esac
27193 done
27195 (set) 2>&1 |
27196 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27197 *${as_nl}ac_space=\ *)
27198 # `set' does not quote correctly, so add quotes: double-quote
27199 # substitution turns \\\\ into \\, and sed turns \\ into \.
27200 sed -n \
27201 "s/'/'\\\\''/g;
27202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27203 ;; #(
27205 # `set' quotes correctly as required by POSIX, so do not add quotes.
27206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27208 esac |
27209 sort
27211 sed '
27212 /^ac_cv_env_/b end
27213 t clear
27214 :clear
27215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27216 t end
27217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27218 :end' >>confcache
27219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27220 if test -w "$cache_file"; then
27221 if test "x$cache_file" != "x/dev/null"; then
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27223 $as_echo "$as_me: updating cache $cache_file" >&6;}
27224 if test ! -f "$cache_file" || test -h "$cache_file"; then
27225 cat confcache >"$cache_file"
27226 else
27227 case $cache_file in #(
27228 */* | ?:*)
27229 mv -f confcache "$cache_file"$$ &&
27230 mv -f "$cache_file"$$ "$cache_file" ;; #(
27232 mv -f confcache "$cache_file" ;;
27233 esac
27236 else
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27241 rm -f confcache
27243 if test ${multilib} = yes; then
27244 multilib_arg="--enable-multilib"
27245 else
27246 multilib_arg=
27249 # Write our Makefile and spec file.
27250 ac_config_files="$ac_config_files Makefile libgfortran.spec"
27252 cat >confcache <<\_ACEOF
27253 # This file is a shell script that caches the results of configure
27254 # tests run on this system so they can be shared between configure
27255 # scripts and configure runs, see configure's option --config-cache.
27256 # It is not useful on other systems. If it contains results you don't
27257 # want to keep, you may remove or edit it.
27259 # config.status only pays attention to the cache file if you give it
27260 # the --recheck option to rerun configure.
27262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27264 # following values.
27266 _ACEOF
27268 # The following way of writing the cache mishandles newlines in values,
27269 # but we know of no workaround that is simple, portable, and efficient.
27270 # So, we kill variables containing newlines.
27271 # Ultrix sh set writes to stderr and can't be redirected directly,
27272 # and sets the high bit in the cache file unless we assign to the vars.
27274 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27275 eval ac_val=\$$ac_var
27276 case $ac_val in #(
27277 *${as_nl}*)
27278 case $ac_var in #(
27279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27281 esac
27282 case $ac_var in #(
27283 _ | IFS | as_nl) ;; #(
27284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27285 *) { eval $ac_var=; unset $ac_var;} ;;
27286 esac ;;
27287 esac
27288 done
27290 (set) 2>&1 |
27291 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27292 *${as_nl}ac_space=\ *)
27293 # `set' does not quote correctly, so add quotes: double-quote
27294 # substitution turns \\\\ into \\, and sed turns \\ into \.
27295 sed -n \
27296 "s/'/'\\\\''/g;
27297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27298 ;; #(
27300 # `set' quotes correctly as required by POSIX, so do not add quotes.
27301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27303 esac |
27304 sort
27306 sed '
27307 /^ac_cv_env_/b end
27308 t clear
27309 :clear
27310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27311 t end
27312 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27313 :end' >>confcache
27314 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27315 if test -w "$cache_file"; then
27316 if test "x$cache_file" != "x/dev/null"; then
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27318 $as_echo "$as_me: updating cache $cache_file" >&6;}
27319 if test ! -f "$cache_file" || test -h "$cache_file"; then
27320 cat confcache >"$cache_file"
27321 else
27322 case $cache_file in #(
27323 */* | ?:*)
27324 mv -f confcache "$cache_file"$$ &&
27325 mv -f "$cache_file"$$ "$cache_file" ;; #(
27327 mv -f confcache "$cache_file" ;;
27328 esac
27331 else
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27333 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27336 rm -f confcache
27338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27339 # Let make expand exec_prefix.
27340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27342 DEFS=-DHAVE_CONFIG_H
27344 ac_libobjs=
27345 ac_ltlibobjs=
27347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27348 # 1. Remove the extension, and $U if already installed.
27349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27352 # will be set to the directory where LIBOBJS objects are built.
27353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27355 done
27356 LIBOBJS=$ac_libobjs
27358 LTLIBOBJS=$ac_ltlibobjs
27361 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
27362 as_fn_error $? "conditional \"onestep\" was never defined.
27363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27367 if test -n "$am_sleep_pid"; then
27368 # Hide warnings about reused PIDs.
27369 wait $am_sleep_pid 2>/dev/null
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27372 $as_echo "done" >&6; }
27373 if test -n "$EXEEXT"; then
27374 am__EXEEXT_TRUE=
27375 am__EXEEXT_FALSE='#'
27376 else
27377 am__EXEEXT_TRUE='#'
27378 am__EXEEXT_FALSE=
27381 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27382 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27385 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27386 as_fn_error $? "conditional \"AMDEP\" was never defined.
27387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27389 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27390 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27397 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27398 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27401 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27402 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27405 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27406 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27409 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27410 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27413 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27414 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27417 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27418 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27421 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27422 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27425 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27426 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27429 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27430 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27434 : "${CONFIG_STATUS=./config.status}"
27435 ac_write_fail=0
27436 ac_clean_files_save=$ac_clean_files
27437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27440 as_write_fail=0
27441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27442 #! $SHELL
27443 # Generated by $as_me.
27444 # Run this file to recreate the current configuration.
27445 # Compiler output produced by configure, useful for debugging
27446 # configure, is in config.log if it exists.
27448 debug=false
27449 ac_cs_recheck=false
27450 ac_cs_silent=false
27452 SHELL=\${CONFIG_SHELL-$SHELL}
27453 export SHELL
27454 _ASEOF
27455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27456 ## -------------------- ##
27457 ## M4sh Initialization. ##
27458 ## -------------------- ##
27460 # Be more Bourne compatible
27461 DUALCASE=1; export DUALCASE # for MKS sh
27462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27463 emulate sh
27464 NULLCMD=:
27465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27466 # is contrary to our usage. Disable this feature.
27467 alias -g '${1+"$@"}'='"$@"'
27468 setopt NO_GLOB_SUBST
27469 else
27470 case `(set -o) 2>/dev/null` in #(
27471 *posix*) :
27472 set -o posix ;; #(
27473 *) :
27475 esac
27479 as_nl='
27481 export as_nl
27482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27486 # Prefer a ksh shell builtin over an external printf program on Solaris,
27487 # but without wasting forks for bash or zsh.
27488 if test -z "$BASH_VERSION$ZSH_VERSION" \
27489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27490 as_echo='print -r --'
27491 as_echo_n='print -rn --'
27492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27493 as_echo='printf %s\n'
27494 as_echo_n='printf %s'
27495 else
27496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27498 as_echo_n='/usr/ucb/echo -n'
27499 else
27500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27501 as_echo_n_body='eval
27502 arg=$1;
27503 case $arg in #(
27504 *"$as_nl"*)
27505 expr "X$arg" : "X\\(.*\\)$as_nl";
27506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27507 esac;
27508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27510 export as_echo_n_body
27511 as_echo_n='sh -c $as_echo_n_body as_echo'
27513 export as_echo_body
27514 as_echo='sh -c $as_echo_body as_echo'
27517 # The user is always right.
27518 if test "${PATH_SEPARATOR+set}" != set; then
27519 PATH_SEPARATOR=:
27520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27522 PATH_SEPARATOR=';'
27527 # IFS
27528 # We need space, tab and new line, in precisely that order. Quoting is
27529 # there to prevent editors from complaining about space-tab.
27530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27531 # splitting by setting IFS to empty value.)
27532 IFS=" "" $as_nl"
27534 # Find who we are. Look in the path if we contain no directory separator.
27535 as_myself=
27536 case $0 in #((
27537 *[\\/]* ) as_myself=$0 ;;
27538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27539 for as_dir in $PATH
27541 IFS=$as_save_IFS
27542 test -z "$as_dir" && as_dir=.
27543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27544 done
27545 IFS=$as_save_IFS
27548 esac
27549 # We did not find ourselves, most probably we were run as `sh COMMAND'
27550 # in which case we are not to be found in the path.
27551 if test "x$as_myself" = x; then
27552 as_myself=$0
27554 if test ! -f "$as_myself"; then
27555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27556 exit 1
27559 # Unset variables that we do not need and which cause bugs (e.g. in
27560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27561 # suppresses any "Segmentation fault" message there. '((' could
27562 # trigger a bug in pdksh 5.2.14.
27563 for as_var in BASH_ENV ENV MAIL MAILPATH
27564 do eval test x\${$as_var+set} = xset \
27565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27566 done
27567 PS1='$ '
27568 PS2='> '
27569 PS4='+ '
27571 # NLS nuisances.
27572 LC_ALL=C
27573 export LC_ALL
27574 LANGUAGE=C
27575 export LANGUAGE
27577 # CDPATH.
27578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27582 # ----------------------------------------
27583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27585 # script with STATUS, using 1 if that was 0.
27586 as_fn_error ()
27588 as_status=$1; test $as_status -eq 0 && as_status=1
27589 if test "$4"; then
27590 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27593 $as_echo "$as_me: error: $2" >&2
27594 as_fn_exit $as_status
27595 } # as_fn_error
27598 # as_fn_set_status STATUS
27599 # -----------------------
27600 # Set $? to STATUS, without forking.
27601 as_fn_set_status ()
27603 return $1
27604 } # as_fn_set_status
27606 # as_fn_exit STATUS
27607 # -----------------
27608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27609 as_fn_exit ()
27611 set +e
27612 as_fn_set_status $1
27613 exit $1
27614 } # as_fn_exit
27616 # as_fn_unset VAR
27617 # ---------------
27618 # Portably unset VAR.
27619 as_fn_unset ()
27621 { eval $1=; unset $1;}
27623 as_unset=as_fn_unset
27624 # as_fn_append VAR VALUE
27625 # ----------------------
27626 # Append the text in VALUE to the end of the definition contained in VAR. Take
27627 # advantage of any shell optimizations that allow amortized linear growth over
27628 # repeated appends, instead of the typical quadratic growth present in naive
27629 # implementations.
27630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27631 eval 'as_fn_append ()
27633 eval $1+=\$2
27635 else
27636 as_fn_append ()
27638 eval $1=\$$1\$2
27640 fi # as_fn_append
27642 # as_fn_arith ARG...
27643 # ------------------
27644 # Perform arithmetic evaluation on the ARGs, and store the result in the
27645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27646 # must be portable across $(()) and expr.
27647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27648 eval 'as_fn_arith ()
27650 as_val=$(( $* ))
27652 else
27653 as_fn_arith ()
27655 as_val=`expr "$@" || test $? -eq 1`
27657 fi # as_fn_arith
27660 if expr a : '\(a\)' >/dev/null 2>&1 &&
27661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27662 as_expr=expr
27663 else
27664 as_expr=false
27667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27668 as_basename=basename
27669 else
27670 as_basename=false
27673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27674 as_dirname=dirname
27675 else
27676 as_dirname=false
27679 as_me=`$as_basename -- "$0" ||
27680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27681 X"$0" : 'X\(//\)$' \| \
27682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27683 $as_echo X/"$0" |
27684 sed '/^.*\/\([^/][^/]*\)\/*$/{
27685 s//\1/
27688 /^X\/\(\/\/\)$/{
27689 s//\1/
27692 /^X\/\(\/\).*/{
27693 s//\1/
27696 s/.*/./; q'`
27698 # Avoid depending upon Character Ranges.
27699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27702 as_cr_digits='0123456789'
27703 as_cr_alnum=$as_cr_Letters$as_cr_digits
27705 ECHO_C= ECHO_N= ECHO_T=
27706 case `echo -n x` in #(((((
27707 -n*)
27708 case `echo 'xy\c'` in
27709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27710 xy) ECHO_C='\c';;
27711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27712 ECHO_T=' ';;
27713 esac;;
27715 ECHO_N='-n';;
27716 esac
27718 rm -f conf$$ conf$$.exe conf$$.file
27719 if test -d conf$$.dir; then
27720 rm -f conf$$.dir/conf$$.file
27721 else
27722 rm -f conf$$.dir
27723 mkdir conf$$.dir 2>/dev/null
27725 if (echo >conf$$.file) 2>/dev/null; then
27726 if ln -s conf$$.file conf$$ 2>/dev/null; then
27727 as_ln_s='ln -s'
27728 # ... but there are two gotchas:
27729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27731 # In both cases, we have to default to `cp -pR'.
27732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27733 as_ln_s='cp -pR'
27734 elif ln conf$$.file conf$$ 2>/dev/null; then
27735 as_ln_s=ln
27736 else
27737 as_ln_s='cp -pR'
27739 else
27740 as_ln_s='cp -pR'
27742 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27743 rmdir conf$$.dir 2>/dev/null
27746 # as_fn_mkdir_p
27747 # -------------
27748 # Create "$as_dir" as a directory, including parents if necessary.
27749 as_fn_mkdir_p ()
27752 case $as_dir in #(
27753 -*) as_dir=./$as_dir;;
27754 esac
27755 test -d "$as_dir" || eval $as_mkdir_p || {
27756 as_dirs=
27757 while :; do
27758 case $as_dir in #(
27759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27760 *) as_qdir=$as_dir;;
27761 esac
27762 as_dirs="'$as_qdir' $as_dirs"
27763 as_dir=`$as_dirname -- "$as_dir" ||
27764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27765 X"$as_dir" : 'X\(//\)[^/]' \| \
27766 X"$as_dir" : 'X\(//\)$' \| \
27767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27768 $as_echo X"$as_dir" |
27769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27770 s//\1/
27773 /^X\(\/\/\)[^/].*/{
27774 s//\1/
27777 /^X\(\/\/\)$/{
27778 s//\1/
27781 /^X\(\/\).*/{
27782 s//\1/
27785 s/.*/./; q'`
27786 test -d "$as_dir" && break
27787 done
27788 test -z "$as_dirs" || eval "mkdir $as_dirs"
27789 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27792 } # as_fn_mkdir_p
27793 if mkdir -p . 2>/dev/null; then
27794 as_mkdir_p='mkdir -p "$as_dir"'
27795 else
27796 test -d ./-p && rmdir ./-p
27797 as_mkdir_p=false
27801 # as_fn_executable_p FILE
27802 # -----------------------
27803 # Test if FILE is an executable regular file.
27804 as_fn_executable_p ()
27806 test -f "$1" && test -x "$1"
27807 } # as_fn_executable_p
27808 as_test_x='test -x'
27809 as_executable_p=as_fn_executable_p
27811 # Sed expression to map a string onto a valid CPP name.
27812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27814 # Sed expression to map a string onto a valid variable name.
27815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27818 exec 6>&1
27819 ## ----------------------------------- ##
27820 ## Main body of $CONFIG_STATUS script. ##
27821 ## ----------------------------------- ##
27822 _ASEOF
27823 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27826 # Save the log message, to keep $0 and so on meaningful, and to
27827 # report actual input values of CONFIG_FILES etc. instead of their
27828 # values after options handling.
27829 ac_log="
27830 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27831 generated by GNU Autoconf 2.69. Invocation command line was
27833 CONFIG_FILES = $CONFIG_FILES
27834 CONFIG_HEADERS = $CONFIG_HEADERS
27835 CONFIG_LINKS = $CONFIG_LINKS
27836 CONFIG_COMMANDS = $CONFIG_COMMANDS
27837 $ $0 $@
27839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27842 _ACEOF
27844 case $ac_config_files in *"
27845 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27846 esac
27848 case $ac_config_headers in *"
27849 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27850 esac
27853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27854 # Files that config.status was made for.
27855 config_files="$ac_config_files"
27856 config_headers="$ac_config_headers"
27857 config_commands="$ac_config_commands"
27859 _ACEOF
27861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27862 ac_cs_usage="\
27863 \`$as_me' instantiates files and other configuration actions
27864 from templates according to the current configuration. Unless the files
27865 and actions are specified as TAGs, all are instantiated by default.
27867 Usage: $0 [OPTION]... [TAG]...
27869 -h, --help print this help, then exit
27870 -V, --version print version number and configuration settings, then exit
27871 --config print configuration, then exit
27872 -q, --quiet, --silent
27873 do not print progress messages
27874 -d, --debug don't remove temporary files
27875 --recheck update $as_me by reconfiguring in the same conditions
27876 --file=FILE[:TEMPLATE]
27877 instantiate the configuration file FILE
27878 --header=FILE[:TEMPLATE]
27879 instantiate the configuration header FILE
27881 Configuration files:
27882 $config_files
27884 Configuration headers:
27885 $config_headers
27887 Configuration commands:
27888 $config_commands
27890 Report bugs to the package provider.
27891 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27892 General help using GNU software: <http://www.gnu.org/gethelp/>."
27894 _ACEOF
27895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27896 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27897 ac_cs_version="\\
27898 GNU Fortran Runtime Library config.status 0.3
27899 configured by $0, generated by GNU Autoconf 2.69,
27900 with options \\"\$ac_cs_config\\"
27902 Copyright (C) 2012 Free Software Foundation, Inc.
27903 This config.status script is free software; the Free Software Foundation
27904 gives unlimited permission to copy, distribute and modify it."
27906 ac_pwd='$ac_pwd'
27907 srcdir='$srcdir'
27908 INSTALL='$INSTALL'
27909 MKDIR_P='$MKDIR_P'
27910 AWK='$AWK'
27911 test -n "\$AWK" || AWK=awk
27912 _ACEOF
27914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27915 # The default lists apply if the user does not specify any file.
27916 ac_need_defaults=:
27917 while test $# != 0
27919 case $1 in
27920 --*=?*)
27921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27923 ac_shift=:
27925 --*=)
27926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27927 ac_optarg=
27928 ac_shift=:
27931 ac_option=$1
27932 ac_optarg=$2
27933 ac_shift=shift
27935 esac
27937 case $ac_option in
27938 # Handling of the options.
27939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27940 ac_cs_recheck=: ;;
27941 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27942 $as_echo "$ac_cs_version"; exit ;;
27943 --config | --confi | --conf | --con | --co | --c )
27944 $as_echo "$ac_cs_config"; exit ;;
27945 --debug | --debu | --deb | --de | --d | -d )
27946 debug=: ;;
27947 --file | --fil | --fi | --f )
27948 $ac_shift
27949 case $ac_optarg in
27950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27951 '') as_fn_error $? "missing file argument" ;;
27952 esac
27953 as_fn_append CONFIG_FILES " '$ac_optarg'"
27954 ac_need_defaults=false;;
27955 --header | --heade | --head | --hea )
27956 $ac_shift
27957 case $ac_optarg in
27958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27959 esac
27960 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27961 ac_need_defaults=false;;
27962 --he | --h)
27963 # Conflict between --help and --header
27964 as_fn_error $? "ambiguous option: \`$1'
27965 Try \`$0 --help' for more information.";;
27966 --help | --hel | -h )
27967 $as_echo "$ac_cs_usage"; exit ;;
27968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27970 ac_cs_silent=: ;;
27972 # This is an error.
27973 -*) as_fn_error $? "unrecognized option: \`$1'
27974 Try \`$0 --help' for more information." ;;
27976 *) as_fn_append ac_config_targets " $1"
27977 ac_need_defaults=false ;;
27979 esac
27980 shift
27981 done
27983 ac_configure_extra_args=
27985 if $ac_cs_silent; then
27986 exec 6>/dev/null
27987 ac_configure_extra_args="$ac_configure_extra_args --silent"
27990 _ACEOF
27991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27992 if \$ac_cs_recheck; then
27993 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27994 shift
27995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27996 CONFIG_SHELL='$SHELL'
27997 export CONFIG_SHELL
27998 exec "\$@"
28001 _ACEOF
28002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28003 exec 5>>config.log
28005 echo
28006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28007 ## Running $as_me. ##
28008 _ASBOX
28009 $as_echo "$ac_log"
28010 } >&5
28012 _ACEOF
28013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28015 # INIT-COMMANDS
28018 srcdir="$srcdir"
28019 host="$host"
28020 target="$target"
28021 with_multisubdir="$with_multisubdir"
28022 with_multisrctop="$with_multisrctop"
28023 with_target_subdir="$with_target_subdir"
28024 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28025 multi_basedir="$multi_basedir"
28026 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28027 CC="$CC"
28028 CXX="$CXX"
28029 GFORTRAN="$GFORTRAN"
28030 GDC="$GDC"
28031 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28034 # The HP-UX ksh and POSIX shell print the target directory to stdout
28035 # if CDPATH is set.
28036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28038 sed_quote_subst='$sed_quote_subst'
28039 double_quote_subst='$double_quote_subst'
28040 delay_variable_subst='$delay_variable_subst'
28041 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28042 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28043 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28044 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28045 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28046 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28047 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28048 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28049 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28050 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28051 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28052 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28053 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28054 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28055 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28056 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28057 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28058 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28059 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28060 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28061 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28062 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28063 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28064 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28065 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28066 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28067 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28068 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28069 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28070 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28071 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28072 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28073 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28076 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28077 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28078 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28079 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28080 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28081 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28082 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28083 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28084 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28085 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28086 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28087 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28088 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28089 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"`'
28090 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28091 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28092 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28094 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28095 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28096 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28097 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28121 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28122 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28123 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28124 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28125 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28126 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28127 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28128 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28129 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28130 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28131 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28132 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28133 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28134 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28135 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28136 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28137 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28138 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28139 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28140 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28141 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28142 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28143 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28144 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28145 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28146 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28147 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28148 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28149 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28150 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28151 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28152 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28153 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28154 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28155 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28156 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28157 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28158 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28159 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28160 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28161 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28162 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28163 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28164 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28165 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28166 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28167 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28168 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28169 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28170 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28171 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28172 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28173 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28174 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28175 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28176 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28177 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28178 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28179 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28180 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28181 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28182 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28183 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28184 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28185 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28186 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28187 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28188 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28189 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28190 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28191 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28192 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28193 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28194 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28195 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28196 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28197 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28198 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28199 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28200 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28201 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28202 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28203 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28204 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28205 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28206 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28207 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28208 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28209 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28210 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28211 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28212 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28213 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28214 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28215 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28217 LTCC='$LTCC'
28218 LTCFLAGS='$LTCFLAGS'
28219 compiler='$compiler_DEFAULT'
28221 # A function that is used when there is no print builtin or printf.
28222 func_fallback_echo ()
28224 eval 'cat <<_LTECHO_EOF
28226 _LTECHO_EOF'
28229 # Quote evaled strings.
28230 for var in SED \
28231 GREP \
28232 EGREP \
28233 FGREP \
28234 SHELL \
28235 ECHO \
28236 LD \
28237 NM \
28238 LN_S \
28239 lt_SP2NL \
28240 lt_NL2SP \
28241 reload_flag \
28242 OBJDUMP \
28243 deplibs_check_method \
28244 file_magic_cmd \
28245 AR \
28246 AR_FLAGS \
28247 STRIP \
28248 RANLIB \
28249 CC \
28250 CFLAGS \
28251 compiler \
28252 lt_cv_sys_global_symbol_pipe \
28253 lt_cv_sys_global_symbol_to_cdecl \
28254 lt_cv_sys_global_symbol_to_c_name_address \
28255 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28256 lt_prog_compiler_no_builtin_flag \
28257 lt_prog_compiler_wl \
28258 lt_prog_compiler_pic \
28259 lt_prog_compiler_static \
28260 lt_cv_prog_compiler_c_o \
28261 need_locks \
28262 DSYMUTIL \
28263 NMEDIT \
28264 LIPO \
28265 OTOOL \
28266 OTOOL64 \
28267 shrext_cmds \
28268 export_dynamic_flag_spec \
28269 whole_archive_flag_spec \
28270 compiler_needs_object \
28271 with_gnu_ld \
28272 allow_undefined_flag \
28273 no_undefined_flag \
28274 hardcode_libdir_flag_spec \
28275 hardcode_libdir_flag_spec_ld \
28276 hardcode_libdir_separator \
28277 fix_srcfile_path \
28278 exclude_expsyms \
28279 include_expsyms \
28280 file_list_spec \
28281 variables_saved_for_relink \
28282 libname_spec \
28283 library_names_spec \
28284 soname_spec \
28285 install_override_mode \
28286 finish_eval \
28287 old_striplib \
28288 striplib \
28289 compiler_lib_search_dirs \
28290 predep_objects \
28291 postdep_objects \
28292 predeps \
28293 postdeps \
28294 compiler_lib_search_path \
28295 LD_FC \
28296 reload_flag_FC \
28297 compiler_FC \
28298 lt_prog_compiler_no_builtin_flag_FC \
28299 lt_prog_compiler_wl_FC \
28300 lt_prog_compiler_pic_FC \
28301 lt_prog_compiler_static_FC \
28302 lt_cv_prog_compiler_c_o_FC \
28303 export_dynamic_flag_spec_FC \
28304 whole_archive_flag_spec_FC \
28305 compiler_needs_object_FC \
28306 with_gnu_ld_FC \
28307 allow_undefined_flag_FC \
28308 no_undefined_flag_FC \
28309 hardcode_libdir_flag_spec_FC \
28310 hardcode_libdir_flag_spec_ld_FC \
28311 hardcode_libdir_separator_FC \
28312 fix_srcfile_path_FC \
28313 exclude_expsyms_FC \
28314 include_expsyms_FC \
28315 file_list_spec_FC \
28316 compiler_lib_search_dirs_FC \
28317 predep_objects_FC \
28318 postdep_objects_FC \
28319 predeps_FC \
28320 postdeps_FC \
28321 compiler_lib_search_path_FC; do
28322 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28323 *[\\\\\\\`\\"\\\$]*)
28324 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28327 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28329 esac
28330 done
28332 # Double-quote double-evaled strings.
28333 for var in reload_cmds \
28334 old_postinstall_cmds \
28335 old_postuninstall_cmds \
28336 old_archive_cmds \
28337 extract_expsyms_cmds \
28338 old_archive_from_new_cmds \
28339 old_archive_from_expsyms_cmds \
28340 archive_cmds \
28341 archive_expsym_cmds \
28342 module_cmds \
28343 module_expsym_cmds \
28344 export_symbols_cmds \
28345 prelink_cmds \
28346 postinstall_cmds \
28347 postuninstall_cmds \
28348 finish_cmds \
28349 sys_lib_search_path_spec \
28350 sys_lib_dlsearch_path_spec \
28351 reload_cmds_FC \
28352 old_archive_cmds_FC \
28353 old_archive_from_new_cmds_FC \
28354 old_archive_from_expsyms_cmds_FC \
28355 archive_cmds_FC \
28356 archive_expsym_cmds_FC \
28357 module_cmds_FC \
28358 module_expsym_cmds_FC \
28359 export_symbols_cmds_FC \
28360 prelink_cmds_FC; do
28361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28362 *[\\\\\\\`\\"\\\$]*)
28363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28368 esac
28369 done
28371 ac_aux_dir='$ac_aux_dir'
28372 xsi_shell='$xsi_shell'
28373 lt_shell_append='$lt_shell_append'
28375 # See if we are running on zsh, and set the options which allow our
28376 # commands through without removal of \ escapes INIT.
28377 if test -n "\${ZSH_VERSION+set}" ; then
28378 setopt NO_GLOB_SUBST
28382 PACKAGE='$PACKAGE'
28383 VERSION='$VERSION'
28384 TIMESTAMP='$TIMESTAMP'
28385 RM='$RM'
28386 ofile='$ofile'
28393 GCC="$GCC"
28394 CC="$CC"
28395 acx_cv_header_stdint="$acx_cv_header_stdint"
28396 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28397 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28398 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28399 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28400 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28401 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28402 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28403 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28404 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28405 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28406 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28407 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28408 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28411 _ACEOF
28413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28415 # Handling of arguments.
28416 for ac_config_target in $ac_config_targets
28418 case $ac_config_target in
28419 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28420 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28421 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28422 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28423 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28424 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28425 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28428 esac
28429 done
28432 # If the user did not use the arguments to specify the items to instantiate,
28433 # then the envvar interface is used. Set only those that are not.
28434 # We use the long form for the default assignment because of an extremely
28435 # bizarre bug on SunOS 4.1.3.
28436 if $ac_need_defaults; then
28437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28442 # Have a temporary directory for convenience. Make it in the build tree
28443 # simply because there is no reason against having it here, and in addition,
28444 # creating and moving files from /tmp can sometimes cause problems.
28445 # Hook for its removal unless debugging.
28446 # Note that there is a small window in which the directory will not be cleaned:
28447 # after its creation but before its name has been assigned to `$tmp'.
28448 $debug ||
28450 tmp= ac_tmp=
28451 trap 'exit_status=$?
28452 : "${ac_tmp:=$tmp}"
28453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28455 trap 'as_fn_exit 1' 1 2 13 15
28457 # Create a (secure) tmp directory for tmp files.
28460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28461 test -d "$tmp"
28462 } ||
28464 tmp=./conf$$-$RANDOM
28465 (umask 077 && mkdir "$tmp")
28466 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28467 ac_tmp=$tmp
28469 # Set up the scripts for CONFIG_FILES section.
28470 # No need to generate them if there are no CONFIG_FILES.
28471 # This happens for instance with `./config.status config.h'.
28472 if test -n "$CONFIG_FILES"; then
28475 ac_cr=`echo X | tr X '\015'`
28476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28477 # But we know of no other shell where ac_cr would be empty at this
28478 # point, so we can use a bashism as a fallback.
28479 if test "x$ac_cr" = x; then
28480 eval ac_cr=\$\'\\r\'
28482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28484 ac_cs_awk_cr='\\r'
28485 else
28486 ac_cs_awk_cr=$ac_cr
28489 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28490 _ACEOF
28494 echo "cat >conf$$subs.awk <<_ACEOF" &&
28495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28496 echo "_ACEOF"
28497 } >conf$$subs.sh ||
28498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28500 ac_delim='%!_!# '
28501 for ac_last_try in false false false false false :; do
28502 . ./conf$$subs.sh ||
28503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28506 if test $ac_delim_n = $ac_delim_num; then
28507 break
28508 elif $ac_last_try; then
28509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28510 else
28511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28513 done
28514 rm -f conf$$subs.sh
28516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28517 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28518 _ACEOF
28519 sed -n '
28521 s/^/S["/; s/!.*/"]=/
28524 s/^[^!]*!//
28525 :repl
28526 t repl
28527 s/'"$ac_delim"'$//
28528 t delim
28531 s/\(.\{148\}\)..*/\1/
28532 t more1
28533 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28536 b repl
28537 :more1
28538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28541 s/.\{148\}//
28542 t nl
28543 :delim
28545 s/\(.\{148\}\)..*/\1/
28546 t more2
28547 s/["\\]/\\&/g; s/^/"/; s/$/"/
28550 :more2
28551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28554 s/.\{148\}//
28555 t delim
28556 ' <conf$$subs.awk | sed '
28557 /^[^""]/{
28559 s/\n//
28561 ' >>$CONFIG_STATUS || ac_write_fail=1
28562 rm -f conf$$subs.awk
28563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28564 _ACAWK
28565 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28566 for (key in S) S_is_set[key] = 1
28567 FS = "\a"
28571 line = $ 0
28572 nfields = split(line, field, "@")
28573 substed = 0
28574 len = length(field[1])
28575 for (i = 2; i < nfields; i++) {
28576 key = field[i]
28577 keylen = length(key)
28578 if (S_is_set[key]) {
28579 value = S[key]
28580 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28581 len += length(value) + length(field[++i])
28582 substed = 1
28583 } else
28584 len += 1 + keylen
28587 print line
28590 _ACAWK
28591 _ACEOF
28592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28595 else
28597 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28599 _ACEOF
28601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28603 # trailing colons and then remove the whole line if VPATH becomes empty
28604 # (actually we leave an empty line to preserve line numbers).
28605 if test "x$srcdir" = x.; then
28606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28608 s///
28609 s/^/:/
28610 s/[ ]*$/:/
28611 s/:\$(srcdir):/:/g
28612 s/:\${srcdir}:/:/g
28613 s/:@srcdir@:/:/g
28614 s/^:*//
28615 s/:*$//
28617 s/\(=[ ]*\).*/\1/
28619 s/\n//
28620 s/^[^=]*=[ ]*$//
28624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28625 fi # test -n "$CONFIG_FILES"
28627 # Set up the scripts for CONFIG_HEADERS section.
28628 # No need to generate them if there are no CONFIG_HEADERS.
28629 # This happens for instance with `./config.status Makefile'.
28630 if test -n "$CONFIG_HEADERS"; then
28631 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28632 BEGIN {
28633 _ACEOF
28635 # Transform confdefs.h into an awk script `defines.awk', embedded as
28636 # here-document in config.status, that substitutes the proper values into
28637 # config.h.in to produce config.h.
28639 # Create a delimiter string that does not exist in confdefs.h, to ease
28640 # handling of long lines.
28641 ac_delim='%!_!# '
28642 for ac_last_try in false false :; do
28643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28644 if test -z "$ac_tt"; then
28645 break
28646 elif $ac_last_try; then
28647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28648 else
28649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28651 done
28653 # For the awk script, D is an array of macro values keyed by name,
28654 # likewise P contains macro parameters if any. Preserve backslash
28655 # newline sequences.
28657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28658 sed -n '
28659 s/.\{148\}/&'"$ac_delim"'/g
28660 t rset
28661 :rset
28662 s/^[ ]*#[ ]*define[ ][ ]*/ /
28663 t def
28665 :def
28666 s/\\$//
28667 t bsnl
28668 s/["\\]/\\&/g
28669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28670 D["\1"]=" \3"/p
28671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28673 :bsnl
28674 s/["\\]/\\&/g
28675 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28676 D["\1"]=" \3\\\\\\n"\\/p
28677 t cont
28678 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28679 t cont
28681 :cont
28683 s/.\{148\}/&'"$ac_delim"'/g
28684 t clear
28685 :clear
28686 s/\\$//
28687 t bsnlc
28688 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28690 :bsnlc
28691 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28692 b cont
28693 ' <confdefs.h | sed '
28694 s/'"$ac_delim"'/"\\\
28695 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28698 for (key in D) D_is_set[key] = 1
28699 FS = "\a"
28701 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28702 line = \$ 0
28703 split(line, arg, " ")
28704 if (arg[1] == "#") {
28705 defundef = arg[2]
28706 mac1 = arg[3]
28707 } else {
28708 defundef = substr(arg[1], 2)
28709 mac1 = arg[2]
28711 split(mac1, mac2, "(") #)
28712 macro = mac2[1]
28713 prefix = substr(line, 1, index(line, defundef) - 1)
28714 if (D_is_set[macro]) {
28715 # Preserve the white space surrounding the "#".
28716 print prefix "define", macro P[macro] D[macro]
28717 next
28718 } else {
28719 # Replace #undef with comments. This is necessary, for example,
28720 # in the case of _POSIX_SOURCE, which is predefined and required
28721 # on some systems where configure will not decide to define it.
28722 if (defundef == "undef") {
28723 print "/*", prefix defundef, macro, "*/"
28724 next
28728 { print }
28729 _ACAWK
28730 _ACEOF
28731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28733 fi # test -n "$CONFIG_HEADERS"
28736 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28737 shift
28738 for ac_tag
28740 case $ac_tag in
28741 :[FHLC]) ac_mode=$ac_tag; continue;;
28742 esac
28743 case $ac_mode$ac_tag in
28744 :[FHL]*:*);;
28745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28746 :[FH]-) ac_tag=-:-;;
28747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28748 esac
28749 ac_save_IFS=$IFS
28750 IFS=:
28751 set x $ac_tag
28752 IFS=$ac_save_IFS
28753 shift
28754 ac_file=$1
28755 shift
28757 case $ac_mode in
28758 :L) ac_source=$1;;
28759 :[FH])
28760 ac_file_inputs=
28761 for ac_f
28763 case $ac_f in
28764 -) ac_f="$ac_tmp/stdin";;
28765 *) # Look for the file first in the build tree, then in the source tree
28766 # (if the path is not absolute). The absolute path cannot be DOS-style,
28767 # because $ac_f cannot contain `:'.
28768 test -f "$ac_f" ||
28769 case $ac_f in
28770 [\\/$]*) false;;
28771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28772 esac ||
28773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28774 esac
28775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28776 as_fn_append ac_file_inputs " '$ac_f'"
28777 done
28779 # Let's still pretend it is `configure' which instantiates (i.e., don't
28780 # use $as_me), people would be surprised to read:
28781 # /* config.h. Generated by config.status. */
28782 configure_input='Generated from '`
28783 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28784 `' by configure.'
28785 if test x"$ac_file" != x-; then
28786 configure_input="$ac_file. $configure_input"
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28788 $as_echo "$as_me: creating $ac_file" >&6;}
28790 # Neutralize special characters interpreted by sed in replacement strings.
28791 case $configure_input in #(
28792 *\&* | *\|* | *\\* )
28793 ac_sed_conf_input=`$as_echo "$configure_input" |
28794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28795 *) ac_sed_conf_input=$configure_input;;
28796 esac
28798 case $ac_tag in
28799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28801 esac
28803 esac
28805 ac_dir=`$as_dirname -- "$ac_file" ||
28806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28807 X"$ac_file" : 'X\(//\)[^/]' \| \
28808 X"$ac_file" : 'X\(//\)$' \| \
28809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28810 $as_echo X"$ac_file" |
28811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28812 s//\1/
28815 /^X\(\/\/\)[^/].*/{
28816 s//\1/
28819 /^X\(\/\/\)$/{
28820 s//\1/
28823 /^X\(\/\).*/{
28824 s//\1/
28827 s/.*/./; q'`
28828 as_dir="$ac_dir"; as_fn_mkdir_p
28829 ac_builddir=.
28831 case "$ac_dir" in
28832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28834 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28835 # A ".." for each directory in $ac_dir_suffix.
28836 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28837 case $ac_top_builddir_sub in
28838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28840 esac ;;
28841 esac
28842 ac_abs_top_builddir=$ac_pwd
28843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28844 # for backward compatibility:
28845 ac_top_builddir=$ac_top_build_prefix
28847 case $srcdir in
28848 .) # We are building in place.
28849 ac_srcdir=.
28850 ac_top_srcdir=$ac_top_builddir_sub
28851 ac_abs_top_srcdir=$ac_pwd ;;
28852 [\\/]* | ?:[\\/]* ) # Absolute name.
28853 ac_srcdir=$srcdir$ac_dir_suffix;
28854 ac_top_srcdir=$srcdir
28855 ac_abs_top_srcdir=$srcdir ;;
28856 *) # Relative name.
28857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28858 ac_top_srcdir=$ac_top_build_prefix$srcdir
28859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28860 esac
28861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28864 case $ac_mode in
28867 # CONFIG_FILE
28870 case $INSTALL in
28871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28873 esac
28874 ac_MKDIR_P=$MKDIR_P
28875 case $MKDIR_P in
28876 [\\/$]* | ?:[\\/]* ) ;;
28877 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28878 esac
28879 _ACEOF
28881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28882 # If the template does not know about datarootdir, expand it.
28883 # FIXME: This hack should be removed a few years after 2.60.
28884 ac_datarootdir_hack=; ac_datarootdir_seen=
28885 ac_sed_dataroot='
28886 /datarootdir/ {
28890 /@datadir@/p
28891 /@docdir@/p
28892 /@infodir@/p
28893 /@localedir@/p
28894 /@mandir@/p'
28895 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28896 *datarootdir*) ac_datarootdir_seen=yes;;
28897 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28899 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28900 _ACEOF
28901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28902 ac_datarootdir_hack='
28903 s&@datadir@&$datadir&g
28904 s&@docdir@&$docdir&g
28905 s&@infodir@&$infodir&g
28906 s&@localedir@&$localedir&g
28907 s&@mandir@&$mandir&g
28908 s&\\\${datarootdir}&$datarootdir&g' ;;
28909 esac
28910 _ACEOF
28912 # Neutralize VPATH when `$srcdir' = `.'.
28913 # Shell code in configure.ac might set extrasub.
28914 # FIXME: do we really want to maintain this feature?
28915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28916 ac_sed_extra="$ac_vpsub
28917 $extrasub
28918 _ACEOF
28919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28922 s|@configure_input@|$ac_sed_conf_input|;t t
28923 s&@top_builddir@&$ac_top_builddir_sub&;t t
28924 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28925 s&@srcdir@&$ac_srcdir&;t t
28926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28927 s&@top_srcdir@&$ac_top_srcdir&;t t
28928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28929 s&@builddir@&$ac_builddir&;t t
28930 s&@abs_builddir@&$ac_abs_builddir&;t t
28931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28932 s&@INSTALL@&$ac_INSTALL&;t t
28933 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28934 $ac_datarootdir_hack
28936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28944 which seems to be undefined. Please make sure it is defined" >&5
28945 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28946 which seems to be undefined. Please make sure it is defined" >&2;}
28948 rm -f "$ac_tmp/stdin"
28949 case $ac_file in
28950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28952 esac \
28953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28957 # CONFIG_HEADER
28959 if test x"$ac_file" != x-; then
28961 $as_echo "/* $configure_input */" \
28962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28963 } >"$ac_tmp/config.h" \
28964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28967 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28968 else
28969 rm -f "$ac_file"
28970 mv "$ac_tmp/config.h" "$ac_file" \
28971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28973 else
28974 $as_echo "/* $configure_input */" \
28975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28976 || as_fn_error $? "could not create -" "$LINENO" 5
28978 # Compute "$ac_file"'s index in $config_headers.
28979 _am_arg="$ac_file"
28980 _am_stamp_count=1
28981 for _am_header in $config_headers :; do
28982 case $_am_header in
28983 $_am_arg | $_am_arg:* )
28984 break ;;
28986 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28987 esac
28988 done
28989 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28990 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28991 X"$_am_arg" : 'X\(//\)[^/]' \| \
28992 X"$_am_arg" : 'X\(//\)$' \| \
28993 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28994 $as_echo X"$_am_arg" |
28995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28996 s//\1/
28999 /^X\(\/\/\)[^/].*/{
29000 s//\1/
29003 /^X\(\/\/\)$/{
29004 s//\1/
29007 /^X\(\/\).*/{
29008 s//\1/
29011 s/.*/./; q'`/stamp-h$_am_stamp_count
29014 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29015 $as_echo "$as_me: executing $ac_file commands" >&6;}
29017 esac
29020 case $ac_file$ac_mode in
29021 "default-1":C)
29022 # Only add multilib support code if we just rebuilt the top-level
29023 # Makefile.
29024 case " $CONFIG_FILES " in
29025 *" Makefile "*)
29026 ac_file=Makefile . ${multi_basedir}/config-ml.in
29028 esac ;;
29029 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29030 # Older Autoconf quotes --file arguments for eval, but not when files
29031 # are listed without --file. Let's play safe and only enable the eval
29032 # if we detect the quoting.
29033 case $CONFIG_FILES in
29034 *\'*) eval set x "$CONFIG_FILES" ;;
29035 *) set x $CONFIG_FILES ;;
29036 esac
29037 shift
29038 for mf
29040 # Strip MF so we end up with the name of the file.
29041 mf=`echo "$mf" | sed -e 's/:.*$//'`
29042 # Check whether this is an Automake generated Makefile or not.
29043 # We used to match only the files named 'Makefile.in', but
29044 # some people rename them; so instead we look at the file content.
29045 # Grep'ing the first line is not enough: some people post-process
29046 # each Makefile.in and add a new line on top of each file to say so.
29047 # Grep'ing the whole file is not good either: AIX grep has a line
29048 # limit of 2048, but all sed's we know have understand at least 4000.
29049 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29050 dirpart=`$as_dirname -- "$mf" ||
29051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29052 X"$mf" : 'X\(//\)[^/]' \| \
29053 X"$mf" : 'X\(//\)$' \| \
29054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29055 $as_echo X"$mf" |
29056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29057 s//\1/
29060 /^X\(\/\/\)[^/].*/{
29061 s//\1/
29064 /^X\(\/\/\)$/{
29065 s//\1/
29068 /^X\(\/\).*/{
29069 s//\1/
29072 s/.*/./; q'`
29073 else
29074 continue
29076 # Extract the definition of DEPDIR, am__include, and am__quote
29077 # from the Makefile without running 'make'.
29078 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29079 test -z "$DEPDIR" && continue
29080 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29081 test -z "$am__include" && continue
29082 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29083 # Find all dependency output files, they are included files with
29084 # $(DEPDIR) in their names. We invoke sed twice because it is the
29085 # simplest approach to changing $(DEPDIR) to its actual value in the
29086 # expansion.
29087 for file in `sed -n "
29088 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29089 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29090 # Make sure the directory exists.
29091 test -f "$dirpart/$file" && continue
29092 fdir=`$as_dirname -- "$file" ||
29093 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29094 X"$file" : 'X\(//\)[^/]' \| \
29095 X"$file" : 'X\(//\)$' \| \
29096 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29097 $as_echo X"$file" |
29098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29099 s//\1/
29102 /^X\(\/\/\)[^/].*/{
29103 s//\1/
29106 /^X\(\/\/\)$/{
29107 s//\1/
29110 /^X\(\/\).*/{
29111 s//\1/
29114 s/.*/./; q'`
29115 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29116 # echo "creating $dirpart/$file"
29117 echo '# dummy' > "$dirpart/$file"
29118 done
29119 done
29122 "libtool":C)
29124 # See if we are running on zsh, and set the options which allow our
29125 # commands through without removal of \ escapes.
29126 if test -n "${ZSH_VERSION+set}" ; then
29127 setopt NO_GLOB_SUBST
29130 cfgfile="${ofile}T"
29131 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29132 $RM "$cfgfile"
29134 cat <<_LT_EOF >> "$cfgfile"
29135 #! $SHELL
29137 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29138 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29140 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29142 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29143 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
29144 # Written by Gordon Matzigkeit, 1996
29146 # This file is part of GNU Libtool.
29148 # GNU Libtool is free software; you can redistribute it and/or
29149 # modify it under the terms of the GNU General Public License as
29150 # published by the Free Software Foundation; either version 2 of
29151 # the License, or (at your option) any later version.
29153 # As a special exception to the GNU General Public License,
29154 # if you distribute this file as part of a program or library that
29155 # is built using GNU Libtool, you may include this file under the
29156 # same distribution terms that you use for the rest of that program.
29158 # GNU Libtool is distributed in the hope that it will be useful,
29159 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29160 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29161 # GNU General Public License for more details.
29163 # You should have received a copy of the GNU General Public License
29164 # along with GNU Libtool; see the file COPYING. If not, a copy
29165 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29166 # obtained by writing to the Free Software Foundation, Inc.,
29167 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29170 # The names of the tagged configurations supported by this script.
29171 available_tags="FC "
29173 # ### BEGIN LIBTOOL CONFIG
29175 # A sed program that does not truncate output.
29176 SED=$lt_SED
29178 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29179 Xsed="\$SED -e 1s/^X//"
29181 # A grep program that handles long lines.
29182 GREP=$lt_GREP
29184 # An ERE matcher.
29185 EGREP=$lt_EGREP
29187 # A literal string matcher.
29188 FGREP=$lt_FGREP
29190 # Shell to use when invoking shell scripts.
29191 SHELL=$lt_SHELL
29193 # An echo program that protects backslashes.
29194 ECHO=$lt_ECHO
29196 # Which release of libtool.m4 was used?
29197 macro_version=$macro_version
29198 macro_revision=$macro_revision
29200 # Whether or not to build shared libraries.
29201 build_libtool_libs=$enable_shared
29203 # Whether or not to build static libraries.
29204 build_old_libs=$enable_static
29206 # What type of objects to build.
29207 pic_mode=$pic_mode
29209 # Whether or not to optimize for fast installation.
29210 fast_install=$enable_fast_install
29212 # The host system.
29213 host_alias=$host_alias
29214 host=$host
29215 host_os=$host_os
29217 # The build system.
29218 build_alias=$build_alias
29219 build=$build
29220 build_os=$build_os
29222 # A BSD- or MS-compatible name lister.
29223 NM=$lt_NM
29225 # Whether we need soft or hard links.
29226 LN_S=$lt_LN_S
29228 # What is the maximum length of a command?
29229 max_cmd_len=$max_cmd_len
29231 # Object file suffix (normally "o").
29232 objext=$ac_objext
29234 # Executable file suffix (normally "").
29235 exeext=$exeext
29237 # whether the shell understands "unset".
29238 lt_unset=$lt_unset
29240 # turn spaces into newlines.
29241 SP2NL=$lt_lt_SP2NL
29243 # turn newlines into spaces.
29244 NL2SP=$lt_lt_NL2SP
29246 # An object symbol dumper.
29247 OBJDUMP=$lt_OBJDUMP
29249 # Method to check whether dependent libraries are shared objects.
29250 deplibs_check_method=$lt_deplibs_check_method
29252 # Command to use when deplibs_check_method == "file_magic".
29253 file_magic_cmd=$lt_file_magic_cmd
29255 # The archiver.
29256 AR=$lt_AR
29257 AR_FLAGS=$lt_AR_FLAGS
29259 # A symbol stripping program.
29260 STRIP=$lt_STRIP
29262 # Commands used to install an old-style archive.
29263 RANLIB=$lt_RANLIB
29264 old_postinstall_cmds=$lt_old_postinstall_cmds
29265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29267 # Whether to use a lock for old archive extraction.
29268 lock_old_archive_extraction=$lock_old_archive_extraction
29270 # A C compiler.
29271 LTCC=$lt_CC
29273 # LTCC compiler flags.
29274 LTCFLAGS=$lt_CFLAGS
29276 # Take the output of nm and produce a listing of raw symbols and C names.
29277 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29279 # Transform the output of nm in a proper C declaration.
29280 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29282 # Transform the output of nm in a C name address pair.
29283 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29285 # Transform the output of nm in a C name address pair when lib prefix is needed.
29286 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29288 # The name of the directory that contains temporary libtool files.
29289 objdir=$objdir
29291 # Used to examine libraries when file_magic_cmd begins with "file".
29292 MAGIC_CMD=$MAGIC_CMD
29294 # Must we lock files when doing compilation?
29295 need_locks=$lt_need_locks
29297 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29298 DSYMUTIL=$lt_DSYMUTIL
29300 # Tool to change global to local symbols on Mac OS X.
29301 NMEDIT=$lt_NMEDIT
29303 # Tool to manipulate fat objects and archives on Mac OS X.
29304 LIPO=$lt_LIPO
29306 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29307 OTOOL=$lt_OTOOL
29309 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29310 OTOOL64=$lt_OTOOL64
29312 # Old archive suffix (normally "a").
29313 libext=$libext
29315 # Shared library suffix (normally ".so").
29316 shrext_cmds=$lt_shrext_cmds
29318 # The commands to extract the exported symbol list from a shared archive.
29319 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29321 # Variables whose values should be saved in libtool wrapper scripts and
29322 # restored at link time.
29323 variables_saved_for_relink=$lt_variables_saved_for_relink
29325 # Do we need the "lib" prefix for modules?
29326 need_lib_prefix=$need_lib_prefix
29328 # Do we need a version for libraries?
29329 need_version=$need_version
29331 # Library versioning type.
29332 version_type=$version_type
29334 # Shared library runtime path variable.
29335 runpath_var=$runpath_var
29337 # Shared library path variable.
29338 shlibpath_var=$shlibpath_var
29340 # Is shlibpath searched before the hard-coded library search path?
29341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29343 # Format of library name prefix.
29344 libname_spec=$lt_libname_spec
29346 # List of archive names. First name is the real one, the rest are links.
29347 # The last name is the one that the linker finds with -lNAME
29348 library_names_spec=$lt_library_names_spec
29350 # The coded name of the library, if different from the real name.
29351 soname_spec=$lt_soname_spec
29353 # Permission mode override for installation of shared libraries.
29354 install_override_mode=$lt_install_override_mode
29356 # Command to use after installation of a shared archive.
29357 postinstall_cmds=$lt_postinstall_cmds
29359 # Command to use after uninstallation of a shared archive.
29360 postuninstall_cmds=$lt_postuninstall_cmds
29362 # Commands used to finish a libtool library installation in a directory.
29363 finish_cmds=$lt_finish_cmds
29365 # As "finish_cmds", except a single script fragment to be evaled but
29366 # not shown.
29367 finish_eval=$lt_finish_eval
29369 # Whether we should hardcode library paths into libraries.
29370 hardcode_into_libs=$hardcode_into_libs
29372 # Compile-time system search path for libraries.
29373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29375 # Run-time system search path for libraries.
29376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29378 # Whether dlopen is supported.
29379 dlopen_support=$enable_dlopen
29381 # Whether dlopen of programs is supported.
29382 dlopen_self=$enable_dlopen_self
29384 # Whether dlopen of statically linked programs is supported.
29385 dlopen_self_static=$enable_dlopen_self_static
29387 # Commands to strip libraries.
29388 old_striplib=$lt_old_striplib
29389 striplib=$lt_striplib
29392 # The linker used to build libraries.
29393 LD=$lt_LD
29395 # How to create reloadable object files.
29396 reload_flag=$lt_reload_flag
29397 reload_cmds=$lt_reload_cmds
29399 # Commands used to build an old-style archive.
29400 old_archive_cmds=$lt_old_archive_cmds
29402 # A language specific compiler.
29403 CC=$lt_compiler
29405 # Is the compiler the GNU compiler?
29406 with_gcc=$GCC
29408 # Compiler flag to turn off builtin functions.
29409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29411 # How to pass a linker flag through the compiler.
29412 wl=$lt_lt_prog_compiler_wl
29414 # Additional compiler flags for building library objects.
29415 pic_flag=$lt_lt_prog_compiler_pic
29417 # Compiler flag to prevent dynamic linking.
29418 link_static_flag=$lt_lt_prog_compiler_static
29420 # Does compiler simultaneously support -c and -o options?
29421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29423 # Whether or not to add -lc for building shared libraries.
29424 build_libtool_need_lc=$archive_cmds_need_lc
29426 # Whether or not to disallow shared libs when runtime libs are static.
29427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29429 # Compiler flag to allow reflexive dlopens.
29430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29432 # Compiler flag to generate shared objects directly from archives.
29433 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29435 # Whether the compiler copes with passing no objects directly.
29436 compiler_needs_object=$lt_compiler_needs_object
29438 # Create an old-style archive from a shared archive.
29439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29441 # Create a temporary old-style archive to link instead of a shared archive.
29442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29444 # Commands used to build a shared archive.
29445 archive_cmds=$lt_archive_cmds
29446 archive_expsym_cmds=$lt_archive_expsym_cmds
29448 # Commands used to build a loadable module if different from building
29449 # a shared archive.
29450 module_cmds=$lt_module_cmds
29451 module_expsym_cmds=$lt_module_expsym_cmds
29453 # Whether we are building with GNU ld or not.
29454 with_gnu_ld=$lt_with_gnu_ld
29456 # Flag that allows shared libraries with undefined symbols to be built.
29457 allow_undefined_flag=$lt_allow_undefined_flag
29459 # Flag that enforces no undefined symbols.
29460 no_undefined_flag=$lt_no_undefined_flag
29462 # Flag to hardcode \$libdir into a binary during linking.
29463 # This must work even if \$libdir does not exist
29464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29466 # If ld is used when linking, flag to hardcode \$libdir into a binary
29467 # during linking. This must work even if \$libdir does not exist.
29468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29470 # Whether we need a single "-rpath" flag with a separated argument.
29471 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29474 # DIR into the resulting binary.
29475 hardcode_direct=$hardcode_direct
29477 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29478 # DIR into the resulting binary and the resulting library dependency is
29479 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29480 # library is relocated.
29481 hardcode_direct_absolute=$hardcode_direct_absolute
29483 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29484 # into the resulting binary.
29485 hardcode_minus_L=$hardcode_minus_L
29487 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29488 # into the resulting binary.
29489 hardcode_shlibpath_var=$hardcode_shlibpath_var
29491 # Set to "yes" if building a shared library automatically hardcodes DIR
29492 # into the library and all subsequent libraries and executables linked
29493 # against it.
29494 hardcode_automatic=$hardcode_automatic
29496 # Set to yes if linker adds runtime paths of dependent libraries
29497 # to runtime path list.
29498 inherit_rpath=$inherit_rpath
29500 # Whether libtool must link a program against all its dependency libraries.
29501 link_all_deplibs=$link_all_deplibs
29503 # Fix the shell variable \$srcfile for the compiler.
29504 fix_srcfile_path=$lt_fix_srcfile_path
29506 # Set to "yes" if exported symbols are required.
29507 always_export_symbols=$always_export_symbols
29509 # The commands to list exported symbols.
29510 export_symbols_cmds=$lt_export_symbols_cmds
29512 # Symbols that should not be listed in the preloaded symbols.
29513 exclude_expsyms=$lt_exclude_expsyms
29515 # Symbols that must always be exported.
29516 include_expsyms=$lt_include_expsyms
29518 # Commands necessary for linking programs (against libraries) with templates.
29519 prelink_cmds=$lt_prelink_cmds
29521 # Specify filename containing input files.
29522 file_list_spec=$lt_file_list_spec
29524 # How to hardcode a shared library path into an executable.
29525 hardcode_action=$hardcode_action
29527 # The directories searched by this compiler when creating a shared library.
29528 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29530 # Dependencies to place before and after the objects being linked to
29531 # create a shared library.
29532 predep_objects=$lt_predep_objects
29533 postdep_objects=$lt_postdep_objects
29534 predeps=$lt_predeps
29535 postdeps=$lt_postdeps
29537 # The library search path used internally by the compiler when linking
29538 # a shared library.
29539 compiler_lib_search_path=$lt_compiler_lib_search_path
29541 # ### END LIBTOOL CONFIG
29543 _LT_EOF
29545 case $host_os in
29546 aix3*)
29547 cat <<\_LT_EOF >> "$cfgfile"
29548 # AIX sometimes has problems with the GCC collect2 program. For some
29549 # reason, if we set the COLLECT_NAMES environment variable, the problems
29550 # vanish in a puff of smoke.
29551 if test "X${COLLECT_NAMES+set}" != Xset; then
29552 COLLECT_NAMES=
29553 export COLLECT_NAMES
29555 _LT_EOF
29557 esac
29560 ltmain="$ac_aux_dir/ltmain.sh"
29563 # We use sed instead of cat because bash on DJGPP gets confused if
29564 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29565 # text mode, it properly converts lines to CR/LF. This bash problem
29566 # is reportedly fixed, but why not run on old versions too?
29567 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29568 || (rm -f "$cfgfile"; exit 1)
29570 case $xsi_shell in
29571 yes)
29572 cat << \_LT_EOF >> "$cfgfile"
29574 # func_dirname file append nondir_replacement
29575 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29576 # otherwise set result to NONDIR_REPLACEMENT.
29577 func_dirname ()
29579 case ${1} in
29580 */*) func_dirname_result="${1%/*}${2}" ;;
29581 * ) func_dirname_result="${3}" ;;
29582 esac
29585 # func_basename file
29586 func_basename ()
29588 func_basename_result="${1##*/}"
29591 # func_dirname_and_basename file append nondir_replacement
29592 # perform func_basename and func_dirname in a single function
29593 # call:
29594 # dirname: Compute the dirname of FILE. If nonempty,
29595 # add APPEND to the result, otherwise set result
29596 # to NONDIR_REPLACEMENT.
29597 # value returned in "$func_dirname_result"
29598 # basename: Compute filename of FILE.
29599 # value retuned in "$func_basename_result"
29600 # Implementation must be kept synchronized with func_dirname
29601 # and func_basename. For efficiency, we do not delegate to
29602 # those functions but instead duplicate the functionality here.
29603 func_dirname_and_basename ()
29605 case ${1} in
29606 */*) func_dirname_result="${1%/*}${2}" ;;
29607 * ) func_dirname_result="${3}" ;;
29608 esac
29609 func_basename_result="${1##*/}"
29612 # func_stripname prefix suffix name
29613 # strip PREFIX and SUFFIX off of NAME.
29614 # PREFIX and SUFFIX must not contain globbing or regex special
29615 # characters, hashes, percent signs, but SUFFIX may contain a leading
29616 # dot (in which case that matches only a dot).
29617 func_stripname ()
29619 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29620 # positional parameters, so assign one to ordinary parameter first.
29621 func_stripname_result=${3}
29622 func_stripname_result=${func_stripname_result#"${1}"}
29623 func_stripname_result=${func_stripname_result%"${2}"}
29626 # func_opt_split
29627 func_opt_split ()
29629 func_opt_split_opt=${1%%=*}
29630 func_opt_split_arg=${1#*=}
29633 # func_lo2o object
29634 func_lo2o ()
29636 case ${1} in
29637 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29638 *) func_lo2o_result=${1} ;;
29639 esac
29642 # func_xform libobj-or-source
29643 func_xform ()
29645 func_xform_result=${1%.*}.lo
29648 # func_arith arithmetic-term...
29649 func_arith ()
29651 func_arith_result=$(( $* ))
29654 # func_len string
29655 # STRING may not start with a hyphen.
29656 func_len ()
29658 func_len_result=${#1}
29661 _LT_EOF
29663 *) # Bourne compatible functions.
29664 cat << \_LT_EOF >> "$cfgfile"
29666 # func_dirname file append nondir_replacement
29667 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29668 # otherwise set result to NONDIR_REPLACEMENT.
29669 func_dirname ()
29671 # Extract subdirectory from the argument.
29672 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29673 if test "X$func_dirname_result" = "X${1}"; then
29674 func_dirname_result="${3}"
29675 else
29676 func_dirname_result="$func_dirname_result${2}"
29680 # func_basename file
29681 func_basename ()
29683 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29687 # func_stripname prefix suffix name
29688 # strip PREFIX and SUFFIX off of NAME.
29689 # PREFIX and SUFFIX must not contain globbing or regex special
29690 # characters, hashes, percent signs, but SUFFIX may contain a leading
29691 # dot (in which case that matches only a dot).
29692 # func_strip_suffix prefix name
29693 func_stripname ()
29695 case ${2} in
29696 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29697 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29698 esac
29701 # sed scripts:
29702 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29703 my_sed_long_arg='1s/^-[^=]*=//'
29705 # func_opt_split
29706 func_opt_split ()
29708 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29709 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29712 # func_lo2o object
29713 func_lo2o ()
29715 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29718 # func_xform libobj-or-source
29719 func_xform ()
29721 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29724 # func_arith arithmetic-term...
29725 func_arith ()
29727 func_arith_result=`expr "$@"`
29730 # func_len string
29731 # STRING may not start with a hyphen.
29732 func_len ()
29734 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29737 _LT_EOF
29738 esac
29740 case $lt_shell_append in
29741 yes)
29742 cat << \_LT_EOF >> "$cfgfile"
29744 # func_append var value
29745 # Append VALUE to the end of shell variable VAR.
29746 func_append ()
29748 eval "$1+=\$2"
29750 _LT_EOF
29753 cat << \_LT_EOF >> "$cfgfile"
29755 # func_append var value
29756 # Append VALUE to the end of shell variable VAR.
29757 func_append ()
29759 eval "$1=\$$1\$2"
29762 _LT_EOF
29764 esac
29767 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29768 || (rm -f "$cfgfile"; exit 1)
29770 mv -f "$cfgfile" "$ofile" ||
29771 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29772 chmod +x "$ofile"
29775 cat <<_LT_EOF >> "$ofile"
29777 # ### BEGIN LIBTOOL TAG CONFIG: FC
29779 # The linker used to build libraries.
29780 LD=$lt_LD_FC
29782 # How to create reloadable object files.
29783 reload_flag=$lt_reload_flag_FC
29784 reload_cmds=$lt_reload_cmds_FC
29786 # Commands used to build an old-style archive.
29787 old_archive_cmds=$lt_old_archive_cmds_FC
29789 # A language specific compiler.
29790 CC=$lt_compiler_FC
29792 # Is the compiler the GNU compiler?
29793 with_gcc=$GCC_FC
29795 # Compiler flag to turn off builtin functions.
29796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29798 # How to pass a linker flag through the compiler.
29799 wl=$lt_lt_prog_compiler_wl_FC
29801 # Additional compiler flags for building library objects.
29802 pic_flag=$lt_lt_prog_compiler_pic_FC
29804 # Compiler flag to prevent dynamic linking.
29805 link_static_flag=$lt_lt_prog_compiler_static_FC
29807 # Does compiler simultaneously support -c and -o options?
29808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29810 # Whether or not to add -lc for building shared libraries.
29811 build_libtool_need_lc=$archive_cmds_need_lc_FC
29813 # Whether or not to disallow shared libs when runtime libs are static.
29814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29816 # Compiler flag to allow reflexive dlopens.
29817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29819 # Compiler flag to generate shared objects directly from archives.
29820 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29822 # Whether the compiler copes with passing no objects directly.
29823 compiler_needs_object=$lt_compiler_needs_object_FC
29825 # Create an old-style archive from a shared archive.
29826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29828 # Create a temporary old-style archive to link instead of a shared archive.
29829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29831 # Commands used to build a shared archive.
29832 archive_cmds=$lt_archive_cmds_FC
29833 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29835 # Commands used to build a loadable module if different from building
29836 # a shared archive.
29837 module_cmds=$lt_module_cmds_FC
29838 module_expsym_cmds=$lt_module_expsym_cmds_FC
29840 # Whether we are building with GNU ld or not.
29841 with_gnu_ld=$lt_with_gnu_ld_FC
29843 # Flag that allows shared libraries with undefined symbols to be built.
29844 allow_undefined_flag=$lt_allow_undefined_flag_FC
29846 # Flag that enforces no undefined symbols.
29847 no_undefined_flag=$lt_no_undefined_flag_FC
29849 # Flag to hardcode \$libdir into a binary during linking.
29850 # This must work even if \$libdir does not exist
29851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29853 # If ld is used when linking, flag to hardcode \$libdir into a binary
29854 # during linking. This must work even if \$libdir does not exist.
29855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29857 # Whether we need a single "-rpath" flag with a separated argument.
29858 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29861 # DIR into the resulting binary.
29862 hardcode_direct=$hardcode_direct_FC
29864 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29865 # DIR into the resulting binary and the resulting library dependency is
29866 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29867 # library is relocated.
29868 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29870 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29871 # into the resulting binary.
29872 hardcode_minus_L=$hardcode_minus_L_FC
29874 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29875 # into the resulting binary.
29876 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29878 # Set to "yes" if building a shared library automatically hardcodes DIR
29879 # into the library and all subsequent libraries and executables linked
29880 # against it.
29881 hardcode_automatic=$hardcode_automatic_FC
29883 # Set to yes if linker adds runtime paths of dependent libraries
29884 # to runtime path list.
29885 inherit_rpath=$inherit_rpath_FC
29887 # Whether libtool must link a program against all its dependency libraries.
29888 link_all_deplibs=$link_all_deplibs_FC
29890 # Fix the shell variable \$srcfile for the compiler.
29891 fix_srcfile_path=$lt_fix_srcfile_path_FC
29893 # Set to "yes" if exported symbols are required.
29894 always_export_symbols=$always_export_symbols_FC
29896 # The commands to list exported symbols.
29897 export_symbols_cmds=$lt_export_symbols_cmds_FC
29899 # Symbols that should not be listed in the preloaded symbols.
29900 exclude_expsyms=$lt_exclude_expsyms_FC
29902 # Symbols that must always be exported.
29903 include_expsyms=$lt_include_expsyms_FC
29905 # Commands necessary for linking programs (against libraries) with templates.
29906 prelink_cmds=$lt_prelink_cmds_FC
29908 # Specify filename containing input files.
29909 file_list_spec=$lt_file_list_spec_FC
29911 # How to hardcode a shared library path into an executable.
29912 hardcode_action=$hardcode_action_FC
29914 # The directories searched by this compiler when creating a shared library.
29915 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29917 # Dependencies to place before and after the objects being linked to
29918 # create a shared library.
29919 predep_objects=$lt_predep_objects_FC
29920 postdep_objects=$lt_postdep_objects_FC
29921 predeps=$lt_predeps_FC
29922 postdeps=$lt_postdeps_FC
29924 # The library search path used internally by the compiler when linking
29925 # a shared library.
29926 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29928 # ### END LIBTOOL TAG CONFIG: FC
29929 _LT_EOF
29932 "gstdint.h":C)
29933 if test "$GCC" = yes; then
29934 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29935 else
29936 echo "/* generated for $CC */" > tmp-stdint.h
29939 sed 's/^ *//' >> tmp-stdint.h <<EOF
29941 #ifndef GCC_GENERATED_STDINT_H
29942 #define GCC_GENERATED_STDINT_H 1
29944 #include <sys/types.h>
29947 if test "$acx_cv_header_stdint" != stdint.h; then
29948 echo "#include <stddef.h>" >> tmp-stdint.h
29950 if test "$acx_cv_header_stdint" != stddef.h; then
29951 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29954 sed 's/^ *//' >> tmp-stdint.h <<EOF
29955 /* glibc uses these symbols as guards to prevent redefinitions. */
29956 #ifdef __int8_t_defined
29957 #define _INT8_T
29958 #define _INT16_T
29959 #define _INT32_T
29960 #endif
29961 #ifdef __uint32_t_defined
29962 #define _UINT32_T
29963 #endif
29967 # ----------------- done header, emit basic int types -------------
29968 if test "$acx_cv_header_stdint" = stddef.h; then
29969 sed 's/^ *//' >> tmp-stdint.h <<EOF
29971 #ifndef _UINT8_T
29972 #define _UINT8_T
29973 #ifndef __uint8_t_defined
29974 #define __uint8_t_defined
29975 #ifndef uint8_t
29976 typedef unsigned $acx_cv_type_int8_t uint8_t;
29977 #endif
29978 #endif
29979 #endif
29981 #ifndef _UINT16_T
29982 #define _UINT16_T
29983 #ifndef __uint16_t_defined
29984 #define __uint16_t_defined
29985 #ifndef uint16_t
29986 typedef unsigned $acx_cv_type_int16_t uint16_t;
29987 #endif
29988 #endif
29989 #endif
29991 #ifndef _UINT32_T
29992 #define _UINT32_T
29993 #ifndef __uint32_t_defined
29994 #define __uint32_t_defined
29995 #ifndef uint32_t
29996 typedef unsigned $acx_cv_type_int32_t uint32_t;
29997 #endif
29998 #endif
29999 #endif
30001 #ifndef _INT8_T
30002 #define _INT8_T
30003 #ifndef __int8_t_defined
30004 #define __int8_t_defined
30005 #ifndef int8_t
30006 typedef $acx_cv_type_int8_t int8_t;
30007 #endif
30008 #endif
30009 #endif
30011 #ifndef _INT16_T
30012 #define _INT16_T
30013 #ifndef __int16_t_defined
30014 #define __int16_t_defined
30015 #ifndef int16_t
30016 typedef $acx_cv_type_int16_t int16_t;
30017 #endif
30018 #endif
30019 #endif
30021 #ifndef _INT32_T
30022 #define _INT32_T
30023 #ifndef __int32_t_defined
30024 #define __int32_t_defined
30025 #ifndef int32_t
30026 typedef $acx_cv_type_int32_t int32_t;
30027 #endif
30028 #endif
30029 #endif
30031 elif test "$ac_cv_type_u_int32_t" = yes; then
30032 sed 's/^ *//' >> tmp-stdint.h <<EOF
30034 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30035 #ifndef _INT8_T
30036 #define _INT8_T
30037 #endif
30038 #ifndef _INT16_T
30039 #define _INT16_T
30040 #endif
30041 #ifndef _INT32_T
30042 #define _INT32_T
30043 #endif
30045 #ifndef _UINT8_T
30046 #define _UINT8_T
30047 #ifndef __uint8_t_defined
30048 #define __uint8_t_defined
30049 #ifndef uint8_t
30050 typedef u_int8_t uint8_t;
30051 #endif
30052 #endif
30053 #endif
30055 #ifndef _UINT16_T
30056 #define _UINT16_T
30057 #ifndef __uint16_t_defined
30058 #define __uint16_t_defined
30059 #ifndef uint16_t
30060 typedef u_int16_t uint16_t;
30061 #endif
30062 #endif
30063 #endif
30065 #ifndef _UINT32_T
30066 #define _UINT32_T
30067 #ifndef __uint32_t_defined
30068 #define __uint32_t_defined
30069 #ifndef uint32_t
30070 typedef u_int32_t uint32_t;
30071 #endif
30072 #endif
30073 #endif
30075 else
30076 sed 's/^ *//' >> tmp-stdint.h <<EOF
30078 /* Some systems have guard macros to prevent redefinitions, define them. */
30079 #ifndef _INT8_T
30080 #define _INT8_T
30081 #endif
30082 #ifndef _INT16_T
30083 #define _INT16_T
30084 #endif
30085 #ifndef _INT32_T
30086 #define _INT32_T
30087 #endif
30088 #ifndef _UINT8_T
30089 #define _UINT8_T
30090 #endif
30091 #ifndef _UINT16_T
30092 #define _UINT16_T
30093 #endif
30094 #ifndef _UINT32_T
30095 #define _UINT32_T
30096 #endif
30100 # ------------- done basic int types, emit int64_t types ------------
30101 if test "$ac_cv_type_uint64_t" = yes; then
30102 sed 's/^ *//' >> tmp-stdint.h <<EOF
30104 /* system headers have good uint64_t and int64_t */
30105 #ifndef _INT64_T
30106 #define _INT64_T
30107 #endif
30108 #ifndef _UINT64_T
30109 #define _UINT64_T
30110 #endif
30112 elif test "$ac_cv_type_u_int64_t" = yes; then
30113 sed 's/^ *//' >> tmp-stdint.h <<EOF
30115 /* system headers have an u_int64_t (and int64_t) */
30116 #ifndef _INT64_T
30117 #define _INT64_T
30118 #endif
30119 #ifndef _UINT64_T
30120 #define _UINT64_T
30121 #ifndef __uint64_t_defined
30122 #define __uint64_t_defined
30123 #ifndef uint64_t
30124 typedef u_int64_t uint64_t;
30125 #endif
30126 #endif
30127 #endif
30129 elif test -n "$acx_cv_type_int64_t"; then
30130 sed 's/^ *//' >> tmp-stdint.h <<EOF
30132 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30133 #ifndef _INT64_T
30134 #define _INT64_T
30135 #ifndef int64_t
30136 typedef $acx_cv_type_int64_t int64_t;
30137 #endif
30138 #endif
30139 #ifndef _UINT64_T
30140 #define _UINT64_T
30141 #ifndef __uint64_t_defined
30142 #define __uint64_t_defined
30143 #ifndef uint64_t
30144 typedef unsigned $acx_cv_type_int64_t uint64_t;
30145 #endif
30146 #endif
30147 #endif
30149 else
30150 sed 's/^ *//' >> tmp-stdint.h <<EOF
30152 /* some common heuristics for int64_t, using compiler-specific tests */
30153 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30154 #ifndef _INT64_T
30155 #define _INT64_T
30156 #ifndef __int64_t_defined
30157 #ifndef int64_t
30158 typedef long long int64_t;
30159 #endif
30160 #endif
30161 #endif
30162 #ifndef _UINT64_T
30163 #define _UINT64_T
30164 #ifndef uint64_t
30165 typedef unsigned long long uint64_t;
30166 #endif
30167 #endif
30169 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30170 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30171 does not implement __extension__. But that compiler doesn't define
30172 __GNUC_MINOR__. */
30173 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30174 # define __extension__
30175 # endif
30177 # ifndef _INT64_T
30178 # define _INT64_T
30179 # ifndef int64_t
30180 __extension__ typedef long long int64_t;
30181 # endif
30182 # endif
30183 # ifndef _UINT64_T
30184 # define _UINT64_T
30185 # ifndef uint64_t
30186 __extension__ typedef unsigned long long uint64_t;
30187 # endif
30188 # endif
30190 #elif !defined __STRICT_ANSI__
30191 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30193 # ifndef _INT64_T
30194 # define _INT64_T
30195 # ifndef int64_t
30196 typedef __int64 int64_t;
30197 # endif
30198 # endif
30199 # ifndef _UINT64_T
30200 # define _UINT64_T
30201 # ifndef uint64_t
30202 typedef unsigned __int64 uint64_t;
30203 # endif
30204 # endif
30205 # endif /* compiler */
30207 #endif /* ANSI version */
30211 # ------------- done int64_t types, emit intptr types ------------
30212 if test "$ac_cv_type_uintptr_t" != yes; then
30213 sed 's/^ *//' >> tmp-stdint.h <<EOF
30215 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30216 #ifndef __uintptr_t_defined
30217 #ifndef uintptr_t
30218 typedef u$acx_cv_type_intptr_t uintptr_t;
30219 #endif
30220 #endif
30221 #ifndef __intptr_t_defined
30222 #ifndef intptr_t
30223 typedef $acx_cv_type_intptr_t intptr_t;
30224 #endif
30225 #endif
30229 # ------------- done intptr types, emit int_least types ------------
30230 if test "$ac_cv_type_int_least32_t" != yes; then
30231 sed 's/^ *//' >> tmp-stdint.h <<EOF
30233 /* Define int_least types */
30234 typedef int8_t int_least8_t;
30235 typedef int16_t int_least16_t;
30236 typedef int32_t int_least32_t;
30237 #ifdef _INT64_T
30238 typedef int64_t int_least64_t;
30239 #endif
30241 typedef uint8_t uint_least8_t;
30242 typedef uint16_t uint_least16_t;
30243 typedef uint32_t uint_least32_t;
30244 #ifdef _UINT64_T
30245 typedef uint64_t uint_least64_t;
30246 #endif
30250 # ------------- done intptr types, emit int_fast types ------------
30251 if test "$ac_cv_type_int_fast32_t" != yes; then
30252 sed 's/^ *//' >> tmp-stdint.h <<EOF
30254 /* Define int_fast types. short is often slow */
30255 typedef int8_t int_fast8_t;
30256 typedef int int_fast16_t;
30257 typedef int32_t int_fast32_t;
30258 #ifdef _INT64_T
30259 typedef int64_t int_fast64_t;
30260 #endif
30262 typedef uint8_t uint_fast8_t;
30263 typedef unsigned int uint_fast16_t;
30264 typedef uint32_t uint_fast32_t;
30265 #ifdef _UINT64_T
30266 typedef uint64_t uint_fast64_t;
30267 #endif
30271 if test "$ac_cv_type_uintmax_t" != yes; then
30272 sed 's/^ *//' >> tmp-stdint.h <<EOF
30274 /* Define intmax based on what we found */
30275 #ifndef intmax_t
30276 #ifdef _INT64_T
30277 typedef int64_t intmax_t;
30278 #else
30279 typedef long intmax_t;
30280 #endif
30281 #endif
30282 #ifndef uintmax_t
30283 #ifdef _UINT64_T
30284 typedef uint64_t uintmax_t;
30285 #else
30286 typedef unsigned long uintmax_t;
30287 #endif
30288 #endif
30292 sed 's/^ *//' >> tmp-stdint.h <<EOF
30294 #endif /* GCC_GENERATED_STDINT_H */
30297 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30298 rm -f tmp-stdint.h
30299 else
30300 mv -f tmp-stdint.h gstdint.h
30305 esac
30306 done # for ac_tag
30309 as_fn_exit 0
30310 _ACEOF
30311 ac_clean_files=$ac_clean_files_save
30313 test $ac_write_fail = 0 ||
30314 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30317 # configure is writing to config.log, and then calls config.status.
30318 # config.status does its own redirection, appending to config.log.
30319 # Unfortunately, on DOS this fails, as config.log is still kept open
30320 # by configure, so config.status won't be able to write to it; its
30321 # output is simply discarded. So we exec the FD to /dev/null,
30322 # effectively closing config.log, so it can be properly (re)opened and
30323 # appended to by config.status. When coming back to configure, we
30324 # need to make the FD available again.
30325 if test "$no_create" != yes; then
30326 ac_cs_success=:
30327 ac_config_status_args=
30328 test "$silent" = yes &&
30329 ac_config_status_args="$ac_config_status_args --quiet"
30330 exec 5>/dev/null
30331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30332 exec 5>>config.log
30333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30334 # would make configure fail if this is the last instruction.
30335 $ac_cs_success || as_fn_exit 1
30337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30339 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}