PR c++/84808
[official-gcc.git] / libgfortran / configure
blob86904ef7eeabf620a93855fe0613fd1df3e2d892
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 get_gcc_base_ver
609 HAVE_AVX128_FALSE
610 HAVE_AVX128_TRUE
611 IEEE_FLAGS
612 IEEE_SUPPORT
613 IEEE_SUPPORT_FALSE
614 IEEE_SUPPORT_TRUE
615 FPU_HOST_HEADER
616 LIBGFOR_BUILD_QUAD_FALSE
617 LIBGFOR_BUILD_QUAD_TRUE
618 LIBQUADINCLUDE
619 LIBQUADLIB_DEP
620 LIBQUADLIB
621 LIBQUADSPEC
622 extra_ldflags_libgfortran
623 ac_ct_FC
624 FCFLAGS
626 enable_static
627 enable_shared
628 lt_host_flags
629 OTOOL64
630 OTOOL
631 LIPO
632 NMEDIT
633 DSYMUTIL
634 OBJDUMP
635 LN_S
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LIBTOOL
640 RANLIB
643 HAVE_HWCAP_FALSE
644 HAVE_HWCAP_TRUE
645 HWCAP_LDFLAGS
647 FGREP
649 SECTION_FLAGS
650 LIBGFOR_MINIMAL_FALSE
651 LIBGFOR_MINIMAL_TRUE
652 LIBGFOR_USE_SYMVER_SUN_FALSE
653 LIBGFOR_USE_SYMVER_SUN_TRUE
654 LIBGFOR_USE_SYMVER_GNU_FALSE
655 LIBGFOR_USE_SYMVER_GNU_TRUE
656 LIBGFOR_USE_SYMVER_FALSE
657 LIBGFOR_USE_SYMVER_TRUE
658 AM_CFLAGS
659 AM_FCFLAGS
660 toolexeclibdir
661 toolexecdir
662 EGREP
663 GREP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
682 multi_basedir
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_noncanonical
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 onestep
719 onestep_FALSE
720 onestep_TRUE
721 target_subdir
722 host_subdir
723 build_subdir
724 build_libsubdir
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 with_build_libsubdir
771 enable_version_specific_runtime_libs
772 enable_intermodule
773 enable_maintainer_mode
774 enable_multilib
775 enable_dependency_tracking
776 enable_cet
777 enable_symvers
778 with_gnu_ld
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 enable_libtool_lock
784 enable_largefile
785 enable_libquadmath_support
786 with_gcc_major_version_only
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
798 FCFLAGS'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
849 ac_prev=
850 ac_dashdash=
851 for ac_option
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
869 ac_dashdash=yes ;;
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
888 --config-cache | -C)
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information."
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 esac
1206 done
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1292 /^X\(\/\/\)$/{
1293 s//\1/
1296 /^X\(\/\).*/{
1297 s//\1/
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1305 else
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1395 cat <<\_ACEOF
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1412 esac
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-version-specific-runtime-libs
1420 specify that runtime libraries should be installed
1421 in a compiler-specific directory
1422 --enable-intermodule build the library in one step
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-multilib build many library versions (default)
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --enable-cet enable Intel CET in target libraries
1429 [default=default]
1430 --disable-symvers disable symbol versioning for libgfortran
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --disable-largefile omit support for large files
1437 --disable-libquadmath-support
1438 disable libquadmath support for Fortran
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-build-libsubdir=DIR Directory where to find libraries for build system
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-pic try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-gcc-major-version-only
1448 use only GCC major number in filesystem paths
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CPP C preprocessor
1459 FC Fortran compiler command
1460 FCFLAGS Fortran compiler flags
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1465 Report bugs to the package provider.
1466 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1467 General help using GNU software: <http://www.gnu.org/gethelp/>.
1468 _ACEOF
1469 ac_status=$?
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 GNU Fortran Runtime Library configure 0.3
1531 generated by GNU Autoconf 2.64
1533 Copyright (C) 2009 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 return $ac_retval
1580 } # ac_fn_c_try_compile
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_cpp ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } >/dev/null && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1617 } # ac_fn_c_try_cpp
1619 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622 # the include files in INCLUDES and setting the cache variable VAR
1623 # accordingly.
1624 ac_fn_c_check_header_mongrel ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1631 $as_echo_n "(cached) " >&6
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 else
1637 # Is the header compilable?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639 $as_echo_n "checking $2 usability... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 ac_header_compiler=yes
1647 else
1648 ac_header_compiler=no
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652 $as_echo "$ac_header_compiler" >&6; }
1654 # Is the header present?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656 $as_echo_n "checking $2 presence... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_cpp "$LINENO"; then :
1662 ac_header_preproc=yes
1663 else
1664 ac_header_preproc=no
1666 rm -f conftest.err conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668 $as_echo "$ac_header_preproc" >&6; }
1670 # So? What about this header?
1671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 yes:no: )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 no:yes:* )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1682 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1686 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 esac
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 eval "$3=\$ac_header_compiler"
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 } # ac_fn_c_check_header_mongrel
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1746 } # ac_fn_c_try_run
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_c_check_header_compile
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_c_try_link
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 if test x$gcc_no_link = xyes; then
1837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1850 #ifdef __STDC__
1851 # include <limits.h>
1852 #else
1853 # include <assert.h>
1854 #endif
1856 #undef $2
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 ();
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1873 main ()
1875 return $2 ();
1877 return 0;
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1885 rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_c_check_func
1895 # ac_fn_fc_try_compile LINENO
1896 # ---------------------------
1897 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_fc_try_compile ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext
1902 if { { ac_try="$ac_compile"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_compile") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_fc_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest.$ac_objext; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 return $ac_retval
1931 } # ac_fn_fc_try_compile
1933 # ac_fn_fc_try_link LINENO
1934 # ------------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded.
1936 ac_fn_fc_try_link ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 rm -f conftest.$ac_objext conftest$ac_exeext
1940 if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && {
1956 test -z "$ac_fc_werror_flag" ||
1957 test ! -s conftest.err
1958 } && test -s conftest$ac_exeext && {
1959 test "$cross_compiling" = yes ||
1960 $as_test_x conftest$ac_exeext
1961 }; then :
1962 ac_retval=0
1963 else
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=1
1969 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971 # interfere with the next link command; also delete a directory that is
1972 # left behind by Apple's compiler. We do this before executing the actions.
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 return $ac_retval
1977 } # ac_fn_fc_try_link
1979 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1980 # -------------------------------------------
1981 # Tests whether TYPE exists after having included INCLUDES, setting cache
1982 # variable VAR accordingly.
1983 ac_fn_c_check_type ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 eval "$3=no"
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1996 main ()
1998 if (sizeof ($2))
1999 return 0;
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 main ()
2011 if (sizeof (($2)))
2012 return 0;
2014 return 0;
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2019 else
2020 eval "$3=yes"
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_type
2033 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2034 # --------------------------------------------
2035 # Tries to find the compile-time value of EXPR in a program that includes
2036 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2037 # computed
2038 ac_fn_c_compute_int ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if test "$cross_compiling" = yes; then
2042 # Depending upon the size, compute the lo and hi bounds.
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static int test_array [1 - 2 * !(($2) >= 0)];
2050 test_array [0] = 0
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_lo=0 ac_mid=0
2058 while :; do
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=$ac_mid; break
2074 else
2075 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2076 if test $ac_lo -le $ac_mid; then
2077 ac_lo= ac_hi=
2078 break
2080 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 done
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) < 0)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_hi=-1 ac_mid=-1
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_lo=$ac_mid; break
2116 else
2117 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118 if test $ac_mid -le $ac_hi; then
2119 ac_lo= ac_hi=
2120 break
2122 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 ac_lo= ac_hi=
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid
2150 else
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2168 main ()
2171 FILE *f = fopen ("conftest.val", "w");
2172 if (! f)
2173 return 1;
2174 if (($2) < 0)
2176 long int i = longval ();
2177 if (i != ($2))
2178 return 1;
2179 fprintf (f, "%ld", i);
2181 else
2183 unsigned long int i = ulongval ();
2184 if (i != ($2))
2185 return 1;
2186 fprintf (f, "%lu", i);
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2193 return 0;
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199 ac_retval=1
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 return $ac_retval
2209 } # ac_fn_c_compute_int
2211 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2212 # ----------------------------------------------------
2213 # Tries to find if the field MEMBER exists in type AGGR, after including
2214 # INCLUDES, setting cache variable VAR accordingly.
2215 ac_fn_c_check_member ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2219 $as_echo_n "checking for $2.$3... " >&6; }
2220 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 static $2 ac_aggr;
2230 if (ac_aggr.$3)
2231 return 0;
2233 return 0;
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$4=yes"
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2243 main ()
2245 static $2 ac_aggr;
2246 if (sizeof ac_aggr.$3)
2247 return 0;
2249 return 0;
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 eval "$4=yes"
2254 else
2255 eval "$4=no"
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 eval ac_res=\$$4
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266 } # ac_fn_c_check_member
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2271 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2272 generated by GNU Autoconf 2.64. Invocation command line was
2274 $ $0 $@
2276 _ACEOF
2277 exec 5>>config.log
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2301 _ASUNAME
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2309 done
2310 IFS=$as_save_IFS
2312 } >&5
2314 cat >&5 <<_ACEOF
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2321 _ACEOF
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2335 for ac_arg
2337 case $ac_arg in
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2341 continue ;;
2342 *\'*)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 esac
2345 case $ac_pass in
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2351 else
2352 case $ac_arg in
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359 esac
2361 -* ) ac_must_keep_next=true ;;
2362 esac
2364 as_fn_append ac_configure_args " '$ac_arg'"
2366 esac
2367 done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2380 echo
2382 cat <<\_ASBOX
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2386 _ASBOX
2387 echo
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2392 case $ac_val in #(
2393 *${as_nl}*)
2394 case $ac_var in #(
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397 esac
2398 case $ac_var in #(
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2402 esac ;;
2403 esac
2404 done
2405 (set) 2>&1 |
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2408 sed -n \
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411 ;; #(
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2415 esac |
2416 sort
2418 echo
2420 cat <<\_ASBOX
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2424 _ASBOX
2425 echo
2426 for ac_var in $ac_subst_vars
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2436 if test -n "$ac_subst_files"; then
2437 cat <<\_ASBOX
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2441 _ASBOX
2442 echo
2443 for ac_var in $ac_subst_files
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
2454 if test -s confdefs.h; then
2455 cat <<\_ASBOX
2456 ## ----------- ##
2457 ## confdefs.h. ##
2458 ## ----------- ##
2459 _ASBOX
2460 echo
2461 cat confdefs.h
2462 echo
2464 test "$ac_signal" != 0 &&
2465 $as_echo "$as_me: caught signal $ac_signal"
2466 $as_echo "$as_me: exit $exit_status"
2467 } >&5
2468 rm -f core *.core core.conftest.* &&
2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2470 exit $exit_status
2472 for ac_signal in 1 2 13 15; do
2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 done
2475 ac_signal=0
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2480 $as_echo "/* confdefs.h */" > confdefs.h
2482 # Predefined preprocessor variables.
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2494 _ACEOF
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2498 _ACEOF
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502 _ACEOF
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2506 _ACEOF
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2511 ac_site_file1=NONE
2512 ac_site_file2=NONE
2513 if test -n "$CONFIG_SITE"; then
2514 ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2518 else
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2524 test "x$ac_site_file" = xNONE && continue
2525 if test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2529 . "$ac_site_file"
2531 done
2533 if test -r "$cache_file"; then
2534 # Some versions of bash will fail to source /dev/null (special
2535 # files actually), so we avoid doing that.
2536 if test -f "$cache_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539 case $cache_file in
2540 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541 *) . "./$cache_file";;
2542 esac
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547 >$cache_file
2550 as_fn_append ac_header_list " unistd.h"
2551 as_fn_append ac_header_list " sys/time.h"
2552 as_fn_append ac_header_list " sys/times.h"
2553 as_fn_append ac_header_list " sys/resource.h"
2554 as_fn_append ac_header_list " sys/types.h"
2555 as_fn_append ac_header_list " sys/stat.h"
2556 as_fn_append ac_header_list " sys/wait.h"
2557 as_fn_append ac_header_list " floatingpoint.h"
2558 as_fn_append ac_header_list " ieeefp.h"
2559 as_fn_append ac_header_list " fenv.h"
2560 as_fn_append ac_header_list " fptrap.h"
2561 as_fn_append ac_header_list " fpxcp.h"
2562 as_fn_append ac_header_list " pwd.h"
2563 as_fn_append ac_header_list " complex.h"
2564 as_fn_append ac_header_list " xlocale.h"
2565 as_fn_append ac_func_list " getrusage"
2566 as_fn_append ac_func_list " times"
2567 as_fn_append ac_func_list " mkstemp"
2568 as_fn_append ac_func_list " strtof"
2569 as_fn_append ac_func_list " strtold"
2570 as_fn_append ac_func_list " snprintf"
2571 as_fn_append ac_func_list " ftruncate"
2572 as_fn_append ac_func_list " chsize"
2573 as_fn_append ac_func_list " chdir"
2574 as_fn_append ac_func_list " getlogin"
2575 as_fn_append ac_func_list " gethostname"
2576 as_fn_append ac_func_list " kill"
2577 as_fn_append ac_func_list " link"
2578 as_fn_append ac_func_list " symlink"
2579 as_fn_append ac_func_list " sleep"
2580 as_fn_append ac_func_list " ttyname"
2581 as_fn_append ac_func_list " alarm"
2582 as_fn_append ac_func_list " access"
2583 as_fn_append ac_func_list " fork"
2584 as_fn_append ac_func_list " setmode"
2585 as_fn_append ac_func_list " fcntl"
2586 as_fn_append ac_func_list " gettimeofday"
2587 as_fn_append ac_func_list " stat"
2588 as_fn_append ac_func_list " fstat"
2589 as_fn_append ac_func_list " lstat"
2590 as_fn_append ac_func_list " getpwuid"
2591 as_fn_append ac_func_list " vsnprintf"
2592 as_fn_append ac_func_list " dup"
2593 as_fn_append ac_func_list " getcwd"
2594 as_fn_append ac_func_list " localtime_r"
2595 as_fn_append ac_func_list " gmtime_r"
2596 as_fn_append ac_func_list " getpwuid_r"
2597 as_fn_append ac_func_list " ttyname_r"
2598 as_fn_append ac_func_list " clock_gettime"
2599 as_fn_append ac_func_list " getgid"
2600 as_fn_append ac_func_list " getpid"
2601 as_fn_append ac_func_list " getuid"
2602 as_fn_append ac_func_list " geteuid"
2603 as_fn_append ac_func_list " umask"
2604 as_fn_append ac_func_list " getegid"
2605 as_fn_append ac_func_list " secure_getenv"
2606 as_fn_append ac_func_list " __secure_getenv"
2607 as_fn_append ac_func_list " mkostemp"
2608 as_fn_append ac_func_list " strnlen"
2609 as_fn_append ac_func_list " strndup"
2610 as_fn_append ac_func_list " newlocale"
2611 as_fn_append ac_func_list " freelocale"
2612 as_fn_append ac_func_list " uselocale"
2613 as_fn_append ac_func_list " strerror_l"
2614 as_fn_append ac_header_list " math.h"
2615 # Check that the precious variables saved in the cache have kept the same
2616 # value.
2617 ac_cache_corrupted=false
2618 for ac_var in $ac_precious_vars; do
2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2620 eval ac_new_set=\$ac_env_${ac_var}_set
2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2622 eval ac_new_val=\$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2624 set,)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,set)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,);;
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w=`echo x $ac_old_val`
2637 ac_new_val_w=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted=:
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\$ac_old_val
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2651 fi;;
2652 esac
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2655 case $ac_new_val in
2656 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg=$ac_var=$ac_new_val ;;
2658 esac
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2662 esac
2664 done
2665 if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 ac_config_headers="$ac_config_headers config.h"
2688 ac_aux_dir=
2689 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2690 for ac_t in install-sh install.sh shtool; do
2691 if test -f "$ac_dir/$ac_t"; then
2692 ac_aux_dir=$ac_dir
2693 ac_install_sh="$ac_aux_dir/$ac_t -c"
2694 break 2
2696 done
2697 done
2698 if test -z "$ac_aux_dir"; then
2699 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2702 # These three variables are undocumented and unsupported,
2703 # and are intended to be withdrawn in a future Autoconf release.
2704 # They can cause serious problems if a builder's source tree is in a directory
2705 # whose full name contains unusual characters.
2706 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2707 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2708 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2711 # Make sure we can run config.sub.
2712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2713 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2716 $as_echo_n "checking build system type... " >&6; }
2717 if test "${ac_cv_build+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 ac_build_alias=$build_alias
2721 test "x$ac_build_alias" = x &&
2722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723 test "x$ac_build_alias" = x &&
2724 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2725 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2726 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2730 $as_echo "$ac_cv_build" >&6; }
2731 case $ac_cv_build in
2732 *-*-*) ;;
2733 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2734 esac
2735 build=$ac_cv_build
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_build
2738 shift
2739 build_cpu=$1
2740 build_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 build_os=$*
2745 IFS=$ac_save_IFS
2746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2749 case ${build_alias} in
2750 "") build_noncanonical=${build} ;;
2751 *) build_noncanonical=${build_alias} ;;
2752 esac
2754 case ${host_alias} in
2755 "") host_noncanonical=${build_noncanonical} ;;
2756 *) host_noncanonical=${host_alias} ;;
2757 esac
2759 case ${target_alias} in
2760 "") target_noncanonical=${host_noncanonical} ;;
2761 *) target_noncanonical=${target_alias} ;;
2762 esac
2765 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2766 # have matching libraries, they should use host libraries: Makefile.tpl
2767 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2768 # However, they still use the build modules, because the corresponding
2769 # host modules (e.g. bison) are only built for the host when bootstrap
2770 # finishes. So:
2771 # - build_subdir is where we find build modules, and never changes.
2772 # - build_libsubdir is where we find build libraries, and can be overridden.
2774 # Prefix 'build-' so this never conflicts with target_subdir.
2775 build_subdir="build-${build_noncanonical}"
2777 # Check whether --with-build-libsubdir was given.
2778 if test "${with_build_libsubdir+set}" = set; then :
2779 withval=$with_build_libsubdir; build_libsubdir="$withval"
2780 else
2781 build_libsubdir="$build_subdir"
2784 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2785 if ( test $srcdir = . && test -d gcc ) \
2786 || test -d $srcdir/../host-${host_noncanonical}; then
2787 host_subdir="host-${host_noncanonical}"
2788 else
2789 host_subdir=.
2791 # No prefix.
2792 target_subdir=${target_noncanonical}
2795 # -------
2796 # Options
2797 # -------
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2800 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2801 # Check whether --enable-version-specific-runtime-libs was given.
2802 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2803 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2804 yes) version_specific_libs=yes ;;
2805 no) version_specific_libs=no ;;
2806 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2807 esac
2808 else
2809 version_specific_libs=no
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2813 $as_echo "$version_specific_libs" >&6; }
2815 # Build with intermodule optimisations
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2817 $as_echo_n "checking for --enable-intermodule... " >&6; }
2818 # Check whether --enable-intermodule was given.
2819 if test "${enable_intermodule+set}" = set; then :
2820 enableval=$enable_intermodule; case "$enable_intermodule" in
2821 yes) onestep="-onestep";;
2822 *) onestep="";;
2823 esac
2824 else
2825 onestep=""
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2829 $as_echo "$enable_intermodule" >&6; }
2830 if test x$onestep = x-onestep; then
2831 onestep_TRUE=
2832 onestep_FALSE='#'
2833 else
2834 onestep_TRUE='#'
2835 onestep_FALSE=
2840 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2842 # You will slowly go insane if you do not grok the following fact: when
2843 # building this library, the top-level /target/ becomes the library's /host/.
2845 # configure then causes --target to default to --host, exactly like any
2846 # other package using autoconf. Therefore, 'target' and 'host' will
2847 # always be the same. This makes sense both for native and cross compilers
2848 # just think about it for a little while. :-)
2850 # Also, if this library is being configured as part of a cross compiler, the
2851 # top-level configure script will pass the "real" host as $with_cross_host.
2853 # Do not delete or change the following two lines. For why, see
2854 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2856 $as_echo_n "checking host system type... " >&6; }
2857 if test "${ac_cv_host+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 if test "x$host_alias" = x; then
2861 ac_cv_host=$ac_cv_build
2862 else
2863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2864 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2869 $as_echo "$ac_cv_host" >&6; }
2870 case $ac_cv_host in
2871 *-*-*) ;;
2872 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2873 esac
2874 host=$ac_cv_host
2875 ac_save_IFS=$IFS; IFS='-'
2876 set x $ac_cv_host
2877 shift
2878 host_cpu=$1
2879 host_vendor=$2
2880 shift; shift
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2883 host_os=$*
2884 IFS=$ac_save_IFS
2885 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2889 $as_echo_n "checking target system type... " >&6; }
2890 if test "${ac_cv_target+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test "x$target_alias" = x; then
2894 ac_cv_target=$ac_cv_host
2895 else
2896 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2897 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2902 $as_echo "$ac_cv_target" >&6; }
2903 case $ac_cv_target in
2904 *-*-*) ;;
2905 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2906 esac
2907 target=$ac_cv_target
2908 ac_save_IFS=$IFS; IFS='-'
2909 set x $ac_cv_target
2910 shift
2911 target_cpu=$1
2912 target_vendor=$2
2913 shift; shift
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2916 target_os=$*
2917 IFS=$ac_save_IFS
2918 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2921 # The aliases save the names the user supplied, while $host etc.
2922 # will get canonicalized.
2923 test -n "$target_alias" &&
2924 test "$program_prefix$program_suffix$program_transform_name" = \
2925 NONENONEs,x,x, &&
2926 program_prefix=${target_alias}-
2931 target_alias=${target_alias-$host_alias}
2934 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2935 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2936 # 1.9.6: minimum required version
2937 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2938 # of other PACKAGE_* variables will, however, and there's nothing
2939 # we can do about that; they come from AC_INIT).
2940 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2941 # file in the top srcdir, etc, etc), so stop complaining.
2942 # no-dist: we don't want 'dist' and related rules.
2943 # -Wall: turns on all automake warnings...
2944 # -Wno-portability: ...except this one, since GNU make is required.
2945 am__api_version='1.11'
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2953 # AIX /bin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if test "${ac_cv_path_install+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974 ./ | .// | /[cC]/* | \
2975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977 /usr/ucb/* ) ;;
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2981 # by default.
2982 for ac_prog in ginstall scoinst install; do
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2985 if test $ac_prog = install &&
2986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2993 else
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one > conftest.one
2996 echo two > conftest.two
2997 mkdir conftest.dir
2998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2999 test -s conftest.one && test -s conftest.two &&
3000 test -s conftest.dir/conftest.one &&
3001 test -s conftest.dir/conftest.two
3002 then
3003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004 break 3
3008 done
3009 done
3011 esac
3013 done
3014 IFS=$as_save_IFS
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test "${ac_cv_path_install+set}" = set; then
3020 INSTALL=$ac_cv_path_install
3021 else
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Just in case
3043 sleep 1
3044 echo timestamp > conftest.file
3045 # Reject unsafe characters in $srcdir or the absolute working directory
3046 # name. Accept space and tab only in the latter.
3047 am_lf='
3049 case `pwd` in
3050 *[\\\"\#\$\&\'\`$am_lf]*)
3051 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3052 esac
3053 case $srcdir in
3054 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3055 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3056 esac
3058 # Do `set' in a subshell so we don't clobber the current shell's
3059 # arguments. Must try -L first in case configure is actually a
3060 # symlink; some systems play weird games with the mod time of symlinks
3061 # (eg FreeBSD returns the mod time of the symlink's containing
3062 # directory).
3063 if (
3064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3066 # -L didn't work.
3067 set X `ls -t "$srcdir/configure" conftest.file`
3069 rm -f conftest.file
3070 if test "$*" != "X $srcdir/configure conftest.file" \
3071 && test "$*" != "X conftest.file $srcdir/configure"; then
3073 # If neither matched, then we have a broken ls. This can happen
3074 # if, for instance, CONFIG_SHELL is bash and it inherits a
3075 # broken ls alias from the environment. This has actually
3076 # happened. Such a system could not be considered "sane".
3077 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3078 alias in your environment" "$LINENO" 5
3081 test "$2" = conftest.file
3083 then
3084 # Ok.
3086 else
3087 as_fn_error "newly created file is older than distributed files!
3088 Check your system clock" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 test "$program_prefix" != NONE &&
3093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3094 # Use a double $ so make ignores it.
3095 test "$program_suffix" != NONE &&
3096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3097 # Double any \ or $.
3098 # By default was `s,x,x', remove it if useless.
3099 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3100 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir=`cd $ac_aux_dir && pwd`
3105 if test x"${MISSING+set}" != xset; then
3106 case $am_aux_dir in
3107 *\ * | *\ *)
3108 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3110 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3111 esac
3113 # Use eval to expand $SHELL
3114 if eval "$MISSING --run true"; then
3115 am_missing_run="$MISSING --run "
3116 else
3117 am_missing_run=
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3119 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3122 if test x"${install_sh}" != xset; then
3123 case $am_aux_dir in
3124 *\ * | *\ *)
3125 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3127 install_sh="\${SHELL} $am_aux_dir/install-sh"
3128 esac
3131 # Installed binaries are usually stripped using `strip' when the user
3132 # run `make install-strip'. However `strip' might not be the right
3133 # tool to use in cross-compilation environments, therefore Automake
3134 # will honor the `STRIP' environment variable to overrule this program.
3135 if test "$cross_compiling" != no; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}strip; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_STRIP+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$STRIP"; then
3145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 STRIP=$ac_cv_prog_STRIP
3165 if test -n "$STRIP"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3167 $as_echo "$STRIP" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_STRIP"; then
3176 ac_ct_STRIP=$STRIP
3177 # Extract the first word of "strip", so it can be a program name with args.
3178 set dummy strip; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$ac_ct_STRIP"; then
3185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 $as_echo "$ac_ct_STRIP" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_STRIP" = x; then
3214 STRIP=":"
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 STRIP=$ac_ct_STRIP
3224 else
3225 STRIP="$ac_cv_prog_STRIP"
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3232 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3233 if test -z "$MKDIR_P"; then
3234 if test "${ac_cv_path_mkdir+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in mkdir gmkdir; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3245 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3246 'mkdir (GNU coreutils) '* | \
3247 'mkdir (coreutils) '* | \
3248 'mkdir (fileutils) '4.1*)
3249 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3250 break 3;;
3251 esac
3252 done
3253 done
3254 done
3255 IFS=$as_save_IFS
3259 if test "${ac_cv_path_mkdir+set}" = set; then
3260 MKDIR_P="$ac_cv_path_mkdir -p"
3261 else
3262 # As a last resort, use the slow shell script. Don't cache a
3263 # value for MKDIR_P within a source directory, because that will
3264 # break other packages using the cache if that directory is
3265 # removed, or if the value is a relative name.
3266 test -d ./--version && rmdir ./--version
3267 MKDIR_P="$ac_install_sh -d"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3271 $as_echo "$MKDIR_P" >&6; }
3273 mkdir_p="$MKDIR_P"
3274 case $mkdir_p in
3275 [\\/$]* | ?:[\\/]*) ;;
3276 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3277 esac
3279 for ac_prog in gawk mawk nawk awk
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_AWK+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$AWK"; then
3289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_AWK="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 AWK=$ac_cv_prog_AWK
3309 if test -n "$AWK"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3311 $as_echo "$AWK" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$AWK" && break
3319 done
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3322 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3323 set x ${MAKE-make}
3324 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3325 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat >conftest.make <<\_ACEOF
3329 SHELL = /bin/sh
3330 all:
3331 @echo '@@@%%%=$(MAKE)=@@@%%%'
3332 _ACEOF
3333 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3334 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3335 *@@@%%%=?*=@@@%%%*)
3336 eval ac_cv_prog_make_${ac_make}_set=yes;;
3338 eval ac_cv_prog_make_${ac_make}_set=no;;
3339 esac
3340 rm -f conftest.make
3342 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 SET_MAKE=
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 SET_MAKE="MAKE=${MAKE-make}"
3352 rm -rf .tst 2>/dev/null
3353 mkdir .tst 2>/dev/null
3354 if test -d .tst; then
3355 am__leading_dot=.
3356 else
3357 am__leading_dot=_
3359 rmdir .tst 2>/dev/null
3361 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3362 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3363 # is not polluted with repeated "-I."
3364 am__isrc=' -I$(srcdir)'
3365 # test to see if srcdir already configured
3366 if test -f $srcdir/config.status; then
3367 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3371 # test whether we have cygpath
3372 if test -z "$CYGPATH_W"; then
3373 if (cygpath --version) >/dev/null 2>/dev/null; then
3374 CYGPATH_W='cygpath -w'
3375 else
3376 CYGPATH_W=echo
3381 # Define the identity of the package.
3382 PACKAGE='libgfortran'
3383 VERSION='0.3'
3386 # Some tools Automake needs.
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3402 # We need awk for the "check" target. The system "awk" is bad on
3403 # some platforms.
3404 # Always define AMTAR for backward compatibility. Yes, it's still used
3405 # in the wild :-( We should find a proper way to deprecate it ...
3406 AMTAR='$${TAR-tar}'
3408 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3417 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3418 # Check whether --enable-maintainer-mode was given.
3419 if test "${enable_maintainer_mode+set}" = set; then :
3420 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3421 else
3422 USE_MAINTAINER_MODE=no
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3426 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3427 if test $USE_MAINTAINER_MODE = yes; then
3428 MAINTAINER_MODE_TRUE=
3429 MAINTAINER_MODE_FALSE='#'
3430 else
3431 MAINTAINER_MODE_TRUE='#'
3432 MAINTAINER_MODE_FALSE=
3435 MAINT=$MAINTAINER_MODE_TRUE
3438 # Default to --enable-multilib
3439 # Check whether --enable-multilib was given.
3440 if test "${enable_multilib+set}" = set; then :
3441 enableval=$enable_multilib; case "$enableval" in
3442 yes) multilib=yes ;;
3443 no) multilib=no ;;
3444 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3445 esac
3446 else
3447 multilib=yes
3451 # We may get other options which we leave undocumented:
3452 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3453 # See config-ml.in if you want the gory details.
3455 if test "$srcdir" = "."; then
3456 if test "$with_target_subdir" != "."; then
3457 multi_basedir="$srcdir/$with_multisrctop../.."
3458 else
3459 multi_basedir="$srcdir/$with_multisrctop.."
3461 else
3462 multi_basedir="$srcdir/.."
3466 # Even if the default multilib is not a cross compilation,
3467 # it may be that some of the other multilibs are.
3468 if test $cross_compiling = no && test $multilib = yes \
3469 && test "x${with_multisubdir}" != x ; then
3470 cross_compiling=maybe
3473 ac_config_commands="$ac_config_commands default-1"
3476 # Handy for debugging:
3477 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3479 # Are we being configured with some form of cross compiler?
3480 # NB: We don't actually need to know this just now, but when, say, a test
3481 # suite is included, we'll have to know.
3482 if test "$build" != "$host"; then
3483 LIBGFOR_IS_NATIVE=false
3485 else
3486 LIBGFOR_IS_NATIVE=true
3489 DEPDIR="${am__leading_dot}deps"
3491 ac_config_commands="$ac_config_commands depfiles"
3494 am_make=${MAKE-make}
3495 cat > confinc << 'END'
3496 am__doit:
3497 @echo this is the am__doit target
3498 .PHONY: am__doit
3500 # If we don't find an include directive, just comment out the code.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3502 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3503 am__include="#"
3504 am__quote=
3505 _am_result=none
3506 # First try GNU make style include.
3507 echo "include confinc" > confmf
3508 # Ignore all kinds of additional output from `make'.
3509 case `$am_make -s -f confmf 2> /dev/null` in #(
3510 *the\ am__doit\ target*)
3511 am__include=include
3512 am__quote=
3513 _am_result=GNU
3515 esac
3516 # Now try BSD make style include.
3517 if test "$am__include" = "#"; then
3518 echo '.include "confinc"' > confmf
3519 case `$am_make -s -f confmf 2> /dev/null` in #(
3520 *the\ am__doit\ target*)
3521 am__include=.include
3522 am__quote="\""
3523 _am_result=BSD
3525 esac
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3530 $as_echo "$_am_result" >&6; }
3531 rm -f confinc confmf
3533 # Check whether --enable-dependency-tracking was given.
3534 if test "${enable_dependency_tracking+set}" = set; then :
3535 enableval=$enable_dependency_tracking;
3538 if test "x$enable_dependency_tracking" != xno; then
3539 am_depcomp="$ac_aux_dir/depcomp"
3540 AMDEPBACKSLASH='\'
3541 am__nodep='_no'
3543 if test "x$enable_dependency_tracking" != xno; then
3544 AMDEP_TRUE=
3545 AMDEP_FALSE='#'
3546 else
3547 AMDEP_TRUE='#'
3548 AMDEP_FALSE=
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 if test -n "$ac_tool_prefix"; then
3558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3579 done
3580 done
3581 IFS=$as_save_IFS
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3596 if test -z "$ac_cv_prog_CC"; then
3597 ac_ct_CC=$CC
3598 # Extract the first word of "gcc", so it can be a program name with args.
3599 set dummy gcc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_ac_ct_CC="gcc"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CC=$ac_ct_CC
3645 else
3646 CC="$ac_cv_prog_CC"
3649 if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC="${ac_tool_prefix}cc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3690 if test -z "$CC"; then
3691 # Extract the first word of "cc", so it can be a program name with args.
3692 set dummy cc; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 ac_prog_rejected=no
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3710 ac_prog_rejected=yes
3711 continue
3713 ac_cv_prog_CC="cc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3719 IFS=$as_save_IFS
3721 if test $ac_prog_rejected = yes; then
3722 # We found a bogon in the path, so make sure we never use it.
3723 set dummy $ac_cv_prog_CC
3724 shift
3725 if test $# != 0; then
3726 # We chose a different compiler from the bogus one.
3727 # However, it has the same basename, so the bogon will be chosen
3728 # first if we set CC to just the basename; use the full file name.
3729 shift
3730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3735 CC=$ac_cv_prog_CC
3736 if test -n "$CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 $as_echo "$CC" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3746 if test -z "$CC"; then
3747 if test -n "$ac_tool_prefix"; then
3748 for ac_prog in cl.exe
3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_CC+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 CC=$ac_cv_prog_CC
3778 if test -n "$CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780 $as_echo "$CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$CC" && break
3788 done
3790 if test -z "$CC"; then
3791 ac_ct_CC=$CC
3792 for ac_prog in cl.exe
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$ac_ct_CC" && break
3832 done
3834 if test "x$ac_ct_CC" = x; then
3835 CC=""
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838 yes:)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841 ac_tool_warned=yes ;;
3842 esac
3843 CC=$ac_ct_CC
3850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error "no acceptable C compiler found in \$PATH
3853 See \`config.log' for more details." "$LINENO" 5; }
3855 # Provide some information about the compiler.
3856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3857 set X $ac_compile
3858 ac_compiler=$2
3859 for ac_option in --version -v -V -qversion; do
3860 { { ac_try="$ac_compiler $ac_option >&5"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3868 ac_status=$?
3869 if test -s conftest.err; then
3870 sed '10a\
3871 ... rest of stderr output deleted ...
3872 10q' conftest.err >conftest.er1
3873 cat conftest.er1 >&5
3874 rm -f conftest.er1 conftest.err
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }
3878 done
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3888 return 0;
3890 _ACEOF
3891 # FIXME: Cleanup?
3892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; then :
3897 gcc_no_link=no
3898 else
3899 gcc_no_link=yes
3901 if test x$gcc_no_link = xyes; then
3902 # Setting cross_compile will disable run tests; it will
3903 # also disable AC_CHECK_FILE but that's generally
3904 # correct if we can't link.
3905 cross_compiling=yes
3906 EXEEXT=
3907 else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 ac_clean_files_save=$ac_clean_files
3920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3921 # Try to create an executable without -o first, disregard a.out.
3922 # It will help us diagnose broken compilers, and finding out an intuition
3923 # of exeext.
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3925 $as_echo_n "checking for C compiler default output file name... " >&6; }
3926 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3928 # The possible output files:
3929 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3931 ac_rmfiles=
3932 for ac_file in $ac_files
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3937 esac
3938 done
3939 rm -f $ac_rmfiles
3941 if { { ac_try="$ac_link_default"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_link_default") 2>&5
3949 ac_status=$?
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; then :
3952 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3953 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3954 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3955 # so that the user can short-circuit this test for compilers unknown to
3956 # Autoconf.
3957 for ac_file in $ac_files ''
3959 test -f "$ac_file" || continue
3960 case $ac_file in
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3963 [ab].out )
3964 # We found the default executable, but exeext='' is most
3965 # certainly right.
3966 break;;
3967 *.* )
3968 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3969 then :; else
3970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 # We set ac_cv_exeext here because the later test for it is not
3973 # safe: cross compilers may not add the suffix if given an `-o'
3974 # argument, so we may need to know it at that point already.
3975 # Even if this section looks crufty: it has the advantage of
3976 # actually working.
3977 break;;
3979 break;;
3980 esac
3981 done
3982 test "$ac_cv_exeext" = no && ac_cv_exeext=
3984 else
3985 ac_file=''
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3988 $as_echo "$ac_file" >&6; }
3989 if test -z "$ac_file"; then :
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 { as_fn_set_status 77
3996 as_fn_error "C compiler cannot create executables
3997 See \`config.log' for more details." "$LINENO" 5; }; }
3999 ac_exeext=$ac_cv_exeext
4001 # Check that the compiler produces executables we can run. If not, either
4002 # the compiler is broken, or we cross compile.
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4004 $as_echo_n "checking whether the C compiler works... " >&6; }
4005 # If not cross compiling, check that we can run a simple program.
4006 if test "$cross_compiling" != yes; then
4007 if { ac_try='./$ac_file'
4008 { { case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; }; then
4018 cross_compiling=no
4019 else
4020 if test "$cross_compiling" = maybe; then
4021 cross_compiling=yes
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "cannot run C compiled programs.
4026 If you meant to cross compile, use \`--host'.
4027 See \`config.log' for more details." "$LINENO" 5; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 $as_echo "yes" >&6; }
4034 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4035 ac_clean_files=$ac_clean_files_save
4036 # Check that the compiler produces executables we can run. If not, either
4037 # the compiler is broken, or we cross compile.
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4039 $as_echo_n "checking whether we are cross compiling... " >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4041 $as_echo "$cross_compiling" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4044 $as_echo_n "checking for suffix of executables... " >&6; }
4045 if { { ac_try="$ac_link"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4058 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 # `rm'.
4060 for ac_file in conftest.exe conftest conftest.*; do
4061 test -f "$ac_file" || continue
4062 case $ac_file in
4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4065 break;;
4066 * ) break;;
4067 esac
4068 done
4069 else
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error "cannot compute suffix of executables: cannot compile and link
4073 See \`config.log' for more details." "$LINENO" 5; }
4075 rm -f conftest$ac_cv_exeext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4077 $as_echo "$ac_cv_exeext" >&6; }
4079 rm -f conftest.$ac_ext
4080 EXEEXT=$ac_cv_exeext
4081 ac_exeext=$EXEEXT
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084 $as_echo_n "checking for suffix of object files... " >&6; }
4085 if test "${ac_cv_objext+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.o conftest.obj
4100 if { { ac_try="$ac_compile"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_compile") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 for ac_file in conftest.o conftest.obj conftest.*; do
4112 test -f "$ac_file" || continue;
4113 case $ac_file in
4114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4116 break;;
4117 esac
4118 done
4119 else
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 as_fn_error "cannot compute suffix of object files: cannot compile
4126 See \`config.log' for more details." "$LINENO" 5; }
4128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4131 $as_echo "$ac_cv_objext" >&6; }
4132 OBJEXT=$ac_cv_objext
4133 ac_objext=$OBJEXT
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4143 main ()
4145 #ifndef __GNUC__
4146 choke me
4147 #endif
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_compiler_gnu=yes
4155 else
4156 ac_compiler_gnu=no
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164 if test $ac_compiler_gnu = yes; then
4165 GCC=yes
4166 else
4167 GCC=
4169 ac_test_CFLAGS=${CFLAGS+set}
4170 ac_save_CFLAGS=$CFLAGS
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173 if test "${ac_cv_prog_cc_g+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4178 ac_cv_prog_cc_g=no
4179 CFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 main ()
4188 return 0;
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_g=yes
4193 else
4194 CFLAGS=""
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4199 main ()
4203 return 0;
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4208 else
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 CFLAGS="-g"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4215 main ()
4219 return 0;
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_g=yes
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 $as_echo "$ac_cv_prog_cc_g" >&6; }
4234 if test "$ac_test_CFLAGS" = set; then
4235 CFLAGS=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4238 CFLAGS="-g -O2"
4239 else
4240 CFLAGS="-g"
4242 else
4243 if test "$GCC" = yes; then
4244 CFLAGS="-O2"
4245 else
4246 CFLAGS=
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 ac_cv_prog_cc_c89=no
4255 ac_save_CC=$CC
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdarg.h>
4259 #include <stdio.h>
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4266 char **p;
4267 int i;
4269 return p[i];
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4273 char *s;
4274 va_list v;
4275 va_start (v,p);
4276 s = g (p, va_arg (v,int));
4277 va_end (v);
4278 return s;
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282 function prototypes and stuff, but not '\xHH' hex character constants.
4283 These don't provoke an error unfortunately, instead are silently treated
4284 as 'x'. The following induces an error, until -std is added to get
4285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 array size at least. It's necessary to write '\x00'==0 to get something
4287 that's true only with -std. */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291 inside strings and character constants. */
4292 #define FOO(x) 'x'
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299 int argc;
4300 char **argv;
4302 main ()
4304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4306 return 0;
4308 _ACEOF
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 CC="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_prog_cc_c89=$ac_arg
4316 rm -f core conftest.err conftest.$ac_objext
4317 test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 done
4319 rm -f conftest.$ac_ext
4320 CC=$ac_save_CC
4323 # AC_CACHE_VAL
4324 case "x$ac_cv_prog_cc_c89" in
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4328 xno)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4332 CC="$CC $ac_cv_prog_cc_c89"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 esac
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 depcc="$CC" am_compiler_list=
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
4350 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354 # We make a subdir and do the tests there. Otherwise we can end up
4355 # making bogus files that we don't know about and never remove. For
4356 # instance it was reported that on HP-UX the gcc test will end up
4357 # making a dummy file named `D' -- because `-MD' means `put the output
4358 # in D'.
4359 rm -rf conftest.dir
4360 mkdir conftest.dir
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4364 cd conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4370 # directory.
4371 mkdir sub
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4377 am__universal=false
4378 case " $depcc " in #(
4379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4380 esac
4382 for depmode in $am_compiler_list; do
4383 # Setup a source with many dependencies, because some compilers
4384 # like to wrap large dependency lists on column 80 (with \), and
4385 # we should not choose a depcomp mode which is confused by this.
4387 # We need to recreate these files for each test, as the compiler may
4388 # overwrite some of them when testing with obscure command lines.
4389 # This happens at least with the AIX C compiler.
4390 : > sub/conftest.c
4391 for i in 1 2 3 4 5 6; do
4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4394 # Solaris 8's {/usr,}/bin/sh.
4395 touch sub/conftst$i.h
4396 done
4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this. Also, some Intel
4402 # versions had trouble with output in subdirs
4403 am__obj=sub/conftest.${OBJEXT-o}
4404 am__minus_obj="-o $am__obj"
4405 case $depmode in
4406 gcc)
4407 # This depmode causes a compiler race in universal mode.
4408 test "$am__universal" = false || continue
4410 nosideeffect)
4411 # after this tag, mechanisms are not by side-effect, so they'll
4412 # only be used when explicitly requested
4413 if test "x$enable_dependency_tracking" = xyes; then
4414 continue
4415 else
4416 break
4419 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4420 # This compiler won't grok `-c -o', but also, the minuso test has
4421 # not run yet. These depmodes are late enough in the game, and
4422 # so weak that their functioning should not be impacted.
4423 am__obj=conftest.${OBJEXT-o}
4424 am__minus_obj=
4426 none) break ;;
4427 esac
4428 if depmode=$depmode \
4429 source=sub/conftest.c object=$am__obj \
4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432 >/dev/null 2>conftest.err &&
4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437 # icc doesn't choke on unknown options, it will just issue warnings
4438 # or remarks (even with -Werror). So we grep stderr for any message
4439 # that says an option was ignored or not supported.
4440 # When given -MP, icc 7.0 and 7.1 complain thusly:
4441 # icc: Command line warning: ignoring option '-M'; no argument required
4442 # The diagnosis changed in icc 8.0:
4443 # icc: Command line remark: option '-MP' not supported
4444 if (grep 'ignoring option' conftest.err ||
4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446 am_cv_CC_dependencies_compiler_type=$depmode
4447 break
4450 done
4452 cd ..
4453 rm -rf conftest.dir
4454 else
4455 am_cv_CC_dependencies_compiler_type=none
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464 test "x$enable_dependency_tracking" != xno \
4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4466 am__fastdepCC_TRUE=
4467 am__fastdepCC_FALSE='#'
4468 else
4469 am__fastdepCC_TRUE='#'
4470 am__fastdepCC_FALSE=
4475 ac_ext=c
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4481 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4482 # On Suns, sometimes $CPP names a directory.
4483 if test -n "$CPP" && test -d "$CPP"; then
4484 CPP=
4486 if test -z "$CPP"; then
4487 if test "${ac_cv_prog_CPP+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 # Double quotes because CPP needs to be expanded
4491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4493 ac_preproc_ok=false
4494 for ac_c_preproc_warn_flag in '' yes
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
4500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #ifdef __STDC__
4505 # include <limits.h>
4506 #else
4507 # include <assert.h>
4508 #endif
4509 Syntax error
4510 _ACEOF
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4513 else
4514 # Broken: fails on valid input.
4515 continue
4517 rm -f conftest.err conftest.$ac_ext
4519 # OK, works on sane cases. Now check whether nonexistent headers
4520 # can be detected and how.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <ac_nonexistent.h>
4524 _ACEOF
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4526 # Broken: success on invalid input.
4527 continue
4528 else
4529 # Passes both tests.
4530 ac_preproc_ok=:
4531 break
4533 rm -f conftest.err conftest.$ac_ext
4535 done
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.$ac_ext
4538 if $ac_preproc_ok; then :
4539 break
4542 done
4543 ac_cv_prog_CPP=$CPP
4546 CPP=$ac_cv_prog_CPP
4547 else
4548 ac_cv_prog_CPP=$CPP
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4551 $as_echo "$CPP" >&6; }
4552 ac_preproc_ok=false
4553 for ac_c_preproc_warn_flag in '' yes
4555 # Use a header file that comes with gcc, so configuring glibc
4556 # with a fresh cross-compiler works.
4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 # <limits.h> exists even on freestanding compilers.
4559 # On the NeXT, cc -E runs the code through the compiler's parser,
4560 # not just through cpp. "Syntax error" is here to catch this case.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #ifdef __STDC__
4564 # include <limits.h>
4565 #else
4566 # include <assert.h>
4567 #endif
4568 Syntax error
4569 _ACEOF
4570 if ac_fn_c_try_cpp "$LINENO"; then :
4572 else
4573 # Broken: fails on valid input.
4574 continue
4576 rm -f conftest.err conftest.$ac_ext
4578 # OK, works on sane cases. Now check whether nonexistent headers
4579 # can be detected and how.
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582 #include <ac_nonexistent.h>
4583 _ACEOF
4584 if ac_fn_c_try_cpp "$LINENO"; then :
4585 # Broken: success on invalid input.
4586 continue
4587 else
4588 # Passes both tests.
4589 ac_preproc_ok=:
4590 break
4592 rm -f conftest.err conftest.$ac_ext
4594 done
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then :
4599 else
4600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4603 See \`config.log' for more details." "$LINENO" 5; }
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if test "${ac_cv_path_GREP+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$GREP"; then
4619 ac_path_GREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in grep ggrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631 # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636 ac_count=0
4637 $as_echo_n 0123456789 >"conftest.in"
4638 while :
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'GREP' >> "conftest.nl"
4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_GREP="$ac_path_GREP"
4650 ac_path_GREP_max=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4654 done
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4658 $ac_path_GREP_found && break 3
4659 done
4660 done
4661 done
4662 IFS=$as_save_IFS
4663 if test -z "$ac_cv_path_GREP"; then
4664 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666 else
4667 ac_cv_path_GREP=$GREP
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if test "${ac_cv_path_EGREP+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682 then ac_cv_path_EGREP="$GREP -E"
4683 else
4684 if test -z "$EGREP"; then
4685 ac_path_EGREP_found=false
4686 # Loop through the user's path and test for each of PROGNAME-LIST
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_prog in egrep; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697 # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702 ac_count=0
4703 $as_echo_n 0123456789 >"conftest.in"
4704 while :
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 $as_echo 'EGREP' >> "conftest.nl"
4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_EGREP="$ac_path_EGREP"
4716 ac_path_EGREP_max=$ac_count
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4720 done
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4724 $ac_path_EGREP_found && break 3
4725 done
4726 done
4727 done
4728 IFS=$as_save_IFS
4729 if test -z "$ac_cv_path_EGREP"; then
4730 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732 else
4733 ac_cv_path_EGREP=$EGREP
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4744 $as_echo_n "checking for ANSI C header files... " >&6; }
4745 if test "${ac_cv_header_stdc+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #include <stdlib.h>
4751 #include <stdarg.h>
4752 #include <string.h>
4753 #include <float.h>
4756 main ()
4760 return 0;
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_header_stdc=yes
4765 else
4766 ac_cv_header_stdc=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $ac_cv_header_stdc = yes; then
4771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <string.h>
4776 _ACEOF
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "memchr" >/dev/null 2>&1; then :
4780 else
4781 ac_cv_header_stdc=no
4783 rm -f conftest*
4787 if test $ac_cv_header_stdc = yes; then
4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <stdlib.h>
4793 _ACEOF
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "free" >/dev/null 2>&1; then :
4797 else
4798 ac_cv_header_stdc=no
4800 rm -f conftest*
4804 if test $ac_cv_header_stdc = yes; then
4805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4806 if test "$cross_compiling" = yes; then :
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #include <ctype.h>
4812 #include <stdlib.h>
4813 #if ((' ' & 0x0FF) == 0x020)
4814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4816 #else
4817 # define ISLOWER(c) \
4818 (('a' <= (c) && (c) <= 'i') \
4819 || ('j' <= (c) && (c) <= 'r') \
4820 || ('s' <= (c) && (c) <= 'z'))
4821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4822 #endif
4824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826 main ()
4828 int i;
4829 for (i = 0; i < 256; i++)
4830 if (XOR (islower (i), ISLOWER (i))
4831 || toupper (i) != TOUPPER (i))
4832 return 2;
4833 return 0;
4835 _ACEOF
4836 if ac_fn_c_try_run "$LINENO"; then :
4838 else
4839 ac_cv_header_stdc=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4842 conftest.$ac_objext conftest.beam conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4848 $as_echo "$ac_cv_header_stdc" >&6; }
4849 if test $ac_cv_header_stdc = yes; then
4851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4857 inttypes.h stdint.h unistd.h
4858 do :
4859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4862 eval as_val=\$$as_ac_Header
4863 if test "x$as_val" = x""yes; then :
4864 cat >>confdefs.h <<_ACEOF
4865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4866 _ACEOF
4870 done
4874 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4875 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4876 MINIX=yes
4877 else
4878 MINIX=
4882 if test "$MINIX" = yes; then
4884 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4887 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4890 $as_echo "#define _MINIX 1" >>confdefs.h
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4896 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4897 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4903 # define __EXTENSIONS__ 1
4904 $ac_includes_default
4906 main ()
4910 return 0;
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_safe_to_define___extensions__=yes
4915 else
4916 ac_cv_safe_to_define___extensions__=no
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4921 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4922 test $ac_cv_safe_to_define___extensions__ = yes &&
4923 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4925 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4927 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4929 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4931 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4935 # Calculate toolexeclibdir
4936 # Also toolexecdir, though it's only used in toolexeclibdir
4937 case ${version_specific_libs} in
4938 yes)
4939 # Need the gcc compiler version to know where to install libraries
4940 # and header files if --enable-version-specific-runtime-libs option
4941 # is selected.
4942 toolexecdir='$(libdir)/gcc/$(target_alias)'
4943 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4946 if test -n "$with_cross_host" &&
4947 test x"$with_cross_host" != x"no"; then
4948 # Install a library built with a cross compiler in tooldir, not libdir.
4949 toolexecdir='$(exec_prefix)/$(target_alias)'
4950 toolexeclibdir='$(toolexecdir)/lib'
4951 else
4952 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4953 toolexeclibdir='$(libdir)'
4955 multi_os_directory=`$CC -print-multi-os-directory`
4956 case $multi_os_directory in
4957 .) ;; # Avoid trailing /.
4958 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4959 esac
4961 esac
4965 # Create a spec file, so that compile/link tests don't fail
4966 test -f libgfortran.spec || touch libgfortran.spec
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 # Check the compiler.
4975 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4976 # We must force CC to /not/ be precious variables; otherwise
4977 # the wrong, non-multilib-adjusted value will be used in multilibs.
4978 # As a side effect, we have to subst CFLAGS ourselves.
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$CC"; then
4996 ac_cv_prog_CC="$CC" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 CC=$ac_cv_prog_CC
5016 if test -n "$CC"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5018 $as_echo "$CC" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5026 if test -z "$ac_cv_prog_CC"; then
5027 ac_ct_CC=$CC
5028 # Extract the first word of "gcc", so it can be a program name with args.
5029 set dummy gcc; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_CC="gcc"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5051 IFS=$as_save_IFS
5055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5056 if test -n "$ac_ct_CC"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5058 $as_echo "$ac_ct_CC" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5064 if test "x$ac_ct_CC" = x; then
5065 CC=""
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 CC=$ac_ct_CC
5075 else
5076 CC="$ac_cv_prog_CC"
5079 if test -z "$CC"; then
5080 if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5082 set dummy ${ac_tool_prefix}cc; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_CC+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$CC"; then
5089 ac_cv_prog_CC="$CC" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_CC="${ac_tool_prefix}cc"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 CC=$ac_cv_prog_CC
5109 if test -n "$CC"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5111 $as_echo "$CC" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5120 if test -z "$CC"; then
5121 # Extract the first word of "cc", so it can be a program name with args.
5122 set dummy cc; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_CC+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$CC"; then
5129 ac_cv_prog_CC="$CC" # Let the user override the test.
5130 else
5131 ac_prog_rejected=no
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5140 ac_prog_rejected=yes
5141 continue
5143 ac_cv_prog_CC="cc"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5149 IFS=$as_save_IFS
5151 if test $ac_prog_rejected = yes; then
5152 # We found a bogon in the path, so make sure we never use it.
5153 set dummy $ac_cv_prog_CC
5154 shift
5155 if test $# != 0; then
5156 # We chose a different compiler from the bogus one.
5157 # However, it has the same basename, so the bogon will be chosen
5158 # first if we set CC to just the basename; use the full file name.
5159 shift
5160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5165 CC=$ac_cv_prog_CC
5166 if test -n "$CC"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5168 $as_echo "$CC" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$CC"; then
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in cl.exe
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_CC+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$CC"; then
5188 ac_cv_prog_CC="$CC" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5207 CC=$ac_cv_prog_CC
5208 if test -n "$CC"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5210 $as_echo "$CC" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 test -n "$CC" && break
5218 done
5220 if test -z "$CC"; then
5221 ac_ct_CC=$CC
5222 for ac_prog in cl.exe
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$ac_ct_CC"; then
5232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_ac_ct_CC="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5252 if test -n "$ac_ct_CC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5254 $as_echo "$ac_ct_CC" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$ac_ct_CC" && break
5262 done
5264 if test "x$ac_ct_CC" = x; then
5265 CC=""
5266 else
5267 case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273 CC=$ac_ct_CC
5280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5282 as_fn_error "no acceptable C compiler found in \$PATH
5283 See \`config.log' for more details." "$LINENO" 5; }
5285 # Provide some information about the compiler.
5286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5287 set X $ac_compile
5288 ac_compiler=$2
5289 for ac_option in --version -v -V -qversion; do
5290 { { ac_try="$ac_compiler $ac_option >&5"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5296 $as_echo "$ac_try_echo"; } >&5
5297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5298 ac_status=$?
5299 if test -s conftest.err; then
5300 sed '10a\
5301 ... rest of stderr output deleted ...
5302 10q' conftest.err >conftest.er1
5303 cat conftest.er1 >&5
5304 rm -f conftest.er1 conftest.err
5306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5307 test $ac_status = 0; }
5308 done
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5312 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5319 main ()
5321 #ifndef __GNUC__
5322 choke me
5323 #endif
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_compiler_gnu=yes
5331 else
5332 ac_compiler_gnu=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5340 if test $ac_compiler_gnu = yes; then
5341 GCC=yes
5342 else
5343 GCC=
5345 ac_test_CFLAGS=${CFLAGS+set}
5346 ac_save_CFLAGS=$CFLAGS
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5349 if test "${ac_cv_prog_cc_g+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 ac_save_c_werror_flag=$ac_c_werror_flag
5353 ac_c_werror_flag=yes
5354 ac_cv_prog_cc_g=no
5355 CFLAGS="-g"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_prog_cc_g=yes
5369 else
5370 CFLAGS=""
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5375 main ()
5379 return 0;
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5384 else
5385 ac_c_werror_flag=$ac_save_c_werror_flag
5386 CFLAGS="-g"
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5391 main ()
5395 return 0;
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_cv_prog_cc_g=yes
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 ac_c_werror_flag=$ac_save_c_werror_flag
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5409 $as_echo "$ac_cv_prog_cc_g" >&6; }
5410 if test "$ac_test_CFLAGS" = set; then
5411 CFLAGS=$ac_save_CFLAGS
5412 elif test $ac_cv_prog_cc_g = yes; then
5413 if test "$GCC" = yes; then
5414 CFLAGS="-g -O2"
5415 else
5416 CFLAGS="-g"
5418 else
5419 if test "$GCC" = yes; then
5420 CFLAGS="-O2"
5421 else
5422 CFLAGS=
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5427 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 ac_cv_prog_cc_c89=no
5431 ac_save_CC=$CC
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #include <stdarg.h>
5435 #include <stdio.h>
5436 #include <sys/types.h>
5437 #include <sys/stat.h>
5438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5439 struct buf { int x; };
5440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5441 static char *e (p, i)
5442 char **p;
5443 int i;
5445 return p[i];
5447 static char *f (char * (*g) (char **, int), char **p, ...)
5449 char *s;
5450 va_list v;
5451 va_start (v,p);
5452 s = g (p, va_arg (v,int));
5453 va_end (v);
5454 return s;
5457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5458 function prototypes and stuff, but not '\xHH' hex character constants.
5459 These don't provoke an error unfortunately, instead are silently treated
5460 as 'x'. The following induces an error, until -std is added to get
5461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5462 array size at least. It's necessary to write '\x00'==0 to get something
5463 that's true only with -std. */
5464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5467 inside strings and character constants. */
5468 #define FOO(x) 'x'
5469 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5471 int test (int i, double x);
5472 struct s1 {int (*f) (int a);};
5473 struct s2 {int (*f) (double a);};
5474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5475 int argc;
5476 char **argv;
5478 main ()
5480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5482 return 0;
5484 _ACEOF
5485 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5488 CC="$ac_save_CC $ac_arg"
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_cv_prog_cc_c89=$ac_arg
5492 rm -f core conftest.err conftest.$ac_objext
5493 test "x$ac_cv_prog_cc_c89" != "xno" && break
5494 done
5495 rm -f conftest.$ac_ext
5496 CC=$ac_save_CC
5499 # AC_CACHE_VAL
5500 case "x$ac_cv_prog_cc_c89" in
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5503 $as_echo "none needed" >&6; } ;;
5504 xno)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5506 $as_echo "unsupported" >&6; } ;;
5508 CC="$CC $ac_cv_prog_cc_c89"
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5510 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5511 esac
5512 if test "x$ac_cv_prog_cc_c89" != xno; then :
5516 ac_ext=c
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522 depcc="$CC" am_compiler_list=
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5525 $as_echo_n "checking dependency style of $depcc... " >&6; }
5526 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530 # We make a subdir and do the tests there. Otherwise we can end up
5531 # making bogus files that we don't know about and never remove. For
5532 # instance it was reported that on HP-UX the gcc test will end up
5533 # making a dummy file named `D' -- because `-MD' means `put the output
5534 # in D'.
5535 rm -rf conftest.dir
5536 mkdir conftest.dir
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5540 cd conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5546 # directory.
5547 mkdir sub
5549 am_cv_CC_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 am__universal=false
5554 case " $depcc " in #(
5555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556 esac
5558 for depmode in $am_compiler_list; do
5559 # Setup a source with many dependencies, because some compilers
5560 # like to wrap large dependency lists on column 80 (with \), and
5561 # we should not choose a depcomp mode which is confused by this.
5563 # We need to recreate these files for each test, as the compiler may
5564 # overwrite some of them when testing with obscure command lines.
5565 # This happens at least with the AIX C compiler.
5566 : > sub/conftest.c
5567 for i in 1 2 3 4 5 6; do
5568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570 # Solaris 8's {/usr,}/bin/sh.
5571 touch sub/conftst$i.h
5572 done
5573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576 # mode. It turns out that the SunPro C++ compiler does not properly
5577 # handle `-M -o', and we need to detect this. Also, some Intel
5578 # versions had trouble with output in subdirs
5579 am__obj=sub/conftest.${OBJEXT-o}
5580 am__minus_obj="-o $am__obj"
5581 case $depmode in
5582 gcc)
5583 # This depmode causes a compiler race in universal mode.
5584 test "$am__universal" = false || continue
5586 nosideeffect)
5587 # after this tag, mechanisms are not by side-effect, so they'll
5588 # only be used when explicitly requested
5589 if test "x$enable_dependency_tracking" = xyes; then
5590 continue
5591 else
5592 break
5595 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5596 # This compiler won't grok `-c -o', but also, the minuso test has
5597 # not run yet. These depmodes are late enough in the game, and
5598 # so weak that their functioning should not be impacted.
5599 am__obj=conftest.${OBJEXT-o}
5600 am__minus_obj=
5602 none) break ;;
5603 esac
5604 if depmode=$depmode \
5605 source=sub/conftest.c object=$am__obj \
5606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608 >/dev/null 2>conftest.err &&
5609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613 # icc doesn't choke on unknown options, it will just issue warnings
5614 # or remarks (even with -Werror). So we grep stderr for any message
5615 # that says an option was ignored or not supported.
5616 # When given -MP, icc 7.0 and 7.1 complain thusly:
5617 # icc: Command line warning: ignoring option '-M'; no argument required
5618 # The diagnosis changed in icc 8.0:
5619 # icc: Command line remark: option '-MP' not supported
5620 if (grep 'ignoring option' conftest.err ||
5621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622 am_cv_CC_dependencies_compiler_type=$depmode
5623 break
5626 done
5628 cd ..
5629 rm -rf conftest.dir
5630 else
5631 am_cv_CC_dependencies_compiler_type=none
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5636 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5637 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5640 test "x$enable_dependency_tracking" != xno \
5641 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5642 am__fastdepCC_TRUE=
5643 am__fastdepCC_FALSE='#'
5644 else
5645 am__fastdepCC_TRUE='#'
5646 am__fastdepCC_FALSE=
5654 if test "x$CC" != xcc; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5656 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5659 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5661 set dummy $CC; ac_cc=`$as_echo "$2" |
5662 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5663 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5670 main ()
5674 return 0;
5676 _ACEOF
5677 # Make sure it works both with $CC and with simple cc.
5678 # We do the test twice because some compilers refuse to overwrite an
5679 # existing .o file with -o, though they will create one.
5680 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5681 rm -f conftest2.*
5682 if { { case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5687 $as_echo "$ac_try_echo"; } >&5
5688 (eval "$ac_try") 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; } &&
5692 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; };
5702 then
5703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5704 if test "x$CC" != xcc; then
5705 # Test first that cc exists at all.
5706 if { ac_try='cc -c conftest.$ac_ext >&5'
5707 { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; }; }; then
5717 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5718 rm -f conftest2.*
5719 if { { case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5724 $as_echo "$ac_try_echo"; } >&5
5725 (eval "$ac_try") 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; } &&
5729 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735 (eval "$ac_try") 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; };
5739 then
5740 # cc works too.
5742 else
5743 # cc exists but doesn't like -o.
5744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5748 else
5749 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5751 rm -f core conftest*
5754 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5761 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5765 # FIXME: we rely on the cache variable name because
5766 # there is no other way.
5767 set dummy $CC
5768 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5769 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5770 if test "$am_t" != yes; then
5771 # Losing compiler, so override with the script.
5772 # FIXME: It is wrong to rewrite CC.
5773 # But if we don't then we get into trouble of one sort or another.
5774 # A longer-term fix would be to have automake use am__CC in this case,
5775 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5776 CC="$am_aux_dir/compile $CC"
5781 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5782 if test "x$GCC" = "xyes"; then
5783 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5784 ## We like to use C11 and C99 routines when available. This makes
5785 ## sure that
5786 ## __STDC_VERSION__ is set such that libc includes make them available.
5787 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5788 ## Compile the following tests with the same system header contents
5789 ## that we'll encounter when compiling our own source files.
5790 CFLAGS="-std=gnu11 $CFLAGS"
5793 # Add CET specific flags if CET is enabled
5794 # Check whether --enable-cet was given.
5795 if test "${enable_cet+set}" = set; then :
5796 enableval=$enable_cet;
5797 case "$enableval" in
5798 yes|no|default) ;;
5799 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5800 esac
5802 else
5803 enable_cet=default
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5808 $as_echo_n "checking for CET support... " >&6; }
5810 case "$host" in
5811 i[34567]86-*-linux* | x86_64-*-linux*)
5812 case "$enable_cet" in
5813 default)
5814 # Check if target supports multi-byte NOPs
5815 # and if assembler supports CET insn.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5820 main ()
5823 #if !defined(__SSE2__)
5824 #error target does not support multi-byte NOPs
5825 #else
5826 asm ("setssbsy");
5827 #endif
5830 return 0;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"; then :
5834 enable_cet=yes
5835 else
5836 enable_cet=no
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 yes)
5841 # Check if assembler supports CET.
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 main ()
5848 asm ("setssbsy");
5850 return 0;
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5855 else
5856 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 esac
5863 enable_cet=no
5865 esac
5866 if test x$enable_cet = xyes; then
5867 CET_FLAGS="-fcf-protection -mcet"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869 $as_echo "yes" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5875 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
5876 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
5877 CFLAGS="$CFLAGS $CET_FLAGS"
5883 # Check for symbol versioning (copied from libssp).
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5885 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5886 # Check whether --enable-symvers was given.
5887 if test "${enable_symvers+set}" = set; then :
5888 enableval=$enable_symvers; gfortran_use_symver=$enableval
5889 else
5890 gfortran_use_symver=yes
5893 if test "x$gfortran_use_symver" != xno; then
5894 save_LDFLAGS="$LDFLAGS"
5895 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5896 cat > conftest.map <<EOF
5897 FOO_1.0 {
5898 global: *foo*; bar; local: *;
5901 if test x$gcc_no_link = xyes; then
5902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 int foo;
5908 main ()
5912 return 0;
5914 _ACEOF
5915 if ac_fn_c_try_link "$LINENO"; then :
5916 gfortran_use_symver=gnu
5917 else
5918 gfortran_use_symver=no
5920 rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext
5922 if test x$gfortran_use_symver = xno; then
5923 case "$target_os" in
5924 solaris2*)
5925 LDFLAGS="$save_LDFLAGS"
5926 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5927 # Sun ld cannot handle wildcards and treats all entries as undefined.
5928 cat > conftest.map <<EOF
5929 FOO_1.0 {
5930 global: foo; local: *;
5933 if test x$gcc_no_link = xyes; then
5934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 int foo;
5940 main ()
5944 return 0;
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 gfortran_use_symver=sun
5949 else
5950 gfortran_use_symver=no
5952 rm -f core conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5955 esac
5957 LDFLAGS="$save_LDFLAGS"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5960 $as_echo "$gfortran_use_symver" >&6; }
5961 if test "x$gfortran_use_symver" != xno; then
5962 LIBGFOR_USE_SYMVER_TRUE=
5963 LIBGFOR_USE_SYMVER_FALSE='#'
5964 else
5965 LIBGFOR_USE_SYMVER_TRUE='#'
5966 LIBGFOR_USE_SYMVER_FALSE=
5969 if test "x$gfortran_use_symver" = xgnu; then
5970 LIBGFOR_USE_SYMVER_GNU_TRUE=
5971 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5972 else
5973 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5974 LIBGFOR_USE_SYMVER_GNU_FALSE=
5977 if test "x$gfortran_use_symver" = xsun; then
5978 LIBGFOR_USE_SYMVER_SUN_TRUE=
5979 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5980 else
5981 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5982 LIBGFOR_USE_SYMVER_SUN_FALSE=
5986 # For GPU offloading, not everything in libfortran can be supported.
5987 # Currently, the only target that has this problem is nvptx. The
5988 # following is a (partial) list of features that are unsupportable on
5989 # this particular target:
5990 # * Constructors
5991 # * alloca
5992 # * C library support for I/O, with printf as the one notable exception
5993 # * C library support for other features such as signal, environment
5994 # variables, time functions
5996 if test "x${target_cpu}" = xnvptx; then
5997 LIBGFOR_MINIMAL_TRUE=
5998 LIBGFOR_MINIMAL_FALSE='#'
5999 else
6000 LIBGFOR_MINIMAL_TRUE='#'
6001 LIBGFOR_MINIMAL_FALSE=
6005 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6006 # similarly to how libstdc++ does it
6007 ac_test_CFLAGS="${CFLAGS+set}"
6008 ac_save_CFLAGS="$CFLAGS"
6010 # Check for -ffunction-sections -fdata-sections
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6012 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6013 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6018 main ()
6020 int foo;
6022 return 0;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_fdsections=yes
6027 else
6028 ac_fdsections=no
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 if test "$ac_test_CFLAGS" = set; then
6032 CFLAGS="$ac_save_CFLAGS"
6033 else
6034 # this is the suspicious part
6035 CFLAGS=""
6037 if test x"$ac_fdsections" = x"yes"; then
6038 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6041 $as_echo "$ac_fdsections" >&6; }
6044 # Check linker hardware capability support.
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6047 if test "${ac_cv_path_SED+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051 for ac_i in 1 2 3 4 5 6 7; do
6052 ac_script="$ac_script$as_nl$ac_script"
6053 done
6054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055 { ac_script=; unset ac_script;}
6056 if test -z "$SED"; then
6057 ac_path_SED_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_prog in sed gsed; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6067 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6068 # Check for GNU ac_path_SED and select it if it is found.
6069 # Check for GNU $ac_path_SED
6070 case `"$ac_path_SED" --version 2>&1` in
6071 *GNU*)
6072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6074 ac_count=0
6075 $as_echo_n 0123456789 >"conftest.in"
6076 while :
6078 cat "conftest.in" "conftest.in" >"conftest.tmp"
6079 mv "conftest.tmp" "conftest.in"
6080 cp "conftest.in" "conftest.nl"
6081 $as_echo '' >> "conftest.nl"
6082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084 as_fn_arith $ac_count + 1 && ac_count=$as_val
6085 if test $ac_count -gt ${ac_path_SED_max-0}; then
6086 # Best one so far, save it but keep looking for a better one
6087 ac_cv_path_SED="$ac_path_SED"
6088 ac_path_SED_max=$ac_count
6090 # 10*(2^10) chars as input seems more than enough
6091 test $ac_count -gt 10 && break
6092 done
6093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 esac
6096 $ac_path_SED_found && break 3
6097 done
6098 done
6099 done
6100 IFS=$as_save_IFS
6101 if test -z "$ac_cv_path_SED"; then
6102 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6104 else
6105 ac_cv_path_SED=$SED
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6110 $as_echo "$ac_cv_path_SED" >&6; }
6111 SED="$ac_cv_path_SED"
6112 rm -f conftest.sed
6114 test -z "$SED" && SED=sed
6115 Xsed="$SED -e 1s/^X//"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6128 $as_echo_n "checking for fgrep... " >&6; }
6129 if test "${ac_cv_path_FGREP+set}" = set; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6133 then ac_cv_path_FGREP="$GREP -F"
6134 else
6135 if test -z "$FGREP"; then
6136 ac_path_FGREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in fgrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6146 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6147 # Check for GNU ac_path_FGREP and select it if it is found.
6148 # Check for GNU $ac_path_FGREP
6149 case `"$ac_path_FGREP" --version 2>&1` in
6150 *GNU*)
6151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6153 ac_count=0
6154 $as_echo_n 0123456789 >"conftest.in"
6155 while :
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'FGREP' >> "conftest.nl"
6161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 as_fn_arith $ac_count + 1 && ac_count=$as_val
6164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_FGREP="$ac_path_FGREP"
6167 ac_path_FGREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6171 done
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6175 $ac_path_FGREP_found && break 3
6176 done
6177 done
6178 done
6179 IFS=$as_save_IFS
6180 if test -z "$ac_cv_path_FGREP"; then
6181 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6183 else
6184 ac_cv_path_FGREP=$FGREP
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6190 $as_echo "$ac_cv_path_FGREP" >&6; }
6191 FGREP="$ac_cv_path_FGREP"
6194 test -z "$GREP" && GREP=grep
6212 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6213 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6214 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6217 $as_echo_n "checking how to print strings... " >&6; }
6218 # Test print first, because it will be a builtin if present.
6219 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6220 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6221 ECHO='print -r --'
6222 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6223 ECHO='printf %s\n'
6224 else
6225 # Use this function as a fallback that always works.
6226 func_fallback_echo ()
6228 eval 'cat <<_LTECHO_EOF
6230 _LTECHO_EOF'
6232 ECHO='func_fallback_echo'
6235 # func_echo_all arg...
6236 # Invoke $ECHO with all args, space-separated.
6237 func_echo_all ()
6239 $ECHO ""
6242 case "$ECHO" in
6243 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6244 $as_echo "printf" >&6; } ;;
6245 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6246 $as_echo "print -r" >&6; } ;;
6247 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6248 $as_echo "cat" >&6; } ;;
6249 esac
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6269 else
6270 with_gnu_ld=no
6273 ac_prog=ld
6274 if test "$GCC" = yes; then
6275 # Check if gcc -print-prog-name=ld gives a path.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6278 case $host in
6279 *-*-mingw*)
6280 # gcc leaves a trailing carriage return which upsets mingw
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284 esac
6285 case $ac_prog in
6286 # Accept absolute paths.
6287 [\\/]* | ?:[\\/]*)
6288 re_direlt='/[^/][^/]*/\.\./'
6289 # Canonicalize the pathname of ld
6290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6293 done
6294 test -z "$LD" && LD="$ac_prog"
6297 # If it fails, then pretend we aren't using GCC.
6298 ac_prog=ld
6301 # If it is relative, then search for the first ld in PATH.
6302 with_gnu_ld=unknown
6304 esac
6305 elif test "$with_gnu_ld" = yes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6312 if test "${lt_cv_path_LD+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -z "$LD"; then
6316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317 for ac_dir in $PATH; do
6318 IFS="$lt_save_ifs"
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321 lt_cv_path_LD="$ac_dir/$ac_prog"
6322 # Check to see if the program is GNU ld. I'd rather use --version,
6323 # but apparently some variants of GNU ld only accept -v.
6324 # Break only if it was the GNU/non-GNU ld that we prefer.
6325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327 test "$with_gnu_ld" != no && break
6330 test "$with_gnu_ld" != yes && break
6332 esac
6334 done
6335 IFS="$lt_save_ifs"
6336 else
6337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6341 LD="$lt_cv_path_LD"
6342 if test -n "$LD"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6349 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358 lt_cv_prog_gnu_ld=yes
6361 lt_cv_prog_gnu_ld=no
6363 esac
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6378 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6381 ac_save_LDFLAGS="$LDFLAGS"
6382 LDFLAGS="$LFLAGS -mclear-hwcap"
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6385 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6386 if test x$gcc_no_link = xyes; then
6387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6393 main ()
6395 return 0;
6397 return 0;
6399 _ACEOF
6400 if ac_fn_c_try_link "$LINENO"; then :
6401 ac_hwcap_ldflags=yes
6402 else
6403 ac_hwcap_ldflags=no
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6407 if test "$ac_hwcap_ldflags" = "yes"; then
6408 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6411 $as_echo "$ac_hwcap_ldflags" >&6; }
6413 LDFLAGS="$ac_save_LDFLAGS"
6417 if test $ac_hwcap_ldflags != no; then
6418 HAVE_HWCAP_TRUE=
6419 HAVE_HWCAP_FALSE='#'
6420 else
6421 HAVE_HWCAP_TRUE='#'
6422 HAVE_HWCAP_FALSE=
6427 # Find other programs we need.
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}as; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_AS+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$AS"; then
6437 ac_cv_prog_AS="$AS" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_AS="${ac_tool_prefix}as"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 AS=$ac_cv_prog_AS
6457 if test -n "$AS"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6459 $as_echo "$AS" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6467 if test -z "$ac_cv_prog_AS"; then
6468 ac_ct_AS=$AS
6469 # Extract the first word of "as", so it can be a program name with args.
6470 set dummy as; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$ac_ct_AS"; then
6477 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_AS="as"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6490 done
6491 done
6492 IFS=$as_save_IFS
6496 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6497 if test -n "$ac_ct_AS"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6499 $as_echo "$ac_ct_AS" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6505 if test "x$ac_ct_AS" = x; then
6506 AS=""
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514 AS=$ac_ct_AS
6516 else
6517 AS="$ac_cv_prog_AS"
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ar; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_AR+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$AR"; then
6529 ac_cv_prog_AR="$AR" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_AR="${ac_tool_prefix}ar"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 AR=$ac_cv_prog_AR
6549 if test -n "$AR"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6551 $as_echo "$AR" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6559 if test -z "$ac_cv_prog_AR"; then
6560 ac_ct_AR=$AR
6561 # Extract the first word of "ar", so it can be a program name with args.
6562 set dummy ar; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$ac_ct_AR"; then
6569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_AR="ar"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6582 done
6583 done
6584 IFS=$as_save_IFS
6588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6589 if test -n "$ac_ct_AR"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6591 $as_echo "$ac_ct_AR" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6597 if test "x$ac_ct_AR" = x; then
6598 AR=""
6599 else
6600 case $cross_compiling:$ac_tool_warned in
6601 yes:)
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604 ac_tool_warned=yes ;;
6605 esac
6606 AR=$ac_ct_AR
6608 else
6609 AR="$ac_cv_prog_AR"
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$RANLIB"; then
6621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6634 done
6635 done
6636 IFS=$as_save_IFS
6640 RANLIB=$ac_cv_prog_RANLIB
6641 if test -n "$RANLIB"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6643 $as_echo "$RANLIB" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6651 if test -z "$ac_cv_prog_RANLIB"; then
6652 ac_ct_RANLIB=$RANLIB
6653 # Extract the first word of "ranlib", so it can be a program name with args.
6654 set dummy ranlib; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$ac_ct_RANLIB"; then
6661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_ac_ct_RANLIB="ranlib"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6674 done
6675 done
6676 IFS=$as_save_IFS
6680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6681 if test -n "$ac_ct_RANLIB"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6683 $as_echo "$ac_ct_RANLIB" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6689 if test "x$ac_ct_RANLIB" = x; then
6690 RANLIB="ranlib-not-found-in-path-error"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 RANLIB=$ac_ct_RANLIB
6700 else
6701 RANLIB="$ac_cv_prog_RANLIB"
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6705 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6706 set x ${MAKE-make}
6707 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6708 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat >conftest.make <<\_ACEOF
6712 SHELL = /bin/sh
6713 all:
6714 @echo '@@@%%%=$(MAKE)=@@@%%%'
6715 _ACEOF
6716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6718 *@@@%%%=?*=@@@%%%*)
6719 eval ac_cv_prog_make_${ac_make}_set=yes;;
6721 eval ac_cv_prog_make_${ac_make}_set=no;;
6722 esac
6723 rm -f conftest.make
6725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6727 $as_echo "yes" >&6; }
6728 SET_MAKE=
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 SET_MAKE="MAKE=${MAKE-make}"
6737 # Configure libtool
6738 #AC_MSG_NOTICE([====== Starting libtool configuration])
6739 enable_dlopen=yes
6743 case `pwd` in
6744 *\ * | *\ *)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6746 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6747 esac
6751 macro_version='2.2.7a'
6752 macro_revision='1.3134'
6766 ltmain="$ac_aux_dir/ltmain.sh"
6768 # Backslashify metacharacters that are still active within
6769 # double-quoted strings.
6770 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6772 # Same as above, but do not quote variable references.
6773 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6775 # Sed substitution to delay expansion of an escaped shell variable in a
6776 # double_quote_subst'ed string.
6777 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6779 # Sed substitution to delay expansion of an escaped single quote.
6780 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6782 # Sed substitution to avoid accidental globbing in evaled expressions
6783 no_glob_subst='s/\*/\\\*/g'
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6786 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6787 if test "${lt_cv_path_NM+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test -n "$NM"; then
6791 # Let the user override the test.
6792 lt_cv_path_NM="$NM"
6793 else
6794 lt_nm_to_check="${ac_tool_prefix}nm"
6795 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6796 lt_nm_to_check="$lt_nm_to_check nm"
6798 for lt_tmp_nm in $lt_nm_to_check; do
6799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6800 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6801 IFS="$lt_save_ifs"
6802 test -z "$ac_dir" && ac_dir=.
6803 tmp_nm="$ac_dir/$lt_tmp_nm"
6804 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6805 # Check to see if the nm accepts a BSD-compat flag.
6806 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6807 # nm: unknown option "B" ignored
6808 # Tru64's nm complains that /dev/null is an invalid object file
6809 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6810 */dev/null* | *'Invalid file or object type'*)
6811 lt_cv_path_NM="$tmp_nm -B"
6812 break
6815 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6816 */dev/null*)
6817 lt_cv_path_NM="$tmp_nm -p"
6818 break
6821 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6822 continue # so that we can try to find one that supports BSD flags
6824 esac
6826 esac
6828 done
6829 IFS="$lt_save_ifs"
6830 done
6831 : ${lt_cv_path_NM=no}
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6835 $as_echo "$lt_cv_path_NM" >&6; }
6836 if test "$lt_cv_path_NM" != "no"; then
6837 NM="$lt_cv_path_NM"
6838 else
6839 # Didn't find any BSD compatible name lister, look for dumpbin.
6840 if test -n "$DUMPBIN"; then :
6841 # Let the user override the test.
6842 else
6843 if test -n "$ac_tool_prefix"; then
6844 for ac_prog in dumpbin "link -dump"
6846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$DUMPBIN"; then
6854 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6873 DUMPBIN=$ac_cv_prog_DUMPBIN
6874 if test -n "$DUMPBIN"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6876 $as_echo "$DUMPBIN" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6883 test -n "$DUMPBIN" && break
6884 done
6886 if test -z "$DUMPBIN"; then
6887 ac_ct_DUMPBIN=$DUMPBIN
6888 for ac_prog in dumpbin "link -dump"
6890 # Extract the first word of "$ac_prog", so it can be a program name with args.
6891 set dummy $ac_prog; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$ac_ct_DUMPBIN"; then
6898 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6918 if test -n "$ac_ct_DUMPBIN"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6920 $as_echo "$ac_ct_DUMPBIN" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6927 test -n "$ac_ct_DUMPBIN" && break
6928 done
6930 if test "x$ac_ct_DUMPBIN" = x; then
6931 DUMPBIN=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6938 esac
6939 DUMPBIN=$ac_ct_DUMPBIN
6943 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6944 *COFF*)
6945 DUMPBIN="$DUMPBIN -symbols"
6948 DUMPBIN=:
6950 esac
6953 if test "$DUMPBIN" != ":"; then
6954 NM="$DUMPBIN"
6957 test -z "$NM" && NM=nm
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6965 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6966 if test "${lt_cv_nm_interface+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 lt_cv_nm_interface="BSD nm"
6970 echo "int some_variable = 0;" > conftest.$ac_ext
6971 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6972 (eval "$ac_compile" 2>conftest.err)
6973 cat conftest.err >&5
6974 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6975 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6976 cat conftest.err >&5
6977 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6978 cat conftest.out >&5
6979 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6980 lt_cv_nm_interface="MS dumpbin"
6982 rm -f conftest*
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6985 $as_echo "$lt_cv_nm_interface" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6988 $as_echo_n "checking whether ln -s works... " >&6; }
6989 LN_S=$as_ln_s
6990 if test "$LN_S" = "ln -s"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6995 $as_echo "no, using $LN_S" >&6; }
6998 # find the maximum length of command line arguments
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7000 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7001 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7005 teststring="ABCD"
7007 case $build_os in
7008 msdosdjgpp*)
7009 # On DJGPP, this test can blow up pretty badly due to problems in libc
7010 # (any single argument exceeding 2000 bytes causes a buffer overrun
7011 # during glob expansion). Even if it were fixed, the result of this
7012 # check would be larger than it should be.
7013 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7016 gnu*)
7017 # Under GNU Hurd, this test is not required because there is
7018 # no limit to the length of command line arguments.
7019 # Libtool will interpret -1 as no limit whatsoever
7020 lt_cv_sys_max_cmd_len=-1;
7023 cygwin* | mingw* | cegcc*)
7024 # On Win9x/ME, this test blows up -- it succeeds, but takes
7025 # about 5 minutes as the teststring grows exponentially.
7026 # Worse, since 9x/ME are not pre-emptively multitasking,
7027 # you end up with a "frozen" computer, even though with patience
7028 # the test eventually succeeds (with a max line length of 256k).
7029 # Instead, let's just punt: use the minimum linelength reported by
7030 # all of the supported platforms: 8192 (on NT/2K/XP).
7031 lt_cv_sys_max_cmd_len=8192;
7034 mint*)
7035 # On MiNT this can take a long time and run out of memory.
7036 lt_cv_sys_max_cmd_len=8192;
7039 amigaos*)
7040 # On AmigaOS with pdksh, this test takes hours, literally.
7041 # So we just punt and use a minimum line length of 8192.
7042 lt_cv_sys_max_cmd_len=8192;
7045 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7046 # This has been around since 386BSD, at least. Likely further.
7047 if test -x /sbin/sysctl; then
7048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7049 elif test -x /usr/sbin/sysctl; then
7050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7051 else
7052 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7054 # And add a safety zone
7055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7059 interix*)
7060 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7061 lt_cv_sys_max_cmd_len=196608
7064 osf*)
7065 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7066 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7067 # nice to cause kernel panics so lets avoid the loop below.
7068 # First set a reasonable default.
7069 lt_cv_sys_max_cmd_len=16384
7071 if test -x /sbin/sysconfig; then
7072 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7073 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7074 esac
7077 sco3.2v5*)
7078 lt_cv_sys_max_cmd_len=102400
7080 sysv5* | sco5v6* | sysv4.2uw2*)
7081 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7082 if test -n "$kargmax"; then
7083 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7084 else
7085 lt_cv_sys_max_cmd_len=32768
7089 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7090 if test -n "$lt_cv_sys_max_cmd_len"; then
7091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7093 else
7094 # Make teststring a little bigger before we do anything with it.
7095 # a 1K string should be a reasonable start.
7096 for i in 1 2 3 4 5 6 7 8 ; do
7097 teststring=$teststring$teststring
7098 done
7099 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7100 # If test is not a shell built-in, we'll probably end up computing a
7101 # maximum length that is only half of the actual maximum length, but
7102 # we can't tell.
7103 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7104 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7105 test $i != 17 # 1/2 MB should be enough
7107 i=`expr $i + 1`
7108 teststring=$teststring$teststring
7109 done
7110 # Only check the string length outside the loop.
7111 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7112 teststring=
7113 # Add a significant safety factor because C++ compilers can tack on
7114 # massive amounts of additional arguments before passing them to the
7115 # linker. It appears as though 1/2 is a usable value.
7116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7119 esac
7123 if test -n $lt_cv_sys_max_cmd_len ; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7125 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7128 $as_echo "none" >&6; }
7130 max_cmd_len=$lt_cv_sys_max_cmd_len
7137 : ${CP="cp -f"}
7138 : ${MV="mv -f"}
7139 : ${RM="rm -f"}
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7142 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7143 # Try some XSI features
7144 xsi_shell=no
7145 ( _lt_dummy="a/b/c"
7146 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7147 = c,a/b,, \
7148 && eval 'test $(( 1 + 1 )) -eq 2 \
7149 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7150 && xsi_shell=yes
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7152 $as_echo "$xsi_shell" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7156 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7157 lt_shell_append=no
7158 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7159 >/dev/null 2>&1 \
7160 && lt_shell_append=yes
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7162 $as_echo "$lt_shell_append" >&6; }
7165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7166 lt_unset=unset
7167 else
7168 lt_unset=false
7175 # test EBCDIC or ASCII
7176 case `echo X|tr X '\101'` in
7177 A) # ASCII based system
7178 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7179 lt_SP2NL='tr \040 \012'
7180 lt_NL2SP='tr \015\012 \040\040'
7182 *) # EBCDIC based system
7183 lt_SP2NL='tr \100 \n'
7184 lt_NL2SP='tr \r\n \100\100'
7186 esac
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7197 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7198 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_ld_reload_flag='-r'
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7204 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7205 reload_flag=$lt_cv_ld_reload_flag
7206 case $reload_flag in
7207 "" | " "*) ;;
7208 *) reload_flag=" $reload_flag" ;;
7209 esac
7210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7211 case $host_os in
7212 darwin*)
7213 if test "$GCC" = yes; then
7214 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7215 else
7216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7219 esac
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$OBJDUMP"; then
7238 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 OBJDUMP=$ac_cv_prog_OBJDUMP
7258 if test -n "$OBJDUMP"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7260 $as_echo "$OBJDUMP" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7268 if test -z "$ac_cv_prog_OBJDUMP"; then
7269 ac_ct_OBJDUMP=$OBJDUMP
7270 # Extract the first word of "objdump", so it can be a program name with args.
7271 set dummy objdump; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$ac_ct_OBJDUMP"; then
7278 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7291 done
7292 done
7293 IFS=$as_save_IFS
7297 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7298 if test -n "$ac_ct_OBJDUMP"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7300 $as_echo "$ac_ct_OBJDUMP" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7306 if test "x$ac_ct_OBJDUMP" = x; then
7307 OBJDUMP="false"
7308 else
7309 case $cross_compiling:$ac_tool_warned in
7310 yes:)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313 ac_tool_warned=yes ;;
7314 esac
7315 OBJDUMP=$ac_ct_OBJDUMP
7317 else
7318 OBJDUMP="$ac_cv_prog_OBJDUMP"
7321 test -z "$OBJDUMP" && OBJDUMP=objdump
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7332 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7333 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 lt_cv_file_magic_cmd='$MAGIC_CMD'
7337 lt_cv_file_magic_test_file=
7338 lt_cv_deplibs_check_method='unknown'
7339 # Need to set the preceding variable on all platforms that support
7340 # interlibrary dependencies.
7341 # 'none' -- dependencies not supported.
7342 # `unknown' -- same as none, but documents that we really don't know.
7343 # 'pass_all' -- all dependencies passed with no checks.
7344 # 'test_compile' -- check by making test program.
7345 # 'file_magic [[regex]]' -- check by looking for files in library path
7346 # which responds to the $file_magic_cmd with a given extended regex.
7347 # If you have `file' or equivalent on your system and you're not sure
7348 # whether `pass_all' will *always* work, you probably want this one.
7350 case $host_os in
7351 aix[4-9]*)
7352 lt_cv_deplibs_check_method=pass_all
7355 beos*)
7356 lt_cv_deplibs_check_method=pass_all
7359 bsdi[45]*)
7360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7361 lt_cv_file_magic_cmd='/usr/bin/file -L'
7362 lt_cv_file_magic_test_file=/shlib/libc.so
7365 cygwin*)
7366 # func_win32_libid is a shell function defined in ltmain.sh
7367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7368 lt_cv_file_magic_cmd='func_win32_libid'
7371 mingw* | pw32*)
7372 # Base MSYS/MinGW do not provide the 'file' command needed by
7373 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7374 # unless we find 'file', for example because we are cross-compiling.
7375 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7376 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7378 lt_cv_file_magic_cmd='func_win32_libid'
7379 else
7380 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7381 lt_cv_file_magic_cmd='$OBJDUMP -f'
7385 cegcc*)
7386 # use the weaker test based on 'objdump'. See mingw*.
7387 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7388 lt_cv_file_magic_cmd='$OBJDUMP -f'
7391 darwin* | rhapsody*)
7392 lt_cv_deplibs_check_method=pass_all
7395 freebsd* | dragonfly*)
7396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7397 case $host_cpu in
7398 i*86 )
7399 # Not sure whether the presence of OpenBSD here was a mistake.
7400 # Let's accept both of them until this is cleared up.
7401 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7402 lt_cv_file_magic_cmd=/usr/bin/file
7403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7405 esac
7406 else
7407 lt_cv_deplibs_check_method=pass_all
7411 gnu*)
7412 lt_cv_deplibs_check_method=pass_all
7415 haiku*)
7416 lt_cv_deplibs_check_method=pass_all
7419 hpux10.20* | hpux11*)
7420 lt_cv_file_magic_cmd=/usr/bin/file
7421 case $host_cpu in
7422 ia64*)
7423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7426 hppa*64*)
7427 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]'
7428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7434 esac
7437 interix[3-9]*)
7438 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7442 irix5* | irix6* | nonstopux*)
7443 case $LD in
7444 *-32|*"-32 ") libmagic=32-bit;;
7445 *-n32|*"-n32 ") libmagic=N32;;
7446 *-64|*"-64 ") libmagic=64-bit;;
7447 *) libmagic=never-match;;
7448 esac
7449 lt_cv_deplibs_check_method=pass_all
7452 # This must be Linux ELF.
7453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7454 lt_cv_deplibs_check_method=pass_all
7457 netbsd*)
7458 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7460 else
7461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7465 newos6*)
7466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7467 lt_cv_file_magic_cmd=/usr/bin/file
7468 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7471 *nto* | *qnx*)
7472 lt_cv_deplibs_check_method=pass_all
7475 openbsd*)
7476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7478 else
7479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7483 osf3* | osf4* | osf5*)
7484 lt_cv_deplibs_check_method=pass_all
7487 rdos*)
7488 lt_cv_deplibs_check_method=pass_all
7491 solaris*)
7492 lt_cv_deplibs_check_method=pass_all
7495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7496 lt_cv_deplibs_check_method=pass_all
7499 sysv4 | sysv4.3*)
7500 case $host_vendor in
7501 motorola)
7502 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]'
7503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7505 ncr)
7506 lt_cv_deplibs_check_method=pass_all
7508 sequent)
7509 lt_cv_file_magic_cmd='/bin/file'
7510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7512 sni)
7513 lt_cv_file_magic_cmd='/bin/file'
7514 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7515 lt_cv_file_magic_test_file=/lib/libc.so
7517 siemens)
7518 lt_cv_deplibs_check_method=pass_all
7521 lt_cv_deplibs_check_method=pass_all
7523 esac
7526 tpf*)
7527 lt_cv_deplibs_check_method=pass_all
7529 esac
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7533 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7534 file_magic_cmd=$lt_cv_file_magic_cmd
7535 deplibs_check_method=$lt_cv_deplibs_check_method
7536 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7549 if test -n "$ac_tool_prefix"; then
7550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}ar; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_AR+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$AR"; then
7558 ac_cv_prog_AR="$AR" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_AR="${ac_tool_prefix}ar"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7577 AR=$ac_cv_prog_AR
7578 if test -n "$AR"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7580 $as_echo "$AR" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7588 if test -z "$ac_cv_prog_AR"; then
7589 ac_ct_AR=$AR
7590 # Extract the first word of "ar", so it can be a program name with args.
7591 set dummy ar; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 if test -n "$ac_ct_AR"; then
7598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_prog_ac_ct_AR="ar"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7618 if test -n "$ac_ct_AR"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7620 $as_echo "$ac_ct_AR" >&6; }
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7626 if test "x$ac_ct_AR" = x; then
7627 AR="false"
7628 else
7629 case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635 AR=$ac_ct_AR
7637 else
7638 AR="$ac_cv_prog_AR"
7641 test -z "$AR" && AR=ar
7642 test -z "$AR_FLAGS" && AR_FLAGS=cru
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}strip; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if test "${ac_cv_prog_STRIP+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 if test -n "$STRIP"; then
7663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7676 done
7677 done
7678 IFS=$as_save_IFS
7682 STRIP=$ac_cv_prog_STRIP
7683 if test -n "$STRIP"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7685 $as_echo "$STRIP" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 if test -z "$ac_cv_prog_STRIP"; then
7694 ac_ct_STRIP=$STRIP
7695 # Extract the first word of "strip", so it can be a program name with args.
7696 set dummy strip; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$ac_ct_STRIP"; then
7703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_ac_ct_STRIP="strip"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7718 IFS=$as_save_IFS
7722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7723 if test -n "$ac_ct_STRIP"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7725 $as_echo "$ac_ct_STRIP" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7731 if test "x$ac_ct_STRIP" = x; then
7732 STRIP=":"
7733 else
7734 case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740 STRIP=$ac_ct_STRIP
7742 else
7743 STRIP="$ac_cv_prog_STRIP"
7746 test -z "$STRIP" && STRIP=:
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$RANLIB"; then
7762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7781 RANLIB=$ac_cv_prog_RANLIB
7782 if test -n "$RANLIB"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7784 $as_echo "$RANLIB" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7792 if test -z "$ac_cv_prog_RANLIB"; then
7793 ac_ct_RANLIB=$RANLIB
7794 # Extract the first word of "ranlib", so it can be a program name with args.
7795 set dummy ranlib; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$ac_ct_RANLIB"; then
7802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_ac_ct_RANLIB="ranlib"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7822 if test -n "$ac_ct_RANLIB"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7824 $as_echo "$ac_ct_RANLIB" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 if test "x$ac_ct_RANLIB" = x; then
7831 RANLIB=":"
7832 else
7833 case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839 RANLIB=$ac_ct_RANLIB
7841 else
7842 RANLIB="$ac_cv_prog_RANLIB"
7845 test -z "$RANLIB" && RANLIB=:
7852 # Determine commands to create old-style static archives.
7853 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7854 old_postinstall_cmds='chmod 644 $oldlib'
7855 old_postuninstall_cmds=
7857 if test -n "$RANLIB"; then
7858 case $host_os in
7859 openbsd*)
7860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7865 esac
7866 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7869 case $host_os in
7870 darwin*)
7871 lock_old_archive_extraction=yes ;;
7873 lock_old_archive_extraction=no ;;
7874 esac
7914 # If no C compiler was specified, use CC.
7915 LTCC=${LTCC-"$CC"}
7917 # If no C compiler flags were specified, use CFLAGS.
7918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7920 # Allow CC to be a program name with arguments.
7921 compiler=$CC
7924 # Check for command to grab the raw symbol name followed by C symbol from nm.
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7926 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7927 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7931 # These are sane defaults that work on at least a few old systems.
7932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7934 # Character class describing NM global symbol codes.
7935 symcode='[BCDEGRST]'
7937 # Regexp to match symbols that can be accessed directly from C.
7938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7940 # Define system-specific variables.
7941 case $host_os in
7942 aix*)
7943 symcode='[BCDT]'
7945 cygwin* | mingw* | pw32* | cegcc*)
7946 symcode='[ABCDGISTW]'
7948 hpux*)
7949 if test "$host_cpu" = ia64; then
7950 symcode='[ABCDEGRST]'
7953 irix* | nonstopux*)
7954 symcode='[BCDEGRST]'
7956 osf*)
7957 symcode='[BCDEGQRST]'
7959 solaris*)
7960 symcode='[BDRT]'
7962 sco3.2v5*)
7963 symcode='[DT]'
7965 sysv4.2uw2*)
7966 symcode='[DT]'
7968 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7969 symcode='[ABDT]'
7971 sysv4)
7972 symcode='[DFNSTU]'
7974 esac
7976 # If we're using GNU nm, then use its standard symbol codes.
7977 case `$NM -V 2>&1` in
7978 *GNU* | *'with BFD'*)
7979 symcode='[ABCDGIRSTW]' ;;
7980 esac
7982 # Transform an extracted symbol line into a proper C declaration.
7983 # Some systems (esp. on ia64) link data and code symbols differently,
7984 # so use this general approach.
7985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7987 # Transform an extracted symbol line into symbol name and symbol address
7988 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7989 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'"
7991 # Handle CRLF in mingw tool chain
7992 opt_cr=
7993 case $build_os in
7994 mingw*)
7995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7997 esac
7999 # Try without a prefix underscore, then with it.
8000 for ac_symprfx in "" "_"; do
8002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8003 symxfrm="\\1 $ac_symprfx\\2 \\2"
8005 # Write the raw and C identifiers.
8006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8007 # Fake it for dumpbin and say T for any non-static function
8008 # and D for any global variable.
8009 # Also find C++ and __fastcall symbols from MSVC++,
8010 # which start with @ or ?.
8011 lt_cv_sys_global_symbol_pipe="$AWK '"\
8012 " {last_section=section; section=\$ 3};"\
8013 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8014 " \$ 0!~/External *\|/{next};"\
8015 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8016 " {if(hide[section]) next};"\
8017 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8018 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8019 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8020 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8021 " ' prfx=^$ac_symprfx"
8022 else
8023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8026 # Check to see that the pipe works correctly.
8027 pipe_works=no
8029 rm -f conftest*
8030 cat > conftest.$ac_ext <<_LT_EOF
8031 #ifdef __cplusplus
8032 extern "C" {
8033 #endif
8034 char nm_test_var;
8035 void nm_test_func(void);
8036 void nm_test_func(void){}
8037 #ifdef __cplusplus
8039 #endif
8040 int main(){nm_test_var='a';nm_test_func();return(0);}
8041 _LT_EOF
8043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8044 (eval $ac_compile) 2>&5
8045 ac_status=$?
8046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8047 test $ac_status = 0; }; then
8048 # Now try to grab the symbols.
8049 nlist=conftest.nm
8050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8051 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8052 ac_status=$?
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; } && test -s "$nlist"; then
8055 # Try sorting and uniquifying the output.
8056 if sort "$nlist" | uniq > "$nlist"T; then
8057 mv -f "$nlist"T "$nlist"
8058 else
8059 rm -f "$nlist"T
8062 # Make sure that we snagged all the symbols we need.
8063 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8064 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8065 cat <<_LT_EOF > conftest.$ac_ext
8066 #ifdef __cplusplus
8067 extern "C" {
8068 #endif
8070 _LT_EOF
8071 # Now generate the symbol file.
8072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8074 cat <<_LT_EOF >> conftest.$ac_ext
8076 /* The mapping between symbol names and symbols. */
8077 const struct {
8078 const char *name;
8079 void *address;
8081 lt__PROGRAM__LTX_preloaded_symbols[] =
8083 { "@PROGRAM@", (void *) 0 },
8084 _LT_EOF
8085 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8086 cat <<\_LT_EOF >> conftest.$ac_ext
8087 {0, (void *) 0}
8090 /* This works around a problem in FreeBSD linker */
8091 #ifdef FREEBSD_WORKAROUND
8092 static const void *lt_preloaded_setup() {
8093 return lt__PROGRAM__LTX_preloaded_symbols;
8095 #endif
8097 #ifdef __cplusplus
8099 #endif
8100 _LT_EOF
8101 # Now try linking the two files.
8102 mv conftest.$ac_objext conftstm.$ac_objext
8103 lt_save_LIBS="$LIBS"
8104 lt_save_CFLAGS="$CFLAGS"
8105 LIBS="conftstm.$ac_objext"
8106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8108 (eval $ac_link) 2>&5
8109 ac_status=$?
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8112 pipe_works=yes
8114 LIBS="$lt_save_LIBS"
8115 CFLAGS="$lt_save_CFLAGS"
8116 else
8117 echo "cannot find nm_test_func in $nlist" >&5
8119 else
8120 echo "cannot find nm_test_var in $nlist" >&5
8122 else
8123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8125 else
8126 echo "$progname: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8129 rm -rf conftest* conftst*
8131 # Do not use the global_symbol_pipe unless it works.
8132 if test "$pipe_works" = yes; then
8133 break
8134 else
8135 lt_cv_sys_global_symbol_pipe=
8137 done
8141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8142 lt_cv_sys_global_symbol_to_cdecl=
8144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8146 $as_echo "failed" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8149 $as_echo "ok" >&6; }
8173 # Check whether --enable-libtool-lock was given.
8174 if test "${enable_libtool_lock+set}" = set; then :
8175 enableval=$enable_libtool_lock;
8178 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8180 # Some flags need to be propagated to the compiler or linker for good
8181 # libtool support.
8182 case $host in
8183 ia64-*-hpux*)
8184 # Find out which ABI we are using.
8185 echo 'int i;' > conftest.$ac_ext
8186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8187 (eval $ac_compile) 2>&5
8188 ac_status=$?
8189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8190 test $ac_status = 0; }; then
8191 case `/usr/bin/file conftest.$ac_objext` in
8192 *ELF-32*)
8193 HPUX_IA64_MODE="32"
8195 *ELF-64*)
8196 HPUX_IA64_MODE="64"
8198 esac
8200 rm -rf conftest*
8202 *-*-irix6*)
8203 # Find out which ABI we are using.
8204 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8206 (eval $ac_compile) 2>&5
8207 ac_status=$?
8208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8209 test $ac_status = 0; }; then
8210 if test "$lt_cv_prog_gnu_ld" = yes; then
8211 case `/usr/bin/file conftest.$ac_objext` in
8212 *32-bit*)
8213 LD="${LD-ld} -melf32bsmip"
8215 *N32*)
8216 LD="${LD-ld} -melf32bmipn32"
8218 *64-bit*)
8219 LD="${LD-ld} -melf64bmip"
8221 esac
8222 else
8223 case `/usr/bin/file conftest.$ac_objext` in
8224 *32-bit*)
8225 LD="${LD-ld} -32"
8227 *N32*)
8228 LD="${LD-ld} -n32"
8230 *64-bit*)
8231 LD="${LD-ld} -64"
8233 esac
8236 rm -rf conftest*
8239 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8240 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8241 # Find out which ABI we are using.
8242 echo 'int i;' > conftest.$ac_ext
8243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8244 (eval $ac_compile) 2>&5
8245 ac_status=$?
8246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8247 test $ac_status = 0; }; then
8248 case `/usr/bin/file conftest.o` in
8249 *32-bit*)
8250 case $host in
8251 x86_64-*kfreebsd*-gnu)
8252 LD="${LD-ld} -m elf_i386_fbsd"
8254 x86_64-*linux*)
8255 case `/usr/bin/file conftest.o` in
8256 *x86-64*)
8257 LD="${LD-ld} -m elf32_x86_64"
8260 LD="${LD-ld} -m elf_i386"
8262 esac
8264 powerpc64le-*linux*)
8265 LD="${LD-ld} -m elf32lppclinux"
8267 powerpc64-*linux*)
8268 LD="${LD-ld} -m elf32ppclinux"
8270 s390x-*linux*)
8271 LD="${LD-ld} -m elf_s390"
8273 sparc64-*linux*)
8274 LD="${LD-ld} -m elf32_sparc"
8276 esac
8278 *64-bit*)
8279 case $host in
8280 x86_64-*kfreebsd*-gnu)
8281 LD="${LD-ld} -m elf_x86_64_fbsd"
8283 x86_64-*linux*)
8284 LD="${LD-ld} -m elf_x86_64"
8286 powerpcle-*linux*)
8287 LD="${LD-ld} -m elf64lppc"
8289 powerpc-*linux*)
8290 LD="${LD-ld} -m elf64ppc"
8292 s390*-*linux*|s390*-*tpf*)
8293 LD="${LD-ld} -m elf64_s390"
8295 sparc*-*linux*)
8296 LD="${LD-ld} -m elf64_sparc"
8298 esac
8300 esac
8302 rm -rf conftest*
8305 *-*-sco3.2v5*)
8306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8307 SAVE_CFLAGS="$CFLAGS"
8308 CFLAGS="$CFLAGS -belf"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8310 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8311 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 if test x$gcc_no_link = xyes; then
8321 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8327 main ()
8331 return 0;
8333 _ACEOF
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 lt_cv_cc_needs_belf=yes
8336 else
8337 lt_cv_cc_needs_belf=no
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 ac_ext=c
8342 ac_cpp='$CPP $CPPFLAGS'
8343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8349 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8350 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8352 CFLAGS="$SAVE_CFLAGS"
8355 sparc*-*solaris*)
8356 # Find out which ABI we are using.
8357 echo 'int i;' > conftest.$ac_ext
8358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8359 (eval $ac_compile) 2>&5
8360 ac_status=$?
8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
8363 case `/usr/bin/file conftest.o` in
8364 *64-bit*)
8365 case $lt_cv_prog_gnu_ld in
8366 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8368 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8369 LD="${LD-ld} -64"
8372 esac
8374 esac
8376 rm -rf conftest*
8378 esac
8380 need_locks="$enable_libtool_lock"
8383 case $host_os in
8384 rhapsody* | darwin*)
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$DSYMUTIL"; then
8394 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8413 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8414 if test -n "$DSYMUTIL"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8416 $as_echo "$DSYMUTIL" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_prog_DSYMUTIL"; then
8425 ac_ct_DSYMUTIL=$DSYMUTIL
8426 # Extract the first word of "dsymutil", so it can be a program name with args.
8427 set dummy dsymutil; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$ac_ct_DSYMUTIL"; then
8434 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8453 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8454 if test -n "$ac_ct_DSYMUTIL"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8456 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8462 if test "x$ac_ct_DSYMUTIL" = x; then
8463 DSYMUTIL=":"
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471 DSYMUTIL=$ac_ct_DSYMUTIL
8473 else
8474 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 if test -n "$NMEDIT"; then
8486 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8499 done
8500 done
8501 IFS=$as_save_IFS
8505 NMEDIT=$ac_cv_prog_NMEDIT
8506 if test -n "$NMEDIT"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8508 $as_echo "$NMEDIT" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 if test -z "$ac_cv_prog_NMEDIT"; then
8517 ac_ct_NMEDIT=$NMEDIT
8518 # Extract the first word of "nmedit", so it can be a program name with args.
8519 set dummy nmedit; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$ac_ct_NMEDIT"; then
8526 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8546 if test -n "$ac_ct_NMEDIT"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8548 $as_echo "$ac_ct_NMEDIT" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8554 if test "x$ac_ct_NMEDIT" = x; then
8555 NMEDIT=":"
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563 NMEDIT=$ac_ct_NMEDIT
8565 else
8566 NMEDIT="$ac_cv_prog_NMEDIT"
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_LIPO+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 if test -n "$LIPO"; then
8578 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8591 done
8592 done
8593 IFS=$as_save_IFS
8597 LIPO=$ac_cv_prog_LIPO
8598 if test -n "$LIPO"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8600 $as_echo "$LIPO" >&6; }
8601 else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8608 if test -z "$ac_cv_prog_LIPO"; then
8609 ac_ct_LIPO=$LIPO
8610 # Extract the first word of "lipo", so it can be a program name with args.
8611 set dummy lipo; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$ac_ct_LIPO"; then
8618 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_LIPO="lipo"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8638 if test -n "$ac_ct_LIPO"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8640 $as_echo "$ac_ct_LIPO" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 if test "x$ac_ct_LIPO" = x; then
8647 LIPO=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655 LIPO=$ac_ct_LIPO
8657 else
8658 LIPO="$ac_cv_prog_LIPO"
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}otool; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 if test -n "$OTOOL"; then
8670 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8683 done
8684 done
8685 IFS=$as_save_IFS
8689 OTOOL=$ac_cv_prog_OTOOL
8690 if test -n "$OTOOL"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8692 $as_echo "$OTOOL" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8700 if test -z "$ac_cv_prog_OTOOL"; then
8701 ac_ct_OTOOL=$OTOOL
8702 # Extract the first word of "otool", so it can be a program name with args.
8703 set dummy otool; ac_word=$2
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 if test -n "$ac_ct_OTOOL"; then
8710 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_ac_ct_OTOOL="otool"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8723 done
8724 done
8725 IFS=$as_save_IFS
8729 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8730 if test -n "$ac_ct_OTOOL"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8732 $as_echo "$ac_ct_OTOOL" >&6; }
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8738 if test "x$ac_ct_OTOOL" = x; then
8739 OTOOL=":"
8740 else
8741 case $cross_compiling:$ac_tool_warned in
8742 yes:)
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745 ac_tool_warned=yes ;;
8746 esac
8747 OTOOL=$ac_ct_OTOOL
8749 else
8750 OTOOL="$ac_cv_prog_OTOOL"
8753 if test -n "$ac_tool_prefix"; then
8754 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8755 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 if test -n "$OTOOL64"; then
8762 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8775 done
8776 done
8777 IFS=$as_save_IFS
8781 OTOOL64=$ac_cv_prog_OTOOL64
8782 if test -n "$OTOOL64"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8784 $as_echo "$OTOOL64" >&6; }
8785 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8792 if test -z "$ac_cv_prog_OTOOL64"; then
8793 ac_ct_OTOOL64=$OTOOL64
8794 # Extract the first word of "otool64", so it can be a program name with args.
8795 set dummy otool64; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 if test -n "$ac_ct_OTOOL64"; then
8802 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_ac_ct_OTOOL64="otool64"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8815 done
8816 done
8817 IFS=$as_save_IFS
8821 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8822 if test -n "$ac_ct_OTOOL64"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8824 $as_echo "$ac_ct_OTOOL64" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8830 if test "x$ac_ct_OTOOL64" = x; then
8831 OTOOL64=":"
8832 else
8833 case $cross_compiling:$ac_tool_warned in
8834 yes:)
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8837 ac_tool_warned=yes ;;
8838 esac
8839 OTOOL64=$ac_ct_OTOOL64
8841 else
8842 OTOOL64="$ac_cv_prog_OTOOL64"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8872 $as_echo_n "checking for -single_module linker flag... " >&6; }
8873 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_apple_cc_single_mod=no
8877 if test -z "${LT_MULTI_MODULE}"; then
8878 # By default we will add the -single_module flag. You can override
8879 # by either setting the environment variable LT_MULTI_MODULE
8880 # non-empty at configure time, or by adding -multi_module to the
8881 # link flags.
8882 rm -rf libconftest.dylib*
8883 echo "int foo(void){return 1;}" > conftest.c
8884 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8885 -dynamiclib -Wl,-single_module conftest.c" >&5
8886 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8887 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8888 _lt_result=$?
8889 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8890 lt_cv_apple_cc_single_mod=yes
8891 else
8892 cat conftest.err >&5
8894 rm -rf libconftest.dylib*
8895 rm -f conftest.*
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8899 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8901 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8902 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 lt_cv_ld_exported_symbols_list=no
8906 save_LDFLAGS=$LDFLAGS
8907 echo "_main" > conftest.sym
8908 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8909 if test x$gcc_no_link = xyes; then
8910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8916 main ()
8920 return 0;
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 lt_cv_ld_exported_symbols_list=yes
8925 else
8926 lt_cv_ld_exported_symbols_list=no
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 LDFLAGS="$save_LDFLAGS"
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8934 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8936 $as_echo_n "checking for -force_load linker flag... " >&6; }
8937 if test "${lt_cv_ld_force_load+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 lt_cv_ld_force_load=no
8941 cat > conftest.c << _LT_EOF
8942 int forced_loaded() { return 2;}
8943 _LT_EOF
8944 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8945 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8946 echo "$AR cru libconftest.a conftest.o" >&5
8947 $AR cru libconftest.a conftest.o 2>&5
8948 cat > conftest.c << _LT_EOF
8949 int main() { return 0;}
8950 _LT_EOF
8951 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8952 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8953 _lt_result=$?
8954 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8955 lt_cv_ld_force_load=yes
8956 else
8957 cat conftest.err >&5
8959 rm -f conftest.err libconftest.a conftest conftest.c
8960 rm -rf conftest.dSYM
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8964 $as_echo "$lt_cv_ld_force_load" >&6; }
8965 case $host_os in
8966 rhapsody* | darwin1.[012])
8967 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8968 darwin1.*)
8969 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8970 darwin*) # darwin 5.x on
8971 # if running on 10.5 or later, the deployment target defaults
8972 # to the OS version, if on x86, and 10.4, the deployment
8973 # target defaults to 10.4. Don't you love it?
8974 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8975 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8976 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8977 10.[012][,.]*)
8978 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8979 10.*)
8980 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8981 esac
8983 esac
8984 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8985 _lt_dar_single_mod='$single_module'
8987 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8988 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8989 else
8990 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8992 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8993 _lt_dsymutil='~$DSYMUTIL $lib || :'
8994 else
8995 _lt_dsymutil=
8998 esac
9000 for ac_header in dlfcn.h
9001 do :
9002 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9004 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9005 cat >>confdefs.h <<_ACEOF
9006 #define HAVE_DLFCN_H 1
9007 _ACEOF
9011 done
9017 # Set options
9022 enable_win32_dll=no
9025 # Check whether --enable-shared was given.
9026 if test "${enable_shared+set}" = set; then :
9027 enableval=$enable_shared; p=${PACKAGE-default}
9028 case $enableval in
9029 yes) enable_shared=yes ;;
9030 no) enable_shared=no ;;
9032 enable_shared=no
9033 # Look at the argument we got. We use all the common list separators.
9034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035 for pkg in $enableval; do
9036 IFS="$lt_save_ifs"
9037 if test "X$pkg" = "X$p"; then
9038 enable_shared=yes
9040 done
9041 IFS="$lt_save_ifs"
9043 esac
9044 else
9045 enable_shared=yes
9056 # Check whether --enable-static was given.
9057 if test "${enable_static+set}" = set; then :
9058 enableval=$enable_static; p=${PACKAGE-default}
9059 case $enableval in
9060 yes) enable_static=yes ;;
9061 no) enable_static=no ;;
9063 enable_static=no
9064 # Look at the argument we got. We use all the common list separators.
9065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9066 for pkg in $enableval; do
9067 IFS="$lt_save_ifs"
9068 if test "X$pkg" = "X$p"; then
9069 enable_static=yes
9071 done
9072 IFS="$lt_save_ifs"
9074 esac
9075 else
9076 enable_static=yes
9088 # Check whether --with-pic was given.
9089 if test "${with_pic+set}" = set; then :
9090 withval=$with_pic; pic_mode="$withval"
9091 else
9092 pic_mode=default
9096 test -z "$pic_mode" && pic_mode=default
9104 # Check whether --enable-fast-install was given.
9105 if test "${enable_fast_install+set}" = set; then :
9106 enableval=$enable_fast_install; p=${PACKAGE-default}
9107 case $enableval in
9108 yes) enable_fast_install=yes ;;
9109 no) enable_fast_install=no ;;
9111 enable_fast_install=no
9112 # Look at the argument we got. We use all the common list separators.
9113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9114 for pkg in $enableval; do
9115 IFS="$lt_save_ifs"
9116 if test "X$pkg" = "X$p"; then
9117 enable_fast_install=yes
9119 done
9120 IFS="$lt_save_ifs"
9122 esac
9123 else
9124 enable_fast_install=yes
9137 # This can be used to rebuild libtool when needed
9138 LIBTOOL_DEPS="$ltmain"
9140 # Always use our own libtool.
9141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9168 test -z "$LN_S" && LN_S="ln -s"
9183 if test -n "${ZSH_VERSION+set}" ; then
9184 setopt NO_GLOB_SUBST
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9188 $as_echo_n "checking for objdir... " >&6; }
9189 if test "${lt_cv_objdir+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 rm -f .libs 2>/dev/null
9193 mkdir .libs 2>/dev/null
9194 if test -d .libs; then
9195 lt_cv_objdir=.libs
9196 else
9197 # MS-DOS does not allow filenames that begin with a dot.
9198 lt_cv_objdir=_libs
9200 rmdir .libs 2>/dev/null
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9203 $as_echo "$lt_cv_objdir" >&6; }
9204 objdir=$lt_cv_objdir
9210 cat >>confdefs.h <<_ACEOF
9211 #define LT_OBJDIR "$lt_cv_objdir/"
9212 _ACEOF
9217 case $host_os in
9218 aix3*)
9219 # AIX sometimes has problems with the GCC collect2 program. For some
9220 # reason, if we set the COLLECT_NAMES environment variable, the problems
9221 # vanish in a puff of smoke.
9222 if test "X${COLLECT_NAMES+set}" != Xset; then
9223 COLLECT_NAMES=
9224 export COLLECT_NAMES
9227 esac
9229 # Global variables:
9230 ofile=libtool
9231 can_build_shared=yes
9233 # All known linkers require a `.a' archive for static linking (except MSVC,
9234 # which needs '.lib').
9235 libext=a
9237 with_gnu_ld="$lt_cv_prog_gnu_ld"
9239 old_CC="$CC"
9240 old_CFLAGS="$CFLAGS"
9242 # Set sane defaults for various variables
9243 test -z "$CC" && CC=cc
9244 test -z "$LTCC" && LTCC=$CC
9245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9246 test -z "$LD" && LD=ld
9247 test -z "$ac_objext" && ac_objext=o
9249 for cc_temp in $compiler""; do
9250 case $cc_temp in
9251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9253 \-*) ;;
9254 *) break;;
9255 esac
9256 done
9257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9260 # Only perform the check for file, if the check method requires it
9261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9262 case $deplibs_check_method in
9263 file_magic*)
9264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 case $MAGIC_CMD in
9271 [\\/*] | ?:[\\/]*)
9272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9275 lt_save_MAGIC_CMD="$MAGIC_CMD"
9276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9278 for ac_dir in $ac_dummy; do
9279 IFS="$lt_save_ifs"
9280 test -z "$ac_dir" && ac_dir=.
9281 if test -f $ac_dir/${ac_tool_prefix}file; then
9282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9283 if test -n "$file_magic_test_file"; then
9284 case $deplibs_check_method in
9285 "file_magic "*)
9286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9289 $EGREP "$file_magic_regex" > /dev/null; then
9291 else
9292 cat <<_LT_EOF 1>&2
9294 *** Warning: the command libtool uses to detect shared libraries,
9295 *** $file_magic_cmd, produces output that libtool cannot recognize.
9296 *** The result is that libtool may fail to recognize shared libraries
9297 *** as such. This will affect the creation of libtool libraries that
9298 *** depend on shared libraries, but programs linked with such libtool
9299 *** libraries will work regardless of this problem. Nevertheless, you
9300 *** may want to report the problem to your system manager and/or to
9301 *** bug-libtool@gnu.org
9303 _LT_EOF
9304 fi ;;
9305 esac
9307 break
9309 done
9310 IFS="$lt_save_ifs"
9311 MAGIC_CMD="$lt_save_MAGIC_CMD"
9313 esac
9316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9317 if test -n "$MAGIC_CMD"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9319 $as_echo "$MAGIC_CMD" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9329 if test -z "$lt_cv_path_MAGIC_CMD"; then
9330 if test -n "$ac_tool_prefix"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9332 $as_echo_n "checking for file... " >&6; }
9333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 case $MAGIC_CMD in
9337 [\\/*] | ?:[\\/]*)
9338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9341 lt_save_MAGIC_CMD="$MAGIC_CMD"
9342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9344 for ac_dir in $ac_dummy; do
9345 IFS="$lt_save_ifs"
9346 test -z "$ac_dir" && ac_dir=.
9347 if test -f $ac_dir/file; then
9348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9349 if test -n "$file_magic_test_file"; then
9350 case $deplibs_check_method in
9351 "file_magic "*)
9352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9355 $EGREP "$file_magic_regex" > /dev/null; then
9357 else
9358 cat <<_LT_EOF 1>&2
9360 *** Warning: the command libtool uses to detect shared libraries,
9361 *** $file_magic_cmd, produces output that libtool cannot recognize.
9362 *** The result is that libtool may fail to recognize shared libraries
9363 *** as such. This will affect the creation of libtool libraries that
9364 *** depend on shared libraries, but programs linked with such libtool
9365 *** libraries will work regardless of this problem. Nevertheless, you
9366 *** may want to report the problem to your system manager and/or to
9367 *** bug-libtool@gnu.org
9369 _LT_EOF
9370 fi ;;
9371 esac
9373 break
9375 done
9376 IFS="$lt_save_ifs"
9377 MAGIC_CMD="$lt_save_MAGIC_CMD"
9379 esac
9382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9383 if test -n "$MAGIC_CMD"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9385 $as_echo "$MAGIC_CMD" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9392 else
9393 MAGIC_CMD=:
9399 esac
9401 # Use C for the default configuration in the libtool script
9403 lt_save_CC="$CC"
9404 ac_ext=c
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9411 # Source file extension for C test sources.
9412 ac_ext=c
9414 # Object file extension for compiled C test sources.
9415 objext=o
9416 objext=$objext
9418 # Code to be used in simple compile tests
9419 lt_simple_compile_test_code="int some_variable = 0;"
9421 # Code to be used in simple link tests
9422 lt_simple_link_test_code='int main(){return(0);}'
9430 # If no C compiler was specified, use CC.
9431 LTCC=${LTCC-"$CC"}
9433 # If no C compiler flags were specified, use CFLAGS.
9434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9436 # Allow CC to be a program name with arguments.
9437 compiler=$CC
9439 # Save the default compiler, since it gets overwritten when the other
9440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9441 compiler_DEFAULT=$CC
9443 # save warnings/boilerplate of simple test code
9444 ac_outfile=conftest.$ac_objext
9445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9447 _lt_compiler_boilerplate=`cat conftest.err`
9448 $RM conftest*
9450 ac_outfile=conftest.$ac_objext
9451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9453 _lt_linker_boilerplate=`cat conftest.err`
9454 $RM -r conftest*
9457 ## CAVEAT EMPTOR:
9458 ## There is no encapsulation within the following macros, do not change
9459 ## the running order or otherwise move them around unless you know exactly
9460 ## what you are doing...
9461 if test -n "$compiler"; then
9463 lt_prog_compiler_no_builtin_flag=
9465 if test "$GCC" = yes; then
9466 case $cc_basename in
9467 nvcc*)
9468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9471 esac
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9475 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 lt_cv_prog_compiler_rtti_exceptions=no
9479 ac_outfile=conftest.$ac_objext
9480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481 lt_compiler_flag="-fno-rtti -fno-exceptions"
9482 # Insert the option either (1) after the last *FLAGS variable, or
9483 # (2) before a word containing "conftest.", or (3) at the end.
9484 # Note that $ac_compile itself does not contain backslashes and begins
9485 # with a dollar sign (not a hyphen), so the echo should work correctly.
9486 # The option is referenced via a variable to avoid confusing sed.
9487 lt_compile=`echo "$ac_compile" | $SED \
9488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490 -e 's:$: $lt_compiler_flag:'`
9491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492 (eval "$lt_compile" 2>conftest.err)
9493 ac_status=$?
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 if (exit $ac_status) && test -s "$ac_outfile"; then
9497 # The compiler can only warn and ignore the option if not recognized
9498 # So say no if there are warnings other than the usual output.
9499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_rtti_exceptions=yes
9505 $RM conftest*
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9513 else
9524 lt_prog_compiler_wl=
9525 lt_prog_compiler_pic=
9526 lt_prog_compiler_static=
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9531 if test "$GCC" = yes; then
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_static='-static'
9535 case $host_os in
9536 aix*)
9537 # All AIX code is PIC.
9538 if test "$host_cpu" = ia64; then
9539 # AIX 5 now supports IA64 processor
9540 lt_prog_compiler_static='-Bstatic'
9542 lt_prog_compiler_pic='-fPIC'
9545 amigaos*)
9546 case $host_cpu in
9547 powerpc)
9548 # see comment about AmigaOS4 .so support
9549 lt_prog_compiler_pic='-fPIC'
9551 m68k)
9552 # FIXME: we need at least 68020 code to build shared libraries, but
9553 # adding the `-m68020' flag to GCC prevents building anything better,
9554 # like `-m68040'.
9555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9557 esac
9560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9561 # PIC is the default for these OSes.
9564 mingw* | cygwin* | pw32* | os2* | cegcc*)
9565 # This hack is so that the source file can tell whether it is being
9566 # built for inclusion in a dll (and should export symbols for example).
9567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9568 # (--disable-auto-import) libraries
9569 lt_prog_compiler_pic='-DDLL_EXPORT'
9572 darwin* | rhapsody*)
9573 # PIC is the default on this platform
9574 # Common symbols not allowed in MH_DYLIB files
9575 lt_prog_compiler_pic='-fno-common'
9578 haiku*)
9579 # PIC is the default for Haiku.
9580 # The "-static" flag exists, but is broken.
9581 lt_prog_compiler_static=
9584 hpux*)
9585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9587 # sets the default TLS model and affects inlining.
9588 case $host_cpu in
9589 hppa*64*)
9590 # +Z the default
9593 lt_prog_compiler_pic='-fPIC'
9595 esac
9598 interix[3-9]*)
9599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9600 # Instead, we relocate shared libraries at runtime.
9603 msdosdjgpp*)
9604 # Just because we use GCC doesn't mean we suddenly get shared libraries
9605 # on systems that don't support them.
9606 lt_prog_compiler_can_build_shared=no
9607 enable_shared=no
9610 *nto* | *qnx*)
9611 # QNX uses GNU C++, but need to define -shared option too, otherwise
9612 # it will coredump.
9613 lt_prog_compiler_pic='-fPIC -shared'
9616 sysv4*MP*)
9617 if test -d /usr/nec; then
9618 lt_prog_compiler_pic=-Kconform_pic
9623 lt_prog_compiler_pic='-fPIC'
9625 esac
9627 case $cc_basename in
9628 nvcc*) # Cuda Compiler Driver 2.2
9629 lt_prog_compiler_wl='-Xlinker '
9630 lt_prog_compiler_pic='-Xcompiler -fPIC'
9632 esac
9633 else
9634 # PORTME Check for flag to pass linker flags through the system compiler.
9635 case $host_os in
9636 aix*)
9637 lt_prog_compiler_wl='-Wl,'
9638 if test "$host_cpu" = ia64; then
9639 # AIX 5 now supports IA64 processor
9640 lt_prog_compiler_static='-Bstatic'
9641 else
9642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9646 mingw* | cygwin* | pw32* | os2* | cegcc*)
9647 # This hack is so that the source file can tell whether it is being
9648 # built for inclusion in a dll (and should export symbols for example).
9649 lt_prog_compiler_pic='-DDLL_EXPORT'
9652 hpux9* | hpux10* | hpux11*)
9653 lt_prog_compiler_wl='-Wl,'
9654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9655 # not for PA HP-UX.
9656 case $host_cpu in
9657 hppa*64*|ia64*)
9658 # +Z the default
9661 lt_prog_compiler_pic='+Z'
9663 esac
9664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9665 lt_prog_compiler_static='${wl}-a ${wl}archive'
9668 irix5* | irix6* | nonstopux*)
9669 lt_prog_compiler_wl='-Wl,'
9670 # PIC (with -KPIC) is the default.
9671 lt_prog_compiler_static='-non_shared'
9674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9675 case $cc_basename in
9676 # old Intel for x86_64 which still supported -KPIC.
9677 ecc*)
9678 lt_prog_compiler_wl='-Wl,'
9679 lt_prog_compiler_pic='-KPIC'
9680 lt_prog_compiler_static='-static'
9682 # icc used to be incompatible with GCC.
9683 # ICC 10 doesn't accept -KPIC any more.
9684 icc* | ifort*)
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-fPIC'
9687 lt_prog_compiler_static='-static'
9689 # Lahey Fortran 8.1.
9690 lf95*)
9691 lt_prog_compiler_wl='-Wl,'
9692 lt_prog_compiler_pic='--shared'
9693 lt_prog_compiler_static='--static'
9695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9696 # Portland Group compilers (*not* the Pentium gcc compiler,
9697 # which looks to be a dead project)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='-fpic'
9700 lt_prog_compiler_static='-Bstatic'
9702 ccc*)
9703 lt_prog_compiler_wl='-Wl,'
9704 # All Alpha code is PIC.
9705 lt_prog_compiler_static='-non_shared'
9707 xl* | bgxl* | bgf* | mpixl*)
9708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-qpic'
9711 lt_prog_compiler_static='-qstaticlink'
9714 case `$CC -V 2>&1 | sed 5q` in
9715 *Sun\ F* | *Sun*Fortran*)
9716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9717 lt_prog_compiler_pic='-KPIC'
9718 lt_prog_compiler_static='-Bstatic'
9719 lt_prog_compiler_wl=''
9721 *Sun\ C*)
9722 # Sun C 5.9
9723 lt_prog_compiler_pic='-KPIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 lt_prog_compiler_wl='-Wl,'
9727 esac
9729 esac
9732 newsos6)
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9737 *nto* | *qnx*)
9738 # QNX uses GNU C++, but need to define -shared option too, otherwise
9739 # it will coredump.
9740 lt_prog_compiler_pic='-fPIC -shared'
9743 osf3* | osf4* | osf5*)
9744 lt_prog_compiler_wl='-Wl,'
9745 # All OSF/1 code is PIC.
9746 lt_prog_compiler_static='-non_shared'
9749 rdos*)
9750 lt_prog_compiler_static='-non_shared'
9753 solaris*)
9754 lt_prog_compiler_pic='-KPIC'
9755 lt_prog_compiler_static='-Bstatic'
9756 case $cc_basename in
9757 f77* | f90* | f95*)
9758 lt_prog_compiler_wl='-Qoption ld ';;
9760 lt_prog_compiler_wl='-Wl,';;
9761 esac
9764 sunos4*)
9765 lt_prog_compiler_wl='-Qoption ld '
9766 lt_prog_compiler_pic='-PIC'
9767 lt_prog_compiler_static='-Bstatic'
9770 sysv4 | sysv4.2uw2* | sysv4.3*)
9771 lt_prog_compiler_wl='-Wl,'
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9776 sysv4*MP*)
9777 if test -d /usr/nec ;then
9778 lt_prog_compiler_pic='-Kconform_pic'
9779 lt_prog_compiler_static='-Bstatic'
9783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9784 lt_prog_compiler_wl='-Wl,'
9785 lt_prog_compiler_pic='-KPIC'
9786 lt_prog_compiler_static='-Bstatic'
9789 unicos*)
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_can_build_shared=no
9794 uts4*)
9795 lt_prog_compiler_pic='-pic'
9796 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_can_build_shared=no
9802 esac
9805 case $host_os in
9806 # For platforms which do not support PIC, -DPIC is meaningless:
9807 *djgpp*)
9808 lt_prog_compiler_pic=
9811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9813 esac
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9815 $as_echo "$lt_prog_compiler_pic" >&6; }
9823 # Check to make sure the PIC flag actually works.
9825 if test -n "$lt_prog_compiler_pic"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9828 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 lt_cv_prog_compiler_pic_works=no
9832 ac_outfile=conftest.$ac_objext
9833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9835 # Insert the option either (1) after the last *FLAGS variable, or
9836 # (2) before a word containing "conftest.", or (3) at the end.
9837 # Note that $ac_compile itself does not contain backslashes and begins
9838 # with a dollar sign (not a hyphen), so the echo should work correctly.
9839 # The option is referenced via a variable to avoid confusing sed.
9840 lt_compile=`echo "$ac_compile" | $SED \
9841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9843 -e 's:$: $lt_compiler_flag:'`
9844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9845 (eval "$lt_compile" 2>conftest.err)
9846 ac_status=$?
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 if (exit $ac_status) && test -s "$ac_outfile"; then
9850 # The compiler can only warn and ignore the option if not recognized
9851 # So say no if there are warnings other than the usual output.
9852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9855 lt_cv_prog_compiler_pic_works=yes
9858 $RM conftest*
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9865 case $lt_prog_compiler_pic in
9866 "" | " "*) ;;
9867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9868 esac
9869 else
9870 lt_prog_compiler_pic=
9871 lt_prog_compiler_can_build_shared=no
9882 # Check to make sure the static flag actually works.
9884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9887 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 lt_cv_prog_compiler_static_works=no
9891 save_LDFLAGS="$LDFLAGS"
9892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9895 # The linker can only warn and ignore the option if not recognized
9896 # So say no if there are warnings
9897 if test -s conftest.err; then
9898 # Append any errors to the config.log.
9899 cat conftest.err 1>&5
9900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902 if diff conftest.exp conftest.er2 >/dev/null; then
9903 lt_cv_prog_compiler_static_works=yes
9905 else
9906 lt_cv_prog_compiler_static_works=yes
9909 $RM -r conftest*
9910 LDFLAGS="$save_LDFLAGS"
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9918 else
9919 lt_prog_compiler_static=
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 lt_cv_prog_compiler_c_o=no
9934 $RM -r conftest 2>/dev/null
9935 mkdir conftest
9936 cd conftest
9937 mkdir out
9938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9940 lt_compiler_flag="-o out/conftest2.$ac_objext"
9941 # Insert the option either (1) after the last *FLAGS variable, or
9942 # (2) before a word containing "conftest.", or (3) at the end.
9943 # Note that $ac_compile itself does not contain backslashes and begins
9944 # with a dollar sign (not a hyphen), so the echo should work correctly.
9945 lt_compile=`echo "$ac_compile" | $SED \
9946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9948 -e 's:$: $lt_compiler_flag:'`
9949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9950 (eval "$lt_compile" 2>out/conftest.err)
9951 ac_status=$?
9952 cat out/conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9955 then
9956 # The compiler can only warn and ignore the option if not recognized
9957 # So say no if there are warnings
9958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9961 lt_cv_prog_compiler_c_o=yes
9964 chmod u+w . 2>&5
9965 $RM conftest*
9966 # SGI C++ compiler will create directory out/ii_files/ for
9967 # template instantiation
9968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9969 $RM out/* && rmdir out
9970 cd ..
9971 $RM -r conftest
9972 $RM conftest*
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 lt_cv_prog_compiler_c_o=no
9989 $RM -r conftest 2>/dev/null
9990 mkdir conftest
9991 cd conftest
9992 mkdir out
9993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9995 lt_compiler_flag="-o out/conftest2.$ac_objext"
9996 # Insert the option either (1) after the last *FLAGS variable, or
9997 # (2) before a word containing "conftest.", or (3) at the end.
9998 # Note that $ac_compile itself does not contain backslashes and begins
9999 # with a dollar sign (not a hyphen), so the echo should work correctly.
10000 lt_compile=`echo "$ac_compile" | $SED \
10001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10003 -e 's:$: $lt_compiler_flag:'`
10004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10005 (eval "$lt_compile" 2>out/conftest.err)
10006 ac_status=$?
10007 cat out/conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10010 then
10011 # The compiler can only warn and ignore the option if not recognized
10012 # So say no if there are warnings
10013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10016 lt_cv_prog_compiler_c_o=yes
10019 chmod u+w . 2>&5
10020 $RM conftest*
10021 # SGI C++ compiler will create directory out/ii_files/ for
10022 # template instantiation
10023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10024 $RM out/* && rmdir out
10025 cd ..
10026 $RM -r conftest
10027 $RM conftest*
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10036 hard_links="nottested"
10037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10038 # do not overwrite the value of need_locks provided by the user
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10040 $as_echo_n "checking if we can lock with hard links... " >&6; }
10041 hard_links=yes
10042 $RM conftest*
10043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10044 touch conftest.a
10045 ln conftest.a conftest.b 2>&5 || hard_links=no
10046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10048 $as_echo "$hard_links" >&6; }
10049 if test "$hard_links" = no; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10052 need_locks=warn
10054 else
10055 need_locks=no
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10066 runpath_var=
10067 allow_undefined_flag=
10068 always_export_symbols=no
10069 archive_cmds=
10070 archive_expsym_cmds=
10071 compiler_needs_object=no
10072 enable_shared_with_static_runtimes=no
10073 export_dynamic_flag_spec=
10074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10075 hardcode_automatic=no
10076 hardcode_direct=no
10077 hardcode_direct_absolute=no
10078 hardcode_libdir_flag_spec=
10079 hardcode_libdir_flag_spec_ld=
10080 hardcode_libdir_separator=
10081 hardcode_minus_L=no
10082 hardcode_shlibpath_var=unsupported
10083 inherit_rpath=no
10084 link_all_deplibs=unknown
10085 module_cmds=
10086 module_expsym_cmds=
10087 old_archive_from_new_cmds=
10088 old_archive_from_expsyms_cmds=
10089 thread_safe_flag_spec=
10090 whole_archive_flag_spec=
10091 # include_expsyms should be a list of space-separated symbols to be *always*
10092 # included in the symbol list
10093 include_expsyms=
10094 # exclude_expsyms can be an extended regexp of symbols to exclude
10095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10097 # as well as any symbol that contains `d'.
10098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10100 # platforms (ab)use it in PIC code, but their linkers get confused if
10101 # the symbol is explicitly referenced. Since portable code cannot
10102 # rely on this symbol name, it's probably fine to never include it in
10103 # preloaded symbol tables.
10104 # Exclude shared library initialization/finalization symbols.
10105 extract_expsyms_cmds=
10107 case $host_os in
10108 cygwin* | mingw* | pw32* | cegcc*)
10109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10110 # When not using gcc, we currently assume that we are using
10111 # Microsoft Visual C++.
10112 if test "$GCC" != yes; then
10113 with_gnu_ld=no
10116 interix*)
10117 # we just hope/assume this is gcc and not c89 (= MSVC++)
10118 with_gnu_ld=yes
10120 openbsd*)
10121 with_gnu_ld=no
10123 esac
10125 ld_shlibs=yes
10127 # On some targets, GNU ld is compatible enough with the native linker
10128 # that we're better off using the native interface for both.
10129 lt_use_gnu_ld_interface=no
10130 if test "$with_gnu_ld" = yes; then
10131 case $host_os in
10132 aix*)
10133 # The AIX port of GNU ld has always aspired to compatibility
10134 # with the native linker. However, as the warning in the GNU ld
10135 # block says, versions before 2.19.5* couldn't really create working
10136 # shared libraries, regardless of the interface used.
10137 case `$LD -v 2>&1` in
10138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10142 lt_use_gnu_ld_interface=yes
10144 esac
10147 lt_use_gnu_ld_interface=yes
10149 esac
10152 if test "$lt_use_gnu_ld_interface" = yes; then
10153 # If archive_cmds runs LD, not CC, wlarc should be empty
10154 wlarc='${wl}'
10156 # Set some defaults for GNU ld with shared library support. These
10157 # are reset later if shared libraries are not supported. Putting them
10158 # here allows them to be overridden if necessary.
10159 runpath_var=LD_RUN_PATH
10160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10161 export_dynamic_flag_spec='${wl}--export-dynamic'
10162 # ancient GNU ld didn't support --whole-archive et. al.
10163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10165 else
10166 whole_archive_flag_spec=
10168 supports_anon_versioning=no
10169 case `$LD -v 2>&1` in
10170 *GNU\ gold*) supports_anon_versioning=yes ;;
10171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10174 *\ 2.11.*) ;; # other 2.11 versions
10175 *) supports_anon_versioning=yes ;;
10176 esac
10178 # See if GNU ld supports shared libraries.
10179 case $host_os in
10180 aix[3-9]*)
10181 # On AIX/PPC, the GNU linker is very broken
10182 if test "$host_cpu" != ia64; then
10183 ld_shlibs=no
10184 cat <<_LT_EOF 1>&2
10186 *** Warning: the GNU linker, at least up to release 2.19, is reported
10187 *** to be unable to reliably create shared libraries on AIX.
10188 *** Therefore, libtool is disabling shared libraries support. If you
10189 *** really care for shared libraries, you may want to install binutils
10190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10191 *** You will then need to restart the configuration process.
10193 _LT_EOF
10197 amigaos*)
10198 case $host_cpu in
10199 powerpc)
10200 # see comment about AmigaOS4 .so support
10201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 archive_expsym_cmds=''
10204 m68k)
10205 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)'
10206 hardcode_libdir_flag_spec='-L$libdir'
10207 hardcode_minus_L=yes
10209 esac
10212 beos*)
10213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10214 allow_undefined_flag=unsupported
10215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10216 # support --undefined. This deserves some investigation. FIXME
10217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10218 else
10219 ld_shlibs=no
10223 cygwin* | mingw* | pw32* | cegcc*)
10224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10225 # as there is no search path for DLLs.
10226 hardcode_libdir_flag_spec='-L$libdir'
10227 export_dynamic_flag_spec='${wl}--export-all-symbols'
10228 allow_undefined_flag=unsupported
10229 always_export_symbols=no
10230 enable_shared_with_static_runtimes=yes
10231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10235 # If the export-symbols file already is a .def file (1st line
10236 # is EXPORTS), use it as is; otherwise, prepend...
10237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10238 cp $export_symbols $output_objdir/$soname.def;
10239 else
10240 echo EXPORTS > $output_objdir/$soname.def;
10241 cat $export_symbols >> $output_objdir/$soname.def;
10243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10244 else
10245 ld_shlibs=no
10249 haiku*)
10250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 link_all_deplibs=yes
10254 interix[3-9]*)
10255 hardcode_direct=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10258 export_dynamic_flag_spec='${wl}-E'
10259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10260 # Instead, shared libraries are loaded at an image base (0x10000000 by
10261 # default) and relocated if they conflict, which is a slow very memory
10262 # consuming and fragmenting process. To avoid this, we pick a random,
10263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10266 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'
10269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10270 tmp_diet=no
10271 if test "$host_os" = linux-dietlibc; then
10272 case $cc_basename in
10273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10274 esac
10276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10277 && test "$tmp_diet" = no
10278 then
10279 tmp_addflag=' $pic_flag'
10280 tmp_sharedflag='-shared'
10281 case $cc_basename,$host_cpu in
10282 pgcc*) # Portland Group C compiler
10283 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'
10284 tmp_addflag=' $pic_flag'
10286 pgf77* | pgf90* | pgf95* | pgfortran*)
10287 # Portland Group f77 and f90 compilers
10288 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'
10289 tmp_addflag=' $pic_flag -Mnomain' ;;
10290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10291 tmp_addflag=' -i_dynamic' ;;
10292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10293 tmp_addflag=' -i_dynamic -nofor_main' ;;
10294 ifc* | ifort*) # Intel Fortran compiler
10295 tmp_addflag=' -nofor_main' ;;
10296 lf95*) # Lahey Fortran 8.1
10297 whole_archive_flag_spec=
10298 tmp_sharedflag='--shared' ;;
10299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10300 tmp_sharedflag='-qmkshrobj'
10301 tmp_addflag= ;;
10302 nvcc*) # Cuda Compiler Driver 2.2
10303 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'
10304 compiler_needs_object=yes
10306 esac
10307 case `$CC -V 2>&1 | sed 5q` in
10308 *Sun\ C*) # Sun C 5.9
10309 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'
10310 compiler_needs_object=yes
10311 tmp_sharedflag='-G' ;;
10312 *Sun\ F*) # Sun Fortran 8.3
10313 tmp_sharedflag='-G' ;;
10314 esac
10315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10317 if test "x$supports_anon_versioning" = xyes; then
10318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320 echo "local: *; };" >> $output_objdir/$libname.ver~
10321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10324 case $cc_basename in
10325 xlf* | bgf* | bgxlf* | mpixlf*)
10326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10328 hardcode_libdir_flag_spec=
10329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10330 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10331 if test "x$supports_anon_versioning" = xyes; then
10332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10334 echo "local: *; };" >> $output_objdir/$libname.ver~
10335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10338 esac
10339 else
10340 ld_shlibs=no
10344 netbsd*)
10345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10347 wlarc=
10348 else
10349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10354 solaris*)
10355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10356 ld_shlibs=no
10357 cat <<_LT_EOF 1>&2
10359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10360 *** create shared libraries on Solaris systems. Therefore, libtool
10361 *** is disabling shared libraries support. We urge you to upgrade GNU
10362 *** binutils to release 2.9.1 or newer. Another option is to modify
10363 *** your PATH or compiler configuration so that the native linker is
10364 *** used, and then restart.
10366 _LT_EOF
10367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10370 else
10371 ld_shlibs=no
10375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10376 case `$LD -v 2>&1` in
10377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10378 ld_shlibs=no
10379 cat <<_LT_EOF 1>&2
10381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10382 *** reliably create shared libraries on SCO systems. Therefore, libtool
10383 *** is disabling shared libraries support. We urge you to upgrade GNU
10384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10385 *** your PATH or compiler configuration so that the native linker is
10386 *** used, and then restart.
10388 _LT_EOF
10391 # For security reasons, it is highly recommended that you always
10392 # use absolute paths for naming shared libraries, and exclude the
10393 # DT_RUNPATH tag from executables and libraries. But doing so
10394 # requires that you compile everything twice, which is a pain.
10395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10399 else
10400 ld_shlibs=no
10403 esac
10406 sunos4*)
10407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10408 wlarc=
10409 hardcode_direct=yes
10410 hardcode_shlibpath_var=no
10414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10417 else
10418 ld_shlibs=no
10421 esac
10423 if test "$ld_shlibs" = no; then
10424 runpath_var=
10425 hardcode_libdir_flag_spec=
10426 export_dynamic_flag_spec=
10427 whole_archive_flag_spec=
10429 else
10430 # PORTME fill in a description of your system's linker (not GNU ld)
10431 case $host_os in
10432 aix3*)
10433 allow_undefined_flag=unsupported
10434 always_export_symbols=yes
10435 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'
10436 # Note: this linker hardcodes the directories in LIBPATH if there
10437 # are no directories specified by -L.
10438 hardcode_minus_L=yes
10439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10440 # Neither direct hardcoding nor static linking is supported with a
10441 # broken collect2.
10442 hardcode_direct=unsupported
10446 aix[4-9]*)
10447 if test "$host_cpu" = ia64; then
10448 # On IA64, the linker does run time linking by default, so we don't
10449 # have to do anything special.
10450 aix_use_runtimelinking=no
10451 exp_sym_flag='-Bexport'
10452 no_entry_flag=""
10453 else
10454 # If we're using GNU nm, then we don't want the "-C" option.
10455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10456 # Also, AIX nm treats weak defined symbols like other global
10457 # defined symbols, whereas GNU nm marks them as "W".
10458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10459 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'
10460 else
10461 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'
10463 aix_use_runtimelinking=no
10465 # Test if we are trying to use run time linking or normal
10466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10467 # need to do runtime linking.
10468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10469 for ld_flag in $LDFLAGS; do
10470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10471 aix_use_runtimelinking=yes
10472 break
10474 done
10476 esac
10478 exp_sym_flag='-bexport'
10479 no_entry_flag='-bnoentry'
10482 # When large executables or shared objects are built, AIX ld can
10483 # have problems creating the table of contents. If linking a library
10484 # or program results in "error TOC overflow" add -mminimal-toc to
10485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10488 archive_cmds=''
10489 hardcode_direct=yes
10490 hardcode_direct_absolute=yes
10491 hardcode_libdir_separator=':'
10492 link_all_deplibs=yes
10493 file_list_spec='${wl}-f,'
10495 if test "$GCC" = yes; then
10496 case $host_os in aix4.[012]|aix4.[012].*)
10497 # We only want to do this on AIX 4.2 and lower, the check
10498 # below for broken collect2 doesn't work under 4.3+
10499 collect2name=`${CC} -print-prog-name=collect2`
10500 if test -f "$collect2name" &&
10501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10502 then
10503 # We have reworked collect2
10505 else
10506 # We have old collect2
10507 hardcode_direct=unsupported
10508 # It fails to find uninstalled libraries when the uninstalled
10509 # path is not listed in the libpath. Setting hardcode_minus_L
10510 # to unsupported forces relinking
10511 hardcode_minus_L=yes
10512 hardcode_libdir_flag_spec='-L$libdir'
10513 hardcode_libdir_separator=
10516 esac
10517 shared_flag='-shared'
10518 if test "$aix_use_runtimelinking" = yes; then
10519 shared_flag="$shared_flag "'${wl}-G'
10521 else
10522 # not using gcc
10523 if test "$host_cpu" = ia64; then
10524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10525 # chokes on -Wl,-G. The following line is correct:
10526 shared_flag='-G'
10527 else
10528 if test "$aix_use_runtimelinking" = yes; then
10529 shared_flag='${wl}-G'
10530 else
10531 shared_flag='${wl}-bM:SRE'
10536 export_dynamic_flag_spec='${wl}-bexpall'
10537 # It seems that -bexpall does not export symbols beginning with
10538 # underscore (_), so it is better to generate a list of symbols to export.
10539 always_export_symbols=yes
10540 if test "$aix_use_runtimelinking" = yes; then
10541 # Warning - without using the other runtime loading flags (-brtl),
10542 # -berok will link without error, but may produce a broken library.
10543 allow_undefined_flag='-berok'
10544 # Determine the default libpath from the value encoded in an
10545 # empty executable.
10546 if test x$gcc_no_link = xyes; then
10547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10553 main ()
10557 return 0;
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10562 lt_aix_libpath_sed='
10563 /Import File Strings/,/^$/ {
10564 /^0/ {
10565 s/^0 *\(.*\)$/\1/
10569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10570 # Check for a 64-bit object if we didn't find anything.
10571 if test -z "$aix_libpath"; then
10572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10579 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10580 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"
10581 else
10582 if test "$host_cpu" = ia64; then
10583 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10584 allow_undefined_flag="-z nodefs"
10585 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"
10586 else
10587 # Determine the default libpath from the value encoded in an
10588 # empty executable.
10589 if test x$gcc_no_link = xyes; then
10590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10596 main ()
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10605 lt_aix_libpath_sed='
10606 /Import File Strings/,/^$/ {
10607 /^0/ {
10608 s/^0 *\(.*\)$/\1/
10612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10613 # Check for a 64-bit object if we didn't find anything.
10614 if test -z "$aix_libpath"; then
10615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10618 rm -f core conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10623 # Warning - without using the other run time loading flags,
10624 # -berok will link without error, but may produce a broken library.
10625 no_undefined_flag=' ${wl}-bernotok'
10626 allow_undefined_flag=' ${wl}-berok'
10627 if test "$with_gnu_ld" = yes; then
10628 # We only use this code for GNU lds that support --whole-archive.
10629 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10630 else
10631 # Exported symbols can be pulled into shared objects from archives
10632 whole_archive_flag_spec='$convenience'
10634 archive_cmds_need_lc=yes
10635 # This is similar to how AIX traditionally builds its shared libraries.
10636 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'
10641 amigaos*)
10642 case $host_cpu in
10643 powerpc)
10644 # see comment about AmigaOS4 .so support
10645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646 archive_expsym_cmds=''
10648 m68k)
10649 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)'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_minus_L=yes
10653 esac
10656 bsdi[45]*)
10657 export_dynamic_flag_spec=-rdynamic
10660 cygwin* | mingw* | pw32* | cegcc*)
10661 # When not using gcc, we currently assume that we are using
10662 # Microsoft Visual C++.
10663 # hardcode_libdir_flag_spec is actually meaningless, as there is
10664 # no search path for DLLs.
10665 hardcode_libdir_flag_spec=' '
10666 allow_undefined_flag=unsupported
10667 # Tell ltmain to make .lib files, not .a files.
10668 libext=lib
10669 # Tell ltmain to make .dll files, not .so files.
10670 shrext_cmds=".dll"
10671 # FIXME: Setting linknames here is a bad hack.
10672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10673 # The linker will automatically build a .lib file if we build a DLL.
10674 old_archive_from_new_cmds='true'
10675 # FIXME: Should let the user specify the lib program.
10676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10677 fix_srcfile_path='`cygpath -w "$srcfile"`'
10678 enable_shared_with_static_runtimes=yes
10681 darwin* | rhapsody*)
10684 archive_cmds_need_lc=no
10685 hardcode_direct=no
10686 hardcode_automatic=yes
10687 hardcode_shlibpath_var=unsupported
10688 if test "$lt_cv_ld_force_load" = "yes"; then
10689 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\"`'
10690 else
10691 whole_archive_flag_spec=''
10693 link_all_deplibs=yes
10694 allow_undefined_flag="$_lt_dar_allow_undefined"
10695 case $cc_basename in
10696 ifort*) _lt_dar_can_shared=yes ;;
10697 *) _lt_dar_can_shared=$GCC ;;
10698 esac
10699 if test "$_lt_dar_can_shared" = "yes"; then
10700 output_verbose_link_cmd=func_echo_all
10701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10703 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}"
10704 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}"
10706 else
10707 ld_shlibs=no
10712 dgux*)
10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 hardcode_libdir_flag_spec='-L$libdir'
10715 hardcode_shlibpath_var=no
10718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10719 # support. Future versions do this automatically, but an explicit c++rt0.o
10720 # does not break anything, and helps significantly (at the cost of a little
10721 # extra space).
10722 freebsd2.2*)
10723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10724 hardcode_libdir_flag_spec='-R$libdir'
10725 hardcode_direct=yes
10726 hardcode_shlibpath_var=no
10729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10730 freebsd2.*)
10731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10732 hardcode_direct=yes
10733 hardcode_minus_L=yes
10734 hardcode_shlibpath_var=no
10737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10738 freebsd* | dragonfly*)
10739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10740 hardcode_libdir_flag_spec='-R$libdir'
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10745 hpux9*)
10746 if test "$GCC" = yes; then
10747 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'
10748 else
10749 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'
10751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10752 hardcode_libdir_separator=:
10753 hardcode_direct=yes
10755 # hardcode_minus_L: Not really in the search PATH,
10756 # but as the default location of the library.
10757 hardcode_minus_L=yes
10758 export_dynamic_flag_spec='${wl}-E'
10761 hpux10*)
10762 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10764 else
10765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10767 if test "$with_gnu_ld" = no; then
10768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10769 hardcode_libdir_flag_spec_ld='+b $libdir'
10770 hardcode_libdir_separator=:
10771 hardcode_direct=yes
10772 hardcode_direct_absolute=yes
10773 export_dynamic_flag_spec='${wl}-E'
10774 # hardcode_minus_L: Not really in the search PATH,
10775 # but as the default location of the library.
10776 hardcode_minus_L=yes
10780 hpux11*)
10781 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10782 case $host_cpu in
10783 hppa*64*)
10784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 ia64*)
10787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10792 esac
10793 else
10794 case $host_cpu in
10795 hppa*64*)
10796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 ia64*)
10799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10803 # Older versions of the 11.00 compiler do not understand -b yet
10804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10806 $as_echo_n "checking if $CC understands -b... " >&6; }
10807 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 lt_cv_prog_compiler__b=no
10811 save_LDFLAGS="$LDFLAGS"
10812 LDFLAGS="$LDFLAGS -b"
10813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815 # The linker can only warn and ignore the option if not recognized
10816 # So say no if there are warnings
10817 if test -s conftest.err; then
10818 # Append any errors to the config.log.
10819 cat conftest.err 1>&5
10820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822 if diff conftest.exp conftest.er2 >/dev/null; then
10823 lt_cv_prog_compiler__b=yes
10825 else
10826 lt_cv_prog_compiler__b=yes
10829 $RM -r conftest*
10830 LDFLAGS="$save_LDFLAGS"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10834 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10836 if test x"$lt_cv_prog_compiler__b" = xyes; then
10837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10838 else
10839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10843 esac
10845 if test "$with_gnu_ld" = no; then
10846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10847 hardcode_libdir_separator=:
10849 case $host_cpu in
10850 hppa*64*|ia64*)
10851 hardcode_direct=no
10852 hardcode_shlibpath_var=no
10855 hardcode_direct=yes
10856 hardcode_direct_absolute=yes
10857 export_dynamic_flag_spec='${wl}-E'
10859 # hardcode_minus_L: Not really in the search PATH,
10860 # but as the default location of the library.
10861 hardcode_minus_L=yes
10863 esac
10867 irix5* | irix6* | nonstopux*)
10868 if test "$GCC" = yes; then
10869 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'
10870 # Try to use the -exported_symbol ld option, if it does not
10871 # work, assume that -exports_file does not work either and
10872 # implicitly export all symbols.
10873 save_LDFLAGS="$LDFLAGS"
10874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10875 if test x$gcc_no_link = xyes; then
10876 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880 int foo(void) {}
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 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'
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LDFLAGS="$save_LDFLAGS"
10889 else
10890 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'
10891 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'
10893 archive_cmds_need_lc='no'
10894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator=:
10896 inherit_rpath=yes
10897 link_all_deplibs=yes
10900 netbsd*)
10901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10903 else
10904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10906 hardcode_libdir_flag_spec='-R$libdir'
10907 hardcode_direct=yes
10908 hardcode_shlibpath_var=no
10911 newsos6)
10912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 hardcode_direct=yes
10914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10915 hardcode_libdir_separator=:
10916 hardcode_shlibpath_var=no
10919 *nto* | *qnx*)
10922 openbsd*)
10923 if test -f /usr/libexec/ld.so; then
10924 hardcode_direct=yes
10925 hardcode_shlibpath_var=no
10926 hardcode_direct_absolute=yes
10927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10931 export_dynamic_flag_spec='${wl}-E'
10932 else
10933 case $host_os in
10934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10936 hardcode_libdir_flag_spec='-R$libdir'
10939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10942 esac
10944 else
10945 ld_shlibs=no
10949 os2*)
10950 hardcode_libdir_flag_spec='-L$libdir'
10951 hardcode_minus_L=yes
10952 allow_undefined_flag=unsupported
10953 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'
10954 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10957 osf3*)
10958 if test "$GCC" = yes; then
10959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10960 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'
10961 else
10962 allow_undefined_flag=' -expect_unresolved \*'
10963 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'
10965 archive_cmds_need_lc='no'
10966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10967 hardcode_libdir_separator=:
10970 osf4* | osf5*) # as osf3* with the addition of -msym flag
10971 if test "$GCC" = yes; then
10972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10973 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'
10974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10975 else
10976 allow_undefined_flag=' -expect_unresolved \*'
10977 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'
10978 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~
10979 $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'
10981 # Both c and cxx compiler support -rpath directly
10982 hardcode_libdir_flag_spec='-rpath $libdir'
10984 archive_cmds_need_lc='no'
10985 hardcode_libdir_separator=:
10988 solaris*)
10989 no_undefined_flag=' -z defs'
10990 if test "$GCC" = yes; then
10991 wlarc='${wl}'
10992 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10995 else
10996 case `$CC -V 2>&1` in
10997 *"Compilers 5.0"*)
10998 wlarc=''
10999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11004 wlarc='${wl}'
11005 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11009 esac
11011 hardcode_libdir_flag_spec='-R$libdir'
11012 hardcode_shlibpath_var=no
11013 case $host_os in
11014 solaris2.[0-5] | solaris2.[0-5].*) ;;
11016 # The compiler driver will combine and reorder linker options,
11017 # but understands `-z linker_flag'. GCC discards it without `$wl',
11018 # but is careful enough not to reorder.
11019 # Supported since Solaris 2.6 (maybe 2.5.1?)
11020 if test "$GCC" = yes; then
11021 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11022 else
11023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11026 esac
11027 link_all_deplibs=yes
11030 sunos4*)
11031 if test "x$host_vendor" = xsequent; then
11032 # Use $CC to link under sequent, because it throws in some extra .o
11033 # files that make .init and .fini sections work.
11034 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11035 else
11036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_direct=yes
11040 hardcode_minus_L=yes
11041 hardcode_shlibpath_var=no
11044 sysv4)
11045 case $host_vendor in
11046 sni)
11047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11048 hardcode_direct=yes # is this really true???
11050 siemens)
11051 ## LD is ld it makes a PLAMLIB
11052 ## CC just makes a GrossModule.
11053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11054 reload_cmds='$CC -r -o $output$reload_objs'
11055 hardcode_direct=no
11057 motorola)
11058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11061 esac
11062 runpath_var='LD_RUN_PATH'
11063 hardcode_shlibpath_var=no
11066 sysv4.3*)
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_shlibpath_var=no
11069 export_dynamic_flag_spec='-Bexport'
11072 sysv4*MP*)
11073 if test -d /usr/nec; then
11074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11075 hardcode_shlibpath_var=no
11076 runpath_var=LD_RUN_PATH
11077 hardcode_runpath_var=yes
11078 ld_shlibs=yes
11082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11083 no_undefined_flag='${wl}-z,text'
11084 archive_cmds_need_lc=no
11085 hardcode_shlibpath_var=no
11086 runpath_var='LD_RUN_PATH'
11088 if test "$GCC" = yes; then
11089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11091 else
11092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 sysv5* | sco3.2v5* | sco5v6*)
11098 # Note: We can NOT use -z defs as we might desire, because we do not
11099 # link with -lc, and that would cause any symbols used from libc to
11100 # always be unresolved, which means just about no library would
11101 # ever link correctly. If we're not using GNU ld we use -z text
11102 # though, which does catch some bad symbols but isn't as heavy-handed
11103 # as -z defs.
11104 no_undefined_flag='${wl}-z,text'
11105 allow_undefined_flag='${wl}-z,nodefs'
11106 archive_cmds_need_lc=no
11107 hardcode_shlibpath_var=no
11108 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11109 hardcode_libdir_separator=':'
11110 link_all_deplibs=yes
11111 export_dynamic_flag_spec='${wl}-Bexport'
11112 runpath_var='LD_RUN_PATH'
11114 if test "$GCC" = yes; then
11115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11117 else
11118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 uts4*)
11124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125 hardcode_libdir_flag_spec='-L$libdir'
11126 hardcode_shlibpath_var=no
11130 ld_shlibs=no
11132 esac
11134 if test x$host_vendor = xsni; then
11135 case $host in
11136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11137 export_dynamic_flag_spec='${wl}-Blargedynsym'
11139 esac
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11144 $as_echo "$ld_shlibs" >&6; }
11145 test "$ld_shlibs" = no && can_build_shared=no
11147 with_gnu_ld=$with_gnu_ld
11164 # Do we need to explicitly link libc?
11166 case "x$archive_cmds_need_lc" in
11167 x|xyes)
11168 # Assume -lc should be added
11169 archive_cmds_need_lc=yes
11171 if test "$enable_shared" = yes && test "$GCC" = yes; then
11172 case $archive_cmds in
11173 *'~'*)
11174 # FIXME: we may have to deal with multi-command sequences.
11176 '$CC '*)
11177 # Test whether the compiler implicitly links with -lc since on some
11178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11179 # to ld, don't add -lc before -lgcc.
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11182 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 $RM conftest*
11186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11189 (eval $ac_compile) 2>&5
11190 ac_status=$?
11191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192 test $ac_status = 0; } 2>conftest.err; then
11193 soname=conftest
11194 lib=conftest
11195 libobjs=conftest.$ac_objext
11196 deplibs=
11197 wl=$lt_prog_compiler_wl
11198 pic_flag=$lt_prog_compiler_pic
11199 compiler_flags=-v
11200 linker_flags=-v
11201 verstring=
11202 output_objdir=.
11203 libname=conftest
11204 lt_save_allow_undefined_flag=$allow_undefined_flag
11205 allow_undefined_flag=
11206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11207 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11208 ac_status=$?
11209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11210 test $ac_status = 0; }
11211 then
11212 lt_cv_archive_cmds_need_lc=no
11213 else
11214 lt_cv_archive_cmds_need_lc=yes
11216 allow_undefined_flag=$lt_save_allow_undefined_flag
11217 else
11218 cat conftest.err 1>&5
11220 $RM conftest*
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11225 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11227 esac
11230 esac
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11391 if test "$GCC" = yes; then
11392 case $host_os in
11393 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11394 *) lt_awk_arg="/^libraries:/" ;;
11395 esac
11396 case $host_os in
11397 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11398 *) lt_sed_strip_eq="s,=/,/,g" ;;
11399 esac
11400 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11401 case $lt_search_path_spec in
11402 *\;*)
11403 # if the path contains ";" then we assume it to be the separator
11404 # otherwise default to the standard path separator (i.e. ":") - it is
11405 # assumed that no part of a normal pathname contains ";" but that should
11406 # okay in the real world where ";" in dirpaths is itself problematic.
11407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11412 esac
11413 # Ok, now we have the path, separated by spaces, we can step through it
11414 # and add multilib dir if necessary.
11415 lt_tmp_lt_search_path_spec=
11416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11417 for lt_sys_path in $lt_search_path_spec; do
11418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11420 else
11421 test -d "$lt_sys_path" && \
11422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11424 done
11425 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11426 BEGIN {RS=" "; FS="/|\n";} {
11427 lt_foo="";
11428 lt_count=0;
11429 for (lt_i = NF; lt_i > 0; lt_i--) {
11430 if ($lt_i != "" && $lt_i != ".") {
11431 if ($lt_i == "..") {
11432 lt_count++;
11433 } else {
11434 if (lt_count == 0) {
11435 lt_foo="/" $lt_i lt_foo;
11436 } else {
11437 lt_count--;
11442 if (lt_foo != "") { lt_freq[lt_foo]++; }
11443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11445 # AWK program above erroneously prepends '/' to C:/dos/paths
11446 # for these hosts.
11447 case $host_os in
11448 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11449 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11450 esac
11451 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11452 else
11453 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11455 library_names_spec=
11456 libname_spec='lib$name'
11457 soname_spec=
11458 shrext_cmds=".so"
11459 postinstall_cmds=
11460 postuninstall_cmds=
11461 finish_cmds=
11462 finish_eval=
11463 shlibpath_var=
11464 shlibpath_overrides_runpath=unknown
11465 version_type=none
11466 dynamic_linker="$host_os ld.so"
11467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11468 need_lib_prefix=unknown
11469 hardcode_into_libs=no
11471 # when you set need_version to no, make sure it does not cause -set_version
11472 # flags to be left without arguments
11473 need_version=unknown
11475 case $host_os in
11476 aix3*)
11477 version_type=linux
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11479 shlibpath_var=LIBPATH
11481 # AIX 3 has no versioning support, so we append a major version to the name.
11482 soname_spec='${libname}${release}${shared_ext}$major'
11485 aix[4-9]*)
11486 version_type=linux
11487 need_lib_prefix=no
11488 need_version=no
11489 hardcode_into_libs=yes
11490 if test "$host_cpu" = ia64; then
11491 # AIX 5 supports IA64
11492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 else
11495 # With GCC up to 2.95.x, collect2 would create an import file
11496 # for dependence libraries. The import file would start with
11497 # the line `#! .'. This would cause the generated library to
11498 # depend on `.', always an invalid library. This was fixed in
11499 # development snapshots of GCC prior to 3.0.
11500 case $host_os in
11501 aix4 | aix4.[01] | aix4.[01].*)
11502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11503 echo ' yes '
11504 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11506 else
11507 can_build_shared=no
11510 esac
11511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11512 # soname into executable. Probably we can add versioning support to
11513 # collect2, so additional links can be useful in future.
11514 if test "$aix_use_runtimelinking" = yes; then
11515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11516 # instead of lib<name>.a to let people know that these are not
11517 # typical AIX shared libraries.
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 else
11520 # We preserve .a as extension for shared libraries through AIX4.2
11521 # and later when we are not doing run time linking.
11522 library_names_spec='${libname}${release}.a $libname.a'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LIBPATH
11529 amigaos*)
11530 case $host_cpu in
11531 powerpc)
11532 # Since July 2007 AmigaOS4 officially supports .so libraries.
11533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 m68k)
11537 library_names_spec='$libname.ixlibrary $libname.a'
11538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11539 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'
11541 esac
11544 beos*)
11545 library_names_spec='${libname}${shared_ext}'
11546 dynamic_linker="$host_os ld.so"
11547 shlibpath_var=LIBRARY_PATH
11550 bsdi[45]*)
11551 version_type=linux
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11559 # the default ld.so.conf also contains /usr/contrib/lib and
11560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11561 # libtool to hard-code these into programs
11564 cygwin* | mingw* | pw32* | cegcc*)
11565 version_type=windows
11566 shrext_cmds=".dll"
11567 need_version=no
11568 need_lib_prefix=no
11570 case $GCC,$host_os in
11571 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11572 library_names_spec='$libname.dll.a'
11573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11574 postinstall_cmds='base_file=`basename \${file}`~
11575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11576 dldir=$destdir/`dirname \$dlpath`~
11577 test -d \$dldir || mkdir -p \$dldir~
11578 $install_prog $dir/$dlname \$dldir/$dlname~
11579 chmod a+x \$dldir/$dlname~
11580 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11581 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11584 dlpath=$dir/\$dldll~
11585 $RM \$dlpath'
11586 shlibpath_overrides_runpath=yes
11588 case $host_os in
11589 cygwin*)
11590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11595 mingw* | cegcc*)
11596 # MinGW DLLs use traditional 'lib' prefix
11597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11599 pw32*)
11600 # pw32 DLLs use 'pw' prefix rather than 'lib'
11601 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11603 esac
11607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11609 esac
11610 dynamic_linker='Win32 ld.exe'
11611 # FIXME: first we should search . and the directory the executable is in
11612 shlibpath_var=PATH
11615 darwin* | rhapsody*)
11616 dynamic_linker="$host_os dyld"
11617 version_type=darwin
11618 need_lib_prefix=no
11619 need_version=no
11620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11621 soname_spec='${libname}${release}${major}$shared_ext'
11622 shlibpath_overrides_runpath=yes
11623 shlibpath_var=DYLD_LIBRARY_PATH
11624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11630 dgux*)
11631 version_type=linux
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11639 freebsd* | dragonfly*)
11640 # DragonFly does not have aout. When/if they implement a new
11641 # versioning mechanism, adjust this.
11642 if test -x /usr/bin/objformat; then
11643 objformat=`/usr/bin/objformat`
11644 else
11645 case $host_os in
11646 freebsd[23].*) objformat=aout ;;
11647 *) objformat=elf ;;
11648 esac
11650 version_type=freebsd-$objformat
11651 case $version_type in
11652 freebsd-elf*)
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11654 need_version=no
11655 need_lib_prefix=no
11657 freebsd-*)
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11659 need_version=yes
11661 esac
11662 shlibpath_var=LD_LIBRARY_PATH
11663 case $host_os in
11664 freebsd2.*)
11665 shlibpath_overrides_runpath=yes
11667 freebsd3.[01]* | freebsdelf3.[01]*)
11668 shlibpath_overrides_runpath=yes
11669 hardcode_into_libs=yes
11671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11673 shlibpath_overrides_runpath=no
11674 hardcode_into_libs=yes
11676 *) # from 4.6 on, and DragonFly
11677 shlibpath_overrides_runpath=yes
11678 hardcode_into_libs=yes
11680 esac
11683 gnu*)
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 hardcode_into_libs=yes
11693 haiku*)
11694 version_type=linux
11695 need_lib_prefix=no
11696 need_version=no
11697 dynamic_linker="$host_os runtime_loader"
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11699 soname_spec='${libname}${release}${shared_ext}$major'
11700 shlibpath_var=LIBRARY_PATH
11701 shlibpath_overrides_runpath=yes
11702 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11703 hardcode_into_libs=yes
11706 hpux9* | hpux10* | hpux11*)
11707 # Give a soname corresponding to the major version so that dld.sl refuses to
11708 # link against other versions.
11709 version_type=sunos
11710 need_lib_prefix=no
11711 need_version=no
11712 case $host_cpu in
11713 ia64*)
11714 shrext_cmds='.so'
11715 hardcode_into_libs=yes
11716 dynamic_linker="$host_os dld.so"
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 if test "X$HPUX_IA64_MODE" = X32; then
11722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11723 else
11724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11728 hppa*64*)
11729 shrext_cmds='.sl'
11730 hardcode_into_libs=yes
11731 dynamic_linker="$host_os dld.sl"
11732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740 shrext_cmds='.sl'
11741 dynamic_linker="$host_os dld.sl"
11742 shlibpath_var=SHLIB_PATH
11743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11747 esac
11748 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11749 postinstall_cmds='chmod 555 $lib'
11750 # or fails outright, so override atomically:
11751 install_override_mode=555
11754 interix[3-9]*)
11755 version_type=linux
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=no
11763 hardcode_into_libs=yes
11766 irix5* | irix6* | nonstopux*)
11767 case $host_os in
11768 nonstopux*) version_type=nonstopux ;;
11770 if test "$lt_cv_prog_gnu_ld" = yes; then
11771 version_type=linux
11772 else
11773 version_type=irix
11774 fi ;;
11775 esac
11776 need_lib_prefix=no
11777 need_version=no
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11780 case $host_os in
11781 irix5* | nonstopux*)
11782 libsuff= shlibsuff=
11785 case $LD in # libtool.m4 will add one of these switches to LD
11786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11787 libsuff= shlibsuff= libmagic=32-bit;;
11788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11789 libsuff=32 shlibsuff=N32 libmagic=N32;;
11790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11792 *) libsuff= shlibsuff= libmagic=never-match;;
11793 esac
11795 esac
11796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11797 shlibpath_overrides_runpath=no
11798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11800 hardcode_into_libs=yes
11803 # No shared lib support for Linux oldld, aout, or coff.
11804 linux*oldld* | linux*aout* | linux*coff*)
11805 dynamic_linker=no
11808 # This must be Linux ELF.
11809 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11810 version_type=linux
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=no
11819 # Some binutils ld are patched to set DT_RUNPATH
11820 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 lt_cv_shlibpath_overrides_runpath=no
11824 save_LDFLAGS=$LDFLAGS
11825 save_libdir=$libdir
11826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11828 if test x$gcc_no_link = xyes; then
11829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11835 main ()
11839 return 0;
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11844 lt_cv_shlibpath_overrides_runpath=yes
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LDFLAGS=$save_LDFLAGS
11850 libdir=$save_libdir
11854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11856 # This implies no fast_install, which is unacceptable.
11857 # Some rework will be needed to allow for fast_install
11858 # before this can be enabled.
11859 hardcode_into_libs=yes
11861 # Append ld.so.conf contents to the search path
11862 if test -f /etc/ld.so.conf; then
11863 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' ' '`
11864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11867 # We used to test for /lib/ld.so.1 and disable shared libraries on
11868 # powerpc, because MkLinux only supported shared libraries with the
11869 # GNU dynamic linker. Since this was broken with cross compilers,
11870 # most powerpc-linux boxes support dynamic linking these days and
11871 # people can always --disable-shared, the test was removed, and we
11872 # assume the GNU/Linux dynamic linker is in use.
11873 dynamic_linker='GNU/Linux ld.so'
11876 netbsd*)
11877 version_type=sunos
11878 need_lib_prefix=no
11879 need_version=no
11880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11883 dynamic_linker='NetBSD (a.out) ld.so'
11884 else
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 dynamic_linker='NetBSD ld.elf_so'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes
11891 hardcode_into_libs=yes
11894 newsos6)
11895 version_type=linux
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=yes
11901 *nto* | *qnx*)
11902 version_type=qnx
11903 need_lib_prefix=no
11904 need_version=no
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=no
11909 hardcode_into_libs=yes
11910 dynamic_linker='ldqnx.so'
11913 openbsd*)
11914 version_type=sunos
11915 sys_lib_dlsearch_path_spec="/usr/lib"
11916 need_lib_prefix=no
11917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11918 case $host_os in
11919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11920 *) need_version=no ;;
11921 esac
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11926 case $host_os in
11927 openbsd2.[89] | openbsd2.[89].*)
11928 shlibpath_overrides_runpath=no
11931 shlibpath_overrides_runpath=yes
11933 esac
11934 else
11935 shlibpath_overrides_runpath=yes
11939 os2*)
11940 libname_spec='$name'
11941 shrext_cmds=".dll"
11942 need_lib_prefix=no
11943 library_names_spec='$libname${shared_ext} $libname.a'
11944 dynamic_linker='OS/2 ld.exe'
11945 shlibpath_var=LIBPATH
11948 osf3* | osf4* | osf5*)
11949 version_type=osf
11950 need_lib_prefix=no
11951 need_version=no
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11959 rdos*)
11960 dynamic_linker=no
11963 solaris*)
11964 version_type=linux
11965 need_lib_prefix=no
11966 need_version=no
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=yes
11971 hardcode_into_libs=yes
11972 # ldd complains unless libraries are executable
11973 postinstall_cmds='chmod +x $lib'
11976 sunos4*)
11977 version_type=sunos
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
11982 if test "$with_gnu_ld" = yes; then
11983 need_lib_prefix=no
11985 need_version=yes
11988 sysv4 | sysv4.3*)
11989 version_type=linux
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 case $host_vendor in
11994 sni)
11995 shlibpath_overrides_runpath=no
11996 need_lib_prefix=no
11997 runpath_var=LD_RUN_PATH
11999 siemens)
12000 need_lib_prefix=no
12002 motorola)
12003 need_lib_prefix=no
12004 need_version=no
12005 shlibpath_overrides_runpath=no
12006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12008 esac
12011 sysv4*MP*)
12012 if test -d /usr/nec ;then
12013 version_type=linux
12014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12015 soname_spec='$libname${shared_ext}.$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12021 version_type=freebsd-elf
12022 need_lib_prefix=no
12023 need_version=no
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12029 if test "$with_gnu_ld" = yes; then
12030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12031 else
12032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12033 case $host_os in
12034 sco3.2v5*)
12035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12037 esac
12039 sys_lib_dlsearch_path_spec='/usr/lib'
12042 tpf*)
12043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12044 version_type=linux
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=no
12050 hardcode_into_libs=yes
12053 uts4*)
12054 version_type=linux
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 shlibpath_var=LD_LIBRARY_PATH
12061 dynamic_linker=no
12063 esac
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12065 $as_echo "$dynamic_linker" >&6; }
12066 test "$dynamic_linker" = no && can_build_shared=no
12068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12069 if test "$GCC" = yes; then
12070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12073 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12076 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12172 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12173 hardcode_action=
12174 if test -n "$hardcode_libdir_flag_spec" ||
12175 test -n "$runpath_var" ||
12176 test "X$hardcode_automatic" = "Xyes" ; then
12178 # We can hardcode non-existent directories.
12179 if test "$hardcode_direct" != no &&
12180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12181 # have to relink, otherwise we might link with an installed library
12182 # when we should be linking with a yet-to-be-installed one
12183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12184 test "$hardcode_minus_L" != no; then
12185 # Linking always hardcodes the temporary library directory.
12186 hardcode_action=relink
12187 else
12188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12189 hardcode_action=immediate
12191 else
12192 # We cannot hardcode anything, or else we can only hardcode existing
12193 # directories.
12194 hardcode_action=unsupported
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12197 $as_echo "$hardcode_action" >&6; }
12199 if test "$hardcode_action" = relink ||
12200 test "$inherit_rpath" = yes; then
12201 # Fast installation is not supported
12202 enable_fast_install=no
12203 elif test "$shlibpath_overrides_runpath" = yes ||
12204 test "$enable_shared" = no; then
12205 # Fast installation is not necessary
12206 enable_fast_install=needless
12214 if test "x$enable_dlopen" != xyes; then
12215 enable_dlopen=unknown
12216 enable_dlopen_self=unknown
12217 enable_dlopen_self_static=unknown
12218 else
12219 lt_cv_dlopen=no
12220 lt_cv_dlopen_libs=
12222 case $host_os in
12223 beos*)
12224 lt_cv_dlopen="load_add_on"
12225 lt_cv_dlopen_libs=
12226 lt_cv_dlopen_self=yes
12229 mingw* | pw32* | cegcc*)
12230 lt_cv_dlopen="LoadLibrary"
12231 lt_cv_dlopen_libs=
12234 cygwin*)
12235 lt_cv_dlopen="dlopen"
12236 lt_cv_dlopen_libs=
12239 darwin*)
12240 # if libdl is installed we need to link against it
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-ldl $LIBS"
12248 if test x$gcc_no_link = xyes; then
12249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char dlopen ();
12262 main ()
12264 return dlopen ();
12266 return 0;
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_dl_dlopen=yes
12271 else
12272 ac_cv_lib_dl_dlopen=no
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12280 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12282 else
12284 lt_cv_dlopen="dyld"
12285 lt_cv_dlopen_libs=
12286 lt_cv_dlopen_self=yes
12293 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12294 if test "x$ac_cv_func_shl_load" = x""yes; then :
12295 lt_cv_dlopen="shl_load"
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12298 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12299 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-ldld $LIBS"
12304 if test x$gcc_no_link = xyes; then
12305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char shl_load ();
12318 main ()
12320 return shl_load ();
12322 return 0;
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_dld_shl_load=yes
12327 else
12328 ac_cv_lib_dld_shl_load=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12335 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12336 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12337 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12338 else
12339 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12340 if test "x$ac_cv_func_dlopen" = x""yes; then :
12341 lt_cv_dlopen="dlopen"
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-ldl $LIBS"
12350 if test x$gcc_no_link = xyes; then
12351 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 char dlopen ();
12364 main ()
12366 return dlopen ();
12368 return 0;
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_lib_dl_dlopen=yes
12373 else
12374 ac_cv_lib_dl_dlopen=no
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12381 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12382 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12386 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12387 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 ac_check_lib_save_LIBS=$LIBS
12391 LIBS="-lsvld $LIBS"
12392 if test x$gcc_no_link = xyes; then
12393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char dlopen ();
12406 main ()
12408 return dlopen ();
12410 return 0;
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 ac_cv_lib_svld_dlopen=yes
12415 else
12416 ac_cv_lib_svld_dlopen=no
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12423 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12424 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12428 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12429 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-ldld $LIBS"
12434 if test x$gcc_no_link = xyes; then
12435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 #ifdef __cplusplus
12444 extern "C"
12445 #endif
12446 char dld_link ();
12448 main ()
12450 return dld_link ();
12452 return 0;
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_lib_dld_dld_link=yes
12457 else
12458 ac_cv_lib_dld_dld_link=no
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12465 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12466 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12467 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12486 esac
12488 if test "x$lt_cv_dlopen" != xno; then
12489 enable_dlopen=yes
12490 else
12491 enable_dlopen=no
12494 case $lt_cv_dlopen in
12495 dlopen)
12496 save_CPPFLAGS="$CPPFLAGS"
12497 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12499 save_LDFLAGS="$LDFLAGS"
12500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12502 save_LIBS="$LIBS"
12503 LIBS="$lt_cv_dlopen_libs $LIBS"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12506 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12507 if test "${lt_cv_dlopen_self+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 if test "$cross_compiling" = yes; then :
12511 lt_cv_dlopen_self=cross
12512 else
12513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12514 lt_status=$lt_dlunknown
12515 cat > conftest.$ac_ext <<_LT_EOF
12516 #line 12516 "configure"
12517 #include "confdefs.h"
12519 #if HAVE_DLFCN_H
12520 #include <dlfcn.h>
12521 #endif
12523 #include <stdio.h>
12525 #ifdef RTLD_GLOBAL
12526 # define LT_DLGLOBAL RTLD_GLOBAL
12527 #else
12528 # ifdef DL_GLOBAL
12529 # define LT_DLGLOBAL DL_GLOBAL
12530 # else
12531 # define LT_DLGLOBAL 0
12532 # endif
12533 #endif
12535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12536 find out it does not work in some platform. */
12537 #ifndef LT_DLLAZY_OR_NOW
12538 # ifdef RTLD_LAZY
12539 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12540 # else
12541 # ifdef DL_LAZY
12542 # define LT_DLLAZY_OR_NOW DL_LAZY
12543 # else
12544 # ifdef RTLD_NOW
12545 # define LT_DLLAZY_OR_NOW RTLD_NOW
12546 # else
12547 # ifdef DL_NOW
12548 # define LT_DLLAZY_OR_NOW DL_NOW
12549 # else
12550 # define LT_DLLAZY_OR_NOW 0
12551 # endif
12552 # endif
12553 # endif
12554 # endif
12555 #endif
12557 /* When -fvisbility=hidden is used, assume the code has been annotated
12558 correspondingly for the symbols needed. */
12559 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12560 void fnord () __attribute__((visibility("default")));
12561 #endif
12563 void fnord () { int i=42; }
12564 int main ()
12566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12567 int status = $lt_dlunknown;
12569 if (self)
12571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12572 else
12574 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12575 else puts (dlerror ());
12577 /* dlclose (self); */
12579 else
12580 puts (dlerror ());
12582 return status;
12584 _LT_EOF
12585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12586 (eval $ac_link) 2>&5
12587 ac_status=$?
12588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12589 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12590 (./conftest; exit; ) >&5 2>/dev/null
12591 lt_status=$?
12592 case x$lt_status in
12593 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12594 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12595 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12596 esac
12597 else :
12598 # compilation failed
12599 lt_cv_dlopen_self=no
12602 rm -fr conftest*
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12607 $as_echo "$lt_cv_dlopen_self" >&6; }
12609 if test "x$lt_cv_dlopen_self" = xyes; then
12610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12612 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12613 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 if test "$cross_compiling" = yes; then :
12617 lt_cv_dlopen_self_static=cross
12618 else
12619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12620 lt_status=$lt_dlunknown
12621 cat > conftest.$ac_ext <<_LT_EOF
12622 #line 12622 "configure"
12623 #include "confdefs.h"
12625 #if HAVE_DLFCN_H
12626 #include <dlfcn.h>
12627 #endif
12629 #include <stdio.h>
12631 #ifdef RTLD_GLOBAL
12632 # define LT_DLGLOBAL RTLD_GLOBAL
12633 #else
12634 # ifdef DL_GLOBAL
12635 # define LT_DLGLOBAL DL_GLOBAL
12636 # else
12637 # define LT_DLGLOBAL 0
12638 # endif
12639 #endif
12641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12642 find out it does not work in some platform. */
12643 #ifndef LT_DLLAZY_OR_NOW
12644 # ifdef RTLD_LAZY
12645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12646 # else
12647 # ifdef DL_LAZY
12648 # define LT_DLLAZY_OR_NOW DL_LAZY
12649 # else
12650 # ifdef RTLD_NOW
12651 # define LT_DLLAZY_OR_NOW RTLD_NOW
12652 # else
12653 # ifdef DL_NOW
12654 # define LT_DLLAZY_OR_NOW DL_NOW
12655 # else
12656 # define LT_DLLAZY_OR_NOW 0
12657 # endif
12658 # endif
12659 # endif
12660 # endif
12661 #endif
12663 /* When -fvisbility=hidden is used, assume the code has been annotated
12664 correspondingly for the symbols needed. */
12665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12666 void fnord () __attribute__((visibility("default")));
12667 #endif
12669 void fnord () { int i=42; }
12670 int main ()
12672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12673 int status = $lt_dlunknown;
12675 if (self)
12677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12678 else
12680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12681 else puts (dlerror ());
12683 /* dlclose (self); */
12685 else
12686 puts (dlerror ());
12688 return status;
12690 _LT_EOF
12691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12692 (eval $ac_link) 2>&5
12693 ac_status=$?
12694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12695 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12696 (./conftest; exit; ) >&5 2>/dev/null
12697 lt_status=$?
12698 case x$lt_status in
12699 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12700 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12701 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12702 esac
12703 else :
12704 # compilation failed
12705 lt_cv_dlopen_self_static=no
12708 rm -fr conftest*
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12713 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12716 CPPFLAGS="$save_CPPFLAGS"
12717 LDFLAGS="$save_LDFLAGS"
12718 LIBS="$save_LIBS"
12720 esac
12722 case $lt_cv_dlopen_self in
12723 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12724 *) enable_dlopen_self=unknown ;;
12725 esac
12727 case $lt_cv_dlopen_self_static in
12728 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12729 *) enable_dlopen_self_static=unknown ;;
12730 esac
12749 striplib=
12750 old_striplib=
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12752 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12753 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12754 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12755 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757 $as_echo "yes" >&6; }
12758 else
12759 # FIXME - insert some real tests, host_os isn't really good enough
12760 case $host_os in
12761 darwin*)
12762 if test -n "$STRIP" ; then
12763 striplib="$STRIP -x"
12764 old_striplib="$STRIP -S"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766 $as_echo "yes" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12776 esac
12790 # Report which library types will actually be built
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12792 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12794 $as_echo "$can_build_shared" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12797 $as_echo_n "checking whether to build shared libraries... " >&6; }
12798 test "$can_build_shared" = "no" && enable_shared=no
12800 # On AIX, shared libraries and static libraries use the same namespace, and
12801 # are all built from PIC.
12802 case $host_os in
12803 aix3*)
12804 test "$enable_shared" = yes && enable_static=no
12805 if test -n "$RANLIB"; then
12806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12807 postinstall_cmds='$RANLIB $lib'
12811 aix[4-9]*)
12812 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12813 test "$enable_shared" = yes && enable_static=no
12816 esac
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12818 $as_echo "$enable_shared" >&6; }
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12821 $as_echo_n "checking whether to build static libraries... " >&6; }
12822 # Make sure either enable_shared or enable_static is yes.
12823 test "$enable_shared" = yes || enable_static=yes
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12825 $as_echo "$enable_static" >&6; }
12831 ac_ext=c
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12837 CC="$lt_save_CC"
12851 ac_config_commands="$ac_config_commands libtool"
12856 # Only expand once:
12862 case $host in
12863 *-cygwin* | *-mingw*)
12864 # 'host' will be top-level target in the case of a target lib,
12865 # we must compare to with_cross_host to decide if this is a native
12866 # or cross-compiler and select where to install dlls appropriately.
12867 if test -n "$with_cross_host" &&
12868 test x"$with_cross_host" != x"no"; then
12869 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12870 else
12871 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12875 lt_host_flags=
12877 esac
12883 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12885 # We need gfortran to compile parts of the library
12886 #AC_PROG_FC(gfortran)
12887 FC="$GFORTRAN"
12888 ac_ext=${ac_fc_srcext-f}
12889 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12890 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12891 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12892 if test -n "$ac_tool_prefix"; then
12893 for ac_prog in gfortran
12895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if test "${ac_cv_prog_FC+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$FC"; then
12903 ac_cv_prog_FC="$FC" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12922 FC=$ac_cv_prog_FC
12923 if test -n "$FC"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12925 $as_echo "$FC" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12932 test -n "$FC" && break
12933 done
12935 if test -z "$FC"; then
12936 ac_ct_FC=$FC
12937 for ac_prog in gfortran
12939 # Extract the first word of "$ac_prog", so it can be a program name with args.
12940 set dummy $ac_prog; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test -n "$ac_ct_FC"; then
12947 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12948 else
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956 ac_cv_prog_ac_ct_FC="$ac_prog"
12957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12960 done
12961 done
12962 IFS=$as_save_IFS
12966 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12967 if test -n "$ac_ct_FC"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12969 $as_echo "$ac_ct_FC" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12976 test -n "$ac_ct_FC" && break
12977 done
12979 if test "x$ac_ct_FC" = x; then
12980 FC=""
12981 else
12982 case $cross_compiling:$ac_tool_warned in
12983 yes:)
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12986 ac_tool_warned=yes ;;
12987 esac
12988 FC=$ac_ct_FC
12993 # Provide some information about the compiler.
12994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12995 set X $ac_compile
12996 ac_compiler=$2
12997 for ac_option in --version -v -V -qversion; do
12998 { { ac_try="$ac_compiler $ac_option >&5"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13004 $as_echo "$ac_try_echo"; } >&5
13005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13006 ac_status=$?
13007 if test -s conftest.err; then
13008 sed '10a\
13009 ... rest of stderr output deleted ...
13010 10q' conftest.err >conftest.er1
13011 cat conftest.er1 >&5
13012 rm -f conftest.er1 conftest.err
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }
13016 done
13017 rm -f a.out
13019 # If we don't use `.F' as extension, the preprocessor is not run on the
13020 # input file. (Note that this only needs to work for GNU compilers.)
13021 ac_save_ext=$ac_ext
13022 ac_ext=F
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13024 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13025 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 cat > conftest.$ac_ext <<_ACEOF
13029 program main
13030 #ifndef __GNUC__
13031 choke me
13032 #endif
13035 _ACEOF
13036 if ac_fn_fc_try_compile "$LINENO"; then :
13037 ac_compiler_gnu=yes
13038 else
13039 ac_compiler_gnu=no
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13046 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13047 ac_ext=$ac_save_ext
13048 ac_test_FCFLAGS=${FCFLAGS+set}
13049 ac_save_FCFLAGS=$FCFLAGS
13050 FCFLAGS=
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13052 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13053 if test "${ac_cv_prog_fc_g+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 FCFLAGS=-g
13057 cat > conftest.$ac_ext <<_ACEOF
13058 program main
13061 _ACEOF
13062 if ac_fn_fc_try_compile "$LINENO"; then :
13063 ac_cv_prog_fc_g=yes
13064 else
13065 ac_cv_prog_fc_g=no
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13071 $as_echo "$ac_cv_prog_fc_g" >&6; }
13072 if test "$ac_test_FCFLAGS" = set; then
13073 FCFLAGS=$ac_save_FCFLAGS
13074 elif test $ac_cv_prog_fc_g = yes; then
13075 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13076 FCFLAGS="-g -O2"
13077 else
13078 FCFLAGS="-g"
13080 else
13081 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13082 FCFLAGS="-O2"
13083 else
13084 FCFLAGS=
13088 ac_ext=c
13089 ac_cpp='$CPP $CPPFLAGS'
13090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094 ac_ext=${ac_fc_srcext-f}
13095 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13096 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13097 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13100 if test -z "$FC" || test "X$FC" = "Xno"; then
13101 _lt_disable_FC=yes
13104 archive_cmds_need_lc_FC=no
13105 allow_undefined_flag_FC=
13106 always_export_symbols_FC=no
13107 archive_expsym_cmds_FC=
13108 export_dynamic_flag_spec_FC=
13109 hardcode_direct_FC=no
13110 hardcode_direct_absolute_FC=no
13111 hardcode_libdir_flag_spec_FC=
13112 hardcode_libdir_flag_spec_ld_FC=
13113 hardcode_libdir_separator_FC=
13114 hardcode_minus_L_FC=no
13115 hardcode_automatic_FC=no
13116 inherit_rpath_FC=no
13117 module_cmds_FC=
13118 module_expsym_cmds_FC=
13119 link_all_deplibs_FC=unknown
13120 old_archive_cmds_FC=$old_archive_cmds
13121 reload_flag_FC=$reload_flag
13122 reload_cmds_FC=$reload_cmds
13123 no_undefined_flag_FC=
13124 whole_archive_flag_spec_FC=
13125 enable_shared_with_static_runtimes_FC=no
13127 # Source file extension for fc test sources.
13128 ac_ext=${ac_fc_srcext-f}
13130 # Object file extension for compiled fc test sources.
13131 objext=o
13132 objext_FC=$objext
13134 # No sense in running all these tests if we already determined that
13135 # the FC compiler isn't working. Some variables (like enable_shared)
13136 # are currently assumed to apply to all compilers on this platform,
13137 # and will be corrupted by setting them based on a non-working compiler.
13138 if test "$_lt_disable_FC" != yes; then
13139 # Code to be used in simple compile tests
13140 lt_simple_compile_test_code="\
13141 subroutine t
13142 return
13146 # Code to be used in simple link tests
13147 lt_simple_link_test_code="\
13148 program t
13152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13159 # If no C compiler was specified, use CC.
13160 LTCC=${LTCC-"$CC"}
13162 # If no C compiler flags were specified, use CFLAGS.
13163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13165 # Allow CC to be a program name with arguments.
13166 compiler=$CC
13169 # save warnings/boilerplate of simple test code
13170 ac_outfile=conftest.$ac_objext
13171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13173 _lt_compiler_boilerplate=`cat conftest.err`
13174 $RM conftest*
13176 ac_outfile=conftest.$ac_objext
13177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13179 _lt_linker_boilerplate=`cat conftest.err`
13180 $RM -r conftest*
13183 # Allow CC to be a program name with arguments.
13184 lt_save_CC="$CC"
13185 lt_save_GCC=$GCC
13186 CC=${FC-"f95"}
13187 compiler=$CC
13188 GCC=$ac_cv_fc_compiler_gnu
13190 compiler_FC=$CC
13191 for cc_temp in $compiler""; do
13192 case $cc_temp in
13193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13195 \-*) ;;
13196 *) break;;
13197 esac
13198 done
13199 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13202 if test -n "$compiler"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13204 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13206 $as_echo "$can_build_shared" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13209 $as_echo_n "checking whether to build shared libraries... " >&6; }
13210 test "$can_build_shared" = "no" && enable_shared=no
13212 # On AIX, shared libraries and static libraries use the same namespace, and
13213 # are all built from PIC.
13214 case $host_os in
13215 aix3*)
13216 test "$enable_shared" = yes && enable_static=no
13217 if test -n "$RANLIB"; then
13218 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13219 postinstall_cmds='$RANLIB $lib'
13222 aix[4-9]*)
13223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13224 test "$enable_shared" = yes && enable_static=no
13227 esac
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13229 $as_echo "$enable_shared" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13232 $as_echo_n "checking whether to build static libraries... " >&6; }
13233 # Make sure either enable_shared or enable_static is yes.
13234 test "$enable_shared" = yes || enable_static=yes
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13236 $as_echo "$enable_static" >&6; }
13238 GCC_FC="$ac_cv_fc_compiler_gnu"
13239 LD_FC="$LD"
13241 ## CAVEAT EMPTOR:
13242 ## There is no encapsulation within the following macros, do not change
13243 ## the running order or otherwise move them around unless you know exactly
13244 ## what you are doing...
13245 # Dependencies to place before and after the object being linked:
13246 predep_objects_FC=
13247 postdep_objects_FC=
13248 predeps_FC=
13249 postdeps_FC=
13250 compiler_lib_search_path_FC=
13252 cat > conftest.$ac_ext <<_LT_EOF
13253 subroutine foo
13254 implicit none
13255 integer a
13257 return
13259 _LT_EOF
13261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13262 (eval $ac_compile) 2>&5
13263 ac_status=$?
13264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13265 test $ac_status = 0; }; then
13266 # Parse the compiler output and extract the necessary
13267 # objects, libraries and library flags.
13269 # Sentinel used to keep track of whether or not we are before
13270 # the conftest object file.
13271 pre_test_object_deps_done=no
13273 for p in `eval "$output_verbose_link_cmd"`; do
13274 case $p in
13276 -L* | -R* | -l*)
13277 # Some compilers place space between "-{L,R}" and the path.
13278 # Remove the space.
13279 if test $p = "-L" ||
13280 test $p = "-R"; then
13281 prev=$p
13282 continue
13283 else
13284 prev=
13287 if test "$pre_test_object_deps_done" = no; then
13288 case $p in
13289 -L* | -R*)
13290 # Internal compiler library paths should come after those
13291 # provided the user. The postdeps already come after the
13292 # user supplied libs so there is no need to process them.
13293 if test -z "$compiler_lib_search_path_FC"; then
13294 compiler_lib_search_path_FC="${prev}${p}"
13295 else
13296 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13299 # The "-l" case would never come before the object being
13300 # linked, so don't bother handling this case.
13301 esac
13302 else
13303 if test -z "$postdeps_FC"; then
13304 postdeps_FC="${prev}${p}"
13305 else
13306 postdeps_FC="${postdeps_FC} ${prev}${p}"
13311 *.$objext)
13312 # This assumes that the test object file only shows up
13313 # once in the compiler output.
13314 if test "$p" = "conftest.$objext"; then
13315 pre_test_object_deps_done=yes
13316 continue
13319 if test "$pre_test_object_deps_done" = no; then
13320 if test -z "$predep_objects_FC"; then
13321 predep_objects_FC="$p"
13322 else
13323 predep_objects_FC="$predep_objects_FC $p"
13325 else
13326 if test -z "$postdep_objects_FC"; then
13327 postdep_objects_FC="$p"
13328 else
13329 postdep_objects_FC="$postdep_objects_FC $p"
13334 *) ;; # Ignore the rest.
13336 esac
13337 done
13339 # Clean up.
13340 rm -f a.out a.exe
13341 else
13342 echo "libtool.m4: error: problem compiling FC test program"
13345 $RM -f confest.$objext
13347 # PORTME: override above test on systems where it is broken
13350 case " $postdeps_FC " in
13351 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13352 esac
13353 compiler_lib_search_dirs_FC=
13354 if test -n "${compiler_lib_search_path_FC}"; then
13355 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13388 lt_prog_compiler_wl_FC=
13389 lt_prog_compiler_pic_FC=
13390 lt_prog_compiler_static_FC=
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13393 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13395 if test "$GCC" = yes; then
13396 lt_prog_compiler_wl_FC='-Wl,'
13397 lt_prog_compiler_static_FC='-static'
13399 case $host_os in
13400 aix*)
13401 # All AIX code is PIC.
13402 if test "$host_cpu" = ia64; then
13403 # AIX 5 now supports IA64 processor
13404 lt_prog_compiler_static_FC='-Bstatic'
13406 lt_prog_compiler_pic_FC='-fPIC'
13409 amigaos*)
13410 case $host_cpu in
13411 powerpc)
13412 # see comment about AmigaOS4 .so support
13413 lt_prog_compiler_pic_FC='-fPIC'
13415 m68k)
13416 # FIXME: we need at least 68020 code to build shared libraries, but
13417 # adding the `-m68020' flag to GCC prevents building anything better,
13418 # like `-m68040'.
13419 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13421 esac
13424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13425 # PIC is the default for these OSes.
13428 mingw* | cygwin* | pw32* | os2* | cegcc*)
13429 # This hack is so that the source file can tell whether it is being
13430 # built for inclusion in a dll (and should export symbols for example).
13431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13432 # (--disable-auto-import) libraries
13433 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13436 darwin* | rhapsody*)
13437 # PIC is the default on this platform
13438 # Common symbols not allowed in MH_DYLIB files
13439 lt_prog_compiler_pic_FC='-fno-common'
13442 haiku*)
13443 # PIC is the default for Haiku.
13444 # The "-static" flag exists, but is broken.
13445 lt_prog_compiler_static_FC=
13448 hpux*)
13449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13451 # sets the default TLS model and affects inlining.
13452 case $host_cpu in
13453 hppa*64*)
13454 # +Z the default
13457 lt_prog_compiler_pic_FC='-fPIC'
13459 esac
13462 interix[3-9]*)
13463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13464 # Instead, we relocate shared libraries at runtime.
13467 msdosdjgpp*)
13468 # Just because we use GCC doesn't mean we suddenly get shared libraries
13469 # on systems that don't support them.
13470 lt_prog_compiler_can_build_shared_FC=no
13471 enable_shared=no
13474 *nto* | *qnx*)
13475 # QNX uses GNU C++, but need to define -shared option too, otherwise
13476 # it will coredump.
13477 lt_prog_compiler_pic_FC='-fPIC -shared'
13480 sysv4*MP*)
13481 if test -d /usr/nec; then
13482 lt_prog_compiler_pic_FC=-Kconform_pic
13487 lt_prog_compiler_pic_FC='-fPIC'
13489 esac
13491 case $cc_basename in
13492 nvcc*) # Cuda Compiler Driver 2.2
13493 lt_prog_compiler_wl_FC='-Xlinker '
13494 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13496 esac
13497 else
13498 # PORTME Check for flag to pass linker flags through the system compiler.
13499 case $host_os in
13500 aix*)
13501 lt_prog_compiler_wl_FC='-Wl,'
13502 if test "$host_cpu" = ia64; then
13503 # AIX 5 now supports IA64 processor
13504 lt_prog_compiler_static_FC='-Bstatic'
13505 else
13506 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13510 mingw* | cygwin* | pw32* | os2* | cegcc*)
13511 # This hack is so that the source file can tell whether it is being
13512 # built for inclusion in a dll (and should export symbols for example).
13513 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13516 hpux9* | hpux10* | hpux11*)
13517 lt_prog_compiler_wl_FC='-Wl,'
13518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13519 # not for PA HP-UX.
13520 case $host_cpu in
13521 hppa*64*|ia64*)
13522 # +Z the default
13525 lt_prog_compiler_pic_FC='+Z'
13527 esac
13528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13529 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13532 irix5* | irix6* | nonstopux*)
13533 lt_prog_compiler_wl_FC='-Wl,'
13534 # PIC (with -KPIC) is the default.
13535 lt_prog_compiler_static_FC='-non_shared'
13538 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13539 case $cc_basename in
13540 # old Intel for x86_64 which still supported -KPIC.
13541 ecc*)
13542 lt_prog_compiler_wl_FC='-Wl,'
13543 lt_prog_compiler_pic_FC='-KPIC'
13544 lt_prog_compiler_static_FC='-static'
13546 # icc used to be incompatible with GCC.
13547 # ICC 10 doesn't accept -KPIC any more.
13548 icc* | ifort*)
13549 lt_prog_compiler_wl_FC='-Wl,'
13550 lt_prog_compiler_pic_FC='-fPIC'
13551 lt_prog_compiler_static_FC='-static'
13553 # Lahey Fortran 8.1.
13554 lf95*)
13555 lt_prog_compiler_wl_FC='-Wl,'
13556 lt_prog_compiler_pic_FC='--shared'
13557 lt_prog_compiler_static_FC='--static'
13559 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13560 # Portland Group compilers (*not* the Pentium gcc compiler,
13561 # which looks to be a dead project)
13562 lt_prog_compiler_wl_FC='-Wl,'
13563 lt_prog_compiler_pic_FC='-fpic'
13564 lt_prog_compiler_static_FC='-Bstatic'
13566 ccc*)
13567 lt_prog_compiler_wl_FC='-Wl,'
13568 # All Alpha code is PIC.
13569 lt_prog_compiler_static_FC='-non_shared'
13571 xl* | bgxl* | bgf* | mpixl*)
13572 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13573 lt_prog_compiler_wl_FC='-Wl,'
13574 lt_prog_compiler_pic_FC='-qpic'
13575 lt_prog_compiler_static_FC='-qstaticlink'
13578 case `$CC -V 2>&1 | sed 5q` in
13579 *Sun\ F* | *Sun*Fortran*)
13580 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13581 lt_prog_compiler_pic_FC='-KPIC'
13582 lt_prog_compiler_static_FC='-Bstatic'
13583 lt_prog_compiler_wl_FC=''
13585 *Sun\ C*)
13586 # Sun C 5.9
13587 lt_prog_compiler_pic_FC='-KPIC'
13588 lt_prog_compiler_static_FC='-Bstatic'
13589 lt_prog_compiler_wl_FC='-Wl,'
13591 esac
13593 esac
13596 newsos6)
13597 lt_prog_compiler_pic_FC='-KPIC'
13598 lt_prog_compiler_static_FC='-Bstatic'
13601 *nto* | *qnx*)
13602 # QNX uses GNU C++, but need to define -shared option too, otherwise
13603 # it will coredump.
13604 lt_prog_compiler_pic_FC='-fPIC -shared'
13607 osf3* | osf4* | osf5*)
13608 lt_prog_compiler_wl_FC='-Wl,'
13609 # All OSF/1 code is PIC.
13610 lt_prog_compiler_static_FC='-non_shared'
13613 rdos*)
13614 lt_prog_compiler_static_FC='-non_shared'
13617 solaris*)
13618 lt_prog_compiler_pic_FC='-KPIC'
13619 lt_prog_compiler_static_FC='-Bstatic'
13620 case $cc_basename in
13621 f77* | f90* | f95*)
13622 lt_prog_compiler_wl_FC='-Qoption ld ';;
13624 lt_prog_compiler_wl_FC='-Wl,';;
13625 esac
13628 sunos4*)
13629 lt_prog_compiler_wl_FC='-Qoption ld '
13630 lt_prog_compiler_pic_FC='-PIC'
13631 lt_prog_compiler_static_FC='-Bstatic'
13634 sysv4 | sysv4.2uw2* | sysv4.3*)
13635 lt_prog_compiler_wl_FC='-Wl,'
13636 lt_prog_compiler_pic_FC='-KPIC'
13637 lt_prog_compiler_static_FC='-Bstatic'
13640 sysv4*MP*)
13641 if test -d /usr/nec ;then
13642 lt_prog_compiler_pic_FC='-Kconform_pic'
13643 lt_prog_compiler_static_FC='-Bstatic'
13647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13648 lt_prog_compiler_wl_FC='-Wl,'
13649 lt_prog_compiler_pic_FC='-KPIC'
13650 lt_prog_compiler_static_FC='-Bstatic'
13653 unicos*)
13654 lt_prog_compiler_wl_FC='-Wl,'
13655 lt_prog_compiler_can_build_shared_FC=no
13658 uts4*)
13659 lt_prog_compiler_pic_FC='-pic'
13660 lt_prog_compiler_static_FC='-Bstatic'
13664 lt_prog_compiler_can_build_shared_FC=no
13666 esac
13669 case $host_os in
13670 # For platforms which do not support PIC, -DPIC is meaningless:
13671 *djgpp*)
13672 lt_prog_compiler_pic_FC=
13675 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13677 esac
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13679 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13684 # Check to make sure the PIC flag actually works.
13686 if test -n "$lt_prog_compiler_pic_FC"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13689 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 lt_cv_prog_compiler_pic_works_FC=no
13693 ac_outfile=conftest.$ac_objext
13694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13695 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13696 # Insert the option either (1) after the last *FLAGS variable, or
13697 # (2) before a word containing "conftest.", or (3) at the end.
13698 # Note that $ac_compile itself does not contain backslashes and begins
13699 # with a dollar sign (not a hyphen), so the echo should work correctly.
13700 # The option is referenced via a variable to avoid confusing sed.
13701 lt_compile=`echo "$ac_compile" | $SED \
13702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13704 -e 's:$: $lt_compiler_flag:'`
13705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13706 (eval "$lt_compile" 2>conftest.err)
13707 ac_status=$?
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 if (exit $ac_status) && test -s "$ac_outfile"; then
13711 # The compiler can only warn and ignore the option if not recognized
13712 # So say no if there are warnings other than the usual output.
13713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13716 lt_cv_prog_compiler_pic_works_FC=yes
13719 $RM conftest*
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13723 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13725 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13726 case $lt_prog_compiler_pic_FC in
13727 "" | " "*) ;;
13728 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13729 esac
13730 else
13731 lt_prog_compiler_pic_FC=
13732 lt_prog_compiler_can_build_shared_FC=no
13740 # Check to make sure the static flag actually works.
13742 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13745 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 lt_cv_prog_compiler_static_works_FC=no
13749 save_LDFLAGS="$LDFLAGS"
13750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13753 # The linker can only warn and ignore the option if not recognized
13754 # So say no if there are warnings
13755 if test -s conftest.err; then
13756 # Append any errors to the config.log.
13757 cat conftest.err 1>&5
13758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13760 if diff conftest.exp conftest.er2 >/dev/null; then
13761 lt_cv_prog_compiler_static_works_FC=yes
13763 else
13764 lt_cv_prog_compiler_static_works_FC=yes
13767 $RM -r conftest*
13768 LDFLAGS="$save_LDFLAGS"
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13772 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13774 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13776 else
13777 lt_prog_compiler_static_FC=
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13785 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 lt_cv_prog_compiler_c_o_FC=no
13789 $RM -r conftest 2>/dev/null
13790 mkdir conftest
13791 cd conftest
13792 mkdir out
13793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13795 lt_compiler_flag="-o out/conftest2.$ac_objext"
13796 # Insert the option either (1) after the last *FLAGS variable, or
13797 # (2) before a word containing "conftest.", or (3) at the end.
13798 # Note that $ac_compile itself does not contain backslashes and begins
13799 # with a dollar sign (not a hyphen), so the echo should work correctly.
13800 lt_compile=`echo "$ac_compile" | $SED \
13801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803 -e 's:$: $lt_compiler_flag:'`
13804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13805 (eval "$lt_compile" 2>out/conftest.err)
13806 ac_status=$?
13807 cat out/conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13810 then
13811 # The compiler can only warn and ignore the option if not recognized
13812 # So say no if there are warnings
13813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13816 lt_cv_prog_compiler_c_o_FC=yes
13819 chmod u+w . 2>&5
13820 $RM conftest*
13821 # SGI C++ compiler will create directory out/ii_files/ for
13822 # template instantiation
13823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13824 $RM out/* && rmdir out
13825 cd ..
13826 $RM -r conftest
13827 $RM conftest*
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13831 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13837 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 lt_cv_prog_compiler_c_o_FC=no
13841 $RM -r conftest 2>/dev/null
13842 mkdir conftest
13843 cd conftest
13844 mkdir out
13845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13847 lt_compiler_flag="-o out/conftest2.$ac_objext"
13848 # Insert the option either (1) after the last *FLAGS variable, or
13849 # (2) before a word containing "conftest.", or (3) at the end.
13850 # Note that $ac_compile itself does not contain backslashes and begins
13851 # with a dollar sign (not a hyphen), so the echo should work correctly.
13852 lt_compile=`echo "$ac_compile" | $SED \
13853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13855 -e 's:$: $lt_compiler_flag:'`
13856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13857 (eval "$lt_compile" 2>out/conftest.err)
13858 ac_status=$?
13859 cat out/conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13862 then
13863 # The compiler can only warn and ignore the option if not recognized
13864 # So say no if there are warnings
13865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13868 lt_cv_prog_compiler_c_o_FC=yes
13871 chmod u+w . 2>&5
13872 $RM conftest*
13873 # SGI C++ compiler will create directory out/ii_files/ for
13874 # template instantiation
13875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13876 $RM out/* && rmdir out
13877 cd ..
13878 $RM -r conftest
13879 $RM conftest*
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13883 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13888 hard_links="nottested"
13889 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13890 # do not overwrite the value of need_locks provided by the user
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13892 $as_echo_n "checking if we can lock with hard links... " >&6; }
13893 hard_links=yes
13894 $RM conftest*
13895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13896 touch conftest.a
13897 ln conftest.a conftest.b 2>&5 || hard_links=no
13898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13900 $as_echo "$hard_links" >&6; }
13901 if test "$hard_links" = no; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13904 need_locks=warn
13906 else
13907 need_locks=no
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13915 runpath_var=
13916 allow_undefined_flag_FC=
13917 always_export_symbols_FC=no
13918 archive_cmds_FC=
13919 archive_expsym_cmds_FC=
13920 compiler_needs_object_FC=no
13921 enable_shared_with_static_runtimes_FC=no
13922 export_dynamic_flag_spec_FC=
13923 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13924 hardcode_automatic_FC=no
13925 hardcode_direct_FC=no
13926 hardcode_direct_absolute_FC=no
13927 hardcode_libdir_flag_spec_FC=
13928 hardcode_libdir_flag_spec_ld_FC=
13929 hardcode_libdir_separator_FC=
13930 hardcode_minus_L_FC=no
13931 hardcode_shlibpath_var_FC=unsupported
13932 inherit_rpath_FC=no
13933 link_all_deplibs_FC=unknown
13934 module_cmds_FC=
13935 module_expsym_cmds_FC=
13936 old_archive_from_new_cmds_FC=
13937 old_archive_from_expsyms_cmds_FC=
13938 thread_safe_flag_spec_FC=
13939 whole_archive_flag_spec_FC=
13940 # include_expsyms should be a list of space-separated symbols to be *always*
13941 # included in the symbol list
13942 include_expsyms_FC=
13943 # exclude_expsyms can be an extended regexp of symbols to exclude
13944 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13945 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13946 # as well as any symbol that contains `d'.
13947 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13948 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13949 # platforms (ab)use it in PIC code, but their linkers get confused if
13950 # the symbol is explicitly referenced. Since portable code cannot
13951 # rely on this symbol name, it's probably fine to never include it in
13952 # preloaded symbol tables.
13953 # Exclude shared library initialization/finalization symbols.
13954 extract_expsyms_cmds=
13956 case $host_os in
13957 cygwin* | mingw* | pw32* | cegcc*)
13958 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13959 # When not using gcc, we currently assume that we are using
13960 # Microsoft Visual C++.
13961 if test "$GCC" != yes; then
13962 with_gnu_ld=no
13965 interix*)
13966 # we just hope/assume this is gcc and not c89 (= MSVC++)
13967 with_gnu_ld=yes
13969 openbsd*)
13970 with_gnu_ld=no
13972 esac
13974 ld_shlibs_FC=yes
13976 # On some targets, GNU ld is compatible enough with the native linker
13977 # that we're better off using the native interface for both.
13978 lt_use_gnu_ld_interface=no
13979 if test "$with_gnu_ld" = yes; then
13980 case $host_os in
13981 aix*)
13982 # The AIX port of GNU ld has always aspired to compatibility
13983 # with the native linker. However, as the warning in the GNU ld
13984 # block says, versions before 2.19.5* couldn't really create working
13985 # shared libraries, regardless of the interface used.
13986 case `$LD -v 2>&1` in
13987 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13988 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13989 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13991 lt_use_gnu_ld_interface=yes
13993 esac
13996 lt_use_gnu_ld_interface=yes
13998 esac
14001 if test "$lt_use_gnu_ld_interface" = yes; then
14002 # If archive_cmds runs LD, not CC, wlarc should be empty
14003 wlarc='${wl}'
14005 # Set some defaults for GNU ld with shared library support. These
14006 # are reset later if shared libraries are not supported. Putting them
14007 # here allows them to be overridden if necessary.
14008 runpath_var=LD_RUN_PATH
14009 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14010 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14011 # ancient GNU ld didn't support --whole-archive et. al.
14012 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14013 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14014 else
14015 whole_archive_flag_spec_FC=
14017 supports_anon_versioning=no
14018 case `$LD -v 2>&1` in
14019 *GNU\ gold*) supports_anon_versioning=yes ;;
14020 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14023 *\ 2.11.*) ;; # other 2.11 versions
14024 *) supports_anon_versioning=yes ;;
14025 esac
14027 # See if GNU ld supports shared libraries.
14028 case $host_os in
14029 aix[3-9]*)
14030 # On AIX/PPC, the GNU linker is very broken
14031 if test "$host_cpu" != ia64; then
14032 ld_shlibs_FC=no
14033 cat <<_LT_EOF 1>&2
14035 *** Warning: the GNU linker, at least up to release 2.19, is reported
14036 *** to be unable to reliably create shared libraries on AIX.
14037 *** Therefore, libtool is disabling shared libraries support. If you
14038 *** really care for shared libraries, you may want to install binutils
14039 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14040 *** You will then need to restart the configuration process.
14042 _LT_EOF
14046 amigaos*)
14047 case $host_cpu in
14048 powerpc)
14049 # see comment about AmigaOS4 .so support
14050 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14051 archive_expsym_cmds_FC=''
14053 m68k)
14054 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)'
14055 hardcode_libdir_flag_spec_FC='-L$libdir'
14056 hardcode_minus_L_FC=yes
14058 esac
14061 beos*)
14062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14063 allow_undefined_flag_FC=unsupported
14064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14065 # support --undefined. This deserves some investigation. FIXME
14066 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 else
14068 ld_shlibs_FC=no
14072 cygwin* | mingw* | pw32* | cegcc*)
14073 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14074 # as there is no search path for DLLs.
14075 hardcode_libdir_flag_spec_FC='-L$libdir'
14076 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14077 allow_undefined_flag_FC=unsupported
14078 always_export_symbols_FC=no
14079 enable_shared_with_static_runtimes_FC=yes
14080 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14082 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14083 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14084 # If the export-symbols file already is a .def file (1st line
14085 # is EXPORTS), use it as is; otherwise, prepend...
14086 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14087 cp $export_symbols $output_objdir/$soname.def;
14088 else
14089 echo EXPORTS > $output_objdir/$soname.def;
14090 cat $export_symbols >> $output_objdir/$soname.def;
14092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14093 else
14094 ld_shlibs_FC=no
14098 haiku*)
14099 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14100 link_all_deplibs_FC=yes
14103 interix[3-9]*)
14104 hardcode_direct_FC=no
14105 hardcode_shlibpath_var_FC=no
14106 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14107 export_dynamic_flag_spec_FC='${wl}-E'
14108 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14109 # Instead, shared libraries are loaded at an image base (0x10000000 by
14110 # default) and relocated if they conflict, which is a slow very memory
14111 # consuming and fragmenting process. To avoid this, we pick a random,
14112 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14113 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14114 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'
14115 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'
14118 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14119 tmp_diet=no
14120 if test "$host_os" = linux-dietlibc; then
14121 case $cc_basename in
14122 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14123 esac
14125 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14126 && test "$tmp_diet" = no
14127 then
14128 tmp_addflag=' $pic_flag'
14129 tmp_sharedflag='-shared'
14130 case $cc_basename,$host_cpu in
14131 pgcc*) # Portland Group C compiler
14132 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'
14133 tmp_addflag=' $pic_flag'
14135 pgf77* | pgf90* | pgf95* | pgfortran*)
14136 # Portland Group f77 and f90 compilers
14137 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'
14138 tmp_addflag=' $pic_flag -Mnomain' ;;
14139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14140 tmp_addflag=' -i_dynamic' ;;
14141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14142 tmp_addflag=' -i_dynamic -nofor_main' ;;
14143 ifc* | ifort*) # Intel Fortran compiler
14144 tmp_addflag=' -nofor_main' ;;
14145 lf95*) # Lahey Fortran 8.1
14146 whole_archive_flag_spec_FC=
14147 tmp_sharedflag='--shared' ;;
14148 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14149 tmp_sharedflag='-qmkshrobj'
14150 tmp_addflag= ;;
14151 nvcc*) # Cuda Compiler Driver 2.2
14152 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'
14153 compiler_needs_object_FC=yes
14155 esac
14156 case `$CC -V 2>&1 | sed 5q` in
14157 *Sun\ C*) # Sun C 5.9
14158 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'
14159 compiler_needs_object_FC=yes
14160 tmp_sharedflag='-G' ;;
14161 *Sun\ F*) # Sun Fortran 8.3
14162 tmp_sharedflag='-G' ;;
14163 esac
14164 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166 if test "x$supports_anon_versioning" = xyes; then
14167 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14169 echo "local: *; };" >> $output_objdir/$libname.ver~
14170 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14173 case $cc_basename in
14174 xlf* | bgf* | bgxlf* | mpixlf*)
14175 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14176 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14177 hardcode_libdir_flag_spec_FC=
14178 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14179 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14180 if test "x$supports_anon_versioning" = xyes; then
14181 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14183 echo "local: *; };" >> $output_objdir/$libname.ver~
14184 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14187 esac
14188 else
14189 ld_shlibs_FC=no
14193 netbsd*)
14194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14195 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14196 wlarc=
14197 else
14198 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14203 solaris*)
14204 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14205 ld_shlibs_FC=no
14206 cat <<_LT_EOF 1>&2
14208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14209 *** create shared libraries on Solaris systems. Therefore, libtool
14210 *** is disabling shared libraries support. We urge you to upgrade GNU
14211 *** binutils to release 2.9.1 or newer. Another option is to modify
14212 *** your PATH or compiler configuration so that the native linker is
14213 *** used, and then restart.
14215 _LT_EOF
14216 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14217 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14219 else
14220 ld_shlibs_FC=no
14224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14225 case `$LD -v 2>&1` in
14226 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14227 ld_shlibs_FC=no
14228 cat <<_LT_EOF 1>&2
14230 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14231 *** reliably create shared libraries on SCO systems. Therefore, libtool
14232 *** is disabling shared libraries support. We urge you to upgrade GNU
14233 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14234 *** your PATH or compiler configuration so that the native linker is
14235 *** used, and then restart.
14237 _LT_EOF
14240 # For security reasons, it is highly recommended that you always
14241 # use absolute paths for naming shared libraries, and exclude the
14242 # DT_RUNPATH tag from executables and libraries. But doing so
14243 # requires that you compile everything twice, which is a pain.
14244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14245 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14246 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14247 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14248 else
14249 ld_shlibs_FC=no
14252 esac
14255 sunos4*)
14256 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14257 wlarc=
14258 hardcode_direct_FC=yes
14259 hardcode_shlibpath_var_FC=no
14263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14264 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14265 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14266 else
14267 ld_shlibs_FC=no
14270 esac
14272 if test "$ld_shlibs_FC" = no; then
14273 runpath_var=
14274 hardcode_libdir_flag_spec_FC=
14275 export_dynamic_flag_spec_FC=
14276 whole_archive_flag_spec_FC=
14278 else
14279 # PORTME fill in a description of your system's linker (not GNU ld)
14280 case $host_os in
14281 aix3*)
14282 allow_undefined_flag_FC=unsupported
14283 always_export_symbols_FC=yes
14284 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'
14285 # Note: this linker hardcodes the directories in LIBPATH if there
14286 # are no directories specified by -L.
14287 hardcode_minus_L_FC=yes
14288 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14289 # Neither direct hardcoding nor static linking is supported with a
14290 # broken collect2.
14291 hardcode_direct_FC=unsupported
14295 aix[4-9]*)
14296 if test "$host_cpu" = ia64; then
14297 # On IA64, the linker does run time linking by default, so we don't
14298 # have to do anything special.
14299 aix_use_runtimelinking=no
14300 exp_sym_flag='-Bexport'
14301 no_entry_flag=""
14302 else
14303 # If we're using GNU nm, then we don't want the "-C" option.
14304 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14305 # Also, AIX nm treats weak defined symbols like other global
14306 # defined symbols, whereas GNU nm marks them as "W".
14307 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14308 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'
14309 else
14310 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'
14312 aix_use_runtimelinking=no
14314 # Test if we are trying to use run time linking or normal
14315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14316 # need to do runtime linking.
14317 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14318 for ld_flag in $LDFLAGS; do
14319 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14320 aix_use_runtimelinking=yes
14321 break
14323 done
14325 esac
14327 exp_sym_flag='-bexport'
14328 no_entry_flag='-bnoentry'
14331 # When large executables or shared objects are built, AIX ld can
14332 # have problems creating the table of contents. If linking a library
14333 # or program results in "error TOC overflow" add -mminimal-toc to
14334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14337 archive_cmds_FC=''
14338 hardcode_direct_FC=yes
14339 hardcode_direct_absolute_FC=yes
14340 hardcode_libdir_separator_FC=':'
14341 link_all_deplibs_FC=yes
14342 file_list_spec_FC='${wl}-f,'
14344 if test "$GCC" = yes; then
14345 case $host_os in aix4.[012]|aix4.[012].*)
14346 # We only want to do this on AIX 4.2 and lower, the check
14347 # below for broken collect2 doesn't work under 4.3+
14348 collect2name=`${CC} -print-prog-name=collect2`
14349 if test -f "$collect2name" &&
14350 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14351 then
14352 # We have reworked collect2
14354 else
14355 # We have old collect2
14356 hardcode_direct_FC=unsupported
14357 # It fails to find uninstalled libraries when the uninstalled
14358 # path is not listed in the libpath. Setting hardcode_minus_L
14359 # to unsupported forces relinking
14360 hardcode_minus_L_FC=yes
14361 hardcode_libdir_flag_spec_FC='-L$libdir'
14362 hardcode_libdir_separator_FC=
14365 esac
14366 shared_flag='-shared'
14367 if test "$aix_use_runtimelinking" = yes; then
14368 shared_flag="$shared_flag "'${wl}-G'
14370 else
14371 # not using gcc
14372 if test "$host_cpu" = ia64; then
14373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14374 # chokes on -Wl,-G. The following line is correct:
14375 shared_flag='-G'
14376 else
14377 if test "$aix_use_runtimelinking" = yes; then
14378 shared_flag='${wl}-G'
14379 else
14380 shared_flag='${wl}-bM:SRE'
14385 export_dynamic_flag_spec_FC='${wl}-bexpall'
14386 # It seems that -bexpall does not export symbols beginning with
14387 # underscore (_), so it is better to generate a list of symbols to export.
14388 always_export_symbols_FC=yes
14389 if test "$aix_use_runtimelinking" = yes; then
14390 # Warning - without using the other runtime loading flags (-brtl),
14391 # -berok will link without error, but may produce a broken library.
14392 allow_undefined_flag_FC='-berok'
14393 # Determine the default libpath from the value encoded in an
14394 # empty executable.
14395 if test x$gcc_no_link = xyes; then
14396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14398 cat > conftest.$ac_ext <<_ACEOF
14399 program main
14402 _ACEOF
14403 if ac_fn_fc_try_link "$LINENO"; then :
14405 lt_aix_libpath_sed='
14406 /Import File Strings/,/^$/ {
14407 /^0/ {
14408 s/^0 *\(.*\)$/\1/
14412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14413 # Check for a 64-bit object if we didn't find anything.
14414 if test -z "$aix_libpath"; then
14415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14422 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14423 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"
14424 else
14425 if test "$host_cpu" = ia64; then
14426 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14427 allow_undefined_flag_FC="-z nodefs"
14428 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"
14429 else
14430 # Determine the default libpath from the value encoded in an
14431 # empty executable.
14432 if test x$gcc_no_link = xyes; then
14433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14435 cat > conftest.$ac_ext <<_ACEOF
14436 program main
14439 _ACEOF
14440 if ac_fn_fc_try_link "$LINENO"; then :
14442 lt_aix_libpath_sed='
14443 /Import File Strings/,/^$/ {
14444 /^0/ {
14445 s/^0 *\(.*\)$/\1/
14449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14450 # Check for a 64-bit object if we didn't find anything.
14451 if test -z "$aix_libpath"; then
14452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14459 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14460 # Warning - without using the other run time loading flags,
14461 # -berok will link without error, but may produce a broken library.
14462 no_undefined_flag_FC=' ${wl}-bernotok'
14463 allow_undefined_flag_FC=' ${wl}-berok'
14464 if test "$with_gnu_ld" = yes; then
14465 # We only use this code for GNU lds that support --whole-archive.
14466 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14467 else
14468 # Exported symbols can be pulled into shared objects from archives
14469 whole_archive_flag_spec_FC='$convenience'
14471 archive_cmds_need_lc_FC=yes
14472 # This is similar to how AIX traditionally builds its shared libraries.
14473 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'
14478 amigaos*)
14479 case $host_cpu in
14480 powerpc)
14481 # see comment about AmigaOS4 .so support
14482 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483 archive_expsym_cmds_FC=''
14485 m68k)
14486 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)'
14487 hardcode_libdir_flag_spec_FC='-L$libdir'
14488 hardcode_minus_L_FC=yes
14490 esac
14493 bsdi[45]*)
14494 export_dynamic_flag_spec_FC=-rdynamic
14497 cygwin* | mingw* | pw32* | cegcc*)
14498 # When not using gcc, we currently assume that we are using
14499 # Microsoft Visual C++.
14500 # hardcode_libdir_flag_spec is actually meaningless, as there is
14501 # no search path for DLLs.
14502 hardcode_libdir_flag_spec_FC=' '
14503 allow_undefined_flag_FC=unsupported
14504 # Tell ltmain to make .lib files, not .a files.
14505 libext=lib
14506 # Tell ltmain to make .dll files, not .so files.
14507 shrext_cmds=".dll"
14508 # FIXME: Setting linknames here is a bad hack.
14509 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14510 # The linker will automatically build a .lib file if we build a DLL.
14511 old_archive_from_new_cmds_FC='true'
14512 # FIXME: Should let the user specify the lib program.
14513 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14514 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14515 enable_shared_with_static_runtimes_FC=yes
14518 darwin* | rhapsody*)
14521 archive_cmds_need_lc_FC=no
14522 hardcode_direct_FC=no
14523 hardcode_automatic_FC=yes
14524 hardcode_shlibpath_var_FC=unsupported
14525 if test "$lt_cv_ld_force_load" = "yes"; then
14526 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\"`'
14527 else
14528 whole_archive_flag_spec_FC=''
14530 link_all_deplibs_FC=yes
14531 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14532 case $cc_basename in
14533 ifort*) _lt_dar_can_shared=yes ;;
14534 *) _lt_dar_can_shared=$GCC ;;
14535 esac
14536 if test "$_lt_dar_can_shared" = "yes"; then
14537 output_verbose_link_cmd=func_echo_all
14538 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}"
14539 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14540 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}"
14541 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}"
14543 else
14544 ld_shlibs_FC=no
14549 dgux*)
14550 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_libdir_flag_spec_FC='-L$libdir'
14552 hardcode_shlibpath_var_FC=no
14555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14556 # support. Future versions do this automatically, but an explicit c++rt0.o
14557 # does not break anything, and helps significantly (at the cost of a little
14558 # extra space).
14559 freebsd2.2*)
14560 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14561 hardcode_libdir_flag_spec_FC='-R$libdir'
14562 hardcode_direct_FC=yes
14563 hardcode_shlibpath_var_FC=no
14566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14567 freebsd2.*)
14568 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_direct_FC=yes
14570 hardcode_minus_L_FC=yes
14571 hardcode_shlibpath_var_FC=no
14574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14575 freebsd* | dragonfly*)
14576 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14577 hardcode_libdir_flag_spec_FC='-R$libdir'
14578 hardcode_direct_FC=yes
14579 hardcode_shlibpath_var_FC=no
14582 hpux9*)
14583 if test "$GCC" = yes; then
14584 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'
14585 else
14586 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'
14588 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14589 hardcode_libdir_separator_FC=:
14590 hardcode_direct_FC=yes
14592 # hardcode_minus_L: Not really in the search PATH,
14593 # but as the default location of the library.
14594 hardcode_minus_L_FC=yes
14595 export_dynamic_flag_spec_FC='${wl}-E'
14598 hpux10*)
14599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14600 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14601 else
14602 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14604 if test "$with_gnu_ld" = no; then
14605 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14606 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14607 hardcode_libdir_separator_FC=:
14608 hardcode_direct_FC=yes
14609 hardcode_direct_absolute_FC=yes
14610 export_dynamic_flag_spec_FC='${wl}-E'
14611 # hardcode_minus_L: Not really in the search PATH,
14612 # but as the default location of the library.
14613 hardcode_minus_L_FC=yes
14617 hpux11*)
14618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14619 case $host_cpu in
14620 hppa*64*)
14621 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14623 ia64*)
14624 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14629 esac
14630 else
14631 case $host_cpu in
14632 hppa*64*)
14633 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14635 ia64*)
14636 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14639 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14641 esac
14643 if test "$with_gnu_ld" = no; then
14644 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14645 hardcode_libdir_separator_FC=:
14647 case $host_cpu in
14648 hppa*64*|ia64*)
14649 hardcode_direct_FC=no
14650 hardcode_shlibpath_var_FC=no
14653 hardcode_direct_FC=yes
14654 hardcode_direct_absolute_FC=yes
14655 export_dynamic_flag_spec_FC='${wl}-E'
14657 # hardcode_minus_L: Not really in the search PATH,
14658 # but as the default location of the library.
14659 hardcode_minus_L_FC=yes
14661 esac
14665 irix5* | irix6* | nonstopux*)
14666 if test "$GCC" = yes; then
14667 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'
14668 # Try to use the -exported_symbol ld option, if it does not
14669 # work, assume that -exports_file does not work either and
14670 # implicitly export all symbols.
14671 save_LDFLAGS="$LDFLAGS"
14672 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14673 if test x$gcc_no_link = xyes; then
14674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14676 cat > conftest.$ac_ext <<_ACEOF
14677 int foo(void) {}
14678 _ACEOF
14679 if ac_fn_fc_try_link "$LINENO"; then :
14680 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'
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685 LDFLAGS="$save_LDFLAGS"
14686 else
14687 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'
14688 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'
14690 archive_cmds_need_lc_FC='no'
14691 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14692 hardcode_libdir_separator_FC=:
14693 inherit_rpath_FC=yes
14694 link_all_deplibs_FC=yes
14697 netbsd*)
14698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14699 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14700 else
14701 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14703 hardcode_libdir_flag_spec_FC='-R$libdir'
14704 hardcode_direct_FC=yes
14705 hardcode_shlibpath_var_FC=no
14708 newsos6)
14709 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_direct_FC=yes
14711 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14712 hardcode_libdir_separator_FC=:
14713 hardcode_shlibpath_var_FC=no
14716 *nto* | *qnx*)
14719 openbsd*)
14720 if test -f /usr/libexec/ld.so; then
14721 hardcode_direct_FC=yes
14722 hardcode_shlibpath_var_FC=no
14723 hardcode_direct_absolute_FC=yes
14724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14725 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14726 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14727 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14728 export_dynamic_flag_spec_FC='${wl}-E'
14729 else
14730 case $host_os in
14731 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14732 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14733 hardcode_libdir_flag_spec_FC='-R$libdir'
14736 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14737 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14739 esac
14741 else
14742 ld_shlibs_FC=no
14746 os2*)
14747 hardcode_libdir_flag_spec_FC='-L$libdir'
14748 hardcode_minus_L_FC=yes
14749 allow_undefined_flag_FC=unsupported
14750 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'
14751 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14754 osf3*)
14755 if test "$GCC" = yes; then
14756 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14757 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'
14758 else
14759 allow_undefined_flag_FC=' -expect_unresolved \*'
14760 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'
14762 archive_cmds_need_lc_FC='no'
14763 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14764 hardcode_libdir_separator_FC=:
14767 osf4* | osf5*) # as osf3* with the addition of -msym flag
14768 if test "$GCC" = yes; then
14769 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14770 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'
14771 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14772 else
14773 allow_undefined_flag_FC=' -expect_unresolved \*'
14774 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'
14775 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~
14776 $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'
14778 # Both c and cxx compiler support -rpath directly
14779 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14781 archive_cmds_need_lc_FC='no'
14782 hardcode_libdir_separator_FC=:
14785 solaris*)
14786 no_undefined_flag_FC=' -z defs'
14787 if test "$GCC" = yes; then
14788 wlarc='${wl}'
14789 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14790 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14791 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14792 else
14793 case `$CC -V 2>&1` in
14794 *"Compilers 5.0"*)
14795 wlarc=''
14796 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14801 wlarc='${wl}'
14802 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14804 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14806 esac
14808 hardcode_libdir_flag_spec_FC='-R$libdir'
14809 hardcode_shlibpath_var_FC=no
14810 case $host_os in
14811 solaris2.[0-5] | solaris2.[0-5].*) ;;
14813 # The compiler driver will combine and reorder linker options,
14814 # but understands `-z linker_flag'. GCC discards it without `$wl',
14815 # but is careful enough not to reorder.
14816 # Supported since Solaris 2.6 (maybe 2.5.1?)
14817 if test "$GCC" = yes; then
14818 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14819 else
14820 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14823 esac
14824 link_all_deplibs_FC=yes
14827 sunos4*)
14828 if test "x$host_vendor" = xsequent; then
14829 # Use $CC to link under sequent, because it throws in some extra .o
14830 # files that make .init and .fini sections work.
14831 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14832 else
14833 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14835 hardcode_libdir_flag_spec_FC='-L$libdir'
14836 hardcode_direct_FC=yes
14837 hardcode_minus_L_FC=yes
14838 hardcode_shlibpath_var_FC=no
14841 sysv4)
14842 case $host_vendor in
14843 sni)
14844 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_direct_FC=yes # is this really true???
14847 siemens)
14848 ## LD is ld it makes a PLAMLIB
14849 ## CC just makes a GrossModule.
14850 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14851 reload_cmds_FC='$CC -r -o $output$reload_objs'
14852 hardcode_direct_FC=no
14854 motorola)
14855 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14856 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14858 esac
14859 runpath_var='LD_RUN_PATH'
14860 hardcode_shlibpath_var_FC=no
14863 sysv4.3*)
14864 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865 hardcode_shlibpath_var_FC=no
14866 export_dynamic_flag_spec_FC='-Bexport'
14869 sysv4*MP*)
14870 if test -d /usr/nec; then
14871 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_shlibpath_var_FC=no
14873 runpath_var=LD_RUN_PATH
14874 hardcode_runpath_var=yes
14875 ld_shlibs_FC=yes
14879 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14880 no_undefined_flag_FC='${wl}-z,text'
14881 archive_cmds_need_lc_FC=no
14882 hardcode_shlibpath_var_FC=no
14883 runpath_var='LD_RUN_PATH'
14885 if test "$GCC" = yes; then
14886 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 else
14889 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 sysv5* | sco3.2v5* | sco5v6*)
14895 # Note: We can NOT use -z defs as we might desire, because we do not
14896 # link with -lc, and that would cause any symbols used from libc to
14897 # always be unresolved, which means just about no library would
14898 # ever link correctly. If we're not using GNU ld we use -z text
14899 # though, which does catch some bad symbols but isn't as heavy-handed
14900 # as -z defs.
14901 no_undefined_flag_FC='${wl}-z,text'
14902 allow_undefined_flag_FC='${wl}-z,nodefs'
14903 archive_cmds_need_lc_FC=no
14904 hardcode_shlibpath_var_FC=no
14905 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14906 hardcode_libdir_separator_FC=':'
14907 link_all_deplibs_FC=yes
14908 export_dynamic_flag_spec_FC='${wl}-Bexport'
14909 runpath_var='LD_RUN_PATH'
14911 if test "$GCC" = yes; then
14912 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 else
14915 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 uts4*)
14921 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14922 hardcode_libdir_flag_spec_FC='-L$libdir'
14923 hardcode_shlibpath_var_FC=no
14927 ld_shlibs_FC=no
14929 esac
14931 if test x$host_vendor = xsni; then
14932 case $host in
14933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14934 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14936 esac
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14941 $as_echo "$ld_shlibs_FC" >&6; }
14942 test "$ld_shlibs_FC" = no && can_build_shared=no
14944 with_gnu_ld_FC=$with_gnu_ld
14952 # Do we need to explicitly link libc?
14954 case "x$archive_cmds_need_lc_FC" in
14955 x|xyes)
14956 # Assume -lc should be added
14957 archive_cmds_need_lc_FC=yes
14959 if test "$enable_shared" = yes && test "$GCC" = yes; then
14960 case $archive_cmds_FC in
14961 *'~'*)
14962 # FIXME: we may have to deal with multi-command sequences.
14964 '$CC '*)
14965 # Test whether the compiler implicitly links with -lc since on some
14966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14967 # to ld, don't add -lc before -lgcc.
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14969 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14970 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 $RM conftest*
14974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14977 (eval $ac_compile) 2>&5
14978 ac_status=$?
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; } 2>conftest.err; then
14981 soname=conftest
14982 lib=conftest
14983 libobjs=conftest.$ac_objext
14984 deplibs=
14985 wl=$lt_prog_compiler_wl_FC
14986 pic_flag=$lt_prog_compiler_pic_FC
14987 compiler_flags=-v
14988 linker_flags=-v
14989 verstring=
14990 output_objdir=.
14991 libname=conftest
14992 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14993 allow_undefined_flag_FC=
14994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14995 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14996 ac_status=$?
14997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }
14999 then
15000 lt_cv_archive_cmds_need_lc_FC=no
15001 else
15002 lt_cv_archive_cmds_need_lc_FC=yes
15004 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15005 else
15006 cat conftest.err 1>&5
15008 $RM conftest*
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15012 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15013 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15015 esac
15018 esac
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15086 library_names_spec=
15087 libname_spec='lib$name'
15088 soname_spec=
15089 shrext_cmds=".so"
15090 postinstall_cmds=
15091 postuninstall_cmds=
15092 finish_cmds=
15093 finish_eval=
15094 shlibpath_var=
15095 shlibpath_overrides_runpath=unknown
15096 version_type=none
15097 dynamic_linker="$host_os ld.so"
15098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15099 need_lib_prefix=unknown
15100 hardcode_into_libs=no
15102 # when you set need_version to no, make sure it does not cause -set_version
15103 # flags to be left without arguments
15104 need_version=unknown
15106 case $host_os in
15107 aix3*)
15108 version_type=linux
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15110 shlibpath_var=LIBPATH
15112 # AIX 3 has no versioning support, so we append a major version to the name.
15113 soname_spec='${libname}${release}${shared_ext}$major'
15116 aix[4-9]*)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 hardcode_into_libs=yes
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 supports IA64
15123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15124 shlibpath_var=LD_LIBRARY_PATH
15125 else
15126 # With GCC up to 2.95.x, collect2 would create an import file
15127 # for dependence libraries. The import file would start with
15128 # the line `#! .'. This would cause the generated library to
15129 # depend on `.', always an invalid library. This was fixed in
15130 # development snapshots of GCC prior to 3.0.
15131 case $host_os in
15132 aix4 | aix4.[01] | aix4.[01].*)
15133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15134 echo ' yes '
15135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15137 else
15138 can_build_shared=no
15141 esac
15142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15143 # soname into executable. Probably we can add versioning support to
15144 # collect2, so additional links can be useful in future.
15145 if test "$aix_use_runtimelinking" = yes; then
15146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15147 # instead of lib<name>.a to let people know that these are not
15148 # typical AIX shared libraries.
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 else
15151 # We preserve .a as extension for shared libraries through AIX4.2
15152 # and later when we are not doing run time linking.
15153 library_names_spec='${libname}${release}.a $libname.a'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LIBPATH
15160 amigaos*)
15161 case $host_cpu in
15162 powerpc)
15163 # Since July 2007 AmigaOS4 officially supports .so libraries.
15164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 m68k)
15168 library_names_spec='$libname.ixlibrary $libname.a'
15169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15170 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'
15172 esac
15175 beos*)
15176 library_names_spec='${libname}${shared_ext}'
15177 dynamic_linker="$host_os ld.so"
15178 shlibpath_var=LIBRARY_PATH
15181 bsdi[45]*)
15182 version_type=linux
15183 need_version=no
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15190 # the default ld.so.conf also contains /usr/contrib/lib and
15191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15192 # libtool to hard-code these into programs
15195 cygwin* | mingw* | pw32* | cegcc*)
15196 version_type=windows
15197 shrext_cmds=".dll"
15198 need_version=no
15199 need_lib_prefix=no
15201 case $GCC,$host_os in
15202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15203 library_names_spec='$libname.dll.a'
15204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15205 postinstall_cmds='base_file=`basename \${file}`~
15206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15207 dldir=$destdir/`dirname \$dlpath`~
15208 test -d \$dldir || mkdir -p \$dldir~
15209 $install_prog $dir/$dlname \$dldir/$dlname~
15210 chmod a+x \$dldir/$dlname~
15211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15215 dlpath=$dir/\$dldll~
15216 $RM \$dlpath'
15217 shlibpath_overrides_runpath=yes
15219 case $host_os in
15220 cygwin*)
15221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15225 mingw* | cegcc*)
15226 # MinGW DLLs use traditional 'lib' prefix
15227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15229 pw32*)
15230 # pw32 DLLs use 'pw' prefix rather than 'lib'
15231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15233 esac
15237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15239 esac
15240 dynamic_linker='Win32 ld.exe'
15241 # FIXME: first we should search . and the directory the executable is in
15242 shlibpath_var=PATH
15245 darwin* | rhapsody*)
15246 dynamic_linker="$host_os dyld"
15247 version_type=darwin
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15251 soname_spec='${libname}${release}${major}$shared_ext'
15252 shlibpath_overrides_runpath=yes
15253 shlibpath_var=DYLD_LIBRARY_PATH
15254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15259 dgux*)
15260 version_type=linux
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 shlibpath_var=LD_LIBRARY_PATH
15268 freebsd* | dragonfly*)
15269 # DragonFly does not have aout. When/if they implement a new
15270 # versioning mechanism, adjust this.
15271 if test -x /usr/bin/objformat; then
15272 objformat=`/usr/bin/objformat`
15273 else
15274 case $host_os in
15275 freebsd[23].*) objformat=aout ;;
15276 *) objformat=elf ;;
15277 esac
15279 version_type=freebsd-$objformat
15280 case $version_type in
15281 freebsd-elf*)
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15283 need_version=no
15284 need_lib_prefix=no
15286 freebsd-*)
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15288 need_version=yes
15290 esac
15291 shlibpath_var=LD_LIBRARY_PATH
15292 case $host_os in
15293 freebsd2.*)
15294 shlibpath_overrides_runpath=yes
15296 freebsd3.[01]* | freebsdelf3.[01]*)
15297 shlibpath_overrides_runpath=yes
15298 hardcode_into_libs=yes
15300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15302 shlibpath_overrides_runpath=no
15303 hardcode_into_libs=yes
15305 *) # from 4.6 on, and DragonFly
15306 shlibpath_overrides_runpath=yes
15307 hardcode_into_libs=yes
15309 esac
15312 gnu*)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 hardcode_into_libs=yes
15322 haiku*)
15323 version_type=linux
15324 need_lib_prefix=no
15325 need_version=no
15326 dynamic_linker="$host_os runtime_loader"
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LIBRARY_PATH
15330 shlibpath_overrides_runpath=yes
15331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15332 hardcode_into_libs=yes
15335 hpux9* | hpux10* | hpux11*)
15336 # Give a soname corresponding to the major version so that dld.sl refuses to
15337 # link against other versions.
15338 version_type=sunos
15339 need_lib_prefix=no
15340 need_version=no
15341 case $host_cpu in
15342 ia64*)
15343 shrext_cmds='.so'
15344 hardcode_into_libs=yes
15345 dynamic_linker="$host_os dld.so"
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 if test "X$HPUX_IA64_MODE" = X32; then
15351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15352 else
15353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15357 hppa*64*)
15358 shrext_cmds='.sl'
15359 hardcode_into_libs=yes
15360 dynamic_linker="$host_os dld.sl"
15361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15369 shrext_cmds='.sl'
15370 dynamic_linker="$host_os dld.sl"
15371 shlibpath_var=SHLIB_PATH
15372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15376 esac
15377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15378 postinstall_cmds='chmod 555 $lib'
15379 # or fails outright, so override atomically:
15380 install_override_mode=555
15383 interix[3-9]*)
15384 version_type=linux
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=no
15392 hardcode_into_libs=yes
15395 irix5* | irix6* | nonstopux*)
15396 case $host_os in
15397 nonstopux*) version_type=nonstopux ;;
15399 if test "$lt_cv_prog_gnu_ld" = yes; then
15400 version_type=linux
15401 else
15402 version_type=irix
15403 fi ;;
15404 esac
15405 need_lib_prefix=no
15406 need_version=no
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15409 case $host_os in
15410 irix5* | nonstopux*)
15411 libsuff= shlibsuff=
15414 case $LD in # libtool.m4 will add one of these switches to LD
15415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15416 libsuff= shlibsuff= libmagic=32-bit;;
15417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15418 libsuff=32 shlibsuff=N32 libmagic=N32;;
15419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15421 *) libsuff= shlibsuff= libmagic=never-match;;
15422 esac
15424 esac
15425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15426 shlibpath_overrides_runpath=no
15427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15429 hardcode_into_libs=yes
15432 # No shared lib support for Linux oldld, aout, or coff.
15433 linux*oldld* | linux*aout* | linux*coff*)
15434 dynamic_linker=no
15437 # This must be Linux ELF.
15438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15439 version_type=linux
15440 need_lib_prefix=no
15441 need_version=no
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=no
15448 # Some binutils ld are patched to set DT_RUNPATH
15449 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 lt_cv_shlibpath_overrides_runpath=no
15453 save_LDFLAGS=$LDFLAGS
15454 save_libdir=$libdir
15455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15457 if test x$gcc_no_link = xyes; then
15458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15460 cat > conftest.$ac_ext <<_ACEOF
15461 program main
15464 _ACEOF
15465 if ac_fn_fc_try_link "$LINENO"; then :
15466 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15467 lt_cv_shlibpath_overrides_runpath=yes
15470 rm -f core conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LDFLAGS=$save_LDFLAGS
15473 libdir=$save_libdir
15477 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15479 # This implies no fast_install, which is unacceptable.
15480 # Some rework will be needed to allow for fast_install
15481 # before this can be enabled.
15482 hardcode_into_libs=yes
15484 # Append ld.so.conf contents to the search path
15485 if test -f /etc/ld.so.conf; then
15486 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' ' '`
15487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15490 # We used to test for /lib/ld.so.1 and disable shared libraries on
15491 # powerpc, because MkLinux only supported shared libraries with the
15492 # GNU dynamic linker. Since this was broken with cross compilers,
15493 # most powerpc-linux boxes support dynamic linking these days and
15494 # people can always --disable-shared, the test was removed, and we
15495 # assume the GNU/Linux dynamic linker is in use.
15496 dynamic_linker='GNU/Linux ld.so'
15499 netbsd*)
15500 version_type=sunos
15501 need_lib_prefix=no
15502 need_version=no
15503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15506 dynamic_linker='NetBSD (a.out) ld.so'
15507 else
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 dynamic_linker='NetBSD ld.elf_so'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 shlibpath_overrides_runpath=yes
15514 hardcode_into_libs=yes
15517 newsos6)
15518 version_type=linux
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15524 *nto* | *qnx*)
15525 version_type=qnx
15526 need_lib_prefix=no
15527 need_version=no
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532 hardcode_into_libs=yes
15533 dynamic_linker='ldqnx.so'
15536 openbsd*)
15537 version_type=sunos
15538 sys_lib_dlsearch_path_spec="/usr/lib"
15539 need_lib_prefix=no
15540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15541 case $host_os in
15542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15543 *) need_version=no ;;
15544 esac
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15549 case $host_os in
15550 openbsd2.[89] | openbsd2.[89].*)
15551 shlibpath_overrides_runpath=no
15554 shlibpath_overrides_runpath=yes
15556 esac
15557 else
15558 shlibpath_overrides_runpath=yes
15562 os2*)
15563 libname_spec='$name'
15564 shrext_cmds=".dll"
15565 need_lib_prefix=no
15566 library_names_spec='$libname${shared_ext} $libname.a'
15567 dynamic_linker='OS/2 ld.exe'
15568 shlibpath_var=LIBPATH
15571 osf3* | osf4* | osf5*)
15572 version_type=osf
15573 need_lib_prefix=no
15574 need_version=no
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15582 rdos*)
15583 dynamic_linker=no
15586 solaris*)
15587 version_type=linux
15588 need_lib_prefix=no
15589 need_version=no
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591 soname_spec='${libname}${release}${shared_ext}$major'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=yes
15594 hardcode_into_libs=yes
15595 # ldd complains unless libraries are executable
15596 postinstall_cmds='chmod +x $lib'
15599 sunos4*)
15600 version_type=sunos
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15605 if test "$with_gnu_ld" = yes; then
15606 need_lib_prefix=no
15608 need_version=yes
15611 sysv4 | sysv4.3*)
15612 version_type=linux
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 case $host_vendor in
15617 sni)
15618 shlibpath_overrides_runpath=no
15619 need_lib_prefix=no
15620 runpath_var=LD_RUN_PATH
15622 siemens)
15623 need_lib_prefix=no
15625 motorola)
15626 need_lib_prefix=no
15627 need_version=no
15628 shlibpath_overrides_runpath=no
15629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15631 esac
15634 sysv4*MP*)
15635 if test -d /usr/nec ;then
15636 version_type=linux
15637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15638 soname_spec='$libname${shared_ext}.$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15644 version_type=freebsd-elf
15645 need_lib_prefix=no
15646 need_version=no
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 if test "$with_gnu_ld" = yes; then
15653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15654 else
15655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15656 case $host_os in
15657 sco3.2v5*)
15658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15660 esac
15662 sys_lib_dlsearch_path_spec='/usr/lib'
15665 tpf*)
15666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 shlibpath_var=LD_LIBRARY_PATH
15672 shlibpath_overrides_runpath=no
15673 hardcode_into_libs=yes
15676 uts4*)
15677 version_type=linux
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15684 dynamic_linker=no
15686 esac
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15688 $as_echo "$dynamic_linker" >&6; }
15689 test "$dynamic_linker" = no && can_build_shared=no
15691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15692 if test "$GCC" = yes; then
15693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15741 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15742 hardcode_action_FC=
15743 if test -n "$hardcode_libdir_flag_spec_FC" ||
15744 test -n "$runpath_var_FC" ||
15745 test "X$hardcode_automatic_FC" = "Xyes" ; then
15747 # We can hardcode non-existent directories.
15748 if test "$hardcode_direct_FC" != no &&
15749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15750 # have to relink, otherwise we might link with an installed library
15751 # when we should be linking with a yet-to-be-installed one
15752 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15753 test "$hardcode_minus_L_FC" != no; then
15754 # Linking always hardcodes the temporary library directory.
15755 hardcode_action_FC=relink
15756 else
15757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15758 hardcode_action_FC=immediate
15760 else
15761 # We cannot hardcode anything, or else we can only hardcode existing
15762 # directories.
15763 hardcode_action_FC=unsupported
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15766 $as_echo "$hardcode_action_FC" >&6; }
15768 if test "$hardcode_action_FC" = relink ||
15769 test "$inherit_rpath_FC" = yes; then
15770 # Fast installation is not supported
15771 enable_fast_install=no
15772 elif test "$shlibpath_overrides_runpath" = yes ||
15773 test "$enable_shared" = no; then
15774 # Fast installation is not necessary
15775 enable_fast_install=needless
15784 fi # test -n "$compiler"
15786 GCC=$lt_save_GCC
15787 CC="$lt_save_CC"
15788 fi # test "$_lt_disable_FC" != yes
15790 ac_ext=c
15791 ac_cpp='$CPP $CPPFLAGS'
15792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15798 # extra LD Flags which are required for targets
15799 case "${host}" in
15800 *-darwin*)
15801 # Darwin needs -single_module when linking libgfortran
15802 extra_ldflags_libgfortran=-Wl,-single_module
15804 esac
15807 # We need a working compiler at that point, otherwise give a clear
15808 # error message and bail out.
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15811 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15812 ac_ext=${ac_fc_srcext-f}
15813 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15814 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15817 cat > conftest.$ac_ext <<_ACEOF
15819 program foo
15820 real, parameter :: bar = sin (12.34 / 2.5)
15821 end program foo
15822 _ACEOF
15823 if ac_fn_fc_try_compile "$LINENO"; then :
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15825 $as_echo "yes" >&6; }
15826 else
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828 $as_echo "no" >&6; }
15829 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 ac_ext=c
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841 # Check whether --enable-largefile was given.
15842 if test "${enable_largefile+set}" = set; then :
15843 enableval=$enable_largefile;
15846 if test "$enable_largefile" != no; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15849 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15850 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 ac_cv_sys_largefile_CC=no
15854 if test "$GCC" != yes; then
15855 ac_save_CC=$CC
15856 while :; do
15857 # IRIX 6.2 and later do not support large files by default,
15858 # so use the C compiler's -n32 option if that helps.
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #include <sys/types.h>
15862 /* Check that off_t can represent 2**63 - 1 correctly.
15863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15864 since some C++ compilers masquerading as C compilers
15865 incorrectly reject 9223372036854775807. */
15866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15868 && LARGE_OFF_T % 2147483647 == 1)
15869 ? 1 : -1];
15871 main ()
15875 return 0;
15877 _ACEOF
15878 if ac_fn_c_try_compile "$LINENO"; then :
15879 break
15881 rm -f core conftest.err conftest.$ac_objext
15882 CC="$CC -n32"
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884 ac_cv_sys_largefile_CC=' -n32'; break
15886 rm -f core conftest.err conftest.$ac_objext
15887 break
15888 done
15889 CC=$ac_save_CC
15890 rm -f conftest.$ac_ext
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15894 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15895 if test "$ac_cv_sys_largefile_CC" != no; then
15896 CC=$CC$ac_cv_sys_largefile_CC
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15900 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15901 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 while :; do
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 #include <sys/types.h>
15908 /* Check that off_t can represent 2**63 - 1 correctly.
15909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15910 since some C++ compilers masquerading as C compilers
15911 incorrectly reject 9223372036854775807. */
15912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15914 && LARGE_OFF_T % 2147483647 == 1)
15915 ? 1 : -1];
15917 main ()
15921 return 0;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 ac_cv_sys_file_offset_bits=no; break
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 #define _FILE_OFFSET_BITS 64
15931 #include <sys/types.h>
15932 /* Check that off_t can represent 2**63 - 1 correctly.
15933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15934 since some C++ compilers masquerading as C compilers
15935 incorrectly reject 9223372036854775807. */
15936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15938 && LARGE_OFF_T % 2147483647 == 1)
15939 ? 1 : -1];
15941 main ()
15945 return 0;
15947 _ACEOF
15948 if ac_fn_c_try_compile "$LINENO"; then :
15949 ac_cv_sys_file_offset_bits=64; break
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 ac_cv_sys_file_offset_bits=unknown
15953 break
15954 done
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15957 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15958 case $ac_cv_sys_file_offset_bits in #(
15959 no | unknown) ;;
15961 cat >>confdefs.h <<_ACEOF
15962 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15963 _ACEOF
15965 esac
15966 rm -rf conftest*
15967 if test $ac_cv_sys_file_offset_bits = unknown; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15969 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15970 if test "${ac_cv_sys_large_files+set}" = set; then :
15971 $as_echo_n "(cached) " >&6
15972 else
15973 while :; do
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <sys/types.h>
15977 /* Check that off_t can represent 2**63 - 1 correctly.
15978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15979 since some C++ compilers masquerading as C compilers
15980 incorrectly reject 9223372036854775807. */
15981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15983 && LARGE_OFF_T % 2147483647 == 1)
15984 ? 1 : -1];
15986 main ()
15990 return 0;
15992 _ACEOF
15993 if ac_fn_c_try_compile "$LINENO"; then :
15994 ac_cv_sys_large_files=no; break
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999 #define _LARGE_FILES 1
16000 #include <sys/types.h>
16001 /* Check that off_t can represent 2**63 - 1 correctly.
16002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16003 since some C++ compilers masquerading as C compilers
16004 incorrectly reject 9223372036854775807. */
16005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16007 && LARGE_OFF_T % 2147483647 == 1)
16008 ? 1 : -1];
16010 main ()
16014 return 0;
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"; then :
16018 ac_cv_sys_large_files=1; break
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 ac_cv_sys_large_files=unknown
16022 break
16023 done
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16026 $as_echo "$ac_cv_sys_large_files" >&6; }
16027 case $ac_cv_sys_large_files in #(
16028 no | unknown) ;;
16030 cat >>confdefs.h <<_ACEOF
16031 #define _LARGE_FILES $ac_cv_sys_large_files
16032 _ACEOF
16034 esac
16035 rm -rf conftest*
16040 # Types
16041 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16042 if test "x$ac_cv_type_off_t" = x""yes; then :
16044 else
16046 cat >>confdefs.h <<_ACEOF
16047 #define off_t long int
16048 _ACEOF
16053 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16054 if test "x$ac_cv_type_intptr_t" = x""yes; then :
16056 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16058 else
16059 for ac_type in 'int' 'long int' 'long long int'; do
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 $ac_includes_default
16064 main ()
16066 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16067 test_array [0] = 0
16070 return 0;
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"; then :
16075 cat >>confdefs.h <<_ACEOF
16076 #define intptr_t $ac_type
16077 _ACEOF
16079 ac_type=
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 test -z "$ac_type" && break
16083 done
16088 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16089 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16091 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16093 else
16094 for ac_type in 'unsigned int' 'unsigned long int' \
16095 'unsigned long long int'; do
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16098 $ac_includes_default
16100 main ()
16102 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16103 test_array [0] = 0
16106 return 0;
16108 _ACEOF
16109 if ac_fn_c_try_compile "$LINENO"; then :
16111 cat >>confdefs.h <<_ACEOF
16112 #define uintptr_t $ac_type
16113 _ACEOF
16115 ac_type=
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118 test -z "$ac_type" && break
16119 done
16123 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16124 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_PTRDIFF_T 1
16128 _ACEOF
16134 # check header files (we assume C89 is available, so don't check for that)
16138 for ac_header in $ac_header_list
16139 do :
16140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16143 eval as_val=\$$as_ac_Header
16144 if test "x$as_val" = x""yes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 _ACEOF
16151 done
16187 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16189 acx_cv_header_stdint=stddef.h
16190 acx_cv_header_stdint_kind="(already complete)"
16191 for i in stdint.h $inttype_headers; do
16192 unset ac_cv_type_uintptr_t
16193 unset ac_cv_type_uintmax_t
16194 unset ac_cv_type_int_least32_t
16195 unset ac_cv_type_int_fast32_t
16196 unset ac_cv_type_uint64_t
16197 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16198 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16199 #include <$i>
16201 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16202 acx_cv_header_stdint=$i
16203 else
16204 continue
16207 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16208 #include <$i>
16210 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16212 else
16213 acx_cv_header_stdint_kind="(mostly complete)"
16216 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16217 #include <$i>
16219 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16221 else
16222 acx_cv_header_stdint_kind="(mostly complete)"
16225 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16226 #include <$i>
16228 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16230 else
16231 acx_cv_header_stdint_kind="(mostly complete)"
16234 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16235 #include <$i>
16237 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16239 else
16240 acx_cv_header_stdint_kind="(lacks uint64_t)"
16243 break
16244 done
16245 if test "$acx_cv_header_stdint" = stddef.h; then
16246 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16247 for i in stdint.h $inttype_headers; do
16248 unset ac_cv_type_uintptr_t
16249 unset ac_cv_type_uint32_t
16250 unset ac_cv_type_uint64_t
16251 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16252 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16253 #include <$i>
16255 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16256 acx_cv_header_stdint=$i
16257 else
16258 continue
16261 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16262 #include <$i>
16264 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16268 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16269 #include <$i>
16271 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16275 break
16276 done
16278 if test "$acx_cv_header_stdint" = stddef.h; then
16279 acx_cv_header_stdint_kind="(u_intXX_t style)"
16280 for i in sys/types.h $inttype_headers; do
16281 unset ac_cv_type_u_int32_t
16282 unset ac_cv_type_u_int64_t
16283 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16284 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16285 #include <$i>
16287 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16288 acx_cv_header_stdint=$i
16289 else
16290 continue
16293 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16294 #include <$i>
16296 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16300 break
16301 done
16303 if test "$acx_cv_header_stdint" = stddef.h; then
16304 acx_cv_header_stdint_kind="(using manual detection)"
16307 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16308 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16309 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16310 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16311 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16313 # ----------------- Summarize what we found so far
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16316 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16318 case `$as_basename -- gstdint.h ||
16319 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16320 Xgstdint.h : 'X\(//\)$' \| \
16321 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16322 $as_echo X/gstdint.h |
16323 sed '/^.*\/\([^/][^/]*\)\/*$/{
16324 s//\1/
16327 /^X\/\(\/\/\)$/{
16328 s//\1/
16331 /^X\/\(\/\).*/{
16332 s//\1/
16335 s/.*/./; q'` in
16336 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16337 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16338 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16339 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16340 *) ;;
16341 esac
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16344 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16346 # ----------------- done included file, check C basic types --------
16348 # Lacking an uintptr_t? Test size of void *
16349 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16350 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16353 # This bug is HP SR number 8606223364.
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16355 $as_echo_n "checking size of void *... " >&6; }
16356 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16357 $as_echo_n "(cached) " >&6
16358 else
16359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16361 else
16362 if test "$ac_cv_type_void_p" = yes; then
16363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16365 { as_fn_set_status 77
16366 as_fn_error "cannot compute sizeof (void *)
16367 See \`config.log' for more details." "$LINENO" 5; }; }
16368 else
16369 ac_cv_sizeof_void_p=0
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16375 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16379 cat >>confdefs.h <<_ACEOF
16380 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16381 _ACEOF
16384 esac
16386 # Lacking an uint64_t? Test size of long
16387 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16388 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16391 # This bug is HP SR number 8606223364.
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16393 $as_echo_n "checking size of long... " >&6; }
16394 if test "${ac_cv_sizeof_long+set}" = set; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16399 else
16400 if test "$ac_cv_type_long" = yes; then
16401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16403 { as_fn_set_status 77
16404 as_fn_error "cannot compute sizeof (long)
16405 See \`config.log' for more details." "$LINENO" 5; }; }
16406 else
16407 ac_cv_sizeof_long=0
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16413 $as_echo "$ac_cv_sizeof_long" >&6; }
16417 cat >>confdefs.h <<_ACEOF
16418 #define SIZEOF_LONG $ac_cv_sizeof_long
16419 _ACEOF
16422 esac
16424 if test $acx_cv_header_stdint = stddef.h; then
16425 # Lacking a good header? Test size of everything and deduce all types.
16426 # The cast to long int works around a bug in the HP C Compiler
16427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16429 # This bug is HP SR number 8606223364.
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16431 $as_echo_n "checking size of int... " >&6; }
16432 if test "${ac_cv_sizeof_int+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16437 else
16438 if test "$ac_cv_type_int" = yes; then
16439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16441 { as_fn_set_status 77
16442 as_fn_error "cannot compute sizeof (int)
16443 See \`config.log' for more details." "$LINENO" 5; }; }
16444 else
16445 ac_cv_sizeof_int=0
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16451 $as_echo "$ac_cv_sizeof_int" >&6; }
16455 cat >>confdefs.h <<_ACEOF
16456 #define SIZEOF_INT $ac_cv_sizeof_int
16457 _ACEOF
16460 # The cast to long int works around a bug in the HP C Compiler
16461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16463 # This bug is HP SR number 8606223364.
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16465 $as_echo_n "checking size of short... " >&6; }
16466 if test "${ac_cv_sizeof_short+set}" = set; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16471 else
16472 if test "$ac_cv_type_short" = yes; then
16473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16475 { as_fn_set_status 77
16476 as_fn_error "cannot compute sizeof (short)
16477 See \`config.log' for more details." "$LINENO" 5; }; }
16478 else
16479 ac_cv_sizeof_short=0
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16485 $as_echo "$ac_cv_sizeof_short" >&6; }
16489 cat >>confdefs.h <<_ACEOF
16490 #define SIZEOF_SHORT $ac_cv_sizeof_short
16491 _ACEOF
16494 # The cast to long int works around a bug in the HP C Compiler
16495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16497 # This bug is HP SR number 8606223364.
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16499 $as_echo_n "checking size of char... " >&6; }
16500 if test "${ac_cv_sizeof_char+set}" = set; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16503 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16505 else
16506 if test "$ac_cv_type_char" = yes; then
16507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16509 { as_fn_set_status 77
16510 as_fn_error "cannot compute sizeof (char)
16511 See \`config.log' for more details." "$LINENO" 5; }; }
16512 else
16513 ac_cv_sizeof_char=0
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16519 $as_echo "$ac_cv_sizeof_char" >&6; }
16523 cat >>confdefs.h <<_ACEOF
16524 #define SIZEOF_CHAR $ac_cv_sizeof_char
16525 _ACEOF
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16530 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16531 case "$ac_cv_sizeof_char" in
16532 1) acx_cv_type_int8_t=char ;;
16533 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16534 esac
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16536 $as_echo "$acx_cv_type_int8_t" >&6; }
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16539 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16540 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16541 2:*) acx_cv_type_int16_t=int ;;
16542 *:2) acx_cv_type_int16_t=short ;;
16543 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16544 esac
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16546 $as_echo "$acx_cv_type_int16_t" >&6; }
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16549 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16550 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16551 4:*) acx_cv_type_int32_t=int ;;
16552 *:4) acx_cv_type_int32_t=long ;;
16553 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16554 esac
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16556 $as_echo "$acx_cv_type_int32_t" >&6; }
16559 # These tests are here to make the output prettier
16561 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16562 case "$ac_cv_sizeof_long" in
16563 8) acx_cv_type_int64_t=long ;;
16564 esac
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16566 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16568 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16571 # Now we can use the above types
16573 if test "$ac_cv_type_uintptr_t" != yes; then
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16575 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16576 case $ac_cv_sizeof_void_p in
16577 2) acx_cv_type_intptr_t=int16_t ;;
16578 4) acx_cv_type_intptr_t=int32_t ;;
16579 8) acx_cv_type_intptr_t=int64_t ;;
16580 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16581 esac
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16583 $as_echo "$acx_cv_type_intptr_t" >&6; }
16586 # ----------------- done all checks, emit header -------------
16587 ac_config_commands="$ac_config_commands gstdint.h"
16592 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16593 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16595 cat >>confdefs.h <<_ACEOF
16596 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16597 _ACEOF
16601 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16602 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16604 cat >>confdefs.h <<_ACEOF
16605 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16606 _ACEOF
16610 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16611 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_STRUCT_STAT_ST_RDEV 1
16615 _ACEOF
16621 case "${host}--x${with_newlib}" in
16622 mips*--xyes)
16623 hardwire_newlib=1;;
16624 nvptx*--xyes)
16625 hardwire_newlib=1;;
16626 esac
16628 # Check for library functions.
16629 if test "${hardwire_newlib:-0}" -eq 1; then
16630 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16631 # may not work correctly, because the compiler may not be able to
16632 # link executables.
16634 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16637 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16640 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16643 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16646 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16649 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16652 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16655 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16658 # At some point, we should differentiate between architectures
16659 # like x86, which have long double versions, and alpha/powerpc/etc.,
16660 # which don't. For the time being, punt.
16661 if test x"long_double_math_on_this_cpu" = x"yes"; then
16663 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16666 else
16670 for ac_func in $ac_func_list
16671 do :
16672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16674 eval as_val=\$$as_ac_var
16675 if test "x$as_val" = x""yes; then :
16676 cat >>confdefs.h <<_ACEOF
16677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16678 _ACEOF
16681 done
16784 # Check strerror_r, cannot be above as versions with two and three arguments exist
16786 ac_save_CFLAGS="$CFLAGS"
16787 CFLAGS="-Wimplicit-function-declaration -Werror"
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h. */
16790 #define _GNU_SOURCE 1
16791 #include <string.h>
16792 #include <locale.h>
16794 main ()
16796 char s[128]; strerror_r(5, s, 128);
16798 return 0;
16800 _ACEOF
16801 if ac_fn_c_try_compile "$LINENO"; then :
16803 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 CFLAGS="$ac_save_CFLAGS"
16809 ac_save_CFLAGS="$CFLAGS"
16810 CFLAGS="-Wimplicit-function-declaration -Werror"
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16813 #define _GNU_SOURCE 1
16814 #include <string.h>
16815 #include <locale.h>
16817 main ()
16819 char s[128]; strerror_r(5, s);
16821 return 0;
16823 _ACEOF
16824 if ac_fn_c_try_compile "$LINENO"; then :
16826 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 CFLAGS="$ac_save_CFLAGS"
16833 # Check for C99 (and other IEEE) math functions
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16835 $as_echo_n "checking for sin in -lm... " >&6; }
16836 if test "${ac_cv_lib_m_sin+set}" = set; then :
16837 $as_echo_n "(cached) " >&6
16838 else
16839 ac_check_lib_save_LIBS=$LIBS
16840 LIBS="-lm $LIBS"
16841 if test x$gcc_no_link = xyes; then
16842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16847 /* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 char sin ();
16855 main ()
16857 return sin ();
16859 return 0;
16861 _ACEOF
16862 if ac_fn_c_try_link "$LINENO"; then :
16863 ac_cv_lib_m_sin=yes
16864 else
16865 ac_cv_lib_m_sin=no
16867 rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16872 $as_echo "$ac_cv_lib_m_sin" >&6; }
16873 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_LIBM 1
16876 _ACEOF
16878 LIBS="-lm $LIBS"
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16889 $as_echo_n "checking for acosf... " >&6; }
16890 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16893 if test x$gcc_no_link = xyes; then
16894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16899 #ifdef HAVE_COMPLEX_H
16900 #include <complex.h>
16901 #endif
16902 #ifdef HAVE_MATH_H
16903 #include <math.h>
16904 #endif
16906 int (*ptr)() = (int (*)())acosf;
16909 main ()
16911 return 0;
16914 _ACEOF
16915 if ac_fn_c_try_link "$LINENO"; then :
16916 gcc_cv_math_func_acosf=yes
16917 else
16918 gcc_cv_math_func_acosf=no
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16924 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16925 if test $gcc_cv_math_func_acosf = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_ACOSF 1
16929 _ACEOF
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16937 $as_echo_n "checking for acos... " >&6; }
16938 if test "${gcc_cv_math_func_acos+set}" = set; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16941 if test x$gcc_no_link = xyes; then
16942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16947 #ifdef HAVE_COMPLEX_H
16948 #include <complex.h>
16949 #endif
16950 #ifdef HAVE_MATH_H
16951 #include <math.h>
16952 #endif
16954 int (*ptr)() = (int (*)())acos;
16957 main ()
16959 return 0;
16962 _ACEOF
16963 if ac_fn_c_try_link "$LINENO"; then :
16964 gcc_cv_math_func_acos=yes
16965 else
16966 gcc_cv_math_func_acos=no
16968 rm -f core conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16972 $as_echo "$gcc_cv_math_func_acos" >&6; }
16973 if test $gcc_cv_math_func_acos = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_ACOS 1
16977 _ACEOF
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16985 $as_echo_n "checking for acosl... " >&6; }
16986 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 if test x$gcc_no_link = xyes; then
16990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 #ifdef HAVE_COMPLEX_H
16996 #include <complex.h>
16997 #endif
16998 #ifdef HAVE_MATH_H
16999 #include <math.h>
17000 #endif
17002 int (*ptr)() = (int (*)())acosl;
17005 main ()
17007 return 0;
17010 _ACEOF
17011 if ac_fn_c_try_link "$LINENO"; then :
17012 gcc_cv_math_func_acosl=yes
17013 else
17014 gcc_cv_math_func_acosl=no
17016 rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17020 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17021 if test $gcc_cv_math_func_acosl = yes; then
17023 cat >>confdefs.h <<_ACEOF
17024 #define HAVE_ACOSL 1
17025 _ACEOF
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17033 $as_echo_n "checking for acoshf... " >&6; }
17034 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 if test x$gcc_no_link = xyes; then
17038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17043 #ifdef HAVE_COMPLEX_H
17044 #include <complex.h>
17045 #endif
17046 #ifdef HAVE_MATH_H
17047 #include <math.h>
17048 #endif
17050 int (*ptr)() = (int (*)())acoshf;
17053 main ()
17055 return 0;
17058 _ACEOF
17059 if ac_fn_c_try_link "$LINENO"; then :
17060 gcc_cv_math_func_acoshf=yes
17061 else
17062 gcc_cv_math_func_acoshf=no
17064 rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17068 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17069 if test $gcc_cv_math_func_acoshf = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072 #define HAVE_ACOSHF 1
17073 _ACEOF
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17081 $as_echo_n "checking for acosh... " >&6; }
17082 if test "${gcc_cv_math_func_acosh+set}" = set; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 if test x$gcc_no_link = xyes; then
17086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17091 #ifdef HAVE_COMPLEX_H
17092 #include <complex.h>
17093 #endif
17094 #ifdef HAVE_MATH_H
17095 #include <math.h>
17096 #endif
17098 int (*ptr)() = (int (*)())acosh;
17101 main ()
17103 return 0;
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 gcc_cv_math_func_acosh=yes
17109 else
17110 gcc_cv_math_func_acosh=no
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17116 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17117 if test $gcc_cv_math_func_acosh = yes; then
17119 cat >>confdefs.h <<_ACEOF
17120 #define HAVE_ACOSH 1
17121 _ACEOF
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17129 $as_echo_n "checking for acoshl... " >&6; }
17130 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 if test x$gcc_no_link = xyes; then
17134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17139 #ifdef HAVE_COMPLEX_H
17140 #include <complex.h>
17141 #endif
17142 #ifdef HAVE_MATH_H
17143 #include <math.h>
17144 #endif
17146 int (*ptr)() = (int (*)())acoshl;
17149 main ()
17151 return 0;
17154 _ACEOF
17155 if ac_fn_c_try_link "$LINENO"; then :
17156 gcc_cv_math_func_acoshl=yes
17157 else
17158 gcc_cv_math_func_acoshl=no
17160 rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17164 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17165 if test $gcc_cv_math_func_acoshl = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define HAVE_ACOSHL 1
17169 _ACEOF
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17177 $as_echo_n "checking for asinf... " >&6; }
17178 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17181 if test x$gcc_no_link = xyes; then
17182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17187 #ifdef HAVE_COMPLEX_H
17188 #include <complex.h>
17189 #endif
17190 #ifdef HAVE_MATH_H
17191 #include <math.h>
17192 #endif
17194 int (*ptr)() = (int (*)())asinf;
17197 main ()
17199 return 0;
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 gcc_cv_math_func_asinf=yes
17205 else
17206 gcc_cv_math_func_asinf=no
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17212 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17213 if test $gcc_cv_math_func_asinf = yes; then
17215 cat >>confdefs.h <<_ACEOF
17216 #define HAVE_ASINF 1
17217 _ACEOF
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17225 $as_echo_n "checking for asin... " >&6; }
17226 if test "${gcc_cv_math_func_asin+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17228 else
17229 if test x$gcc_no_link = xyes; then
17230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17235 #ifdef HAVE_COMPLEX_H
17236 #include <complex.h>
17237 #endif
17238 #ifdef HAVE_MATH_H
17239 #include <math.h>
17240 #endif
17242 int (*ptr)() = (int (*)())asin;
17245 main ()
17247 return 0;
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"; then :
17252 gcc_cv_math_func_asin=yes
17253 else
17254 gcc_cv_math_func_asin=no
17256 rm -f core conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17260 $as_echo "$gcc_cv_math_func_asin" >&6; }
17261 if test $gcc_cv_math_func_asin = yes; then
17263 cat >>confdefs.h <<_ACEOF
17264 #define HAVE_ASIN 1
17265 _ACEOF
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17273 $as_echo_n "checking for asinl... " >&6; }
17274 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 if test x$gcc_no_link = xyes; then
17278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 #ifdef HAVE_COMPLEX_H
17284 #include <complex.h>
17285 #endif
17286 #ifdef HAVE_MATH_H
17287 #include <math.h>
17288 #endif
17290 int (*ptr)() = (int (*)())asinl;
17293 main ()
17295 return 0;
17298 _ACEOF
17299 if ac_fn_c_try_link "$LINENO"; then :
17300 gcc_cv_math_func_asinl=yes
17301 else
17302 gcc_cv_math_func_asinl=no
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17308 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17309 if test $gcc_cv_math_func_asinl = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312 #define HAVE_ASINL 1
17313 _ACEOF
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17321 $as_echo_n "checking for asinhf... " >&6; }
17322 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 if test x$gcc_no_link = xyes; then
17326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 #ifdef HAVE_COMPLEX_H
17332 #include <complex.h>
17333 #endif
17334 #ifdef HAVE_MATH_H
17335 #include <math.h>
17336 #endif
17338 int (*ptr)() = (int (*)())asinhf;
17341 main ()
17343 return 0;
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 gcc_cv_math_func_asinhf=yes
17349 else
17350 gcc_cv_math_func_asinhf=no
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17356 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17357 if test $gcc_cv_math_func_asinhf = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define HAVE_ASINHF 1
17361 _ACEOF
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17369 $as_echo_n "checking for asinh... " >&6; }
17370 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 if test x$gcc_no_link = xyes; then
17374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 #ifdef HAVE_COMPLEX_H
17380 #include <complex.h>
17381 #endif
17382 #ifdef HAVE_MATH_H
17383 #include <math.h>
17384 #endif
17386 int (*ptr)() = (int (*)())asinh;
17389 main ()
17391 return 0;
17394 _ACEOF
17395 if ac_fn_c_try_link "$LINENO"; then :
17396 gcc_cv_math_func_asinh=yes
17397 else
17398 gcc_cv_math_func_asinh=no
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17404 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17405 if test $gcc_cv_math_func_asinh = yes; then
17407 cat >>confdefs.h <<_ACEOF
17408 #define HAVE_ASINH 1
17409 _ACEOF
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17417 $as_echo_n "checking for asinhl... " >&6; }
17418 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 if test x$gcc_no_link = xyes; then
17422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 #ifdef HAVE_COMPLEX_H
17428 #include <complex.h>
17429 #endif
17430 #ifdef HAVE_MATH_H
17431 #include <math.h>
17432 #endif
17434 int (*ptr)() = (int (*)())asinhl;
17437 main ()
17439 return 0;
17442 _ACEOF
17443 if ac_fn_c_try_link "$LINENO"; then :
17444 gcc_cv_math_func_asinhl=yes
17445 else
17446 gcc_cv_math_func_asinhl=no
17448 rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17452 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17453 if test $gcc_cv_math_func_asinhl = yes; then
17455 cat >>confdefs.h <<_ACEOF
17456 #define HAVE_ASINHL 1
17457 _ACEOF
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17465 $as_echo_n "checking for atan2f... " >&6; }
17466 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17467 $as_echo_n "(cached) " >&6
17468 else
17469 if test x$gcc_no_link = xyes; then
17470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 #ifdef HAVE_COMPLEX_H
17476 #include <complex.h>
17477 #endif
17478 #ifdef HAVE_MATH_H
17479 #include <math.h>
17480 #endif
17482 int (*ptr)() = (int (*)())atan2f;
17485 main ()
17487 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_link "$LINENO"; then :
17492 gcc_cv_math_func_atan2f=yes
17493 else
17494 gcc_cv_math_func_atan2f=no
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17500 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17501 if test $gcc_cv_math_func_atan2f = yes; then
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_ATAN2F 1
17505 _ACEOF
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17513 $as_echo_n "checking for atan2... " >&6; }
17514 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 if test x$gcc_no_link = xyes; then
17518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17523 #ifdef HAVE_COMPLEX_H
17524 #include <complex.h>
17525 #endif
17526 #ifdef HAVE_MATH_H
17527 #include <math.h>
17528 #endif
17530 int (*ptr)() = (int (*)())atan2;
17533 main ()
17535 return 0;
17538 _ACEOF
17539 if ac_fn_c_try_link "$LINENO"; then :
17540 gcc_cv_math_func_atan2=yes
17541 else
17542 gcc_cv_math_func_atan2=no
17544 rm -f core conftest.err conftest.$ac_objext \
17545 conftest$ac_exeext conftest.$ac_ext
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17548 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17549 if test $gcc_cv_math_func_atan2 = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_ATAN2 1
17553 _ACEOF
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17561 $as_echo_n "checking for atan2l... " >&6; }
17562 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 if test x$gcc_no_link = xyes; then
17566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17571 #ifdef HAVE_COMPLEX_H
17572 #include <complex.h>
17573 #endif
17574 #ifdef HAVE_MATH_H
17575 #include <math.h>
17576 #endif
17578 int (*ptr)() = (int (*)())atan2l;
17581 main ()
17583 return 0;
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 gcc_cv_math_func_atan2l=yes
17589 else
17590 gcc_cv_math_func_atan2l=no
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17596 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17597 if test $gcc_cv_math_func_atan2l = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_ATAN2L 1
17601 _ACEOF
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17609 $as_echo_n "checking for atanf... " >&6; }
17610 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 if test x$gcc_no_link = xyes; then
17614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17619 #ifdef HAVE_COMPLEX_H
17620 #include <complex.h>
17621 #endif
17622 #ifdef HAVE_MATH_H
17623 #include <math.h>
17624 #endif
17626 int (*ptr)() = (int (*)())atanf;
17629 main ()
17631 return 0;
17634 _ACEOF
17635 if ac_fn_c_try_link "$LINENO"; then :
17636 gcc_cv_math_func_atanf=yes
17637 else
17638 gcc_cv_math_func_atanf=no
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17644 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17645 if test $gcc_cv_math_func_atanf = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define HAVE_ATANF 1
17649 _ACEOF
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17657 $as_echo_n "checking for atan... " >&6; }
17658 if test "${gcc_cv_math_func_atan+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17660 else
17661 if test x$gcc_no_link = xyes; then
17662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17667 #ifdef HAVE_COMPLEX_H
17668 #include <complex.h>
17669 #endif
17670 #ifdef HAVE_MATH_H
17671 #include <math.h>
17672 #endif
17674 int (*ptr)() = (int (*)())atan;
17677 main ()
17679 return 0;
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 gcc_cv_math_func_atan=yes
17685 else
17686 gcc_cv_math_func_atan=no
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17692 $as_echo "$gcc_cv_math_func_atan" >&6; }
17693 if test $gcc_cv_math_func_atan = yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_ATAN 1
17697 _ACEOF
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17705 $as_echo_n "checking for atanl... " >&6; }
17706 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17707 $as_echo_n "(cached) " >&6
17708 else
17709 if test x$gcc_no_link = xyes; then
17710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 #ifdef HAVE_COMPLEX_H
17716 #include <complex.h>
17717 #endif
17718 #ifdef HAVE_MATH_H
17719 #include <math.h>
17720 #endif
17722 int (*ptr)() = (int (*)())atanl;
17725 main ()
17727 return 0;
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"; then :
17732 gcc_cv_math_func_atanl=yes
17733 else
17734 gcc_cv_math_func_atanl=no
17736 rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17740 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17741 if test $gcc_cv_math_func_atanl = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define HAVE_ATANL 1
17745 _ACEOF
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17753 $as_echo_n "checking for atanhf... " >&6; }
17754 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 if test x$gcc_no_link = xyes; then
17758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17763 #ifdef HAVE_COMPLEX_H
17764 #include <complex.h>
17765 #endif
17766 #ifdef HAVE_MATH_H
17767 #include <math.h>
17768 #endif
17770 int (*ptr)() = (int (*)())atanhf;
17773 main ()
17775 return 0;
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 gcc_cv_math_func_atanhf=yes
17781 else
17782 gcc_cv_math_func_atanhf=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17788 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17789 if test $gcc_cv_math_func_atanhf = yes; then
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_ATANHF 1
17793 _ACEOF
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17801 $as_echo_n "checking for atanh... " >&6; }
17802 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805 if test x$gcc_no_link = xyes; then
17806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 #ifdef HAVE_COMPLEX_H
17812 #include <complex.h>
17813 #endif
17814 #ifdef HAVE_MATH_H
17815 #include <math.h>
17816 #endif
17818 int (*ptr)() = (int (*)())atanh;
17821 main ()
17823 return 0;
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"; then :
17828 gcc_cv_math_func_atanh=yes
17829 else
17830 gcc_cv_math_func_atanh=no
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17836 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17837 if test $gcc_cv_math_func_atanh = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define HAVE_ATANH 1
17841 _ACEOF
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17849 $as_echo_n "checking for atanhl... " >&6; }
17850 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 if test x$gcc_no_link = xyes; then
17854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 #ifdef HAVE_COMPLEX_H
17860 #include <complex.h>
17861 #endif
17862 #ifdef HAVE_MATH_H
17863 #include <math.h>
17864 #endif
17866 int (*ptr)() = (int (*)())atanhl;
17869 main ()
17871 return 0;
17874 _ACEOF
17875 if ac_fn_c_try_link "$LINENO"; then :
17876 gcc_cv_math_func_atanhl=yes
17877 else
17878 gcc_cv_math_func_atanhl=no
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17884 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17885 if test $gcc_cv_math_func_atanhl = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_ATANHL 1
17889 _ACEOF
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17897 $as_echo_n "checking for cargf... " >&6; }
17898 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 if test x$gcc_no_link = xyes; then
17902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 #ifdef HAVE_COMPLEX_H
17908 #include <complex.h>
17909 #endif
17910 #ifdef HAVE_MATH_H
17911 #include <math.h>
17912 #endif
17914 int (*ptr)() = (int (*)())cargf;
17917 main ()
17919 return 0;
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924 gcc_cv_math_func_cargf=yes
17925 else
17926 gcc_cv_math_func_cargf=no
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17932 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17933 if test $gcc_cv_math_func_cargf = yes; then
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_CARGF 1
17937 _ACEOF
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17945 $as_echo_n "checking for carg... " >&6; }
17946 if test "${gcc_cv_math_func_carg+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 if test x$gcc_no_link = xyes; then
17950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17955 #ifdef HAVE_COMPLEX_H
17956 #include <complex.h>
17957 #endif
17958 #ifdef HAVE_MATH_H
17959 #include <math.h>
17960 #endif
17962 int (*ptr)() = (int (*)())carg;
17965 main ()
17967 return 0;
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 gcc_cv_math_func_carg=yes
17973 else
17974 gcc_cv_math_func_carg=no
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17980 $as_echo "$gcc_cv_math_func_carg" >&6; }
17981 if test $gcc_cv_math_func_carg = yes; then
17983 cat >>confdefs.h <<_ACEOF
17984 #define HAVE_CARG 1
17985 _ACEOF
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17993 $as_echo_n "checking for cargl... " >&6; }
17994 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 if test x$gcc_no_link = xyes; then
17998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18003 #ifdef HAVE_COMPLEX_H
18004 #include <complex.h>
18005 #endif
18006 #ifdef HAVE_MATH_H
18007 #include <math.h>
18008 #endif
18010 int (*ptr)() = (int (*)())cargl;
18013 main ()
18015 return 0;
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"; then :
18020 gcc_cv_math_func_cargl=yes
18021 else
18022 gcc_cv_math_func_cargl=no
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18028 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18029 if test $gcc_cv_math_func_cargl = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_CARGL 1
18033 _ACEOF
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18041 $as_echo_n "checking for ceilf... " >&6; }
18042 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 if test x$gcc_no_link = xyes; then
18046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18051 #ifdef HAVE_COMPLEX_H
18052 #include <complex.h>
18053 #endif
18054 #ifdef HAVE_MATH_H
18055 #include <math.h>
18056 #endif
18058 int (*ptr)() = (int (*)())ceilf;
18061 main ()
18063 return 0;
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 gcc_cv_math_func_ceilf=yes
18069 else
18070 gcc_cv_math_func_ceilf=no
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18076 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18077 if test $gcc_cv_math_func_ceilf = yes; then
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_CEILF 1
18081 _ACEOF
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18089 $as_echo_n "checking for ceil... " >&6; }
18090 if test "${gcc_cv_math_func_ceil+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 if test x$gcc_no_link = xyes; then
18094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18099 #ifdef HAVE_COMPLEX_H
18100 #include <complex.h>
18101 #endif
18102 #ifdef HAVE_MATH_H
18103 #include <math.h>
18104 #endif
18106 int (*ptr)() = (int (*)())ceil;
18109 main ()
18111 return 0;
18114 _ACEOF
18115 if ac_fn_c_try_link "$LINENO"; then :
18116 gcc_cv_math_func_ceil=yes
18117 else
18118 gcc_cv_math_func_ceil=no
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18124 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18125 if test $gcc_cv_math_func_ceil = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_CEIL 1
18129 _ACEOF
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18137 $as_echo_n "checking for ceill... " >&6; }
18138 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 if test x$gcc_no_link = xyes; then
18142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 #ifdef HAVE_COMPLEX_H
18148 #include <complex.h>
18149 #endif
18150 #ifdef HAVE_MATH_H
18151 #include <math.h>
18152 #endif
18154 int (*ptr)() = (int (*)())ceill;
18157 main ()
18159 return 0;
18162 _ACEOF
18163 if ac_fn_c_try_link "$LINENO"; then :
18164 gcc_cv_math_func_ceill=yes
18165 else
18166 gcc_cv_math_func_ceill=no
18168 rm -f core conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18172 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18173 if test $gcc_cv_math_func_ceill = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define HAVE_CEILL 1
18177 _ACEOF
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18185 $as_echo_n "checking for copysignf... " >&6; }
18186 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 if test x$gcc_no_link = xyes; then
18190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18195 #ifdef HAVE_COMPLEX_H
18196 #include <complex.h>
18197 #endif
18198 #ifdef HAVE_MATH_H
18199 #include <math.h>
18200 #endif
18202 int (*ptr)() = (int (*)())copysignf;
18205 main ()
18207 return 0;
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 gcc_cv_math_func_copysignf=yes
18213 else
18214 gcc_cv_math_func_copysignf=no
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18220 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18221 if test $gcc_cv_math_func_copysignf = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define HAVE_COPYSIGNF 1
18225 _ACEOF
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18233 $as_echo_n "checking for copysign... " >&6; }
18234 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18236 else
18237 if test x$gcc_no_link = xyes; then
18238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 #ifdef HAVE_COMPLEX_H
18244 #include <complex.h>
18245 #endif
18246 #ifdef HAVE_MATH_H
18247 #include <math.h>
18248 #endif
18250 int (*ptr)() = (int (*)())copysign;
18253 main ()
18255 return 0;
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260 gcc_cv_math_func_copysign=yes
18261 else
18262 gcc_cv_math_func_copysign=no
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18268 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18269 if test $gcc_cv_math_func_copysign = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define HAVE_COPYSIGN 1
18273 _ACEOF
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18281 $as_echo_n "checking for copysignl... " >&6; }
18282 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 if test x$gcc_no_link = xyes; then
18286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18291 #ifdef HAVE_COMPLEX_H
18292 #include <complex.h>
18293 #endif
18294 #ifdef HAVE_MATH_H
18295 #include <math.h>
18296 #endif
18298 int (*ptr)() = (int (*)())copysignl;
18301 main ()
18303 return 0;
18306 _ACEOF
18307 if ac_fn_c_try_link "$LINENO"; then :
18308 gcc_cv_math_func_copysignl=yes
18309 else
18310 gcc_cv_math_func_copysignl=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18316 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18317 if test $gcc_cv_math_func_copysignl = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define HAVE_COPYSIGNL 1
18321 _ACEOF
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18329 $as_echo_n "checking for cosf... " >&6; }
18330 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333 if test x$gcc_no_link = xyes; then
18334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18339 #ifdef HAVE_COMPLEX_H
18340 #include <complex.h>
18341 #endif
18342 #ifdef HAVE_MATH_H
18343 #include <math.h>
18344 #endif
18346 int (*ptr)() = (int (*)())cosf;
18349 main ()
18351 return 0;
18354 _ACEOF
18355 if ac_fn_c_try_link "$LINENO"; then :
18356 gcc_cv_math_func_cosf=yes
18357 else
18358 gcc_cv_math_func_cosf=no
18360 rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18364 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18365 if test $gcc_cv_math_func_cosf = yes; then
18367 cat >>confdefs.h <<_ACEOF
18368 #define HAVE_COSF 1
18369 _ACEOF
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18377 $as_echo_n "checking for cos... " >&6; }
18378 if test "${gcc_cv_math_func_cos+set}" = set; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 if test x$gcc_no_link = xyes; then
18382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18387 #ifdef HAVE_COMPLEX_H
18388 #include <complex.h>
18389 #endif
18390 #ifdef HAVE_MATH_H
18391 #include <math.h>
18392 #endif
18394 int (*ptr)() = (int (*)())cos;
18397 main ()
18399 return 0;
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 gcc_cv_math_func_cos=yes
18405 else
18406 gcc_cv_math_func_cos=no
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18412 $as_echo "$gcc_cv_math_func_cos" >&6; }
18413 if test $gcc_cv_math_func_cos = yes; then
18415 cat >>confdefs.h <<_ACEOF
18416 #define HAVE_COS 1
18417 _ACEOF
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18425 $as_echo_n "checking for cosl... " >&6; }
18426 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18428 else
18429 if test x$gcc_no_link = xyes; then
18430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18435 #ifdef HAVE_COMPLEX_H
18436 #include <complex.h>
18437 #endif
18438 #ifdef HAVE_MATH_H
18439 #include <math.h>
18440 #endif
18442 int (*ptr)() = (int (*)())cosl;
18445 main ()
18447 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 gcc_cv_math_func_cosl=yes
18453 else
18454 gcc_cv_math_func_cosl=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18460 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18461 if test $gcc_cv_math_func_cosl = yes; then
18463 cat >>confdefs.h <<_ACEOF
18464 #define HAVE_COSL 1
18465 _ACEOF
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18473 $as_echo_n "checking for ccosf... " >&6; }
18474 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18476 else
18477 if test x$gcc_no_link = xyes; then
18478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18483 #ifdef HAVE_COMPLEX_H
18484 #include <complex.h>
18485 #endif
18486 #ifdef HAVE_MATH_H
18487 #include <math.h>
18488 #endif
18490 int (*ptr)() = (int (*)())ccosf;
18493 main ()
18495 return 0;
18498 _ACEOF
18499 if ac_fn_c_try_link "$LINENO"; then :
18500 gcc_cv_math_func_ccosf=yes
18501 else
18502 gcc_cv_math_func_ccosf=no
18504 rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18508 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18509 if test $gcc_cv_math_func_ccosf = yes; then
18511 cat >>confdefs.h <<_ACEOF
18512 #define HAVE_CCOSF 1
18513 _ACEOF
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18521 $as_echo_n "checking for ccos... " >&6; }
18522 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 if test x$gcc_no_link = xyes; then
18526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18531 #ifdef HAVE_COMPLEX_H
18532 #include <complex.h>
18533 #endif
18534 #ifdef HAVE_MATH_H
18535 #include <math.h>
18536 #endif
18538 int (*ptr)() = (int (*)())ccos;
18541 main ()
18543 return 0;
18546 _ACEOF
18547 if ac_fn_c_try_link "$LINENO"; then :
18548 gcc_cv_math_func_ccos=yes
18549 else
18550 gcc_cv_math_func_ccos=no
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18556 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18557 if test $gcc_cv_math_func_ccos = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_CCOS 1
18561 _ACEOF
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18569 $as_echo_n "checking for ccosl... " >&6; }
18570 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18571 $as_echo_n "(cached) " >&6
18572 else
18573 if test x$gcc_no_link = xyes; then
18574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18579 #ifdef HAVE_COMPLEX_H
18580 #include <complex.h>
18581 #endif
18582 #ifdef HAVE_MATH_H
18583 #include <math.h>
18584 #endif
18586 int (*ptr)() = (int (*)())ccosl;
18589 main ()
18591 return 0;
18594 _ACEOF
18595 if ac_fn_c_try_link "$LINENO"; then :
18596 gcc_cv_math_func_ccosl=yes
18597 else
18598 gcc_cv_math_func_ccosl=no
18600 rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18604 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18605 if test $gcc_cv_math_func_ccosl = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define HAVE_CCOSL 1
18609 _ACEOF
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18617 $as_echo_n "checking for coshf... " >&6; }
18618 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 if test x$gcc_no_link = xyes; then
18622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18627 #ifdef HAVE_COMPLEX_H
18628 #include <complex.h>
18629 #endif
18630 #ifdef HAVE_MATH_H
18631 #include <math.h>
18632 #endif
18634 int (*ptr)() = (int (*)())coshf;
18637 main ()
18639 return 0;
18642 _ACEOF
18643 if ac_fn_c_try_link "$LINENO"; then :
18644 gcc_cv_math_func_coshf=yes
18645 else
18646 gcc_cv_math_func_coshf=no
18648 rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18652 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18653 if test $gcc_cv_math_func_coshf = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_COSHF 1
18657 _ACEOF
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18665 $as_echo_n "checking for cosh... " >&6; }
18666 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669 if test x$gcc_no_link = xyes; then
18670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18675 #ifdef HAVE_COMPLEX_H
18676 #include <complex.h>
18677 #endif
18678 #ifdef HAVE_MATH_H
18679 #include <math.h>
18680 #endif
18682 int (*ptr)() = (int (*)())cosh;
18685 main ()
18687 return 0;
18690 _ACEOF
18691 if ac_fn_c_try_link "$LINENO"; then :
18692 gcc_cv_math_func_cosh=yes
18693 else
18694 gcc_cv_math_func_cosh=no
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18700 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18701 if test $gcc_cv_math_func_cosh = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_COSH 1
18705 _ACEOF
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18713 $as_echo_n "checking for coshl... " >&6; }
18714 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18715 $as_echo_n "(cached) " >&6
18716 else
18717 if test x$gcc_no_link = xyes; then
18718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18723 #ifdef HAVE_COMPLEX_H
18724 #include <complex.h>
18725 #endif
18726 #ifdef HAVE_MATH_H
18727 #include <math.h>
18728 #endif
18730 int (*ptr)() = (int (*)())coshl;
18733 main ()
18735 return 0;
18738 _ACEOF
18739 if ac_fn_c_try_link "$LINENO"; then :
18740 gcc_cv_math_func_coshl=yes
18741 else
18742 gcc_cv_math_func_coshl=no
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18748 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18749 if test $gcc_cv_math_func_coshl = yes; then
18751 cat >>confdefs.h <<_ACEOF
18752 #define HAVE_COSHL 1
18753 _ACEOF
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18761 $as_echo_n "checking for ccoshf... " >&6; }
18762 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18765 if test x$gcc_no_link = xyes; then
18766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 #ifdef HAVE_COMPLEX_H
18772 #include <complex.h>
18773 #endif
18774 #ifdef HAVE_MATH_H
18775 #include <math.h>
18776 #endif
18778 int (*ptr)() = (int (*)())ccoshf;
18781 main ()
18783 return 0;
18786 _ACEOF
18787 if ac_fn_c_try_link "$LINENO"; then :
18788 gcc_cv_math_func_ccoshf=yes
18789 else
18790 gcc_cv_math_func_ccoshf=no
18792 rm -f core conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18796 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18797 if test $gcc_cv_math_func_ccoshf = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_CCOSHF 1
18801 _ACEOF
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18809 $as_echo_n "checking for ccosh... " >&6; }
18810 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18811 $as_echo_n "(cached) " >&6
18812 else
18813 if test x$gcc_no_link = xyes; then
18814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18819 #ifdef HAVE_COMPLEX_H
18820 #include <complex.h>
18821 #endif
18822 #ifdef HAVE_MATH_H
18823 #include <math.h>
18824 #endif
18826 int (*ptr)() = (int (*)())ccosh;
18829 main ()
18831 return 0;
18834 _ACEOF
18835 if ac_fn_c_try_link "$LINENO"; then :
18836 gcc_cv_math_func_ccosh=yes
18837 else
18838 gcc_cv_math_func_ccosh=no
18840 rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18844 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18845 if test $gcc_cv_math_func_ccosh = yes; then
18847 cat >>confdefs.h <<_ACEOF
18848 #define HAVE_CCOSH 1
18849 _ACEOF
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18857 $as_echo_n "checking for ccoshl... " >&6; }
18858 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18861 if test x$gcc_no_link = xyes; then
18862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 #ifdef HAVE_COMPLEX_H
18868 #include <complex.h>
18869 #endif
18870 #ifdef HAVE_MATH_H
18871 #include <math.h>
18872 #endif
18874 int (*ptr)() = (int (*)())ccoshl;
18877 main ()
18879 return 0;
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"; then :
18884 gcc_cv_math_func_ccoshl=yes
18885 else
18886 gcc_cv_math_func_ccoshl=no
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18892 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18893 if test $gcc_cv_math_func_ccoshl = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define HAVE_CCOSHL 1
18897 _ACEOF
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18905 $as_echo_n "checking for expf... " >&6; }
18906 if test "${gcc_cv_math_func_expf+set}" = set; then :
18907 $as_echo_n "(cached) " >&6
18908 else
18909 if test x$gcc_no_link = xyes; then
18910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18915 #ifdef HAVE_COMPLEX_H
18916 #include <complex.h>
18917 #endif
18918 #ifdef HAVE_MATH_H
18919 #include <math.h>
18920 #endif
18922 int (*ptr)() = (int (*)())expf;
18925 main ()
18927 return 0;
18930 _ACEOF
18931 if ac_fn_c_try_link "$LINENO"; then :
18932 gcc_cv_math_func_expf=yes
18933 else
18934 gcc_cv_math_func_expf=no
18936 rm -f core conftest.err conftest.$ac_objext \
18937 conftest$ac_exeext conftest.$ac_ext
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18940 $as_echo "$gcc_cv_math_func_expf" >&6; }
18941 if test $gcc_cv_math_func_expf = yes; then
18943 cat >>confdefs.h <<_ACEOF
18944 #define HAVE_EXPF 1
18945 _ACEOF
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18953 $as_echo_n "checking for exp... " >&6; }
18954 if test "${gcc_cv_math_func_exp+set}" = set; then :
18955 $as_echo_n "(cached) " >&6
18956 else
18957 if test x$gcc_no_link = xyes; then
18958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18963 #ifdef HAVE_COMPLEX_H
18964 #include <complex.h>
18965 #endif
18966 #ifdef HAVE_MATH_H
18967 #include <math.h>
18968 #endif
18970 int (*ptr)() = (int (*)())exp;
18973 main ()
18975 return 0;
18978 _ACEOF
18979 if ac_fn_c_try_link "$LINENO"; then :
18980 gcc_cv_math_func_exp=yes
18981 else
18982 gcc_cv_math_func_exp=no
18984 rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18988 $as_echo "$gcc_cv_math_func_exp" >&6; }
18989 if test $gcc_cv_math_func_exp = yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_EXP 1
18993 _ACEOF
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19001 $as_echo_n "checking for expl... " >&6; }
19002 if test "${gcc_cv_math_func_expl+set}" = set; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19005 if test x$gcc_no_link = xyes; then
19006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 #ifdef HAVE_COMPLEX_H
19012 #include <complex.h>
19013 #endif
19014 #ifdef HAVE_MATH_H
19015 #include <math.h>
19016 #endif
19018 int (*ptr)() = (int (*)())expl;
19021 main ()
19023 return 0;
19026 _ACEOF
19027 if ac_fn_c_try_link "$LINENO"; then :
19028 gcc_cv_math_func_expl=yes
19029 else
19030 gcc_cv_math_func_expl=no
19032 rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19036 $as_echo "$gcc_cv_math_func_expl" >&6; }
19037 if test $gcc_cv_math_func_expl = yes; then
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_EXPL 1
19041 _ACEOF
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19049 $as_echo_n "checking for cexpf... " >&6; }
19050 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19052 else
19053 if test x$gcc_no_link = xyes; then
19054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19059 #ifdef HAVE_COMPLEX_H
19060 #include <complex.h>
19061 #endif
19062 #ifdef HAVE_MATH_H
19063 #include <math.h>
19064 #endif
19066 int (*ptr)() = (int (*)())cexpf;
19069 main ()
19071 return 0;
19074 _ACEOF
19075 if ac_fn_c_try_link "$LINENO"; then :
19076 gcc_cv_math_func_cexpf=yes
19077 else
19078 gcc_cv_math_func_cexpf=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19084 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19085 if test $gcc_cv_math_func_cexpf = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_CEXPF 1
19089 _ACEOF
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19097 $as_echo_n "checking for cexp... " >&6; }
19098 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 if test x$gcc_no_link = xyes; then
19102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19107 #ifdef HAVE_COMPLEX_H
19108 #include <complex.h>
19109 #endif
19110 #ifdef HAVE_MATH_H
19111 #include <math.h>
19112 #endif
19114 int (*ptr)() = (int (*)())cexp;
19117 main ()
19119 return 0;
19122 _ACEOF
19123 if ac_fn_c_try_link "$LINENO"; then :
19124 gcc_cv_math_func_cexp=yes
19125 else
19126 gcc_cv_math_func_cexp=no
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19132 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19133 if test $gcc_cv_math_func_cexp = yes; then
19135 cat >>confdefs.h <<_ACEOF
19136 #define HAVE_CEXP 1
19137 _ACEOF
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19145 $as_echo_n "checking for cexpl... " >&6; }
19146 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19147 $as_echo_n "(cached) " >&6
19148 else
19149 if test x$gcc_no_link = xyes; then
19150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19155 #ifdef HAVE_COMPLEX_H
19156 #include <complex.h>
19157 #endif
19158 #ifdef HAVE_MATH_H
19159 #include <math.h>
19160 #endif
19162 int (*ptr)() = (int (*)())cexpl;
19165 main ()
19167 return 0;
19170 _ACEOF
19171 if ac_fn_c_try_link "$LINENO"; then :
19172 gcc_cv_math_func_cexpl=yes
19173 else
19174 gcc_cv_math_func_cexpl=no
19176 rm -f core conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19180 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19181 if test $gcc_cv_math_func_cexpl = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define HAVE_CEXPL 1
19185 _ACEOF
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19193 $as_echo_n "checking for fabsf... " >&6; }
19194 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 if test x$gcc_no_link = xyes; then
19198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19203 #ifdef HAVE_COMPLEX_H
19204 #include <complex.h>
19205 #endif
19206 #ifdef HAVE_MATH_H
19207 #include <math.h>
19208 #endif
19210 int (*ptr)() = (int (*)())fabsf;
19213 main ()
19215 return 0;
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"; then :
19220 gcc_cv_math_func_fabsf=yes
19221 else
19222 gcc_cv_math_func_fabsf=no
19224 rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19228 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19229 if test $gcc_cv_math_func_fabsf = yes; then
19231 cat >>confdefs.h <<_ACEOF
19232 #define HAVE_FABSF 1
19233 _ACEOF
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19241 $as_echo_n "checking for fabs... " >&6; }
19242 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19243 $as_echo_n "(cached) " >&6
19244 else
19245 if test x$gcc_no_link = xyes; then
19246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19251 #ifdef HAVE_COMPLEX_H
19252 #include <complex.h>
19253 #endif
19254 #ifdef HAVE_MATH_H
19255 #include <math.h>
19256 #endif
19258 int (*ptr)() = (int (*)())fabs;
19261 main ()
19263 return 0;
19266 _ACEOF
19267 if ac_fn_c_try_link "$LINENO"; then :
19268 gcc_cv_math_func_fabs=yes
19269 else
19270 gcc_cv_math_func_fabs=no
19272 rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19276 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19277 if test $gcc_cv_math_func_fabs = yes; then
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_FABS 1
19281 _ACEOF
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19289 $as_echo_n "checking for fabsl... " >&6; }
19290 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19292 else
19293 if test x$gcc_no_link = xyes; then
19294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19299 #ifdef HAVE_COMPLEX_H
19300 #include <complex.h>
19301 #endif
19302 #ifdef HAVE_MATH_H
19303 #include <math.h>
19304 #endif
19306 int (*ptr)() = (int (*)())fabsl;
19309 main ()
19311 return 0;
19314 _ACEOF
19315 if ac_fn_c_try_link "$LINENO"; then :
19316 gcc_cv_math_func_fabsl=yes
19317 else
19318 gcc_cv_math_func_fabsl=no
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19324 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19325 if test $gcc_cv_math_func_fabsl = yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_FABSL 1
19329 _ACEOF
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19337 $as_echo_n "checking for cabsf... " >&6; }
19338 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19339 $as_echo_n "(cached) " >&6
19340 else
19341 if test x$gcc_no_link = xyes; then
19342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19347 #ifdef HAVE_COMPLEX_H
19348 #include <complex.h>
19349 #endif
19350 #ifdef HAVE_MATH_H
19351 #include <math.h>
19352 #endif
19354 int (*ptr)() = (int (*)())cabsf;
19357 main ()
19359 return 0;
19362 _ACEOF
19363 if ac_fn_c_try_link "$LINENO"; then :
19364 gcc_cv_math_func_cabsf=yes
19365 else
19366 gcc_cv_math_func_cabsf=no
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19372 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19373 if test $gcc_cv_math_func_cabsf = yes; then
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_CABSF 1
19377 _ACEOF
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19385 $as_echo_n "checking for cabs... " >&6; }
19386 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19388 else
19389 if test x$gcc_no_link = xyes; then
19390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19395 #ifdef HAVE_COMPLEX_H
19396 #include <complex.h>
19397 #endif
19398 #ifdef HAVE_MATH_H
19399 #include <math.h>
19400 #endif
19402 int (*ptr)() = (int (*)())cabs;
19405 main ()
19407 return 0;
19410 _ACEOF
19411 if ac_fn_c_try_link "$LINENO"; then :
19412 gcc_cv_math_func_cabs=yes
19413 else
19414 gcc_cv_math_func_cabs=no
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19420 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19421 if test $gcc_cv_math_func_cabs = yes; then
19423 cat >>confdefs.h <<_ACEOF
19424 #define HAVE_CABS 1
19425 _ACEOF
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19433 $as_echo_n "checking for cabsl... " >&6; }
19434 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 if test x$gcc_no_link = xyes; then
19438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19443 #ifdef HAVE_COMPLEX_H
19444 #include <complex.h>
19445 #endif
19446 #ifdef HAVE_MATH_H
19447 #include <math.h>
19448 #endif
19450 int (*ptr)() = (int (*)())cabsl;
19453 main ()
19455 return 0;
19458 _ACEOF
19459 if ac_fn_c_try_link "$LINENO"; then :
19460 gcc_cv_math_func_cabsl=yes
19461 else
19462 gcc_cv_math_func_cabsl=no
19464 rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19468 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19469 if test $gcc_cv_math_func_cabsl = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define HAVE_CABSL 1
19473 _ACEOF
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19481 $as_echo_n "checking for floorf... " >&6; }
19482 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19483 $as_echo_n "(cached) " >&6
19484 else
19485 if test x$gcc_no_link = xyes; then
19486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19491 #ifdef HAVE_COMPLEX_H
19492 #include <complex.h>
19493 #endif
19494 #ifdef HAVE_MATH_H
19495 #include <math.h>
19496 #endif
19498 int (*ptr)() = (int (*)())floorf;
19501 main ()
19503 return 0;
19506 _ACEOF
19507 if ac_fn_c_try_link "$LINENO"; then :
19508 gcc_cv_math_func_floorf=yes
19509 else
19510 gcc_cv_math_func_floorf=no
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19516 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19517 if test $gcc_cv_math_func_floorf = yes; then
19519 cat >>confdefs.h <<_ACEOF
19520 #define HAVE_FLOORF 1
19521 _ACEOF
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19529 $as_echo_n "checking for floor... " >&6; }
19530 if test "${gcc_cv_math_func_floor+set}" = set; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 if test x$gcc_no_link = xyes; then
19534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19539 #ifdef HAVE_COMPLEX_H
19540 #include <complex.h>
19541 #endif
19542 #ifdef HAVE_MATH_H
19543 #include <math.h>
19544 #endif
19546 int (*ptr)() = (int (*)())floor;
19549 main ()
19551 return 0;
19554 _ACEOF
19555 if ac_fn_c_try_link "$LINENO"; then :
19556 gcc_cv_math_func_floor=yes
19557 else
19558 gcc_cv_math_func_floor=no
19560 rm -f core conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19564 $as_echo "$gcc_cv_math_func_floor" >&6; }
19565 if test $gcc_cv_math_func_floor = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568 #define HAVE_FLOOR 1
19569 _ACEOF
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19577 $as_echo_n "checking for floorl... " >&6; }
19578 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 if test x$gcc_no_link = xyes; then
19582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19585 /* end confdefs.h. */
19587 #ifdef HAVE_COMPLEX_H
19588 #include <complex.h>
19589 #endif
19590 #ifdef HAVE_MATH_H
19591 #include <math.h>
19592 #endif
19594 int (*ptr)() = (int (*)())floorl;
19597 main ()
19599 return 0;
19602 _ACEOF
19603 if ac_fn_c_try_link "$LINENO"; then :
19604 gcc_cv_math_func_floorl=yes
19605 else
19606 gcc_cv_math_func_floorl=no
19608 rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19612 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19613 if test $gcc_cv_math_func_floorl = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define HAVE_FLOORL 1
19617 _ACEOF
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19625 $as_echo_n "checking for fmodf... " >&6; }
19626 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 if test x$gcc_no_link = xyes; then
19630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19633 /* end confdefs.h. */
19635 #ifdef HAVE_COMPLEX_H
19636 #include <complex.h>
19637 #endif
19638 #ifdef HAVE_MATH_H
19639 #include <math.h>
19640 #endif
19642 int (*ptr)() = (int (*)())fmodf;
19645 main ()
19647 return 0;
19650 _ACEOF
19651 if ac_fn_c_try_link "$LINENO"; then :
19652 gcc_cv_math_func_fmodf=yes
19653 else
19654 gcc_cv_math_func_fmodf=no
19656 rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19660 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19661 if test $gcc_cv_math_func_fmodf = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_FMODF 1
19665 _ACEOF
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19673 $as_echo_n "checking for fmod... " >&6; }
19674 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19675 $as_echo_n "(cached) " >&6
19676 else
19677 if test x$gcc_no_link = xyes; then
19678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19683 #ifdef HAVE_COMPLEX_H
19684 #include <complex.h>
19685 #endif
19686 #ifdef HAVE_MATH_H
19687 #include <math.h>
19688 #endif
19690 int (*ptr)() = (int (*)())fmod;
19693 main ()
19695 return 0;
19698 _ACEOF
19699 if ac_fn_c_try_link "$LINENO"; then :
19700 gcc_cv_math_func_fmod=yes
19701 else
19702 gcc_cv_math_func_fmod=no
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19708 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19709 if test $gcc_cv_math_func_fmod = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_FMOD 1
19713 _ACEOF
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19721 $as_echo_n "checking for fmodl... " >&6; }
19722 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19723 $as_echo_n "(cached) " >&6
19724 else
19725 if test x$gcc_no_link = xyes; then
19726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729 /* end confdefs.h. */
19731 #ifdef HAVE_COMPLEX_H
19732 #include <complex.h>
19733 #endif
19734 #ifdef HAVE_MATH_H
19735 #include <math.h>
19736 #endif
19738 int (*ptr)() = (int (*)())fmodl;
19741 main ()
19743 return 0;
19746 _ACEOF
19747 if ac_fn_c_try_link "$LINENO"; then :
19748 gcc_cv_math_func_fmodl=yes
19749 else
19750 gcc_cv_math_func_fmodl=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19756 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19757 if test $gcc_cv_math_func_fmodl = yes; then
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_FMODL 1
19761 _ACEOF
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19769 $as_echo_n "checking for frexpf... " >&6; }
19770 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19771 $as_echo_n "(cached) " >&6
19772 else
19773 if test x$gcc_no_link = xyes; then
19774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19779 #ifdef HAVE_COMPLEX_H
19780 #include <complex.h>
19781 #endif
19782 #ifdef HAVE_MATH_H
19783 #include <math.h>
19784 #endif
19786 int (*ptr)() = (int (*)())frexpf;
19789 main ()
19791 return 0;
19794 _ACEOF
19795 if ac_fn_c_try_link "$LINENO"; then :
19796 gcc_cv_math_func_frexpf=yes
19797 else
19798 gcc_cv_math_func_frexpf=no
19800 rm -f core conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19804 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19805 if test $gcc_cv_math_func_frexpf = yes; then
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_FREXPF 1
19809 _ACEOF
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19817 $as_echo_n "checking for frexp... " >&6; }
19818 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19819 $as_echo_n "(cached) " >&6
19820 else
19821 if test x$gcc_no_link = xyes; then
19822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19827 #ifdef HAVE_COMPLEX_H
19828 #include <complex.h>
19829 #endif
19830 #ifdef HAVE_MATH_H
19831 #include <math.h>
19832 #endif
19834 int (*ptr)() = (int (*)())frexp;
19837 main ()
19839 return 0;
19842 _ACEOF
19843 if ac_fn_c_try_link "$LINENO"; then :
19844 gcc_cv_math_func_frexp=yes
19845 else
19846 gcc_cv_math_func_frexp=no
19848 rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19852 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19853 if test $gcc_cv_math_func_frexp = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define HAVE_FREXP 1
19857 _ACEOF
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19865 $as_echo_n "checking for frexpl... " >&6; }
19866 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19867 $as_echo_n "(cached) " >&6
19868 else
19869 if test x$gcc_no_link = xyes; then
19870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19875 #ifdef HAVE_COMPLEX_H
19876 #include <complex.h>
19877 #endif
19878 #ifdef HAVE_MATH_H
19879 #include <math.h>
19880 #endif
19882 int (*ptr)() = (int (*)())frexpl;
19885 main ()
19887 return 0;
19890 _ACEOF
19891 if ac_fn_c_try_link "$LINENO"; then :
19892 gcc_cv_math_func_frexpl=yes
19893 else
19894 gcc_cv_math_func_frexpl=no
19896 rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19900 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19901 if test $gcc_cv_math_func_frexpl = yes; then
19903 cat >>confdefs.h <<_ACEOF
19904 #define HAVE_FREXPL 1
19905 _ACEOF
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19913 $as_echo_n "checking for hypotf... " >&6; }
19914 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19915 $as_echo_n "(cached) " >&6
19916 else
19917 if test x$gcc_no_link = xyes; then
19918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19923 #ifdef HAVE_COMPLEX_H
19924 #include <complex.h>
19925 #endif
19926 #ifdef HAVE_MATH_H
19927 #include <math.h>
19928 #endif
19930 int (*ptr)() = (int (*)())hypotf;
19933 main ()
19935 return 0;
19938 _ACEOF
19939 if ac_fn_c_try_link "$LINENO"; then :
19940 gcc_cv_math_func_hypotf=yes
19941 else
19942 gcc_cv_math_func_hypotf=no
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19948 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19949 if test $gcc_cv_math_func_hypotf = yes; then
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_HYPOTF 1
19953 _ACEOF
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19961 $as_echo_n "checking for hypot... " >&6; }
19962 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19963 $as_echo_n "(cached) " >&6
19964 else
19965 if test x$gcc_no_link = xyes; then
19966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19971 #ifdef HAVE_COMPLEX_H
19972 #include <complex.h>
19973 #endif
19974 #ifdef HAVE_MATH_H
19975 #include <math.h>
19976 #endif
19978 int (*ptr)() = (int (*)())hypot;
19981 main ()
19983 return 0;
19986 _ACEOF
19987 if ac_fn_c_try_link "$LINENO"; then :
19988 gcc_cv_math_func_hypot=yes
19989 else
19990 gcc_cv_math_func_hypot=no
19992 rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19996 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19997 if test $gcc_cv_math_func_hypot = yes; then
19999 cat >>confdefs.h <<_ACEOF
20000 #define HAVE_HYPOT 1
20001 _ACEOF
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20009 $as_echo_n "checking for hypotl... " >&6; }
20010 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20012 else
20013 if test x$gcc_no_link = xyes; then
20014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20019 #ifdef HAVE_COMPLEX_H
20020 #include <complex.h>
20021 #endif
20022 #ifdef HAVE_MATH_H
20023 #include <math.h>
20024 #endif
20026 int (*ptr)() = (int (*)())hypotl;
20029 main ()
20031 return 0;
20034 _ACEOF
20035 if ac_fn_c_try_link "$LINENO"; then :
20036 gcc_cv_math_func_hypotl=yes
20037 else
20038 gcc_cv_math_func_hypotl=no
20040 rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20044 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20045 if test $gcc_cv_math_func_hypotl = yes; then
20047 cat >>confdefs.h <<_ACEOF
20048 #define HAVE_HYPOTL 1
20049 _ACEOF
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20057 $as_echo_n "checking for ldexpf... " >&6; }
20058 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
20059 $as_echo_n "(cached) " >&6
20060 else
20061 if test x$gcc_no_link = xyes; then
20062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20067 #ifdef HAVE_COMPLEX_H
20068 #include <complex.h>
20069 #endif
20070 #ifdef HAVE_MATH_H
20071 #include <math.h>
20072 #endif
20074 int (*ptr)() = (int (*)())ldexpf;
20077 main ()
20079 return 0;
20082 _ACEOF
20083 if ac_fn_c_try_link "$LINENO"; then :
20084 gcc_cv_math_func_ldexpf=yes
20085 else
20086 gcc_cv_math_func_ldexpf=no
20088 rm -f core conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20092 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20093 if test $gcc_cv_math_func_ldexpf = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_LDEXPF 1
20097 _ACEOF
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20105 $as_echo_n "checking for ldexp... " >&6; }
20106 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20107 $as_echo_n "(cached) " >&6
20108 else
20109 if test x$gcc_no_link = xyes; then
20110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20115 #ifdef HAVE_COMPLEX_H
20116 #include <complex.h>
20117 #endif
20118 #ifdef HAVE_MATH_H
20119 #include <math.h>
20120 #endif
20122 int (*ptr)() = (int (*)())ldexp;
20125 main ()
20127 return 0;
20130 _ACEOF
20131 if ac_fn_c_try_link "$LINENO"; then :
20132 gcc_cv_math_func_ldexp=yes
20133 else
20134 gcc_cv_math_func_ldexp=no
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20140 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20141 if test $gcc_cv_math_func_ldexp = yes; then
20143 cat >>confdefs.h <<_ACEOF
20144 #define HAVE_LDEXP 1
20145 _ACEOF
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20153 $as_echo_n "checking for ldexpl... " >&6; }
20154 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20155 $as_echo_n "(cached) " >&6
20156 else
20157 if test x$gcc_no_link = xyes; then
20158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20163 #ifdef HAVE_COMPLEX_H
20164 #include <complex.h>
20165 #endif
20166 #ifdef HAVE_MATH_H
20167 #include <math.h>
20168 #endif
20170 int (*ptr)() = (int (*)())ldexpl;
20173 main ()
20175 return 0;
20178 _ACEOF
20179 if ac_fn_c_try_link "$LINENO"; then :
20180 gcc_cv_math_func_ldexpl=yes
20181 else
20182 gcc_cv_math_func_ldexpl=no
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20188 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20189 if test $gcc_cv_math_func_ldexpl = yes; then
20191 cat >>confdefs.h <<_ACEOF
20192 #define HAVE_LDEXPL 1
20193 _ACEOF
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20201 $as_echo_n "checking for logf... " >&6; }
20202 if test "${gcc_cv_math_func_logf+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20204 else
20205 if test x$gcc_no_link = xyes; then
20206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20211 #ifdef HAVE_COMPLEX_H
20212 #include <complex.h>
20213 #endif
20214 #ifdef HAVE_MATH_H
20215 #include <math.h>
20216 #endif
20218 int (*ptr)() = (int (*)())logf;
20221 main ()
20223 return 0;
20226 _ACEOF
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 gcc_cv_math_func_logf=yes
20229 else
20230 gcc_cv_math_func_logf=no
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20236 $as_echo "$gcc_cv_math_func_logf" >&6; }
20237 if test $gcc_cv_math_func_logf = yes; then
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_LOGF 1
20241 _ACEOF
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20249 $as_echo_n "checking for log... " >&6; }
20250 if test "${gcc_cv_math_func_log+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20252 else
20253 if test x$gcc_no_link = xyes; then
20254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20259 #ifdef HAVE_COMPLEX_H
20260 #include <complex.h>
20261 #endif
20262 #ifdef HAVE_MATH_H
20263 #include <math.h>
20264 #endif
20266 int (*ptr)() = (int (*)())log;
20269 main ()
20271 return 0;
20274 _ACEOF
20275 if ac_fn_c_try_link "$LINENO"; then :
20276 gcc_cv_math_func_log=yes
20277 else
20278 gcc_cv_math_func_log=no
20280 rm -f core conftest.err conftest.$ac_objext \
20281 conftest$ac_exeext conftest.$ac_ext
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20284 $as_echo "$gcc_cv_math_func_log" >&6; }
20285 if test $gcc_cv_math_func_log = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_LOG 1
20289 _ACEOF
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20297 $as_echo_n "checking for logl... " >&6; }
20298 if test "${gcc_cv_math_func_logl+set}" = set; then :
20299 $as_echo_n "(cached) " >&6
20300 else
20301 if test x$gcc_no_link = xyes; then
20302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20307 #ifdef HAVE_COMPLEX_H
20308 #include <complex.h>
20309 #endif
20310 #ifdef HAVE_MATH_H
20311 #include <math.h>
20312 #endif
20314 int (*ptr)() = (int (*)())logl;
20317 main ()
20319 return 0;
20322 _ACEOF
20323 if ac_fn_c_try_link "$LINENO"; then :
20324 gcc_cv_math_func_logl=yes
20325 else
20326 gcc_cv_math_func_logl=no
20328 rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext conftest.$ac_ext
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20332 $as_echo "$gcc_cv_math_func_logl" >&6; }
20333 if test $gcc_cv_math_func_logl = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define HAVE_LOGL 1
20337 _ACEOF
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20345 $as_echo_n "checking for clogf... " >&6; }
20346 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 if test x$gcc_no_link = xyes; then
20350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20355 #ifdef HAVE_COMPLEX_H
20356 #include <complex.h>
20357 #endif
20358 #ifdef HAVE_MATH_H
20359 #include <math.h>
20360 #endif
20362 int (*ptr)() = (int (*)())clogf;
20365 main ()
20367 return 0;
20370 _ACEOF
20371 if ac_fn_c_try_link "$LINENO"; then :
20372 gcc_cv_math_func_clogf=yes
20373 else
20374 gcc_cv_math_func_clogf=no
20376 rm -f core conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20380 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20381 if test $gcc_cv_math_func_clogf = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define HAVE_CLOGF 1
20385 _ACEOF
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20393 $as_echo_n "checking for clog... " >&6; }
20394 if test "${gcc_cv_math_func_clog+set}" = set; then :
20395 $as_echo_n "(cached) " >&6
20396 else
20397 if test x$gcc_no_link = xyes; then
20398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401 /* end confdefs.h. */
20403 #ifdef HAVE_COMPLEX_H
20404 #include <complex.h>
20405 #endif
20406 #ifdef HAVE_MATH_H
20407 #include <math.h>
20408 #endif
20410 int (*ptr)() = (int (*)())clog;
20413 main ()
20415 return 0;
20418 _ACEOF
20419 if ac_fn_c_try_link "$LINENO"; then :
20420 gcc_cv_math_func_clog=yes
20421 else
20422 gcc_cv_math_func_clog=no
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20428 $as_echo "$gcc_cv_math_func_clog" >&6; }
20429 if test $gcc_cv_math_func_clog = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define HAVE_CLOG 1
20433 _ACEOF
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20441 $as_echo_n "checking for clogl... " >&6; }
20442 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20443 $as_echo_n "(cached) " >&6
20444 else
20445 if test x$gcc_no_link = xyes; then
20446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449 /* end confdefs.h. */
20451 #ifdef HAVE_COMPLEX_H
20452 #include <complex.h>
20453 #endif
20454 #ifdef HAVE_MATH_H
20455 #include <math.h>
20456 #endif
20458 int (*ptr)() = (int (*)())clogl;
20461 main ()
20463 return 0;
20466 _ACEOF
20467 if ac_fn_c_try_link "$LINENO"; then :
20468 gcc_cv_math_func_clogl=yes
20469 else
20470 gcc_cv_math_func_clogl=no
20472 rm -f core conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20476 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20477 if test $gcc_cv_math_func_clogl = yes; then
20479 cat >>confdefs.h <<_ACEOF
20480 #define HAVE_CLOGL 1
20481 _ACEOF
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20489 $as_echo_n "checking for log10f... " >&6; }
20490 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20491 $as_echo_n "(cached) " >&6
20492 else
20493 if test x$gcc_no_link = xyes; then
20494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20499 #ifdef HAVE_COMPLEX_H
20500 #include <complex.h>
20501 #endif
20502 #ifdef HAVE_MATH_H
20503 #include <math.h>
20504 #endif
20506 int (*ptr)() = (int (*)())log10f;
20509 main ()
20511 return 0;
20514 _ACEOF
20515 if ac_fn_c_try_link "$LINENO"; then :
20516 gcc_cv_math_func_log10f=yes
20517 else
20518 gcc_cv_math_func_log10f=no
20520 rm -f core conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20524 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20525 if test $gcc_cv_math_func_log10f = yes; then
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_LOG10F 1
20529 _ACEOF
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20537 $as_echo_n "checking for log10... " >&6; }
20538 if test "${gcc_cv_math_func_log10+set}" = set; then :
20539 $as_echo_n "(cached) " >&6
20540 else
20541 if test x$gcc_no_link = xyes; then
20542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20547 #ifdef HAVE_COMPLEX_H
20548 #include <complex.h>
20549 #endif
20550 #ifdef HAVE_MATH_H
20551 #include <math.h>
20552 #endif
20554 int (*ptr)() = (int (*)())log10;
20557 main ()
20559 return 0;
20562 _ACEOF
20563 if ac_fn_c_try_link "$LINENO"; then :
20564 gcc_cv_math_func_log10=yes
20565 else
20566 gcc_cv_math_func_log10=no
20568 rm -f core conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20572 $as_echo "$gcc_cv_math_func_log10" >&6; }
20573 if test $gcc_cv_math_func_log10 = yes; then
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_LOG10 1
20577 _ACEOF
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20585 $as_echo_n "checking for log10l... " >&6; }
20586 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20587 $as_echo_n "(cached) " >&6
20588 else
20589 if test x$gcc_no_link = xyes; then
20590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20595 #ifdef HAVE_COMPLEX_H
20596 #include <complex.h>
20597 #endif
20598 #ifdef HAVE_MATH_H
20599 #include <math.h>
20600 #endif
20602 int (*ptr)() = (int (*)())log10l;
20605 main ()
20607 return 0;
20610 _ACEOF
20611 if ac_fn_c_try_link "$LINENO"; then :
20612 gcc_cv_math_func_log10l=yes
20613 else
20614 gcc_cv_math_func_log10l=no
20616 rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext conftest.$ac_ext
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20620 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20621 if test $gcc_cv_math_func_log10l = yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_LOG10L 1
20625 _ACEOF
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20633 $as_echo_n "checking for clog10f... " >&6; }
20634 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20635 $as_echo_n "(cached) " >&6
20636 else
20637 if test x$gcc_no_link = xyes; then
20638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20643 #ifdef HAVE_COMPLEX_H
20644 #include <complex.h>
20645 #endif
20646 #ifdef HAVE_MATH_H
20647 #include <math.h>
20648 #endif
20650 int (*ptr)() = (int (*)())clog10f;
20653 main ()
20655 return 0;
20658 _ACEOF
20659 if ac_fn_c_try_link "$LINENO"; then :
20660 gcc_cv_math_func_clog10f=yes
20661 else
20662 gcc_cv_math_func_clog10f=no
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20668 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20669 if test $gcc_cv_math_func_clog10f = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define HAVE_CLOG10F 1
20673 _ACEOF
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20681 $as_echo_n "checking for clog10... " >&6; }
20682 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20683 $as_echo_n "(cached) " >&6
20684 else
20685 if test x$gcc_no_link = xyes; then
20686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20691 #ifdef HAVE_COMPLEX_H
20692 #include <complex.h>
20693 #endif
20694 #ifdef HAVE_MATH_H
20695 #include <math.h>
20696 #endif
20698 int (*ptr)() = (int (*)())clog10;
20701 main ()
20703 return 0;
20706 _ACEOF
20707 if ac_fn_c_try_link "$LINENO"; then :
20708 gcc_cv_math_func_clog10=yes
20709 else
20710 gcc_cv_math_func_clog10=no
20712 rm -f core conftest.err conftest.$ac_objext \
20713 conftest$ac_exeext conftest.$ac_ext
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20716 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20717 if test $gcc_cv_math_func_clog10 = yes; then
20719 cat >>confdefs.h <<_ACEOF
20720 #define HAVE_CLOG10 1
20721 _ACEOF
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20729 $as_echo_n "checking for clog10l... " >&6; }
20730 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20731 $as_echo_n "(cached) " >&6
20732 else
20733 if test x$gcc_no_link = xyes; then
20734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20739 #ifdef HAVE_COMPLEX_H
20740 #include <complex.h>
20741 #endif
20742 #ifdef HAVE_MATH_H
20743 #include <math.h>
20744 #endif
20746 int (*ptr)() = (int (*)())clog10l;
20749 main ()
20751 return 0;
20754 _ACEOF
20755 if ac_fn_c_try_link "$LINENO"; then :
20756 gcc_cv_math_func_clog10l=yes
20757 else
20758 gcc_cv_math_func_clog10l=no
20760 rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20764 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20765 if test $gcc_cv_math_func_clog10l = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define HAVE_CLOG10L 1
20769 _ACEOF
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20777 $as_echo_n "checking for nextafterf... " >&6; }
20778 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20779 $as_echo_n "(cached) " >&6
20780 else
20781 if test x$gcc_no_link = xyes; then
20782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20787 #ifdef HAVE_COMPLEX_H
20788 #include <complex.h>
20789 #endif
20790 #ifdef HAVE_MATH_H
20791 #include <math.h>
20792 #endif
20794 int (*ptr)() = (int (*)())nextafterf;
20797 main ()
20799 return 0;
20802 _ACEOF
20803 if ac_fn_c_try_link "$LINENO"; then :
20804 gcc_cv_math_func_nextafterf=yes
20805 else
20806 gcc_cv_math_func_nextafterf=no
20808 rm -f core conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20812 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20813 if test $gcc_cv_math_func_nextafterf = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define HAVE_NEXTAFTERF 1
20817 _ACEOF
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20825 $as_echo_n "checking for nextafter... " >&6; }
20826 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20828 else
20829 if test x$gcc_no_link = xyes; then
20830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20835 #ifdef HAVE_COMPLEX_H
20836 #include <complex.h>
20837 #endif
20838 #ifdef HAVE_MATH_H
20839 #include <math.h>
20840 #endif
20842 int (*ptr)() = (int (*)())nextafter;
20845 main ()
20847 return 0;
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"; then :
20852 gcc_cv_math_func_nextafter=yes
20853 else
20854 gcc_cv_math_func_nextafter=no
20856 rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20860 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20861 if test $gcc_cv_math_func_nextafter = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define HAVE_NEXTAFTER 1
20865 _ACEOF
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20873 $as_echo_n "checking for nextafterl... " >&6; }
20874 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20875 $as_echo_n "(cached) " >&6
20876 else
20877 if test x$gcc_no_link = xyes; then
20878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20883 #ifdef HAVE_COMPLEX_H
20884 #include <complex.h>
20885 #endif
20886 #ifdef HAVE_MATH_H
20887 #include <math.h>
20888 #endif
20890 int (*ptr)() = (int (*)())nextafterl;
20893 main ()
20895 return 0;
20898 _ACEOF
20899 if ac_fn_c_try_link "$LINENO"; then :
20900 gcc_cv_math_func_nextafterl=yes
20901 else
20902 gcc_cv_math_func_nextafterl=no
20904 rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20908 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20909 if test $gcc_cv_math_func_nextafterl = yes; then
20911 cat >>confdefs.h <<_ACEOF
20912 #define HAVE_NEXTAFTERL 1
20913 _ACEOF
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20921 $as_echo_n "checking for powf... " >&6; }
20922 if test "${gcc_cv_math_func_powf+set}" = set; then :
20923 $as_echo_n "(cached) " >&6
20924 else
20925 if test x$gcc_no_link = xyes; then
20926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h. */
20931 #ifdef HAVE_COMPLEX_H
20932 #include <complex.h>
20933 #endif
20934 #ifdef HAVE_MATH_H
20935 #include <math.h>
20936 #endif
20938 int (*ptr)() = (int (*)())powf;
20941 main ()
20943 return 0;
20946 _ACEOF
20947 if ac_fn_c_try_link "$LINENO"; then :
20948 gcc_cv_math_func_powf=yes
20949 else
20950 gcc_cv_math_func_powf=no
20952 rm -f core conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20956 $as_echo "$gcc_cv_math_func_powf" >&6; }
20957 if test $gcc_cv_math_func_powf = yes; then
20959 cat >>confdefs.h <<_ACEOF
20960 #define HAVE_POWF 1
20961 _ACEOF
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20969 $as_echo_n "checking for pow... " >&6; }
20970 if test "${gcc_cv_math_func_pow+set}" = set; then :
20971 $as_echo_n "(cached) " >&6
20972 else
20973 if test x$gcc_no_link = xyes; then
20974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20979 #ifdef HAVE_COMPLEX_H
20980 #include <complex.h>
20981 #endif
20982 #ifdef HAVE_MATH_H
20983 #include <math.h>
20984 #endif
20986 int (*ptr)() = (int (*)())pow;
20989 main ()
20991 return 0;
20994 _ACEOF
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 gcc_cv_math_func_pow=yes
20997 else
20998 gcc_cv_math_func_pow=no
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21004 $as_echo "$gcc_cv_math_func_pow" >&6; }
21005 if test $gcc_cv_math_func_pow = yes; then
21007 cat >>confdefs.h <<_ACEOF
21008 #define HAVE_POW 1
21009 _ACEOF
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21017 $as_echo_n "checking for cpowf... " >&6; }
21018 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21021 if test x$gcc_no_link = xyes; then
21022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21025 /* end confdefs.h. */
21027 #ifdef HAVE_COMPLEX_H
21028 #include <complex.h>
21029 #endif
21030 #ifdef HAVE_MATH_H
21031 #include <math.h>
21032 #endif
21034 int (*ptr)() = (int (*)())cpowf;
21037 main ()
21039 return 0;
21042 _ACEOF
21043 if ac_fn_c_try_link "$LINENO"; then :
21044 gcc_cv_math_func_cpowf=yes
21045 else
21046 gcc_cv_math_func_cpowf=no
21048 rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21052 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21053 if test $gcc_cv_math_func_cpowf = yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define HAVE_CPOWF 1
21057 _ACEOF
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21065 $as_echo_n "checking for cpow... " >&6; }
21066 if test "${gcc_cv_math_func_cpow+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21068 else
21069 if test x$gcc_no_link = xyes; then
21070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h. */
21075 #ifdef HAVE_COMPLEX_H
21076 #include <complex.h>
21077 #endif
21078 #ifdef HAVE_MATH_H
21079 #include <math.h>
21080 #endif
21082 int (*ptr)() = (int (*)())cpow;
21085 main ()
21087 return 0;
21090 _ACEOF
21091 if ac_fn_c_try_link "$LINENO"; then :
21092 gcc_cv_math_func_cpow=yes
21093 else
21094 gcc_cv_math_func_cpow=no
21096 rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21100 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21101 if test $gcc_cv_math_func_cpow = yes; then
21103 cat >>confdefs.h <<_ACEOF
21104 #define HAVE_CPOW 1
21105 _ACEOF
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21113 $as_echo_n "checking for cpowl... " >&6; }
21114 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21115 $as_echo_n "(cached) " >&6
21116 else
21117 if test x$gcc_no_link = xyes; then
21118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21123 #ifdef HAVE_COMPLEX_H
21124 #include <complex.h>
21125 #endif
21126 #ifdef HAVE_MATH_H
21127 #include <math.h>
21128 #endif
21130 int (*ptr)() = (int (*)())cpowl;
21133 main ()
21135 return 0;
21138 _ACEOF
21139 if ac_fn_c_try_link "$LINENO"; then :
21140 gcc_cv_math_func_cpowl=yes
21141 else
21142 gcc_cv_math_func_cpowl=no
21144 rm -f core conftest.err conftest.$ac_objext \
21145 conftest$ac_exeext conftest.$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21148 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21149 if test $gcc_cv_math_func_cpowl = yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define HAVE_CPOWL 1
21153 _ACEOF
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21161 $as_echo_n "checking for roundf... " >&6; }
21162 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21164 else
21165 if test x$gcc_no_link = xyes; then
21166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21171 #ifdef HAVE_COMPLEX_H
21172 #include <complex.h>
21173 #endif
21174 #ifdef HAVE_MATH_H
21175 #include <math.h>
21176 #endif
21178 int (*ptr)() = (int (*)())roundf;
21181 main ()
21183 return 0;
21186 _ACEOF
21187 if ac_fn_c_try_link "$LINENO"; then :
21188 gcc_cv_math_func_roundf=yes
21189 else
21190 gcc_cv_math_func_roundf=no
21192 rm -f core conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21196 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21197 if test $gcc_cv_math_func_roundf = yes; then
21199 cat >>confdefs.h <<_ACEOF
21200 #define HAVE_ROUNDF 1
21201 _ACEOF
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21209 $as_echo_n "checking for round... " >&6; }
21210 if test "${gcc_cv_math_func_round+set}" = set; then :
21211 $as_echo_n "(cached) " >&6
21212 else
21213 if test x$gcc_no_link = xyes; then
21214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h. */
21219 #ifdef HAVE_COMPLEX_H
21220 #include <complex.h>
21221 #endif
21222 #ifdef HAVE_MATH_H
21223 #include <math.h>
21224 #endif
21226 int (*ptr)() = (int (*)())round;
21229 main ()
21231 return 0;
21234 _ACEOF
21235 if ac_fn_c_try_link "$LINENO"; then :
21236 gcc_cv_math_func_round=yes
21237 else
21238 gcc_cv_math_func_round=no
21240 rm -f core conftest.err conftest.$ac_objext \
21241 conftest$ac_exeext conftest.$ac_ext
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21244 $as_echo "$gcc_cv_math_func_round" >&6; }
21245 if test $gcc_cv_math_func_round = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_ROUND 1
21249 _ACEOF
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21257 $as_echo_n "checking for roundl... " >&6; }
21258 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21259 $as_echo_n "(cached) " >&6
21260 else
21261 if test x$gcc_no_link = xyes; then
21262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h. */
21267 #ifdef HAVE_COMPLEX_H
21268 #include <complex.h>
21269 #endif
21270 #ifdef HAVE_MATH_H
21271 #include <math.h>
21272 #endif
21274 int (*ptr)() = (int (*)())roundl;
21277 main ()
21279 return 0;
21282 _ACEOF
21283 if ac_fn_c_try_link "$LINENO"; then :
21284 gcc_cv_math_func_roundl=yes
21285 else
21286 gcc_cv_math_func_roundl=no
21288 rm -f core conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21292 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21293 if test $gcc_cv_math_func_roundl = yes; then
21295 cat >>confdefs.h <<_ACEOF
21296 #define HAVE_ROUNDL 1
21297 _ACEOF
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21305 $as_echo_n "checking for lroundf... " >&6; }
21306 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21307 $as_echo_n "(cached) " >&6
21308 else
21309 if test x$gcc_no_link = xyes; then
21310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21313 /* end confdefs.h. */
21315 #ifdef HAVE_COMPLEX_H
21316 #include <complex.h>
21317 #endif
21318 #ifdef HAVE_MATH_H
21319 #include <math.h>
21320 #endif
21322 int (*ptr)() = (int (*)())lroundf;
21325 main ()
21327 return 0;
21330 _ACEOF
21331 if ac_fn_c_try_link "$LINENO"; then :
21332 gcc_cv_math_func_lroundf=yes
21333 else
21334 gcc_cv_math_func_lroundf=no
21336 rm -f core conftest.err conftest.$ac_objext \
21337 conftest$ac_exeext conftest.$ac_ext
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21340 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21341 if test $gcc_cv_math_func_lroundf = yes; then
21343 cat >>confdefs.h <<_ACEOF
21344 #define HAVE_LROUNDF 1
21345 _ACEOF
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21353 $as_echo_n "checking for lround... " >&6; }
21354 if test "${gcc_cv_math_func_lround+set}" = set; then :
21355 $as_echo_n "(cached) " >&6
21356 else
21357 if test x$gcc_no_link = xyes; then
21358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h. */
21363 #ifdef HAVE_COMPLEX_H
21364 #include <complex.h>
21365 #endif
21366 #ifdef HAVE_MATH_H
21367 #include <math.h>
21368 #endif
21370 int (*ptr)() = (int (*)())lround;
21373 main ()
21375 return 0;
21378 _ACEOF
21379 if ac_fn_c_try_link "$LINENO"; then :
21380 gcc_cv_math_func_lround=yes
21381 else
21382 gcc_cv_math_func_lround=no
21384 rm -f core conftest.err conftest.$ac_objext \
21385 conftest$ac_exeext conftest.$ac_ext
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21388 $as_echo "$gcc_cv_math_func_lround" >&6; }
21389 if test $gcc_cv_math_func_lround = yes; then
21391 cat >>confdefs.h <<_ACEOF
21392 #define HAVE_LROUND 1
21393 _ACEOF
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21401 $as_echo_n "checking for lroundl... " >&6; }
21402 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21403 $as_echo_n "(cached) " >&6
21404 else
21405 if test x$gcc_no_link = xyes; then
21406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21411 #ifdef HAVE_COMPLEX_H
21412 #include <complex.h>
21413 #endif
21414 #ifdef HAVE_MATH_H
21415 #include <math.h>
21416 #endif
21418 int (*ptr)() = (int (*)())lroundl;
21421 main ()
21423 return 0;
21426 _ACEOF
21427 if ac_fn_c_try_link "$LINENO"; then :
21428 gcc_cv_math_func_lroundl=yes
21429 else
21430 gcc_cv_math_func_lroundl=no
21432 rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21436 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21437 if test $gcc_cv_math_func_lroundl = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define HAVE_LROUNDL 1
21441 _ACEOF
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21449 $as_echo_n "checking for llroundf... " >&6; }
21450 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21451 $as_echo_n "(cached) " >&6
21452 else
21453 if test x$gcc_no_link = xyes; then
21454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h. */
21459 #ifdef HAVE_COMPLEX_H
21460 #include <complex.h>
21461 #endif
21462 #ifdef HAVE_MATH_H
21463 #include <math.h>
21464 #endif
21466 int (*ptr)() = (int (*)())llroundf;
21469 main ()
21471 return 0;
21474 _ACEOF
21475 if ac_fn_c_try_link "$LINENO"; then :
21476 gcc_cv_math_func_llroundf=yes
21477 else
21478 gcc_cv_math_func_llroundf=no
21480 rm -f core conftest.err conftest.$ac_objext \
21481 conftest$ac_exeext conftest.$ac_ext
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21484 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21485 if test $gcc_cv_math_func_llroundf = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_LLROUNDF 1
21489 _ACEOF
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21497 $as_echo_n "checking for llround... " >&6; }
21498 if test "${gcc_cv_math_func_llround+set}" = set; then :
21499 $as_echo_n "(cached) " >&6
21500 else
21501 if test x$gcc_no_link = xyes; then
21502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21507 #ifdef HAVE_COMPLEX_H
21508 #include <complex.h>
21509 #endif
21510 #ifdef HAVE_MATH_H
21511 #include <math.h>
21512 #endif
21514 int (*ptr)() = (int (*)())llround;
21517 main ()
21519 return 0;
21522 _ACEOF
21523 if ac_fn_c_try_link "$LINENO"; then :
21524 gcc_cv_math_func_llround=yes
21525 else
21526 gcc_cv_math_func_llround=no
21528 rm -f core conftest.err conftest.$ac_objext \
21529 conftest$ac_exeext conftest.$ac_ext
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21532 $as_echo "$gcc_cv_math_func_llround" >&6; }
21533 if test $gcc_cv_math_func_llround = yes; then
21535 cat >>confdefs.h <<_ACEOF
21536 #define HAVE_LLROUND 1
21537 _ACEOF
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21545 $as_echo_n "checking for llroundl... " >&6; }
21546 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21547 $as_echo_n "(cached) " >&6
21548 else
21549 if test x$gcc_no_link = xyes; then
21550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h. */
21555 #ifdef HAVE_COMPLEX_H
21556 #include <complex.h>
21557 #endif
21558 #ifdef HAVE_MATH_H
21559 #include <math.h>
21560 #endif
21562 int (*ptr)() = (int (*)())llroundl;
21565 main ()
21567 return 0;
21570 _ACEOF
21571 if ac_fn_c_try_link "$LINENO"; then :
21572 gcc_cv_math_func_llroundl=yes
21573 else
21574 gcc_cv_math_func_llroundl=no
21576 rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21580 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21581 if test $gcc_cv_math_func_llroundl = yes; then
21583 cat >>confdefs.h <<_ACEOF
21584 #define HAVE_LLROUNDL 1
21585 _ACEOF
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21593 $as_echo_n "checking for scalbnf... " >&6; }
21594 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21596 else
21597 if test x$gcc_no_link = xyes; then
21598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21603 #ifdef HAVE_COMPLEX_H
21604 #include <complex.h>
21605 #endif
21606 #ifdef HAVE_MATH_H
21607 #include <math.h>
21608 #endif
21610 int (*ptr)() = (int (*)())scalbnf;
21613 main ()
21615 return 0;
21618 _ACEOF
21619 if ac_fn_c_try_link "$LINENO"; then :
21620 gcc_cv_math_func_scalbnf=yes
21621 else
21622 gcc_cv_math_func_scalbnf=no
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21628 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21629 if test $gcc_cv_math_func_scalbnf = yes; then
21631 cat >>confdefs.h <<_ACEOF
21632 #define HAVE_SCALBNF 1
21633 _ACEOF
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21641 $as_echo_n "checking for scalbn... " >&6; }
21642 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21643 $as_echo_n "(cached) " >&6
21644 else
21645 if test x$gcc_no_link = xyes; then
21646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21651 #ifdef HAVE_COMPLEX_H
21652 #include <complex.h>
21653 #endif
21654 #ifdef HAVE_MATH_H
21655 #include <math.h>
21656 #endif
21658 int (*ptr)() = (int (*)())scalbn;
21661 main ()
21663 return 0;
21666 _ACEOF
21667 if ac_fn_c_try_link "$LINENO"; then :
21668 gcc_cv_math_func_scalbn=yes
21669 else
21670 gcc_cv_math_func_scalbn=no
21672 rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21676 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21677 if test $gcc_cv_math_func_scalbn = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_SCALBN 1
21681 _ACEOF
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21689 $as_echo_n "checking for scalbnl... " >&6; }
21690 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21692 else
21693 if test x$gcc_no_link = xyes; then
21694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21699 #ifdef HAVE_COMPLEX_H
21700 #include <complex.h>
21701 #endif
21702 #ifdef HAVE_MATH_H
21703 #include <math.h>
21704 #endif
21706 int (*ptr)() = (int (*)())scalbnl;
21709 main ()
21711 return 0;
21714 _ACEOF
21715 if ac_fn_c_try_link "$LINENO"; then :
21716 gcc_cv_math_func_scalbnl=yes
21717 else
21718 gcc_cv_math_func_scalbnl=no
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21724 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21725 if test $gcc_cv_math_func_scalbnl = yes; then
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_SCALBNL 1
21729 _ACEOF
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21737 $as_echo_n "checking for sinf... " >&6; }
21738 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21741 if test x$gcc_no_link = xyes; then
21742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 #ifdef HAVE_COMPLEX_H
21748 #include <complex.h>
21749 #endif
21750 #ifdef HAVE_MATH_H
21751 #include <math.h>
21752 #endif
21754 int (*ptr)() = (int (*)())sinf;
21757 main ()
21759 return 0;
21762 _ACEOF
21763 if ac_fn_c_try_link "$LINENO"; then :
21764 gcc_cv_math_func_sinf=yes
21765 else
21766 gcc_cv_math_func_sinf=no
21768 rm -f core conftest.err conftest.$ac_objext \
21769 conftest$ac_exeext conftest.$ac_ext
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21772 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21773 if test $gcc_cv_math_func_sinf = yes; then
21775 cat >>confdefs.h <<_ACEOF
21776 #define HAVE_SINF 1
21777 _ACEOF
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21785 $as_echo_n "checking for sin... " >&6; }
21786 if test "${gcc_cv_math_func_sin+set}" = set; then :
21787 $as_echo_n "(cached) " >&6
21788 else
21789 if test x$gcc_no_link = xyes; then
21790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21795 #ifdef HAVE_COMPLEX_H
21796 #include <complex.h>
21797 #endif
21798 #ifdef HAVE_MATH_H
21799 #include <math.h>
21800 #endif
21802 int (*ptr)() = (int (*)())sin;
21805 main ()
21807 return 0;
21810 _ACEOF
21811 if ac_fn_c_try_link "$LINENO"; then :
21812 gcc_cv_math_func_sin=yes
21813 else
21814 gcc_cv_math_func_sin=no
21816 rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21820 $as_echo "$gcc_cv_math_func_sin" >&6; }
21821 if test $gcc_cv_math_func_sin = yes; then
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_SIN 1
21825 _ACEOF
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21833 $as_echo_n "checking for sinl... " >&6; }
21834 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 if test x$gcc_no_link = xyes; then
21838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h. */
21843 #ifdef HAVE_COMPLEX_H
21844 #include <complex.h>
21845 #endif
21846 #ifdef HAVE_MATH_H
21847 #include <math.h>
21848 #endif
21850 int (*ptr)() = (int (*)())sinl;
21853 main ()
21855 return 0;
21858 _ACEOF
21859 if ac_fn_c_try_link "$LINENO"; then :
21860 gcc_cv_math_func_sinl=yes
21861 else
21862 gcc_cv_math_func_sinl=no
21864 rm -f core conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21868 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21869 if test $gcc_cv_math_func_sinl = yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_SINL 1
21873 _ACEOF
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21881 $as_echo_n "checking for csinf... " >&6; }
21882 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 if test x$gcc_no_link = xyes; then
21886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21891 #ifdef HAVE_COMPLEX_H
21892 #include <complex.h>
21893 #endif
21894 #ifdef HAVE_MATH_H
21895 #include <math.h>
21896 #endif
21898 int (*ptr)() = (int (*)())csinf;
21901 main ()
21903 return 0;
21906 _ACEOF
21907 if ac_fn_c_try_link "$LINENO"; then :
21908 gcc_cv_math_func_csinf=yes
21909 else
21910 gcc_cv_math_func_csinf=no
21912 rm -f core conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21916 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21917 if test $gcc_cv_math_func_csinf = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_CSINF 1
21921 _ACEOF
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21929 $as_echo_n "checking for csin... " >&6; }
21930 if test "${gcc_cv_math_func_csin+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 if test x$gcc_no_link = xyes; then
21934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21939 #ifdef HAVE_COMPLEX_H
21940 #include <complex.h>
21941 #endif
21942 #ifdef HAVE_MATH_H
21943 #include <math.h>
21944 #endif
21946 int (*ptr)() = (int (*)())csin;
21949 main ()
21951 return 0;
21954 _ACEOF
21955 if ac_fn_c_try_link "$LINENO"; then :
21956 gcc_cv_math_func_csin=yes
21957 else
21958 gcc_cv_math_func_csin=no
21960 rm -f core conftest.err conftest.$ac_objext \
21961 conftest$ac_exeext conftest.$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21964 $as_echo "$gcc_cv_math_func_csin" >&6; }
21965 if test $gcc_cv_math_func_csin = yes; then
21967 cat >>confdefs.h <<_ACEOF
21968 #define HAVE_CSIN 1
21969 _ACEOF
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21977 $as_echo_n "checking for csinl... " >&6; }
21978 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 if test x$gcc_no_link = xyes; then
21982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21987 #ifdef HAVE_COMPLEX_H
21988 #include <complex.h>
21989 #endif
21990 #ifdef HAVE_MATH_H
21991 #include <math.h>
21992 #endif
21994 int (*ptr)() = (int (*)())csinl;
21997 main ()
21999 return 0;
22002 _ACEOF
22003 if ac_fn_c_try_link "$LINENO"; then :
22004 gcc_cv_math_func_csinl=yes
22005 else
22006 gcc_cv_math_func_csinl=no
22008 rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22012 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22013 if test $gcc_cv_math_func_csinl = yes; then
22015 cat >>confdefs.h <<_ACEOF
22016 #define HAVE_CSINL 1
22017 _ACEOF
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22025 $as_echo_n "checking for sinhf... " >&6; }
22026 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
22027 $as_echo_n "(cached) " >&6
22028 else
22029 if test x$gcc_no_link = xyes; then
22030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033 /* end confdefs.h. */
22035 #ifdef HAVE_COMPLEX_H
22036 #include <complex.h>
22037 #endif
22038 #ifdef HAVE_MATH_H
22039 #include <math.h>
22040 #endif
22042 int (*ptr)() = (int (*)())sinhf;
22045 main ()
22047 return 0;
22050 _ACEOF
22051 if ac_fn_c_try_link "$LINENO"; then :
22052 gcc_cv_math_func_sinhf=yes
22053 else
22054 gcc_cv_math_func_sinhf=no
22056 rm -f core conftest.err conftest.$ac_objext \
22057 conftest$ac_exeext conftest.$ac_ext
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22060 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22061 if test $gcc_cv_math_func_sinhf = yes; then
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_SINHF 1
22065 _ACEOF
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22073 $as_echo_n "checking for sinh... " >&6; }
22074 if test "${gcc_cv_math_func_sinh+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22077 if test x$gcc_no_link = xyes; then
22078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22083 #ifdef HAVE_COMPLEX_H
22084 #include <complex.h>
22085 #endif
22086 #ifdef HAVE_MATH_H
22087 #include <math.h>
22088 #endif
22090 int (*ptr)() = (int (*)())sinh;
22093 main ()
22095 return 0;
22098 _ACEOF
22099 if ac_fn_c_try_link "$LINENO"; then :
22100 gcc_cv_math_func_sinh=yes
22101 else
22102 gcc_cv_math_func_sinh=no
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22108 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22109 if test $gcc_cv_math_func_sinh = yes; then
22111 cat >>confdefs.h <<_ACEOF
22112 #define HAVE_SINH 1
22113 _ACEOF
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22121 $as_echo_n "checking for sinhl... " >&6; }
22122 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22123 $as_echo_n "(cached) " >&6
22124 else
22125 if test x$gcc_no_link = xyes; then
22126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22131 #ifdef HAVE_COMPLEX_H
22132 #include <complex.h>
22133 #endif
22134 #ifdef HAVE_MATH_H
22135 #include <math.h>
22136 #endif
22138 int (*ptr)() = (int (*)())sinhl;
22141 main ()
22143 return 0;
22146 _ACEOF
22147 if ac_fn_c_try_link "$LINENO"; then :
22148 gcc_cv_math_func_sinhl=yes
22149 else
22150 gcc_cv_math_func_sinhl=no
22152 rm -f core conftest.err conftest.$ac_objext \
22153 conftest$ac_exeext conftest.$ac_ext
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22156 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22157 if test $gcc_cv_math_func_sinhl = yes; then
22159 cat >>confdefs.h <<_ACEOF
22160 #define HAVE_SINHL 1
22161 _ACEOF
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22169 $as_echo_n "checking for csinhf... " >&6; }
22170 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 if test x$gcc_no_link = xyes; then
22174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22179 #ifdef HAVE_COMPLEX_H
22180 #include <complex.h>
22181 #endif
22182 #ifdef HAVE_MATH_H
22183 #include <math.h>
22184 #endif
22186 int (*ptr)() = (int (*)())csinhf;
22189 main ()
22191 return 0;
22194 _ACEOF
22195 if ac_fn_c_try_link "$LINENO"; then :
22196 gcc_cv_math_func_csinhf=yes
22197 else
22198 gcc_cv_math_func_csinhf=no
22200 rm -f core conftest.err conftest.$ac_objext \
22201 conftest$ac_exeext conftest.$ac_ext
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22204 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22205 if test $gcc_cv_math_func_csinhf = yes; then
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_CSINHF 1
22209 _ACEOF
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22217 $as_echo_n "checking for csinh... " >&6; }
22218 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22220 else
22221 if test x$gcc_no_link = xyes; then
22222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h. */
22227 #ifdef HAVE_COMPLEX_H
22228 #include <complex.h>
22229 #endif
22230 #ifdef HAVE_MATH_H
22231 #include <math.h>
22232 #endif
22234 int (*ptr)() = (int (*)())csinh;
22237 main ()
22239 return 0;
22242 _ACEOF
22243 if ac_fn_c_try_link "$LINENO"; then :
22244 gcc_cv_math_func_csinh=yes
22245 else
22246 gcc_cv_math_func_csinh=no
22248 rm -f core conftest.err conftest.$ac_objext \
22249 conftest$ac_exeext conftest.$ac_ext
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22252 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22253 if test $gcc_cv_math_func_csinh = yes; then
22255 cat >>confdefs.h <<_ACEOF
22256 #define HAVE_CSINH 1
22257 _ACEOF
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22265 $as_echo_n "checking for csinhl... " >&6; }
22266 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 if test x$gcc_no_link = xyes; then
22270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22275 #ifdef HAVE_COMPLEX_H
22276 #include <complex.h>
22277 #endif
22278 #ifdef HAVE_MATH_H
22279 #include <math.h>
22280 #endif
22282 int (*ptr)() = (int (*)())csinhl;
22285 main ()
22287 return 0;
22290 _ACEOF
22291 if ac_fn_c_try_link "$LINENO"; then :
22292 gcc_cv_math_func_csinhl=yes
22293 else
22294 gcc_cv_math_func_csinhl=no
22296 rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22300 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22301 if test $gcc_cv_math_func_csinhl = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define HAVE_CSINHL 1
22305 _ACEOF
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22313 $as_echo_n "checking for sqrtf... " >&6; }
22314 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 if test x$gcc_no_link = xyes; then
22318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22323 #ifdef HAVE_COMPLEX_H
22324 #include <complex.h>
22325 #endif
22326 #ifdef HAVE_MATH_H
22327 #include <math.h>
22328 #endif
22330 int (*ptr)() = (int (*)())sqrtf;
22333 main ()
22335 return 0;
22338 _ACEOF
22339 if ac_fn_c_try_link "$LINENO"; then :
22340 gcc_cv_math_func_sqrtf=yes
22341 else
22342 gcc_cv_math_func_sqrtf=no
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22348 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22349 if test $gcc_cv_math_func_sqrtf = yes; then
22351 cat >>confdefs.h <<_ACEOF
22352 #define HAVE_SQRTF 1
22353 _ACEOF
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22361 $as_echo_n "checking for sqrt... " >&6; }
22362 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22363 $as_echo_n "(cached) " >&6
22364 else
22365 if test x$gcc_no_link = xyes; then
22366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22371 #ifdef HAVE_COMPLEX_H
22372 #include <complex.h>
22373 #endif
22374 #ifdef HAVE_MATH_H
22375 #include <math.h>
22376 #endif
22378 int (*ptr)() = (int (*)())sqrt;
22381 main ()
22383 return 0;
22386 _ACEOF
22387 if ac_fn_c_try_link "$LINENO"; then :
22388 gcc_cv_math_func_sqrt=yes
22389 else
22390 gcc_cv_math_func_sqrt=no
22392 rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22396 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22397 if test $gcc_cv_math_func_sqrt = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_SQRT 1
22401 _ACEOF
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22409 $as_echo_n "checking for sqrtl... " >&6; }
22410 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22411 $as_echo_n "(cached) " >&6
22412 else
22413 if test x$gcc_no_link = xyes; then
22414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22419 #ifdef HAVE_COMPLEX_H
22420 #include <complex.h>
22421 #endif
22422 #ifdef HAVE_MATH_H
22423 #include <math.h>
22424 #endif
22426 int (*ptr)() = (int (*)())sqrtl;
22429 main ()
22431 return 0;
22434 _ACEOF
22435 if ac_fn_c_try_link "$LINENO"; then :
22436 gcc_cv_math_func_sqrtl=yes
22437 else
22438 gcc_cv_math_func_sqrtl=no
22440 rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22444 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22445 if test $gcc_cv_math_func_sqrtl = yes; then
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_SQRTL 1
22449 _ACEOF
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22457 $as_echo_n "checking for csqrtf... " >&6; }
22458 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22460 else
22461 if test x$gcc_no_link = xyes; then
22462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22467 #ifdef HAVE_COMPLEX_H
22468 #include <complex.h>
22469 #endif
22470 #ifdef HAVE_MATH_H
22471 #include <math.h>
22472 #endif
22474 int (*ptr)() = (int (*)())csqrtf;
22477 main ()
22479 return 0;
22482 _ACEOF
22483 if ac_fn_c_try_link "$LINENO"; then :
22484 gcc_cv_math_func_csqrtf=yes
22485 else
22486 gcc_cv_math_func_csqrtf=no
22488 rm -f core conftest.err conftest.$ac_objext \
22489 conftest$ac_exeext conftest.$ac_ext
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22492 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22493 if test $gcc_cv_math_func_csqrtf = yes; then
22495 cat >>confdefs.h <<_ACEOF
22496 #define HAVE_CSQRTF 1
22497 _ACEOF
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22505 $as_echo_n "checking for csqrt... " >&6; }
22506 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22508 else
22509 if test x$gcc_no_link = xyes; then
22510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22515 #ifdef HAVE_COMPLEX_H
22516 #include <complex.h>
22517 #endif
22518 #ifdef HAVE_MATH_H
22519 #include <math.h>
22520 #endif
22522 int (*ptr)() = (int (*)())csqrt;
22525 main ()
22527 return 0;
22530 _ACEOF
22531 if ac_fn_c_try_link "$LINENO"; then :
22532 gcc_cv_math_func_csqrt=yes
22533 else
22534 gcc_cv_math_func_csqrt=no
22536 rm -f core conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22540 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22541 if test $gcc_cv_math_func_csqrt = yes; then
22543 cat >>confdefs.h <<_ACEOF
22544 #define HAVE_CSQRT 1
22545 _ACEOF
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22553 $as_echo_n "checking for csqrtl... " >&6; }
22554 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22555 $as_echo_n "(cached) " >&6
22556 else
22557 if test x$gcc_no_link = xyes; then
22558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22563 #ifdef HAVE_COMPLEX_H
22564 #include <complex.h>
22565 #endif
22566 #ifdef HAVE_MATH_H
22567 #include <math.h>
22568 #endif
22570 int (*ptr)() = (int (*)())csqrtl;
22573 main ()
22575 return 0;
22578 _ACEOF
22579 if ac_fn_c_try_link "$LINENO"; then :
22580 gcc_cv_math_func_csqrtl=yes
22581 else
22582 gcc_cv_math_func_csqrtl=no
22584 rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22588 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22589 if test $gcc_cv_math_func_csqrtl = yes; then
22591 cat >>confdefs.h <<_ACEOF
22592 #define HAVE_CSQRTL 1
22593 _ACEOF
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22601 $as_echo_n "checking for tanf... " >&6; }
22602 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605 if test x$gcc_no_link = xyes; then
22606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609 /* end confdefs.h. */
22611 #ifdef HAVE_COMPLEX_H
22612 #include <complex.h>
22613 #endif
22614 #ifdef HAVE_MATH_H
22615 #include <math.h>
22616 #endif
22618 int (*ptr)() = (int (*)())tanf;
22621 main ()
22623 return 0;
22626 _ACEOF
22627 if ac_fn_c_try_link "$LINENO"; then :
22628 gcc_cv_math_func_tanf=yes
22629 else
22630 gcc_cv_math_func_tanf=no
22632 rm -f core conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22636 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22637 if test $gcc_cv_math_func_tanf = yes; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define HAVE_TANF 1
22641 _ACEOF
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22649 $as_echo_n "checking for tan... " >&6; }
22650 if test "${gcc_cv_math_func_tan+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 if test x$gcc_no_link = xyes; then
22654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h. */
22659 #ifdef HAVE_COMPLEX_H
22660 #include <complex.h>
22661 #endif
22662 #ifdef HAVE_MATH_H
22663 #include <math.h>
22664 #endif
22666 int (*ptr)() = (int (*)())tan;
22669 main ()
22671 return 0;
22674 _ACEOF
22675 if ac_fn_c_try_link "$LINENO"; then :
22676 gcc_cv_math_func_tan=yes
22677 else
22678 gcc_cv_math_func_tan=no
22680 rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22684 $as_echo "$gcc_cv_math_func_tan" >&6; }
22685 if test $gcc_cv_math_func_tan = yes; then
22687 cat >>confdefs.h <<_ACEOF
22688 #define HAVE_TAN 1
22689 _ACEOF
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22697 $as_echo_n "checking for tanl... " >&6; }
22698 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22699 $as_echo_n "(cached) " >&6
22700 else
22701 if test x$gcc_no_link = xyes; then
22702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22707 #ifdef HAVE_COMPLEX_H
22708 #include <complex.h>
22709 #endif
22710 #ifdef HAVE_MATH_H
22711 #include <math.h>
22712 #endif
22714 int (*ptr)() = (int (*)())tanl;
22717 main ()
22719 return 0;
22722 _ACEOF
22723 if ac_fn_c_try_link "$LINENO"; then :
22724 gcc_cv_math_func_tanl=yes
22725 else
22726 gcc_cv_math_func_tanl=no
22728 rm -f core conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22732 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22733 if test $gcc_cv_math_func_tanl = yes; then
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_TANL 1
22737 _ACEOF
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22745 $as_echo_n "checking for ctanf... " >&6; }
22746 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22747 $as_echo_n "(cached) " >&6
22748 else
22749 if test x$gcc_no_link = xyes; then
22750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22755 #ifdef HAVE_COMPLEX_H
22756 #include <complex.h>
22757 #endif
22758 #ifdef HAVE_MATH_H
22759 #include <math.h>
22760 #endif
22762 int (*ptr)() = (int (*)())ctanf;
22765 main ()
22767 return 0;
22770 _ACEOF
22771 if ac_fn_c_try_link "$LINENO"; then :
22772 gcc_cv_math_func_ctanf=yes
22773 else
22774 gcc_cv_math_func_ctanf=no
22776 rm -f core conftest.err conftest.$ac_objext \
22777 conftest$ac_exeext conftest.$ac_ext
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22780 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22781 if test $gcc_cv_math_func_ctanf = yes; then
22783 cat >>confdefs.h <<_ACEOF
22784 #define HAVE_CTANF 1
22785 _ACEOF
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22793 $as_echo_n "checking for ctan... " >&6; }
22794 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 if test x$gcc_no_link = xyes; then
22798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h. */
22803 #ifdef HAVE_COMPLEX_H
22804 #include <complex.h>
22805 #endif
22806 #ifdef HAVE_MATH_H
22807 #include <math.h>
22808 #endif
22810 int (*ptr)() = (int (*)())ctan;
22813 main ()
22815 return 0;
22818 _ACEOF
22819 if ac_fn_c_try_link "$LINENO"; then :
22820 gcc_cv_math_func_ctan=yes
22821 else
22822 gcc_cv_math_func_ctan=no
22824 rm -f core conftest.err conftest.$ac_objext \
22825 conftest$ac_exeext conftest.$ac_ext
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22828 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22829 if test $gcc_cv_math_func_ctan = yes; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define HAVE_CTAN 1
22833 _ACEOF
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22841 $as_echo_n "checking for ctanl... " >&6; }
22842 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22843 $as_echo_n "(cached) " >&6
22844 else
22845 if test x$gcc_no_link = xyes; then
22846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22851 #ifdef HAVE_COMPLEX_H
22852 #include <complex.h>
22853 #endif
22854 #ifdef HAVE_MATH_H
22855 #include <math.h>
22856 #endif
22858 int (*ptr)() = (int (*)())ctanl;
22861 main ()
22863 return 0;
22866 _ACEOF
22867 if ac_fn_c_try_link "$LINENO"; then :
22868 gcc_cv_math_func_ctanl=yes
22869 else
22870 gcc_cv_math_func_ctanl=no
22872 rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22876 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22877 if test $gcc_cv_math_func_ctanl = yes; then
22879 cat >>confdefs.h <<_ACEOF
22880 #define HAVE_CTANL 1
22881 _ACEOF
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22889 $as_echo_n "checking for tanhf... " >&6; }
22890 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22891 $as_echo_n "(cached) " >&6
22892 else
22893 if test x$gcc_no_link = xyes; then
22894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22899 #ifdef HAVE_COMPLEX_H
22900 #include <complex.h>
22901 #endif
22902 #ifdef HAVE_MATH_H
22903 #include <math.h>
22904 #endif
22906 int (*ptr)() = (int (*)())tanhf;
22909 main ()
22911 return 0;
22914 _ACEOF
22915 if ac_fn_c_try_link "$LINENO"; then :
22916 gcc_cv_math_func_tanhf=yes
22917 else
22918 gcc_cv_math_func_tanhf=no
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22924 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22925 if test $gcc_cv_math_func_tanhf = yes; then
22927 cat >>confdefs.h <<_ACEOF
22928 #define HAVE_TANHF 1
22929 _ACEOF
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22937 $as_echo_n "checking for tanh... " >&6; }
22938 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941 if test x$gcc_no_link = xyes; then
22942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h. */
22947 #ifdef HAVE_COMPLEX_H
22948 #include <complex.h>
22949 #endif
22950 #ifdef HAVE_MATH_H
22951 #include <math.h>
22952 #endif
22954 int (*ptr)() = (int (*)())tanh;
22957 main ()
22959 return 0;
22962 _ACEOF
22963 if ac_fn_c_try_link "$LINENO"; then :
22964 gcc_cv_math_func_tanh=yes
22965 else
22966 gcc_cv_math_func_tanh=no
22968 rm -f core conftest.err conftest.$ac_objext \
22969 conftest$ac_exeext conftest.$ac_ext
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22972 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22973 if test $gcc_cv_math_func_tanh = yes; then
22975 cat >>confdefs.h <<_ACEOF
22976 #define HAVE_TANH 1
22977 _ACEOF
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22985 $as_echo_n "checking for tanhl... " >&6; }
22986 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22987 $as_echo_n "(cached) " >&6
22988 else
22989 if test x$gcc_no_link = xyes; then
22990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h. */
22995 #ifdef HAVE_COMPLEX_H
22996 #include <complex.h>
22997 #endif
22998 #ifdef HAVE_MATH_H
22999 #include <math.h>
23000 #endif
23002 int (*ptr)() = (int (*)())tanhl;
23005 main ()
23007 return 0;
23010 _ACEOF
23011 if ac_fn_c_try_link "$LINENO"; then :
23012 gcc_cv_math_func_tanhl=yes
23013 else
23014 gcc_cv_math_func_tanhl=no
23016 rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23020 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23021 if test $gcc_cv_math_func_tanhl = yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_TANHL 1
23025 _ACEOF
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23033 $as_echo_n "checking for ctanhf... " >&6; }
23034 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23036 else
23037 if test x$gcc_no_link = xyes; then
23038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23043 #ifdef HAVE_COMPLEX_H
23044 #include <complex.h>
23045 #endif
23046 #ifdef HAVE_MATH_H
23047 #include <math.h>
23048 #endif
23050 int (*ptr)() = (int (*)())ctanhf;
23053 main ()
23055 return 0;
23058 _ACEOF
23059 if ac_fn_c_try_link "$LINENO"; then :
23060 gcc_cv_math_func_ctanhf=yes
23061 else
23062 gcc_cv_math_func_ctanhf=no
23064 rm -f core conftest.err conftest.$ac_objext \
23065 conftest$ac_exeext conftest.$ac_ext
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23068 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23069 if test $gcc_cv_math_func_ctanhf = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_CTANHF 1
23073 _ACEOF
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23081 $as_echo_n "checking for ctanh... " >&6; }
23082 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
23083 $as_echo_n "(cached) " >&6
23084 else
23085 if test x$gcc_no_link = xyes; then
23086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23091 #ifdef HAVE_COMPLEX_H
23092 #include <complex.h>
23093 #endif
23094 #ifdef HAVE_MATH_H
23095 #include <math.h>
23096 #endif
23098 int (*ptr)() = (int (*)())ctanh;
23101 main ()
23103 return 0;
23106 _ACEOF
23107 if ac_fn_c_try_link "$LINENO"; then :
23108 gcc_cv_math_func_ctanh=yes
23109 else
23110 gcc_cv_math_func_ctanh=no
23112 rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23116 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23117 if test $gcc_cv_math_func_ctanh = yes; then
23119 cat >>confdefs.h <<_ACEOF
23120 #define HAVE_CTANH 1
23121 _ACEOF
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23129 $as_echo_n "checking for ctanhl... " >&6; }
23130 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 if test x$gcc_no_link = xyes; then
23134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137 /* end confdefs.h. */
23139 #ifdef HAVE_COMPLEX_H
23140 #include <complex.h>
23141 #endif
23142 #ifdef HAVE_MATH_H
23143 #include <math.h>
23144 #endif
23146 int (*ptr)() = (int (*)())ctanhl;
23149 main ()
23151 return 0;
23154 _ACEOF
23155 if ac_fn_c_try_link "$LINENO"; then :
23156 gcc_cv_math_func_ctanhl=yes
23157 else
23158 gcc_cv_math_func_ctanhl=no
23160 rm -f core conftest.err conftest.$ac_objext \
23161 conftest$ac_exeext conftest.$ac_ext
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23164 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23165 if test $gcc_cv_math_func_ctanhl = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_CTANHL 1
23169 _ACEOF
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23177 $as_echo_n "checking for truncf... " >&6; }
23178 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23179 $as_echo_n "(cached) " >&6
23180 else
23181 if test x$gcc_no_link = xyes; then
23182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23187 #ifdef HAVE_COMPLEX_H
23188 #include <complex.h>
23189 #endif
23190 #ifdef HAVE_MATH_H
23191 #include <math.h>
23192 #endif
23194 int (*ptr)() = (int (*)())truncf;
23197 main ()
23199 return 0;
23202 _ACEOF
23203 if ac_fn_c_try_link "$LINENO"; then :
23204 gcc_cv_math_func_truncf=yes
23205 else
23206 gcc_cv_math_func_truncf=no
23208 rm -f core conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23212 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23213 if test $gcc_cv_math_func_truncf = yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define HAVE_TRUNCF 1
23217 _ACEOF
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23225 $as_echo_n "checking for trunc... " >&6; }
23226 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23227 $as_echo_n "(cached) " >&6
23228 else
23229 if test x$gcc_no_link = xyes; then
23230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233 /* end confdefs.h. */
23235 #ifdef HAVE_COMPLEX_H
23236 #include <complex.h>
23237 #endif
23238 #ifdef HAVE_MATH_H
23239 #include <math.h>
23240 #endif
23242 int (*ptr)() = (int (*)())trunc;
23245 main ()
23247 return 0;
23250 _ACEOF
23251 if ac_fn_c_try_link "$LINENO"; then :
23252 gcc_cv_math_func_trunc=yes
23253 else
23254 gcc_cv_math_func_trunc=no
23256 rm -f core conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23260 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23261 if test $gcc_cv_math_func_trunc = yes; then
23263 cat >>confdefs.h <<_ACEOF
23264 #define HAVE_TRUNC 1
23265 _ACEOF
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23273 $as_echo_n "checking for truncl... " >&6; }
23274 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23276 else
23277 if test x$gcc_no_link = xyes; then
23278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h. */
23283 #ifdef HAVE_COMPLEX_H
23284 #include <complex.h>
23285 #endif
23286 #ifdef HAVE_MATH_H
23287 #include <math.h>
23288 #endif
23290 int (*ptr)() = (int (*)())truncl;
23293 main ()
23295 return 0;
23298 _ACEOF
23299 if ac_fn_c_try_link "$LINENO"; then :
23300 gcc_cv_math_func_truncl=yes
23301 else
23302 gcc_cv_math_func_truncl=no
23304 rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23308 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23309 if test $gcc_cv_math_func_truncl = yes; then
23311 cat >>confdefs.h <<_ACEOF
23312 #define HAVE_TRUNCL 1
23313 _ACEOF
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23321 $as_echo_n "checking for erff... " >&6; }
23322 if test "${gcc_cv_math_func_erff+set}" = set; then :
23323 $as_echo_n "(cached) " >&6
23324 else
23325 if test x$gcc_no_link = xyes; then
23326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h. */
23331 #ifdef HAVE_COMPLEX_H
23332 #include <complex.h>
23333 #endif
23334 #ifdef HAVE_MATH_H
23335 #include <math.h>
23336 #endif
23338 int (*ptr)() = (int (*)())erff;
23341 main ()
23343 return 0;
23346 _ACEOF
23347 if ac_fn_c_try_link "$LINENO"; then :
23348 gcc_cv_math_func_erff=yes
23349 else
23350 gcc_cv_math_func_erff=no
23352 rm -f core conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23356 $as_echo "$gcc_cv_math_func_erff" >&6; }
23357 if test $gcc_cv_math_func_erff = yes; then
23359 cat >>confdefs.h <<_ACEOF
23360 #define HAVE_ERFF 1
23361 _ACEOF
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23369 $as_echo_n "checking for erf... " >&6; }
23370 if test "${gcc_cv_math_func_erf+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23372 else
23373 if test x$gcc_no_link = xyes; then
23374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23377 /* end confdefs.h. */
23379 #ifdef HAVE_COMPLEX_H
23380 #include <complex.h>
23381 #endif
23382 #ifdef HAVE_MATH_H
23383 #include <math.h>
23384 #endif
23386 int (*ptr)() = (int (*)())erf;
23389 main ()
23391 return 0;
23394 _ACEOF
23395 if ac_fn_c_try_link "$LINENO"; then :
23396 gcc_cv_math_func_erf=yes
23397 else
23398 gcc_cv_math_func_erf=no
23400 rm -f core conftest.err conftest.$ac_objext \
23401 conftest$ac_exeext conftest.$ac_ext
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23404 $as_echo "$gcc_cv_math_func_erf" >&6; }
23405 if test $gcc_cv_math_func_erf = yes; then
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_ERF 1
23409 _ACEOF
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23417 $as_echo_n "checking for erfcf... " >&6; }
23418 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23419 $as_echo_n "(cached) " >&6
23420 else
23421 if test x$gcc_no_link = xyes; then
23422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425 /* end confdefs.h. */
23427 #ifdef HAVE_COMPLEX_H
23428 #include <complex.h>
23429 #endif
23430 #ifdef HAVE_MATH_H
23431 #include <math.h>
23432 #endif
23434 int (*ptr)() = (int (*)())erfcf;
23437 main ()
23439 return 0;
23442 _ACEOF
23443 if ac_fn_c_try_link "$LINENO"; then :
23444 gcc_cv_math_func_erfcf=yes
23445 else
23446 gcc_cv_math_func_erfcf=no
23448 rm -f core conftest.err conftest.$ac_objext \
23449 conftest$ac_exeext conftest.$ac_ext
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23452 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23453 if test $gcc_cv_math_func_erfcf = yes; then
23455 cat >>confdefs.h <<_ACEOF
23456 #define HAVE_ERFCF 1
23457 _ACEOF
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23465 $as_echo_n "checking for erfc... " >&6; }
23466 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23468 else
23469 if test x$gcc_no_link = xyes; then
23470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23475 #ifdef HAVE_COMPLEX_H
23476 #include <complex.h>
23477 #endif
23478 #ifdef HAVE_MATH_H
23479 #include <math.h>
23480 #endif
23482 int (*ptr)() = (int (*)())erfc;
23485 main ()
23487 return 0;
23490 _ACEOF
23491 if ac_fn_c_try_link "$LINENO"; then :
23492 gcc_cv_math_func_erfc=yes
23493 else
23494 gcc_cv_math_func_erfc=no
23496 rm -f core conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23500 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23501 if test $gcc_cv_math_func_erfc = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define HAVE_ERFC 1
23505 _ACEOF
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23513 $as_echo_n "checking for erfcl... " >&6; }
23514 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23515 $as_echo_n "(cached) " >&6
23516 else
23517 if test x$gcc_no_link = xyes; then
23518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23521 /* end confdefs.h. */
23523 #ifdef HAVE_COMPLEX_H
23524 #include <complex.h>
23525 #endif
23526 #ifdef HAVE_MATH_H
23527 #include <math.h>
23528 #endif
23530 int (*ptr)() = (int (*)())erfcl;
23533 main ()
23535 return 0;
23538 _ACEOF
23539 if ac_fn_c_try_link "$LINENO"; then :
23540 gcc_cv_math_func_erfcl=yes
23541 else
23542 gcc_cv_math_func_erfcl=no
23544 rm -f core conftest.err conftest.$ac_objext \
23545 conftest$ac_exeext conftest.$ac_ext
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23548 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23549 if test $gcc_cv_math_func_erfcl = yes; then
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_ERFCL 1
23553 _ACEOF
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23561 $as_echo_n "checking for j0f... " >&6; }
23562 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23563 $as_echo_n "(cached) " >&6
23564 else
23565 if test x$gcc_no_link = xyes; then
23566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h. */
23571 #ifdef HAVE_COMPLEX_H
23572 #include <complex.h>
23573 #endif
23574 #ifdef HAVE_MATH_H
23575 #include <math.h>
23576 #endif
23578 int (*ptr)() = (int (*)())j0f;
23581 main ()
23583 return 0;
23586 _ACEOF
23587 if ac_fn_c_try_link "$LINENO"; then :
23588 gcc_cv_math_func_j0f=yes
23589 else
23590 gcc_cv_math_func_j0f=no
23592 rm -f core conftest.err conftest.$ac_objext \
23593 conftest$ac_exeext conftest.$ac_ext
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23596 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23597 if test $gcc_cv_math_func_j0f = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_J0F 1
23601 _ACEOF
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23609 $as_echo_n "checking for j0... " >&6; }
23610 if test "${gcc_cv_math_func_j0+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 if test x$gcc_no_link = xyes; then
23614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23619 #ifdef HAVE_COMPLEX_H
23620 #include <complex.h>
23621 #endif
23622 #ifdef HAVE_MATH_H
23623 #include <math.h>
23624 #endif
23626 int (*ptr)() = (int (*)())j0;
23629 main ()
23631 return 0;
23634 _ACEOF
23635 if ac_fn_c_try_link "$LINENO"; then :
23636 gcc_cv_math_func_j0=yes
23637 else
23638 gcc_cv_math_func_j0=no
23640 rm -f core conftest.err conftest.$ac_objext \
23641 conftest$ac_exeext conftest.$ac_ext
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23644 $as_echo "$gcc_cv_math_func_j0" >&6; }
23645 if test $gcc_cv_math_func_j0 = yes; then
23647 cat >>confdefs.h <<_ACEOF
23648 #define HAVE_J0 1
23649 _ACEOF
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23657 $as_echo_n "checking for j1f... " >&6; }
23658 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23660 else
23661 if test x$gcc_no_link = xyes; then
23662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23667 #ifdef HAVE_COMPLEX_H
23668 #include <complex.h>
23669 #endif
23670 #ifdef HAVE_MATH_H
23671 #include <math.h>
23672 #endif
23674 int (*ptr)() = (int (*)())j1f;
23677 main ()
23679 return 0;
23682 _ACEOF
23683 if ac_fn_c_try_link "$LINENO"; then :
23684 gcc_cv_math_func_j1f=yes
23685 else
23686 gcc_cv_math_func_j1f=no
23688 rm -f core conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23692 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23693 if test $gcc_cv_math_func_j1f = yes; then
23695 cat >>confdefs.h <<_ACEOF
23696 #define HAVE_J1F 1
23697 _ACEOF
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23705 $as_echo_n "checking for j1... " >&6; }
23706 if test "${gcc_cv_math_func_j1+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23708 else
23709 if test x$gcc_no_link = xyes; then
23710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23713 /* end confdefs.h. */
23715 #ifdef HAVE_COMPLEX_H
23716 #include <complex.h>
23717 #endif
23718 #ifdef HAVE_MATH_H
23719 #include <math.h>
23720 #endif
23722 int (*ptr)() = (int (*)())j1;
23725 main ()
23727 return 0;
23730 _ACEOF
23731 if ac_fn_c_try_link "$LINENO"; then :
23732 gcc_cv_math_func_j1=yes
23733 else
23734 gcc_cv_math_func_j1=no
23736 rm -f core conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23740 $as_echo "$gcc_cv_math_func_j1" >&6; }
23741 if test $gcc_cv_math_func_j1 = yes; then
23743 cat >>confdefs.h <<_ACEOF
23744 #define HAVE_J1 1
23745 _ACEOF
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23753 $as_echo_n "checking for jnf... " >&6; }
23754 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 if test x$gcc_no_link = xyes; then
23758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23763 #ifdef HAVE_COMPLEX_H
23764 #include <complex.h>
23765 #endif
23766 #ifdef HAVE_MATH_H
23767 #include <math.h>
23768 #endif
23770 int (*ptr)() = (int (*)())jnf;
23773 main ()
23775 return 0;
23778 _ACEOF
23779 if ac_fn_c_try_link "$LINENO"; then :
23780 gcc_cv_math_func_jnf=yes
23781 else
23782 gcc_cv_math_func_jnf=no
23784 rm -f core conftest.err conftest.$ac_objext \
23785 conftest$ac_exeext conftest.$ac_ext
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23788 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23789 if test $gcc_cv_math_func_jnf = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_JNF 1
23793 _ACEOF
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23801 $as_echo_n "checking for jn... " >&6; }
23802 if test "${gcc_cv_math_func_jn+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 if test x$gcc_no_link = xyes; then
23806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809 /* end confdefs.h. */
23811 #ifdef HAVE_COMPLEX_H
23812 #include <complex.h>
23813 #endif
23814 #ifdef HAVE_MATH_H
23815 #include <math.h>
23816 #endif
23818 int (*ptr)() = (int (*)())jn;
23821 main ()
23823 return 0;
23826 _ACEOF
23827 if ac_fn_c_try_link "$LINENO"; then :
23828 gcc_cv_math_func_jn=yes
23829 else
23830 gcc_cv_math_func_jn=no
23832 rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext conftest.$ac_ext
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23836 $as_echo "$gcc_cv_math_func_jn" >&6; }
23837 if test $gcc_cv_math_func_jn = yes; then
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_JN 1
23841 _ACEOF
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23849 $as_echo_n "checking for jnl... " >&6; }
23850 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23852 else
23853 if test x$gcc_no_link = xyes; then
23854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23857 /* end confdefs.h. */
23859 #ifdef HAVE_COMPLEX_H
23860 #include <complex.h>
23861 #endif
23862 #ifdef HAVE_MATH_H
23863 #include <math.h>
23864 #endif
23866 int (*ptr)() = (int (*)())jnl;
23869 main ()
23871 return 0;
23874 _ACEOF
23875 if ac_fn_c_try_link "$LINENO"; then :
23876 gcc_cv_math_func_jnl=yes
23877 else
23878 gcc_cv_math_func_jnl=no
23880 rm -f core conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23884 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23885 if test $gcc_cv_math_func_jnl = yes; then
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_JNL 1
23889 _ACEOF
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23897 $as_echo_n "checking for y0f... " >&6; }
23898 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23899 $as_echo_n "(cached) " >&6
23900 else
23901 if test x$gcc_no_link = xyes; then
23902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h. */
23907 #ifdef HAVE_COMPLEX_H
23908 #include <complex.h>
23909 #endif
23910 #ifdef HAVE_MATH_H
23911 #include <math.h>
23912 #endif
23914 int (*ptr)() = (int (*)())y0f;
23917 main ()
23919 return 0;
23922 _ACEOF
23923 if ac_fn_c_try_link "$LINENO"; then :
23924 gcc_cv_math_func_y0f=yes
23925 else
23926 gcc_cv_math_func_y0f=no
23928 rm -f core conftest.err conftest.$ac_objext \
23929 conftest$ac_exeext conftest.$ac_ext
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23932 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23933 if test $gcc_cv_math_func_y0f = yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define HAVE_Y0F 1
23937 _ACEOF
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23945 $as_echo_n "checking for y0... " >&6; }
23946 if test "${gcc_cv_math_func_y0+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23948 else
23949 if test x$gcc_no_link = xyes; then
23950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953 /* end confdefs.h. */
23955 #ifdef HAVE_COMPLEX_H
23956 #include <complex.h>
23957 #endif
23958 #ifdef HAVE_MATH_H
23959 #include <math.h>
23960 #endif
23962 int (*ptr)() = (int (*)())y0;
23965 main ()
23967 return 0;
23970 _ACEOF
23971 if ac_fn_c_try_link "$LINENO"; then :
23972 gcc_cv_math_func_y0=yes
23973 else
23974 gcc_cv_math_func_y0=no
23976 rm -f core conftest.err conftest.$ac_objext \
23977 conftest$ac_exeext conftest.$ac_ext
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23980 $as_echo "$gcc_cv_math_func_y0" >&6; }
23981 if test $gcc_cv_math_func_y0 = yes; then
23983 cat >>confdefs.h <<_ACEOF
23984 #define HAVE_Y0 1
23985 _ACEOF
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23993 $as_echo_n "checking for y1f... " >&6; }
23994 if test "${gcc_cv_math_func_y1f+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 if test x$gcc_no_link = xyes; then
23998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24003 #ifdef HAVE_COMPLEX_H
24004 #include <complex.h>
24005 #endif
24006 #ifdef HAVE_MATH_H
24007 #include <math.h>
24008 #endif
24010 int (*ptr)() = (int (*)())y1f;
24013 main ()
24015 return 0;
24018 _ACEOF
24019 if ac_fn_c_try_link "$LINENO"; then :
24020 gcc_cv_math_func_y1f=yes
24021 else
24022 gcc_cv_math_func_y1f=no
24024 rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24028 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24029 if test $gcc_cv_math_func_y1f = yes; then
24031 cat >>confdefs.h <<_ACEOF
24032 #define HAVE_Y1F 1
24033 _ACEOF
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24041 $as_echo_n "checking for y1... " >&6; }
24042 if test "${gcc_cv_math_func_y1+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24045 if test x$gcc_no_link = xyes; then
24046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h. */
24051 #ifdef HAVE_COMPLEX_H
24052 #include <complex.h>
24053 #endif
24054 #ifdef HAVE_MATH_H
24055 #include <math.h>
24056 #endif
24058 int (*ptr)() = (int (*)())y1;
24061 main ()
24063 return 0;
24066 _ACEOF
24067 if ac_fn_c_try_link "$LINENO"; then :
24068 gcc_cv_math_func_y1=yes
24069 else
24070 gcc_cv_math_func_y1=no
24072 rm -f core conftest.err conftest.$ac_objext \
24073 conftest$ac_exeext conftest.$ac_ext
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24076 $as_echo "$gcc_cv_math_func_y1" >&6; }
24077 if test $gcc_cv_math_func_y1 = yes; then
24079 cat >>confdefs.h <<_ACEOF
24080 #define HAVE_Y1 1
24081 _ACEOF
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24089 $as_echo_n "checking for ynf... " >&6; }
24090 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24092 else
24093 if test x$gcc_no_link = xyes; then
24094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h. */
24099 #ifdef HAVE_COMPLEX_H
24100 #include <complex.h>
24101 #endif
24102 #ifdef HAVE_MATH_H
24103 #include <math.h>
24104 #endif
24106 int (*ptr)() = (int (*)())ynf;
24109 main ()
24111 return 0;
24114 _ACEOF
24115 if ac_fn_c_try_link "$LINENO"; then :
24116 gcc_cv_math_func_ynf=yes
24117 else
24118 gcc_cv_math_func_ynf=no
24120 rm -f core conftest.err conftest.$ac_objext \
24121 conftest$ac_exeext conftest.$ac_ext
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24124 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24125 if test $gcc_cv_math_func_ynf = yes; then
24127 cat >>confdefs.h <<_ACEOF
24128 #define HAVE_YNF 1
24129 _ACEOF
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24137 $as_echo_n "checking for yn... " >&6; }
24138 if test "${gcc_cv_math_func_yn+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 if test x$gcc_no_link = xyes; then
24142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24145 /* end confdefs.h. */
24147 #ifdef HAVE_COMPLEX_H
24148 #include <complex.h>
24149 #endif
24150 #ifdef HAVE_MATH_H
24151 #include <math.h>
24152 #endif
24154 int (*ptr)() = (int (*)())yn;
24157 main ()
24159 return 0;
24162 _ACEOF
24163 if ac_fn_c_try_link "$LINENO"; then :
24164 gcc_cv_math_func_yn=yes
24165 else
24166 gcc_cv_math_func_yn=no
24168 rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24172 $as_echo "$gcc_cv_math_func_yn" >&6; }
24173 if test $gcc_cv_math_func_yn = yes; then
24175 cat >>confdefs.h <<_ACEOF
24176 #define HAVE_YN 1
24177 _ACEOF
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24185 $as_echo_n "checking for ynl... " >&6; }
24186 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24188 else
24189 if test x$gcc_no_link = xyes; then
24190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24195 #ifdef HAVE_COMPLEX_H
24196 #include <complex.h>
24197 #endif
24198 #ifdef HAVE_MATH_H
24199 #include <math.h>
24200 #endif
24202 int (*ptr)() = (int (*)())ynl;
24205 main ()
24207 return 0;
24210 _ACEOF
24211 if ac_fn_c_try_link "$LINENO"; then :
24212 gcc_cv_math_func_ynl=yes
24213 else
24214 gcc_cv_math_func_ynl=no
24216 rm -f core conftest.err conftest.$ac_objext \
24217 conftest$ac_exeext conftest.$ac_ext
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24220 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24221 if test $gcc_cv_math_func_ynl = yes; then
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_YNL 1
24225 _ACEOF
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24233 $as_echo_n "checking for tgamma... " >&6; }
24234 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 if test x$gcc_no_link = xyes; then
24238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24243 #ifdef HAVE_COMPLEX_H
24244 #include <complex.h>
24245 #endif
24246 #ifdef HAVE_MATH_H
24247 #include <math.h>
24248 #endif
24250 int (*ptr)() = (int (*)())tgamma;
24253 main ()
24255 return 0;
24258 _ACEOF
24259 if ac_fn_c_try_link "$LINENO"; then :
24260 gcc_cv_math_func_tgamma=yes
24261 else
24262 gcc_cv_math_func_tgamma=no
24264 rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24268 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24269 if test $gcc_cv_math_func_tgamma = yes; then
24271 cat >>confdefs.h <<_ACEOF
24272 #define HAVE_TGAMMA 1
24273 _ACEOF
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24281 $as_echo_n "checking for tgammaf... " >&6; }
24282 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 if test x$gcc_no_link = xyes; then
24286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289 /* end confdefs.h. */
24291 #ifdef HAVE_COMPLEX_H
24292 #include <complex.h>
24293 #endif
24294 #ifdef HAVE_MATH_H
24295 #include <math.h>
24296 #endif
24298 int (*ptr)() = (int (*)())tgammaf;
24301 main ()
24303 return 0;
24306 _ACEOF
24307 if ac_fn_c_try_link "$LINENO"; then :
24308 gcc_cv_math_func_tgammaf=yes
24309 else
24310 gcc_cv_math_func_tgammaf=no
24312 rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24316 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24317 if test $gcc_cv_math_func_tgammaf = yes; then
24319 cat >>confdefs.h <<_ACEOF
24320 #define HAVE_TGAMMAF 1
24321 _ACEOF
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24329 $as_echo_n "checking for lgamma... " >&6; }
24330 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 if test x$gcc_no_link = xyes; then
24334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337 /* end confdefs.h. */
24339 #ifdef HAVE_COMPLEX_H
24340 #include <complex.h>
24341 #endif
24342 #ifdef HAVE_MATH_H
24343 #include <math.h>
24344 #endif
24346 int (*ptr)() = (int (*)())lgamma;
24349 main ()
24351 return 0;
24354 _ACEOF
24355 if ac_fn_c_try_link "$LINENO"; then :
24356 gcc_cv_math_func_lgamma=yes
24357 else
24358 gcc_cv_math_func_lgamma=no
24360 rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24364 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24365 if test $gcc_cv_math_func_lgamma = yes; then
24367 cat >>confdefs.h <<_ACEOF
24368 #define HAVE_LGAMMA 1
24369 _ACEOF
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24377 $as_echo_n "checking for lgammaf... " >&6; }
24378 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24379 $as_echo_n "(cached) " >&6
24380 else
24381 if test x$gcc_no_link = xyes; then
24382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24385 /* end confdefs.h. */
24387 #ifdef HAVE_COMPLEX_H
24388 #include <complex.h>
24389 #endif
24390 #ifdef HAVE_MATH_H
24391 #include <math.h>
24392 #endif
24394 int (*ptr)() = (int (*)())lgammaf;
24397 main ()
24399 return 0;
24402 _ACEOF
24403 if ac_fn_c_try_link "$LINENO"; then :
24404 gcc_cv_math_func_lgammaf=yes
24405 else
24406 gcc_cv_math_func_lgammaf=no
24408 rm -f core conftest.err conftest.$ac_objext \
24409 conftest$ac_exeext conftest.$ac_ext
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24412 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24413 if test $gcc_cv_math_func_lgammaf = yes; then
24415 cat >>confdefs.h <<_ACEOF
24416 #define HAVE_LGAMMAF 1
24417 _ACEOF
24422 # Check for GFORTRAN_C99_1.1 funcs
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24427 $as_echo_n "checking for cacos... " >&6; }
24428 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24430 else
24431 if test x$gcc_no_link = xyes; then
24432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24437 #ifdef HAVE_COMPLEX_H
24438 #include <complex.h>
24439 #endif
24440 #ifdef HAVE_MATH_H
24441 #include <math.h>
24442 #endif
24444 int (*ptr)() = (int (*)())cacos;
24447 main ()
24449 return 0;
24452 _ACEOF
24453 if ac_fn_c_try_link "$LINENO"; then :
24454 gcc_cv_math_func_cacos=yes
24455 else
24456 gcc_cv_math_func_cacos=no
24458 rm -f core conftest.err conftest.$ac_objext \
24459 conftest$ac_exeext conftest.$ac_ext
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24462 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24463 if test $gcc_cv_math_func_cacos = yes; then
24465 cat >>confdefs.h <<_ACEOF
24466 #define HAVE_CACOS 1
24467 _ACEOF
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24475 $as_echo_n "checking for cacosf... " >&6; }
24476 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24477 $as_echo_n "(cached) " >&6
24478 else
24479 if test x$gcc_no_link = xyes; then
24480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24485 #ifdef HAVE_COMPLEX_H
24486 #include <complex.h>
24487 #endif
24488 #ifdef HAVE_MATH_H
24489 #include <math.h>
24490 #endif
24492 int (*ptr)() = (int (*)())cacosf;
24495 main ()
24497 return 0;
24500 _ACEOF
24501 if ac_fn_c_try_link "$LINENO"; then :
24502 gcc_cv_math_func_cacosf=yes
24503 else
24504 gcc_cv_math_func_cacosf=no
24506 rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24510 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24511 if test $gcc_cv_math_func_cacosf = yes; then
24513 cat >>confdefs.h <<_ACEOF
24514 #define HAVE_CACOSF 1
24515 _ACEOF
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24523 $as_echo_n "checking for cacosh... " >&6; }
24524 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24525 $as_echo_n "(cached) " >&6
24526 else
24527 if test x$gcc_no_link = xyes; then
24528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531 /* end confdefs.h. */
24533 #ifdef HAVE_COMPLEX_H
24534 #include <complex.h>
24535 #endif
24536 #ifdef HAVE_MATH_H
24537 #include <math.h>
24538 #endif
24540 int (*ptr)() = (int (*)())cacosh;
24543 main ()
24545 return 0;
24548 _ACEOF
24549 if ac_fn_c_try_link "$LINENO"; then :
24550 gcc_cv_math_func_cacosh=yes
24551 else
24552 gcc_cv_math_func_cacosh=no
24554 rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24558 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24559 if test $gcc_cv_math_func_cacosh = yes; then
24561 cat >>confdefs.h <<_ACEOF
24562 #define HAVE_CACOSH 1
24563 _ACEOF
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24571 $as_echo_n "checking for cacoshf... " >&6; }
24572 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24574 else
24575 if test x$gcc_no_link = xyes; then
24576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 #ifdef HAVE_COMPLEX_H
24582 #include <complex.h>
24583 #endif
24584 #ifdef HAVE_MATH_H
24585 #include <math.h>
24586 #endif
24588 int (*ptr)() = (int (*)())cacoshf;
24591 main ()
24593 return 0;
24596 _ACEOF
24597 if ac_fn_c_try_link "$LINENO"; then :
24598 gcc_cv_math_func_cacoshf=yes
24599 else
24600 gcc_cv_math_func_cacoshf=no
24602 rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24606 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24607 if test $gcc_cv_math_func_cacoshf = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_CACOSHF 1
24611 _ACEOF
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24619 $as_echo_n "checking for cacoshl... " >&6; }
24620 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24621 $as_echo_n "(cached) " >&6
24622 else
24623 if test x$gcc_no_link = xyes; then
24624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627 /* end confdefs.h. */
24629 #ifdef HAVE_COMPLEX_H
24630 #include <complex.h>
24631 #endif
24632 #ifdef HAVE_MATH_H
24633 #include <math.h>
24634 #endif
24636 int (*ptr)() = (int (*)())cacoshl;
24639 main ()
24641 return 0;
24644 _ACEOF
24645 if ac_fn_c_try_link "$LINENO"; then :
24646 gcc_cv_math_func_cacoshl=yes
24647 else
24648 gcc_cv_math_func_cacoshl=no
24650 rm -f core conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24654 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24655 if test $gcc_cv_math_func_cacoshl = yes; then
24657 cat >>confdefs.h <<_ACEOF
24658 #define HAVE_CACOSHL 1
24659 _ACEOF
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24667 $as_echo_n "checking for cacosl... " >&6; }
24668 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 if test x$gcc_no_link = xyes; then
24672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24675 /* end confdefs.h. */
24677 #ifdef HAVE_COMPLEX_H
24678 #include <complex.h>
24679 #endif
24680 #ifdef HAVE_MATH_H
24681 #include <math.h>
24682 #endif
24684 int (*ptr)() = (int (*)())cacosl;
24687 main ()
24689 return 0;
24692 _ACEOF
24693 if ac_fn_c_try_link "$LINENO"; then :
24694 gcc_cv_math_func_cacosl=yes
24695 else
24696 gcc_cv_math_func_cacosl=no
24698 rm -f core conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24702 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24703 if test $gcc_cv_math_func_cacosl = yes; then
24705 cat >>confdefs.h <<_ACEOF
24706 #define HAVE_CACOSL 1
24707 _ACEOF
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24715 $as_echo_n "checking for casin... " >&6; }
24716 if test "${gcc_cv_math_func_casin+set}" = set; then :
24717 $as_echo_n "(cached) " >&6
24718 else
24719 if test x$gcc_no_link = xyes; then
24720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h. */
24725 #ifdef HAVE_COMPLEX_H
24726 #include <complex.h>
24727 #endif
24728 #ifdef HAVE_MATH_H
24729 #include <math.h>
24730 #endif
24732 int (*ptr)() = (int (*)())casin;
24735 main ()
24737 return 0;
24740 _ACEOF
24741 if ac_fn_c_try_link "$LINENO"; then :
24742 gcc_cv_math_func_casin=yes
24743 else
24744 gcc_cv_math_func_casin=no
24746 rm -f core conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24750 $as_echo "$gcc_cv_math_func_casin" >&6; }
24751 if test $gcc_cv_math_func_casin = yes; then
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_CASIN 1
24755 _ACEOF
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24763 $as_echo_n "checking for casinf... " >&6; }
24764 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 if test x$gcc_no_link = xyes; then
24768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24771 /* end confdefs.h. */
24773 #ifdef HAVE_COMPLEX_H
24774 #include <complex.h>
24775 #endif
24776 #ifdef HAVE_MATH_H
24777 #include <math.h>
24778 #endif
24780 int (*ptr)() = (int (*)())casinf;
24783 main ()
24785 return 0;
24788 _ACEOF
24789 if ac_fn_c_try_link "$LINENO"; then :
24790 gcc_cv_math_func_casinf=yes
24791 else
24792 gcc_cv_math_func_casinf=no
24794 rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24798 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24799 if test $gcc_cv_math_func_casinf = yes; then
24801 cat >>confdefs.h <<_ACEOF
24802 #define HAVE_CASINF 1
24803 _ACEOF
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24811 $as_echo_n "checking for casinh... " >&6; }
24812 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24814 else
24815 if test x$gcc_no_link = xyes; then
24816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819 /* end confdefs.h. */
24821 #ifdef HAVE_COMPLEX_H
24822 #include <complex.h>
24823 #endif
24824 #ifdef HAVE_MATH_H
24825 #include <math.h>
24826 #endif
24828 int (*ptr)() = (int (*)())casinh;
24831 main ()
24833 return 0;
24836 _ACEOF
24837 if ac_fn_c_try_link "$LINENO"; then :
24838 gcc_cv_math_func_casinh=yes
24839 else
24840 gcc_cv_math_func_casinh=no
24842 rm -f core conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24846 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24847 if test $gcc_cv_math_func_casinh = yes; then
24849 cat >>confdefs.h <<_ACEOF
24850 #define HAVE_CASINH 1
24851 _ACEOF
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24859 $as_echo_n "checking for casinhf... " >&6; }
24860 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 if test x$gcc_no_link = xyes; then
24864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867 /* end confdefs.h. */
24869 #ifdef HAVE_COMPLEX_H
24870 #include <complex.h>
24871 #endif
24872 #ifdef HAVE_MATH_H
24873 #include <math.h>
24874 #endif
24876 int (*ptr)() = (int (*)())casinhf;
24879 main ()
24881 return 0;
24884 _ACEOF
24885 if ac_fn_c_try_link "$LINENO"; then :
24886 gcc_cv_math_func_casinhf=yes
24887 else
24888 gcc_cv_math_func_casinhf=no
24890 rm -f core conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext conftest.$ac_ext
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24894 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24895 if test $gcc_cv_math_func_casinhf = yes; then
24897 cat >>confdefs.h <<_ACEOF
24898 #define HAVE_CASINHF 1
24899 _ACEOF
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24907 $as_echo_n "checking for casinhl... " >&6; }
24908 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24909 $as_echo_n "(cached) " >&6
24910 else
24911 if test x$gcc_no_link = xyes; then
24912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h. */
24917 #ifdef HAVE_COMPLEX_H
24918 #include <complex.h>
24919 #endif
24920 #ifdef HAVE_MATH_H
24921 #include <math.h>
24922 #endif
24924 int (*ptr)() = (int (*)())casinhl;
24927 main ()
24929 return 0;
24932 _ACEOF
24933 if ac_fn_c_try_link "$LINENO"; then :
24934 gcc_cv_math_func_casinhl=yes
24935 else
24936 gcc_cv_math_func_casinhl=no
24938 rm -f core conftest.err conftest.$ac_objext \
24939 conftest$ac_exeext conftest.$ac_ext
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24942 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24943 if test $gcc_cv_math_func_casinhl = yes; then
24945 cat >>confdefs.h <<_ACEOF
24946 #define HAVE_CASINHL 1
24947 _ACEOF
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24955 $as_echo_n "checking for casinl... " >&6; }
24956 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 if test x$gcc_no_link = xyes; then
24960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24963 /* end confdefs.h. */
24965 #ifdef HAVE_COMPLEX_H
24966 #include <complex.h>
24967 #endif
24968 #ifdef HAVE_MATH_H
24969 #include <math.h>
24970 #endif
24972 int (*ptr)() = (int (*)())casinl;
24975 main ()
24977 return 0;
24980 _ACEOF
24981 if ac_fn_c_try_link "$LINENO"; then :
24982 gcc_cv_math_func_casinl=yes
24983 else
24984 gcc_cv_math_func_casinl=no
24986 rm -f core conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24990 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24991 if test $gcc_cv_math_func_casinl = yes; then
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_CASINL 1
24995 _ACEOF
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25003 $as_echo_n "checking for catan... " >&6; }
25004 if test "${gcc_cv_math_func_catan+set}" = set; then :
25005 $as_echo_n "(cached) " >&6
25006 else
25007 if test x$gcc_no_link = xyes; then
25008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011 /* end confdefs.h. */
25013 #ifdef HAVE_COMPLEX_H
25014 #include <complex.h>
25015 #endif
25016 #ifdef HAVE_MATH_H
25017 #include <math.h>
25018 #endif
25020 int (*ptr)() = (int (*)())catan;
25023 main ()
25025 return 0;
25028 _ACEOF
25029 if ac_fn_c_try_link "$LINENO"; then :
25030 gcc_cv_math_func_catan=yes
25031 else
25032 gcc_cv_math_func_catan=no
25034 rm -f core conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25038 $as_echo "$gcc_cv_math_func_catan" >&6; }
25039 if test $gcc_cv_math_func_catan = yes; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define HAVE_CATAN 1
25043 _ACEOF
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25051 $as_echo_n "checking for catanf... " >&6; }
25052 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 if test x$gcc_no_link = xyes; then
25056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25061 #ifdef HAVE_COMPLEX_H
25062 #include <complex.h>
25063 #endif
25064 #ifdef HAVE_MATH_H
25065 #include <math.h>
25066 #endif
25068 int (*ptr)() = (int (*)())catanf;
25071 main ()
25073 return 0;
25076 _ACEOF
25077 if ac_fn_c_try_link "$LINENO"; then :
25078 gcc_cv_math_func_catanf=yes
25079 else
25080 gcc_cv_math_func_catanf=no
25082 rm -f core conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25086 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25087 if test $gcc_cv_math_func_catanf = yes; then
25089 cat >>confdefs.h <<_ACEOF
25090 #define HAVE_CATANF 1
25091 _ACEOF
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25099 $as_echo_n "checking for catanh... " >&6; }
25100 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 if test x$gcc_no_link = xyes; then
25104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25109 #ifdef HAVE_COMPLEX_H
25110 #include <complex.h>
25111 #endif
25112 #ifdef HAVE_MATH_H
25113 #include <math.h>
25114 #endif
25116 int (*ptr)() = (int (*)())catanh;
25119 main ()
25121 return 0;
25124 _ACEOF
25125 if ac_fn_c_try_link "$LINENO"; then :
25126 gcc_cv_math_func_catanh=yes
25127 else
25128 gcc_cv_math_func_catanh=no
25130 rm -f core conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25134 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25135 if test $gcc_cv_math_func_catanh = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_CATANH 1
25139 _ACEOF
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25147 $as_echo_n "checking for catanhf... " >&6; }
25148 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
25150 else
25151 if test x$gcc_no_link = xyes; then
25152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25157 #ifdef HAVE_COMPLEX_H
25158 #include <complex.h>
25159 #endif
25160 #ifdef HAVE_MATH_H
25161 #include <math.h>
25162 #endif
25164 int (*ptr)() = (int (*)())catanhf;
25167 main ()
25169 return 0;
25172 _ACEOF
25173 if ac_fn_c_try_link "$LINENO"; then :
25174 gcc_cv_math_func_catanhf=yes
25175 else
25176 gcc_cv_math_func_catanhf=no
25178 rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25182 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25183 if test $gcc_cv_math_func_catanhf = yes; then
25185 cat >>confdefs.h <<_ACEOF
25186 #define HAVE_CATANHF 1
25187 _ACEOF
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25195 $as_echo_n "checking for catanhl... " >&6; }
25196 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 if test x$gcc_no_link = xyes; then
25200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h. */
25205 #ifdef HAVE_COMPLEX_H
25206 #include <complex.h>
25207 #endif
25208 #ifdef HAVE_MATH_H
25209 #include <math.h>
25210 #endif
25212 int (*ptr)() = (int (*)())catanhl;
25215 main ()
25217 return 0;
25220 _ACEOF
25221 if ac_fn_c_try_link "$LINENO"; then :
25222 gcc_cv_math_func_catanhl=yes
25223 else
25224 gcc_cv_math_func_catanhl=no
25226 rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25230 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25231 if test $gcc_cv_math_func_catanhl = yes; then
25233 cat >>confdefs.h <<_ACEOF
25234 #define HAVE_CATANHL 1
25235 _ACEOF
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25243 $as_echo_n "checking for catanl... " >&6; }
25244 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 if test x$gcc_no_link = xyes; then
25248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 #ifdef HAVE_COMPLEX_H
25254 #include <complex.h>
25255 #endif
25256 #ifdef HAVE_MATH_H
25257 #include <math.h>
25258 #endif
25260 int (*ptr)() = (int (*)())catanl;
25263 main ()
25265 return 0;
25268 _ACEOF
25269 if ac_fn_c_try_link "$LINENO"; then :
25270 gcc_cv_math_func_catanl=yes
25271 else
25272 gcc_cv_math_func_catanl=no
25274 rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext conftest.$ac_ext
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25278 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25279 if test $gcc_cv_math_func_catanl = yes; then
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_CATANL 1
25283 _ACEOF
25288 # On AIX, clog is present in libm as __clog
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25290 $as_echo_n "checking for __clog in -lm... " >&6; }
25291 if test "${ac_cv_lib_m___clog+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 ac_check_lib_save_LIBS=$LIBS
25295 LIBS="-lm $LIBS"
25296 if test x$gcc_no_link = xyes; then
25297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25302 /* Override any GCC internal prototype to avoid an error.
25303 Use char because int might match the return type of a GCC
25304 builtin and then its argument prototype would still apply. */
25305 #ifdef __cplusplus
25306 extern "C"
25307 #endif
25308 char __clog ();
25310 main ()
25312 return __clog ();
25314 return 0;
25316 _ACEOF
25317 if ac_fn_c_try_link "$LINENO"; then :
25318 ac_cv_lib_m___clog=yes
25319 else
25320 ac_cv_lib_m___clog=no
25322 rm -f core conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
25324 LIBS=$ac_check_lib_save_LIBS
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25327 $as_echo "$ac_cv_lib_m___clog" >&6; }
25328 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25330 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25335 # Check whether the system has a working stat()
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25338 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25339 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25343 if test "$cross_compiling" = yes; then :
25345 case "${target}" in
25346 *mingw*) libgfor_cv_have_working_stat=no ;;
25347 *) libgfor_cv_have_working_stat=yes;;
25348 esac
25349 else
25350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h. */
25353 #include <stdio.h>
25354 #include <sys/types.h>
25355 #include <sys/stat.h>
25356 #include <unistd.h>
25358 int main ()
25360 FILE *f, *g;
25361 struct stat st1, st2;
25363 f = fopen ("foo", "w");
25364 g = fopen ("bar", "w");
25365 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25366 return 1;
25367 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25368 return 1;
25369 fclose(f);
25370 fclose(g);
25371 return 0;
25373 _ACEOF
25374 if ac_fn_c_try_run "$LINENO"; then :
25375 libgfor_cv_have_working_stat=yes
25376 else
25377 libgfor_cv_have_working_stat=no
25379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25380 conftest.$ac_objext conftest.beam conftest.$ac_ext
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25385 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25386 if test x"$libgfor_cv_have_working_stat" = xyes; then
25388 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25392 # Check whether __mingw_snprintf() is present
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25395 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25396 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25400 if test x$gcc_no_link = xyes; then
25401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25404 /* end confdefs.h. */
25406 #include <stdio.h>
25407 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25410 main ()
25413 __mingw_snprintf (NULL, 0, "%d\n", 1);
25416 return 0;
25418 _ACEOF
25419 if ac_fn_c_try_link "$LINENO"; then :
25420 eval "libgfor_cv_have_mingw_snprintf=yes"
25421 else
25422 eval "libgfor_cv_have_mingw_snprintf=no"
25424 rm -f core conftest.err conftest.$ac_objext \
25425 conftest$ac_exeext conftest.$ac_ext
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25429 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25430 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25432 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25437 # Check whether libquadmath should be used
25438 # Check whether --enable-libquadmath-support was given.
25439 if test "${enable_libquadmath_support+set}" = set; then :
25440 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25441 else
25442 ENABLE_LIBQUADMATH_SUPPORT=yes
25445 enable_libquadmath_support=
25446 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25447 enable_libquadmath_support=no
25450 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25452 LIBQUADSPEC=
25454 if test "x$enable_libquadmath_support" != xno; then
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25457 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25458 if test "${libgfor_cv_have_float128+set}" = set; then :
25459 $as_echo_n "(cached) " >&6
25460 else
25462 if test x$gcc_no_link = xyes; then
25463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464 /* end confdefs.h. */
25466 typedef _Complex float __attribute__((mode(TC))) __complex128;
25468 __float128 foo (__float128 x)
25471 __complex128 z1, z2;
25473 z1 = x;
25474 z2 = x / 7.Q;
25475 z2 /= z1;
25477 return (__float128) z2;
25480 __float128 bar (__float128 x)
25482 return x * __builtin_huge_valq ();
25486 main ()
25489 foo (1.2Q);
25490 bar (1.2Q);
25493 return 0;
25495 _ACEOF
25496 if ac_fn_c_try_compile "$LINENO"; then :
25498 libgfor_cv_have_float128=yes
25500 else
25502 libgfor_cv_have_float128=no
25505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506 else
25507 if test x$gcc_no_link = xyes; then
25508 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h. */
25513 typedef _Complex float __attribute__((mode(TC))) __complex128;
25515 __float128 foo (__float128 x)
25518 __complex128 z1, z2;
25520 z1 = x;
25521 z2 = x / 7.Q;
25522 z2 /= z1;
25524 return (__float128) z2;
25527 __float128 bar (__float128 x)
25529 return x * __builtin_huge_valq ();
25533 main ()
25536 foo (1.2Q);
25537 bar (1.2Q);
25540 return 0;
25542 _ACEOF
25543 if ac_fn_c_try_link "$LINENO"; then :
25545 libgfor_cv_have_float128=yes
25547 else
25549 libgfor_cv_have_float128=no
25552 rm -f core conftest.err conftest.$ac_objext \
25553 conftest$ac_exeext conftest.$ac_ext
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25557 $as_echo "$libgfor_cv_have_float128" >&6; }
25559 if test "x$libgfor_cv_have_float128" = xyes; then
25561 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25564 ac_xsave_c_werror_flag=$ac_c_werror_flag
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25566 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25567 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25568 $as_echo_n "(cached) " >&6
25569 else
25571 # Test for native Solaris options first.
25572 # No whitespace after -z to pass it through -Wl.
25573 libgfor_cv_as_needed_option="-zignore"
25574 libgfor_cv_no_as_needed_option="-zrecord"
25575 save_LDFLAGS="$LDFLAGS"
25576 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25577 libgfor_cv_have_as_needed=no
25579 ac_c_werror_flag=yes
25580 if test x$gcc_no_link = xyes; then
25581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584 /* end confdefs.h. */
25587 main ()
25591 return 0;
25593 _ACEOF
25594 if ac_fn_c_try_link "$LINENO"; then :
25595 libgfor_cv_have_as_needed=yes
25596 else
25597 libgfor_cv_have_as_needed=no
25599 rm -f core conftest.err conftest.$ac_objext \
25600 conftest$ac_exeext conftest.$ac_ext
25601 LDFLAGS="$save_LDFLAGS"
25602 if test "x$libgfor_cv_have_as_needed" = xno; then
25603 libgfor_cv_as_needed_option="--as-needed"
25604 libgfor_cv_no_as_needed_option="--no-as-needed"
25605 save_LDFLAGS="$LDFLAGS"
25606 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25607 libgfor_cv_have_as_needed=no
25609 ac_c_werror_flag=yes
25610 if test x$gcc_no_link = xyes; then
25611 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25617 main ()
25621 return 0;
25623 _ACEOF
25624 if ac_fn_c_try_link "$LINENO"; then :
25625 libgfor_cv_have_as_needed=yes
25626 else
25627 libgfor_cv_have_as_needed=no
25629 rm -f core conftest.err conftest.$ac_objext \
25630 conftest$ac_exeext conftest.$ac_ext
25631 LDFLAGS="$save_LDFLAGS"
25633 ac_c_werror_flag=$ac_xsave_c_werror_flag
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25637 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25639 if test "x$libgfor_cv_have_as_needed" = xyes; then
25640 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25641 else
25642 LIBQUADSPEC="-lquadmath"
25644 if test -f ../libquadmath/libquadmath.la; then
25645 LIBQUADLIB=../libquadmath/libquadmath.la
25646 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25647 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25648 else
25649 LIBQUADLIB="-lquadmath"
25650 LIBQUADLIB_DEP=
25651 LIBQUADINCLUDE=
25654 else
25655 # for --disable-quadmath
25656 LIBQUADLIB=
25657 LIBQUADLIB_DEP=
25658 LIBQUADINCLUDE=
25666 if test "x$libgfor_cv_have_float128" = xyes; then
25667 LIBGFOR_BUILD_QUAD_TRUE=
25668 LIBGFOR_BUILD_QUAD_FALSE='#'
25669 else
25670 LIBGFOR_BUILD_QUAD_TRUE='#'
25671 LIBGFOR_BUILD_QUAD_FALSE=
25676 # Check for GNU libc feenableexcept
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25678 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25679 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25680 $as_echo_n "(cached) " >&6
25681 else
25682 ac_check_lib_save_LIBS=$LIBS
25683 LIBS="-lm $LIBS"
25684 if test x$gcc_no_link = xyes; then
25685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25690 /* Override any GCC internal prototype to avoid an error.
25691 Use char because int might match the return type of a GCC
25692 builtin and then its argument prototype would still apply. */
25693 #ifdef __cplusplus
25694 extern "C"
25695 #endif
25696 char feenableexcept ();
25698 main ()
25700 return feenableexcept ();
25702 return 0;
25704 _ACEOF
25705 if ac_fn_c_try_link "$LINENO"; then :
25706 ac_cv_lib_m_feenableexcept=yes
25707 else
25708 ac_cv_lib_m_feenableexcept=no
25710 rm -f core conftest.err conftest.$ac_objext \
25711 conftest$ac_exeext conftest.$ac_ext
25712 LIBS=$ac_check_lib_save_LIBS
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25715 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25716 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25717 have_feenableexcept=yes
25718 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25723 # At least for glibc, clock_gettime is in librt. But don't
25724 # pull that in if it still doesn't give us the function we want. This
25725 # test is copied from libgomp, and modified to not link in -lrt as
25726 # libgfortran calls clock_gettime via a weak reference if it's found
25727 # in librt.
25728 if test "$ac_cv_func_clock_gettime" = no; then
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25730 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25731 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25732 $as_echo_n "(cached) " >&6
25733 else
25734 ac_check_lib_save_LIBS=$LIBS
25735 LIBS="-lrt $LIBS"
25736 if test x$gcc_no_link = xyes; then
25737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25742 /* Override any GCC internal prototype to avoid an error.
25743 Use char because int might match the return type of a GCC
25744 builtin and then its argument prototype would still apply. */
25745 #ifdef __cplusplus
25746 extern "C"
25747 #endif
25748 char clock_gettime ();
25750 main ()
25752 return clock_gettime ();
25754 return 0;
25756 _ACEOF
25757 if ac_fn_c_try_link "$LINENO"; then :
25758 ac_cv_lib_rt_clock_gettime=yes
25759 else
25760 ac_cv_lib_rt_clock_gettime=no
25762 rm -f core conftest.err conftest.$ac_objext \
25763 conftest$ac_exeext conftest.$ac_ext
25764 LIBS=$ac_check_lib_save_LIBS
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25767 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25768 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25770 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25776 # Check for SysV fpsetmask
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25779 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25780 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25781 $as_echo_n "(cached) " >&6
25782 else
25784 if test x$gcc_no_link = xyes; then
25785 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h. */
25790 #if HAVE_FLOATINGPOINT_H
25791 # include <floatingpoint.h>
25792 #endif /* HAVE_FLOATINGPOINT_H */
25793 #if HAVE_IEEEFP_H
25794 # include <ieeefp.h>
25795 #endif /* HAVE_IEEEFP_H */
25797 main ()
25799 fpsetmask(0);
25801 return 0;
25803 _ACEOF
25804 if ac_fn_c_try_link "$LINENO"; then :
25805 eval "libgfor_cv_have_fpsetmask=yes"
25806 else
25807 eval "libgfor_cv_have_fpsetmask=no"
25809 rm -f core conftest.err conftest.$ac_objext \
25810 conftest$ac_exeext conftest.$ac_ext
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25814 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25815 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25816 have_fpsetmask=yes
25818 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25822 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25823 #ifdef HAVE_IEEEFP_H
25824 #include <ieeefp.h>
25825 #endif
25826 #include <math.h>
25829 if test "x$ac_cv_type_fp_except" = x""yes; then :
25831 cat >>confdefs.h <<_ACEOF
25832 #define HAVE_FP_EXCEPT 1
25833 _ACEOF
25837 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25838 #ifdef HAVE_IEEEFP_H
25839 #include <ieeefp.h>
25840 #endif
25841 #include <math.h>
25844 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25846 cat >>confdefs.h <<_ACEOF
25847 #define HAVE_FP_EXCEPT_T 1
25848 _ACEOF
25853 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25854 #ifdef HAVE_IEEEFP_H
25855 #include <ieeefp.h>
25856 #endif
25857 #include <math.h>
25860 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25862 cat >>confdefs.h <<_ACEOF
25863 #define HAVE_FP_RND 1
25864 _ACEOF
25868 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25869 #ifdef HAVE_IEEEFP_H
25870 #include <ieeefp.h>
25871 #endif
25872 #include <math.h>
25875 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25877 cat >>confdefs.h <<_ACEOF
25878 #define HAVE_FP_RND_T 1
25879 _ACEOF
25885 # Check whether we have fpsetsticky or fpresetsticky
25886 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25887 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25888 have_fpsetsticky=yes
25889 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25893 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25894 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25895 have_fpresetsticky=yes
25896 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25901 # Check for AIX fp_trap and fp_enable
25902 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25903 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25904 have_fp_trap=yes
25905 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25909 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25910 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25911 have_fp_enable=yes
25912 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25917 # Check if _SOFT_FLOAT is defined
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25920 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25921 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25923 else
25924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25925 /* end confdefs.h. */
25928 main ()
25931 #ifdef _SOFT_FLOAT
25932 int ok;
25933 #else
25934 choke me
25935 #endif
25938 return 0;
25940 _ACEOF
25941 if ac_fn_c_try_compile "$LINENO"; then :
25942 ac_cv_defined__SOFT_FLOAT=yes
25943 else
25944 ac_cv_defined__SOFT_FLOAT=no
25946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25949 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25950 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25951 have_soft_float=yes
25954 # Runs configure.host to set up necessary host-dependent shell variables.
25955 # We then display a message about it, and propagate them through the
25956 # build chain.
25957 . ${srcdir}/configure.host
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25959 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25961 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25962 FPU_HOST_HEADER=config/${fpu_host}.h
25965 # Whether we will build the IEEE modules
25966 if test x${ieee_support} = xyes; then
25967 IEEE_SUPPORT_TRUE=
25968 IEEE_SUPPORT_FALSE='#'
25969 else
25970 IEEE_SUPPORT_TRUE='#'
25971 IEEE_SUPPORT_FALSE=
25976 # Some targets require additional compiler options for IEEE compatibility.
25977 IEEE_FLAGS="${ieee_flags}"
25981 # Check for POSIX getpwuid_r
25983 # There are two versions of getpwuid_r, the POSIX one with 5
25984 # arguments, and another one with 4 arguments used by at least HP-UX
25985 # 10.2.
25986 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25988 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25989 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
25991 else
25993 if test x$gcc_no_link = xyes; then
25994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h. */
25999 #include <stdio.h>
26000 #include <sys/types.h>
26001 #include <pwd.h>
26003 main ()
26006 getpwuid_r(0, NULL, NULL, 0, NULL);
26009 return 0;
26011 _ACEOF
26012 if ac_fn_c_try_link "$LINENO"; then :
26013 libgfor_cv_posix_getpwuid_r="yes"
26014 else
26015 libgfor_cv_posix_getpwuid_r="no"
26017 rm -f core conftest.err conftest.$ac_objext \
26018 conftest$ac_exeext conftest.$ac_ext
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26021 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26023 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26025 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26030 # Check out attribute support.
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26033 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26034 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26036 else
26038 save_CFLAGS="$CFLAGS"
26039 CFLAGS="$CFLAGS -Werror"
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26042 void __attribute__((visibility("hidden"))) foo(void) { }
26044 main ()
26048 return 0;
26050 _ACEOF
26051 if ac_fn_c_try_compile "$LINENO"; then :
26052 libgfor_cv_have_attribute_visibility=yes
26053 else
26054 libgfor_cv_have_attribute_visibility=no
26056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26057 CFLAGS="$save_CFLAGS"
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26060 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26061 if test $libgfor_cv_have_attribute_visibility = yes; then
26063 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26068 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26069 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26070 $as_echo_n "(cached) " >&6
26071 else
26073 if test x$gcc_no_link = xyes; then
26074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077 /* end confdefs.h. */
26079 void foo(void) { }
26080 extern void bar(void) __attribute__((alias("foo")));
26082 main ()
26084 bar();
26086 return 0;
26088 _ACEOF
26089 if ac_fn_c_try_link "$LINENO"; then :
26090 libgfor_cv_have_attribute_alias=yes
26091 else
26092 libgfor_cv_have_attribute_alias=no
26094 rm -f core conftest.err conftest.$ac_objext \
26095 conftest$ac_exeext conftest.$ac_ext
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26098 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26099 if test $libgfor_cv_have_attribute_alias = yes; then
26101 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26105 # Check out sync builtins support.
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26108 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26109 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26110 $as_echo_n "(cached) " >&6
26111 else
26113 if test x$gcc_no_link = xyes; then
26114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26117 /* end confdefs.h. */
26118 int foovar = 0;
26120 main ()
26123 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26124 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26126 return 0;
26128 _ACEOF
26129 if ac_fn_c_try_link "$LINENO"; then :
26130 libgfor_cv_have_sync_fetch_and_add=yes
26131 else
26132 libgfor_cv_have_sync_fetch_and_add=no
26134 rm -f core conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26138 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26139 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26141 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26145 # Check out #pragma weak.
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26148 $as_echo_n "checking whether pragma weak works... " >&6; }
26149 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26150 $as_echo_n "(cached) " >&6
26151 else
26153 gfor_save_CFLAGS="$CFLAGS"
26154 CFLAGS="$CFLAGS -Wunknown-pragmas"
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h. */
26158 void foo (void);
26159 #pragma weak foo
26162 main ()
26164 if (foo) foo ();
26166 return 0;
26168 _ACEOF
26169 if ac_fn_c_try_compile "$LINENO"; then :
26170 libgfor_cv_have_pragma_weak=yes
26171 else
26172 libgfor_cv_have_pragma_weak=no
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26177 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26178 if test $libgfor_cv_have_pragma_weak = yes; then
26180 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26183 case "$host" in
26184 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26186 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26189 esac
26191 # Check out weakref support.
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26194 $as_echo_n "checking whether the target supports weakref... " >&6; }
26195 if test "${libgfor_cv_have_weakref+set}" = set; then :
26196 $as_echo_n "(cached) " >&6
26197 else
26199 save_CFLAGS="$CFLAGS"
26200 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26201 if test x$gcc_no_link = xyes; then
26202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h. */
26207 static int mytoto (int) __attribute__((__weakref__("toto")));
26210 main ()
26212 return (mytoto != 0);
26214 return 0;
26216 _ACEOF
26217 if ac_fn_c_try_link "$LINENO"; then :
26218 libgfor_cv_have_weakref=yes
26219 else
26220 libgfor_cv_have_weakref=no
26222 rm -f core conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
26224 CFLAGS="$save_CFLAGS"
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26227 $as_echo "$libgfor_cv_have_weakref" >&6; }
26228 if test $libgfor_cv_have_weakref = yes; then
26230 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26234 # Various other checks on target
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26237 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26238 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26239 $as_echo_n "(cached) " >&6
26240 else
26242 if test "$cross_compiling" = yes; then :
26244 case "${target}" in
26245 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26246 *) libgfor_cv_have_unlink_open_file=yes;;
26247 esac
26248 else
26249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h. */
26252 #include <errno.h>
26253 #include <fcntl.h>
26254 #include <unistd.h>
26255 #include <sys/stat.h>
26257 int main ()
26259 int fd;
26261 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26262 if (fd <= 0)
26263 return 0;
26264 if (unlink ("testfile") == -1)
26265 return 1;
26266 write (fd, "This is a test\n", 15);
26267 close (fd);
26269 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26270 return 0;
26271 else
26272 return 1;
26274 _ACEOF
26275 if ac_fn_c_try_run "$LINENO"; then :
26276 libgfor_cv_have_unlink_open_file=yes
26277 else
26278 libgfor_cv_have_unlink_open_file=no
26280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26281 conftest.$ac_objext conftest.beam conftest.$ac_ext
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26286 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26287 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26289 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26293 # Check whether line terminator is LF or CRLF
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26296 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26297 if test "${libgfor_cv_have_crlf+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26301 if test "$cross_compiling" = yes; then :
26303 case "${target}" in
26304 *mingw*) libgfor_cv_have_crlf=yes ;;
26305 *) libgfor_cv_have_crlf=no;;
26306 esac
26307 else
26308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309 /* end confdefs.h. */
26311 /* This test program should exit with status 0 if system uses a CRLF as
26312 line terminator, and status 1 otherwise.
26313 Since it is used to check for mingw systems, and should return 0 in any
26314 other case, in case of a failure we will not use CRLF. */
26315 #include <sys/stat.h>
26316 #include <stdlib.h>
26317 #include <fcntl.h>
26318 #include <stdio.h>
26320 int main ()
26322 #ifndef O_BINARY
26323 exit(1);
26324 #else
26325 int fd, bytes;
26326 char buff[5];
26328 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26329 if (fd < 0)
26330 exit(1);
26331 if (write (fd, "\n", 1) < 0)
26332 perror ("write");
26334 close (fd);
26336 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26337 exit(1);
26338 bytes = read (fd, buff, 5);
26339 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26340 exit(0);
26341 else
26342 exit(1);
26343 #endif
26345 _ACEOF
26346 if ac_fn_c_try_run "$LINENO"; then :
26347 libgfor_cv_have_crlf=yes
26348 else
26349 libgfor_cv_have_crlf=no
26351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26352 conftest.$ac_objext conftest.beam conftest.$ac_ext
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26357 $as_echo "$libgfor_cv_have_crlf" >&6; }
26358 if test x"$libgfor_cv_have_crlf" = xyes; then
26360 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26364 # Check whether we support AVX extensions
26366 ac_save_CFLAGS="$CFLAGS"
26367 CFLAGS="-O2 -mavx"
26368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h. */
26371 void _mm256_zeroall (void)
26373 __builtin_ia32_vzeroall ();
26376 main ()
26380 return 0;
26382 _ACEOF
26383 if ac_fn_c_try_compile "$LINENO"; then :
26385 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389 CFLAGS="$ac_save_CFLAGS"
26392 # Check wether we support AVX2 extensions
26394 ac_save_CFLAGS="$CFLAGS"
26395 CFLAGS="-O2 -mavx2"
26396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26397 /* end confdefs.h. */
26399 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26400 __v4di
26401 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26403 return __builtin_ia32_andnotsi256 (__X, __Y);
26406 main ()
26410 return 0;
26412 _ACEOF
26413 if ac_fn_c_try_compile "$LINENO"; then :
26415 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419 CFLAGS="$ac_save_CFLAGS"
26422 # Check wether we support AVX512f extensions
26424 ac_save_CFLAGS="$CFLAGS"
26425 CFLAGS="-O2 -mavx512f"
26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26427 /* end confdefs.h. */
26429 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26430 __m512d _mm512_add (__m512d a)
26432 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26433 /* For -m64/-mx32 also verify that code will work even if
26434 the target uses call saved zmm16+ and needs to emit
26435 unwind info for them (e.g. on mingw). See PR79127. */
26436 #ifdef __x86_64__
26437 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26438 #endif
26439 return b;
26442 main ()
26446 return 0;
26448 _ACEOF
26449 if ac_fn_c_try_compile "$LINENO"; then :
26451 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455 CFLAGS="$ac_save_CFLAGS"
26458 # Check for FMA3 extensions
26460 ac_save_CFLAGS="$CFLAGS"
26461 CFLAGS="-O2 -mfma -mno-fma4"
26462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26463 /* end confdefs.h. */
26465 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26466 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26467 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26469 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26470 (__v4sf)__B,
26471 (__v4sf)__C);
26474 main ()
26478 return 0;
26480 _ACEOF
26481 if ac_fn_c_try_compile "$LINENO"; then :
26483 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 CFLAGS="$ac_save_CFLAGS"
26490 # Check for FMA4 extensions
26492 ac_save_CFLAGS="$CFLAGS"
26493 CFLAGS="-O2 -mfma4 -mno-fma"
26494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26495 /* end confdefs.h. */
26497 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26498 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26499 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26501 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26502 (__v4sf)__B,
26503 (__v4sf)__C);
26506 main ()
26510 return 0;
26512 _ACEOF
26513 if ac_fn_c_try_compile "$LINENO"; then :
26515 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 CFLAGS="$ac_save_CFLAGS"
26522 # Check if AVX128 works
26524 ac_save_CFLAGS="$CFLAGS"
26525 CFLAGS="-O2 -mavx -mprefer-avx128"
26526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26527 /* end confdefs.h. */
26529 void foo()
26533 main ()
26537 return 0;
26539 _ACEOF
26540 if ac_fn_c_try_compile "$LINENO"; then :
26542 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26544 if true; then
26545 HAVE_AVX128_TRUE=
26546 HAVE_AVX128_FALSE='#'
26547 else
26548 HAVE_AVX128_TRUE='#'
26549 HAVE_AVX128_FALSE=
26552 else
26553 if false; then
26554 HAVE_AVX128_TRUE=
26555 HAVE_AVX128_FALSE='#'
26556 else
26557 HAVE_AVX128_TRUE='#'
26558 HAVE_AVX128_FALSE=
26562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26563 CFLAGS="$ac_save_CFLAGS"
26566 # Determine what GCC version number to use in filesystem paths.
26568 get_gcc_base_ver="cat"
26570 # Check whether --with-gcc-major-version-only was given.
26571 if test "${with_gcc_major_version_only+set}" = set; then :
26572 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26573 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
26581 cat >confcache <<\_ACEOF
26582 # This file is a shell script that caches the results of configure
26583 # tests run on this system so they can be shared between configure
26584 # scripts and configure runs, see configure's option --config-cache.
26585 # It is not useful on other systems. If it contains results you don't
26586 # want to keep, you may remove or edit it.
26588 # config.status only pays attention to the cache file if you give it
26589 # the --recheck option to rerun configure.
26591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26593 # following values.
26595 _ACEOF
26597 # The following way of writing the cache mishandles newlines in values,
26598 # but we know of no workaround that is simple, portable, and efficient.
26599 # So, we kill variables containing newlines.
26600 # Ultrix sh set writes to stderr and can't be redirected directly,
26601 # and sets the high bit in the cache file unless we assign to the vars.
26603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26604 eval ac_val=\$$ac_var
26605 case $ac_val in #(
26606 *${as_nl}*)
26607 case $ac_var in #(
26608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26610 esac
26611 case $ac_var in #(
26612 _ | IFS | as_nl) ;; #(
26613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26614 *) { eval $ac_var=; unset $ac_var;} ;;
26615 esac ;;
26616 esac
26617 done
26619 (set) 2>&1 |
26620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26621 *${as_nl}ac_space=\ *)
26622 # `set' does not quote correctly, so add quotes: double-quote
26623 # substitution turns \\\\ into \\, and sed turns \\ into \.
26624 sed -n \
26625 "s/'/'\\\\''/g;
26626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26627 ;; #(
26629 # `set' quotes correctly as required by POSIX, so do not add quotes.
26630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26632 esac |
26633 sort
26635 sed '
26636 /^ac_cv_env_/b end
26637 t clear
26638 :clear
26639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26640 t end
26641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26642 :end' >>confcache
26643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26644 if test -w "$cache_file"; then
26645 test "x$cache_file" != "x/dev/null" &&
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26647 $as_echo "$as_me: updating cache $cache_file" >&6;}
26648 cat confcache >$cache_file
26649 else
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26651 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26654 rm -f confcache
26656 if test ${multilib} = yes; then
26657 multilib_arg="--enable-multilib"
26658 else
26659 multilib_arg=
26662 # Write our Makefile and spec file.
26663 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26665 cat >confcache <<\_ACEOF
26666 # This file is a shell script that caches the results of configure
26667 # tests run on this system so they can be shared between configure
26668 # scripts and configure runs, see configure's option --config-cache.
26669 # It is not useful on other systems. If it contains results you don't
26670 # want to keep, you may remove or edit it.
26672 # config.status only pays attention to the cache file if you give it
26673 # the --recheck option to rerun configure.
26675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26677 # following values.
26679 _ACEOF
26681 # The following way of writing the cache mishandles newlines in values,
26682 # but we know of no workaround that is simple, portable, and efficient.
26683 # So, we kill variables containing newlines.
26684 # Ultrix sh set writes to stderr and can't be redirected directly,
26685 # and sets the high bit in the cache file unless we assign to the vars.
26687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26688 eval ac_val=\$$ac_var
26689 case $ac_val in #(
26690 *${as_nl}*)
26691 case $ac_var in #(
26692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26694 esac
26695 case $ac_var in #(
26696 _ | IFS | as_nl) ;; #(
26697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26698 *) { eval $ac_var=; unset $ac_var;} ;;
26699 esac ;;
26700 esac
26701 done
26703 (set) 2>&1 |
26704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26705 *${as_nl}ac_space=\ *)
26706 # `set' does not quote correctly, so add quotes: double-quote
26707 # substitution turns \\\\ into \\, and sed turns \\ into \.
26708 sed -n \
26709 "s/'/'\\\\''/g;
26710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26711 ;; #(
26713 # `set' quotes correctly as required by POSIX, so do not add quotes.
26714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26716 esac |
26717 sort
26719 sed '
26720 /^ac_cv_env_/b end
26721 t clear
26722 :clear
26723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26724 t end
26725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26726 :end' >>confcache
26727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26728 if test -w "$cache_file"; then
26729 test "x$cache_file" != "x/dev/null" &&
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26731 $as_echo "$as_me: updating cache $cache_file" >&6;}
26732 cat confcache >$cache_file
26733 else
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26738 rm -f confcache
26740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26741 # Let make expand exec_prefix.
26742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26744 DEFS=-DHAVE_CONFIG_H
26746 ac_libobjs=
26747 ac_ltlibobjs=
26748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26749 # 1. Remove the extension, and $U if already installed.
26750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26753 # will be set to the directory where LIBOBJS objects are built.
26754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26756 done
26757 LIBOBJS=$ac_libobjs
26759 LTLIBOBJS=$ac_ltlibobjs
26762 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26763 as_fn_error "conditional \"onestep\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26766 if test -n "$EXEEXT"; then
26767 am__EXEEXT_TRUE=
26768 am__EXEEXT_FALSE='#'
26769 else
26770 am__EXEEXT_TRUE='#'
26771 am__EXEEXT_FALSE=
26774 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26775 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26779 as_fn_error "conditional \"AMDEP\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26783 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26787 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26790 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26791 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26794 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26795 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26798 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26799 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26802 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26803 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26806 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26807 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26810 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26811 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26814 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26815 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26818 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26819 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26822 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26823 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26827 : ${CONFIG_STATUS=./config.status}
26828 ac_write_fail=0
26829 ac_clean_files_save=$ac_clean_files
26830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26833 as_write_fail=0
26834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26835 #! $SHELL
26836 # Generated by $as_me.
26837 # Run this file to recreate the current configuration.
26838 # Compiler output produced by configure, useful for debugging
26839 # configure, is in config.log if it exists.
26841 debug=false
26842 ac_cs_recheck=false
26843 ac_cs_silent=false
26845 SHELL=\${CONFIG_SHELL-$SHELL}
26846 export SHELL
26847 _ASEOF
26848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26849 ## -------------------- ##
26850 ## M4sh Initialization. ##
26851 ## -------------------- ##
26853 # Be more Bourne compatible
26854 DUALCASE=1; export DUALCASE # for MKS sh
26855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26856 emulate sh
26857 NULLCMD=:
26858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26859 # is contrary to our usage. Disable this feature.
26860 alias -g '${1+"$@"}'='"$@"'
26861 setopt NO_GLOB_SUBST
26862 else
26863 case `(set -o) 2>/dev/null` in #(
26864 *posix*) :
26865 set -o posix ;; #(
26866 *) :
26868 esac
26872 as_nl='
26874 export as_nl
26875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26879 # Prefer a ksh shell builtin over an external printf program on Solaris,
26880 # but without wasting forks for bash or zsh.
26881 if test -z "$BASH_VERSION$ZSH_VERSION" \
26882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26883 as_echo='print -r --'
26884 as_echo_n='print -rn --'
26885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26886 as_echo='printf %s\n'
26887 as_echo_n='printf %s'
26888 else
26889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26891 as_echo_n='/usr/ucb/echo -n'
26892 else
26893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26894 as_echo_n_body='eval
26895 arg=$1;
26896 case $arg in #(
26897 *"$as_nl"*)
26898 expr "X$arg" : "X\\(.*\\)$as_nl";
26899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26900 esac;
26901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26903 export as_echo_n_body
26904 as_echo_n='sh -c $as_echo_n_body as_echo'
26906 export as_echo_body
26907 as_echo='sh -c $as_echo_body as_echo'
26910 # The user is always right.
26911 if test "${PATH_SEPARATOR+set}" != set; then
26912 PATH_SEPARATOR=:
26913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26915 PATH_SEPARATOR=';'
26920 # IFS
26921 # We need space, tab and new line, in precisely that order. Quoting is
26922 # there to prevent editors from complaining about space-tab.
26923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26924 # splitting by setting IFS to empty value.)
26925 IFS=" "" $as_nl"
26927 # Find who we are. Look in the path if we contain no directory separator.
26928 case $0 in #((
26929 *[\\/]* ) as_myself=$0 ;;
26930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26931 for as_dir in $PATH
26933 IFS=$as_save_IFS
26934 test -z "$as_dir" && as_dir=.
26935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26936 done
26937 IFS=$as_save_IFS
26940 esac
26941 # We did not find ourselves, most probably we were run as `sh COMMAND'
26942 # in which case we are not to be found in the path.
26943 if test "x$as_myself" = x; then
26944 as_myself=$0
26946 if test ! -f "$as_myself"; then
26947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26948 exit 1
26951 # Unset variables that we do not need and which cause bugs (e.g. in
26952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26953 # suppresses any "Segmentation fault" message there. '((' could
26954 # trigger a bug in pdksh 5.2.14.
26955 for as_var in BASH_ENV ENV MAIL MAILPATH
26956 do eval test x\${$as_var+set} = xset \
26957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26958 done
26959 PS1='$ '
26960 PS2='> '
26961 PS4='+ '
26963 # NLS nuisances.
26964 LC_ALL=C
26965 export LC_ALL
26966 LANGUAGE=C
26967 export LANGUAGE
26969 # CDPATH.
26970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26973 # as_fn_error ERROR [LINENO LOG_FD]
26974 # ---------------------------------
26975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26977 # script with status $?, using 1 if that was 0.
26978 as_fn_error ()
26980 as_status=$?; test $as_status -eq 0 && as_status=1
26981 if test "$3"; then
26982 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26985 $as_echo "$as_me: error: $1" >&2
26986 as_fn_exit $as_status
26987 } # as_fn_error
26990 # as_fn_set_status STATUS
26991 # -----------------------
26992 # Set $? to STATUS, without forking.
26993 as_fn_set_status ()
26995 return $1
26996 } # as_fn_set_status
26998 # as_fn_exit STATUS
26999 # -----------------
27000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27001 as_fn_exit ()
27003 set +e
27004 as_fn_set_status $1
27005 exit $1
27006 } # as_fn_exit
27008 # as_fn_unset VAR
27009 # ---------------
27010 # Portably unset VAR.
27011 as_fn_unset ()
27013 { eval $1=; unset $1;}
27015 as_unset=as_fn_unset
27016 # as_fn_append VAR VALUE
27017 # ----------------------
27018 # Append the text in VALUE to the end of the definition contained in VAR. Take
27019 # advantage of any shell optimizations that allow amortized linear growth over
27020 # repeated appends, instead of the typical quadratic growth present in naive
27021 # implementations.
27022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27023 eval 'as_fn_append ()
27025 eval $1+=\$2
27027 else
27028 as_fn_append ()
27030 eval $1=\$$1\$2
27032 fi # as_fn_append
27034 # as_fn_arith ARG...
27035 # ------------------
27036 # Perform arithmetic evaluation on the ARGs, and store the result in the
27037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27038 # must be portable across $(()) and expr.
27039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27040 eval 'as_fn_arith ()
27042 as_val=$(( $* ))
27044 else
27045 as_fn_arith ()
27047 as_val=`expr "$@" || test $? -eq 1`
27049 fi # as_fn_arith
27052 if expr a : '\(a\)' >/dev/null 2>&1 &&
27053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27054 as_expr=expr
27055 else
27056 as_expr=false
27059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27060 as_basename=basename
27061 else
27062 as_basename=false
27065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27066 as_dirname=dirname
27067 else
27068 as_dirname=false
27071 as_me=`$as_basename -- "$0" ||
27072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27073 X"$0" : 'X\(//\)$' \| \
27074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27075 $as_echo X/"$0" |
27076 sed '/^.*\/\([^/][^/]*\)\/*$/{
27077 s//\1/
27080 /^X\/\(\/\/\)$/{
27081 s//\1/
27084 /^X\/\(\/\).*/{
27085 s//\1/
27088 s/.*/./; q'`
27090 # Avoid depending upon Character Ranges.
27091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27094 as_cr_digits='0123456789'
27095 as_cr_alnum=$as_cr_Letters$as_cr_digits
27097 ECHO_C= ECHO_N= ECHO_T=
27098 case `echo -n x` in #(((((
27099 -n*)
27100 case `echo 'xy\c'` in
27101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27102 xy) ECHO_C='\c';;
27103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27104 ECHO_T=' ';;
27105 esac;;
27107 ECHO_N='-n';;
27108 esac
27110 rm -f conf$$ conf$$.exe conf$$.file
27111 if test -d conf$$.dir; then
27112 rm -f conf$$.dir/conf$$.file
27113 else
27114 rm -f conf$$.dir
27115 mkdir conf$$.dir 2>/dev/null
27117 if (echo >conf$$.file) 2>/dev/null; then
27118 if ln -s conf$$.file conf$$ 2>/dev/null; then
27119 as_ln_s='ln -s'
27120 # ... but there are two gotchas:
27121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27123 # In both cases, we have to default to `cp -p'.
27124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27125 as_ln_s='cp -p'
27126 elif ln conf$$.file conf$$ 2>/dev/null; then
27127 as_ln_s=ln
27128 else
27129 as_ln_s='cp -p'
27131 else
27132 as_ln_s='cp -p'
27134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27135 rmdir conf$$.dir 2>/dev/null
27138 # as_fn_mkdir_p
27139 # -------------
27140 # Create "$as_dir" as a directory, including parents if necessary.
27141 as_fn_mkdir_p ()
27144 case $as_dir in #(
27145 -*) as_dir=./$as_dir;;
27146 esac
27147 test -d "$as_dir" || eval $as_mkdir_p || {
27148 as_dirs=
27149 while :; do
27150 case $as_dir in #(
27151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27152 *) as_qdir=$as_dir;;
27153 esac
27154 as_dirs="'$as_qdir' $as_dirs"
27155 as_dir=`$as_dirname -- "$as_dir" ||
27156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X"$as_dir" : 'X\(//\)[^/]' \| \
27158 X"$as_dir" : 'X\(//\)$' \| \
27159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27160 $as_echo X"$as_dir" |
27161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27162 s//\1/
27165 /^X\(\/\/\)[^/].*/{
27166 s//\1/
27169 /^X\(\/\/\)$/{
27170 s//\1/
27173 /^X\(\/\).*/{
27174 s//\1/
27177 s/.*/./; q'`
27178 test -d "$as_dir" && break
27179 done
27180 test -z "$as_dirs" || eval "mkdir $as_dirs"
27181 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27184 } # as_fn_mkdir_p
27185 if mkdir -p . 2>/dev/null; then
27186 as_mkdir_p='mkdir -p "$as_dir"'
27187 else
27188 test -d ./-p && rmdir ./-p
27189 as_mkdir_p=false
27192 if test -x / >/dev/null 2>&1; then
27193 as_test_x='test -x'
27194 else
27195 if ls -dL / >/dev/null 2>&1; then
27196 as_ls_L_option=L
27197 else
27198 as_ls_L_option=
27200 as_test_x='
27201 eval sh -c '\''
27202 if test -d "$1"; then
27203 test -d "$1/.";
27204 else
27205 case $1 in #(
27206 -*)set "./$1";;
27207 esac;
27208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27209 ???[sx]*):;;*)false;;esac;fi
27210 '\'' sh
27213 as_executable_p=$as_test_x
27215 # Sed expression to map a string onto a valid CPP name.
27216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27218 # Sed expression to map a string onto a valid variable name.
27219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27222 exec 6>&1
27223 ## ----------------------------------- ##
27224 ## Main body of $CONFIG_STATUS script. ##
27225 ## ----------------------------------- ##
27226 _ASEOF
27227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27230 # Save the log message, to keep $0 and so on meaningful, and to
27231 # report actual input values of CONFIG_FILES etc. instead of their
27232 # values after options handling.
27233 ac_log="
27234 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27235 generated by GNU Autoconf 2.64. Invocation command line was
27237 CONFIG_FILES = $CONFIG_FILES
27238 CONFIG_HEADERS = $CONFIG_HEADERS
27239 CONFIG_LINKS = $CONFIG_LINKS
27240 CONFIG_COMMANDS = $CONFIG_COMMANDS
27241 $ $0 $@
27243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27246 _ACEOF
27248 case $ac_config_files in *"
27249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27250 esac
27252 case $ac_config_headers in *"
27253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27254 esac
27257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27258 # Files that config.status was made for.
27259 config_files="$ac_config_files"
27260 config_headers="$ac_config_headers"
27261 config_commands="$ac_config_commands"
27263 _ACEOF
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27266 ac_cs_usage="\
27267 \`$as_me' instantiates files and other configuration actions
27268 from templates according to the current configuration. Unless the files
27269 and actions are specified as TAGs, all are instantiated by default.
27271 Usage: $0 [OPTION]... [TAG]...
27273 -h, --help print this help, then exit
27274 -V, --version print version number and configuration settings, then exit
27275 -q, --quiet, --silent
27276 do not print progress messages
27277 -d, --debug don't remove temporary files
27278 --recheck update $as_me by reconfiguring in the same conditions
27279 --file=FILE[:TEMPLATE]
27280 instantiate the configuration file FILE
27281 --header=FILE[:TEMPLATE]
27282 instantiate the configuration header FILE
27284 Configuration files:
27285 $config_files
27287 Configuration headers:
27288 $config_headers
27290 Configuration commands:
27291 $config_commands
27293 Report bugs to the package provider.
27294 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27295 General help using GNU software: <http://www.gnu.org/gethelp/>."
27297 _ACEOF
27298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27299 ac_cs_version="\\
27300 GNU Fortran Runtime Library config.status 0.3
27301 configured by $0, generated by GNU Autoconf 2.64,
27302 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27304 Copyright (C) 2009 Free Software Foundation, Inc.
27305 This config.status script is free software; the Free Software Foundation
27306 gives unlimited permission to copy, distribute and modify it."
27308 ac_pwd='$ac_pwd'
27309 srcdir='$srcdir'
27310 INSTALL='$INSTALL'
27311 MKDIR_P='$MKDIR_P'
27312 AWK='$AWK'
27313 test -n "\$AWK" || AWK=awk
27314 _ACEOF
27316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27317 # The default lists apply if the user does not specify any file.
27318 ac_need_defaults=:
27319 while test $# != 0
27321 case $1 in
27322 --*=*)
27323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27325 ac_shift=:
27328 ac_option=$1
27329 ac_optarg=$2
27330 ac_shift=shift
27332 esac
27334 case $ac_option in
27335 # Handling of the options.
27336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27337 ac_cs_recheck=: ;;
27338 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27339 $as_echo "$ac_cs_version"; exit ;;
27340 --debug | --debu | --deb | --de | --d | -d )
27341 debug=: ;;
27342 --file | --fil | --fi | --f )
27343 $ac_shift
27344 case $ac_optarg in
27345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27346 esac
27347 as_fn_append CONFIG_FILES " '$ac_optarg'"
27348 ac_need_defaults=false;;
27349 --header | --heade | --head | --hea )
27350 $ac_shift
27351 case $ac_optarg in
27352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27353 esac
27354 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27355 ac_need_defaults=false;;
27356 --he | --h)
27357 # Conflict between --help and --header
27358 as_fn_error "ambiguous option: \`$1'
27359 Try \`$0 --help' for more information.";;
27360 --help | --hel | -h )
27361 $as_echo "$ac_cs_usage"; exit ;;
27362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27364 ac_cs_silent=: ;;
27366 # This is an error.
27367 -*) as_fn_error "unrecognized option: \`$1'
27368 Try \`$0 --help' for more information." ;;
27370 *) as_fn_append ac_config_targets " $1"
27371 ac_need_defaults=false ;;
27373 esac
27374 shift
27375 done
27377 ac_configure_extra_args=
27379 if $ac_cs_silent; then
27380 exec 6>/dev/null
27381 ac_configure_extra_args="$ac_configure_extra_args --silent"
27384 _ACEOF
27385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27386 if \$ac_cs_recheck; then
27387 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27388 shift
27389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27390 CONFIG_SHELL='$SHELL'
27391 export CONFIG_SHELL
27392 exec "\$@"
27395 _ACEOF
27396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27397 exec 5>>config.log
27399 echo
27400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27401 ## Running $as_me. ##
27402 _ASBOX
27403 $as_echo "$ac_log"
27404 } >&5
27406 _ACEOF
27407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27409 # INIT-COMMANDS
27412 srcdir="$srcdir"
27413 host="$host"
27414 target="$target"
27415 with_multisubdir="$with_multisubdir"
27416 with_multisrctop="$with_multisrctop"
27417 with_target_subdir="$with_target_subdir"
27418 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27419 multi_basedir="$multi_basedir"
27420 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27421 CC="$CC"
27422 CXX="$CXX"
27423 GFORTRAN="$GFORTRAN"
27424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27427 # The HP-UX ksh and POSIX shell print the target directory to stdout
27428 # if CDPATH is set.
27429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27431 sed_quote_subst='$sed_quote_subst'
27432 double_quote_subst='$double_quote_subst'
27433 delay_variable_subst='$delay_variable_subst'
27434 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27435 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27436 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27437 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27438 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27439 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27440 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27441 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27442 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27443 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27444 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27445 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27446 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27447 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27448 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27449 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27450 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27451 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27452 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27453 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27454 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27455 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27456 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27457 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27458 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27459 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27460 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27461 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27462 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27463 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27464 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27467 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27468 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27482 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"`'
27483 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27484 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27485 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27486 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27487 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27488 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27489 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27490 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27491 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27492 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27493 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27494 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27495 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27496 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27497 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27498 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27499 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27500 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27501 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27502 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27503 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27504 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27505 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27506 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27507 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27508 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27509 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27510 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27511 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27512 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27513 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27514 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27515 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27516 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27517 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27518 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27519 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27520 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27521 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27522 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27523 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27524 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27525 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27526 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27527 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27528 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27529 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27530 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27531 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27532 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27533 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27534 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27535 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27536 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27537 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27538 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27539 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27540 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27541 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27542 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27543 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27544 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27545 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27546 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27547 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27548 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27549 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27550 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27551 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27552 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27553 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27554 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27555 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27556 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27557 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27558 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27559 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27560 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27561 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27562 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27563 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27564 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27565 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27566 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27567 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27568 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27569 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27570 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27571 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27572 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27573 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27574 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27575 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27576 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27577 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27578 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27579 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27580 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27581 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27582 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27583 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27584 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27585 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27586 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27587 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27588 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27589 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27590 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27591 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27592 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27593 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27594 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27595 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27596 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27597 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27598 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27599 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27600 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27601 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27602 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27603 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27604 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27605 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27606 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27607 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27608 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27610 LTCC='$LTCC'
27611 LTCFLAGS='$LTCFLAGS'
27612 compiler='$compiler_DEFAULT'
27614 # A function that is used when there is no print builtin or printf.
27615 func_fallback_echo ()
27617 eval 'cat <<_LTECHO_EOF
27619 _LTECHO_EOF'
27622 # Quote evaled strings.
27623 for var in SED \
27624 GREP \
27625 EGREP \
27626 FGREP \
27627 SHELL \
27628 ECHO \
27629 LD \
27630 NM \
27631 LN_S \
27632 lt_SP2NL \
27633 lt_NL2SP \
27634 reload_flag \
27635 OBJDUMP \
27636 deplibs_check_method \
27637 file_magic_cmd \
27638 AR \
27639 AR_FLAGS \
27640 STRIP \
27641 RANLIB \
27642 CC \
27643 CFLAGS \
27644 compiler \
27645 lt_cv_sys_global_symbol_pipe \
27646 lt_cv_sys_global_symbol_to_cdecl \
27647 lt_cv_sys_global_symbol_to_c_name_address \
27648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27649 lt_prog_compiler_no_builtin_flag \
27650 lt_prog_compiler_wl \
27651 lt_prog_compiler_pic \
27652 lt_prog_compiler_static \
27653 lt_cv_prog_compiler_c_o \
27654 need_locks \
27655 DSYMUTIL \
27656 NMEDIT \
27657 LIPO \
27658 OTOOL \
27659 OTOOL64 \
27660 shrext_cmds \
27661 export_dynamic_flag_spec \
27662 whole_archive_flag_spec \
27663 compiler_needs_object \
27664 with_gnu_ld \
27665 allow_undefined_flag \
27666 no_undefined_flag \
27667 hardcode_libdir_flag_spec \
27668 hardcode_libdir_flag_spec_ld \
27669 hardcode_libdir_separator \
27670 fix_srcfile_path \
27671 exclude_expsyms \
27672 include_expsyms \
27673 file_list_spec \
27674 variables_saved_for_relink \
27675 libname_spec \
27676 library_names_spec \
27677 soname_spec \
27678 install_override_mode \
27679 finish_eval \
27680 old_striplib \
27681 striplib \
27682 compiler_lib_search_dirs \
27683 predep_objects \
27684 postdep_objects \
27685 predeps \
27686 postdeps \
27687 compiler_lib_search_path \
27688 LD_FC \
27689 reload_flag_FC \
27690 compiler_FC \
27691 lt_prog_compiler_no_builtin_flag_FC \
27692 lt_prog_compiler_wl_FC \
27693 lt_prog_compiler_pic_FC \
27694 lt_prog_compiler_static_FC \
27695 lt_cv_prog_compiler_c_o_FC \
27696 export_dynamic_flag_spec_FC \
27697 whole_archive_flag_spec_FC \
27698 compiler_needs_object_FC \
27699 with_gnu_ld_FC \
27700 allow_undefined_flag_FC \
27701 no_undefined_flag_FC \
27702 hardcode_libdir_flag_spec_FC \
27703 hardcode_libdir_flag_spec_ld_FC \
27704 hardcode_libdir_separator_FC \
27705 fix_srcfile_path_FC \
27706 exclude_expsyms_FC \
27707 include_expsyms_FC \
27708 file_list_spec_FC \
27709 compiler_lib_search_dirs_FC \
27710 predep_objects_FC \
27711 postdep_objects_FC \
27712 predeps_FC \
27713 postdeps_FC \
27714 compiler_lib_search_path_FC; do
27715 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27716 *[\\\\\\\`\\"\\\$]*)
27717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27722 esac
27723 done
27725 # Double-quote double-evaled strings.
27726 for var in reload_cmds \
27727 old_postinstall_cmds \
27728 old_postuninstall_cmds \
27729 old_archive_cmds \
27730 extract_expsyms_cmds \
27731 old_archive_from_new_cmds \
27732 old_archive_from_expsyms_cmds \
27733 archive_cmds \
27734 archive_expsym_cmds \
27735 module_cmds \
27736 module_expsym_cmds \
27737 export_symbols_cmds \
27738 prelink_cmds \
27739 postinstall_cmds \
27740 postuninstall_cmds \
27741 finish_cmds \
27742 sys_lib_search_path_spec \
27743 sys_lib_dlsearch_path_spec \
27744 reload_cmds_FC \
27745 old_archive_cmds_FC \
27746 old_archive_from_new_cmds_FC \
27747 old_archive_from_expsyms_cmds_FC \
27748 archive_cmds_FC \
27749 archive_expsym_cmds_FC \
27750 module_cmds_FC \
27751 module_expsym_cmds_FC \
27752 export_symbols_cmds_FC \
27753 prelink_cmds_FC; do
27754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27755 *[\\\\\\\`\\"\\\$]*)
27756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27761 esac
27762 done
27764 ac_aux_dir='$ac_aux_dir'
27765 xsi_shell='$xsi_shell'
27766 lt_shell_append='$lt_shell_append'
27768 # See if we are running on zsh, and set the options which allow our
27769 # commands through without removal of \ escapes INIT.
27770 if test -n "\${ZSH_VERSION+set}" ; then
27771 setopt NO_GLOB_SUBST
27775 PACKAGE='$PACKAGE'
27776 VERSION='$VERSION'
27777 TIMESTAMP='$TIMESTAMP'
27778 RM='$RM'
27779 ofile='$ofile'
27786 GCC="$GCC"
27787 CC="$CC"
27788 acx_cv_header_stdint="$acx_cv_header_stdint"
27789 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27790 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27791 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27792 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27793 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27794 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27795 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27796 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27797 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27798 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27799 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27800 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27801 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27804 _ACEOF
27806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27808 # Handling of arguments.
27809 for ac_config_target in $ac_config_targets
27811 case $ac_config_target in
27812 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27813 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27814 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27815 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27816 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27818 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27820 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27821 esac
27822 done
27825 # If the user did not use the arguments to specify the items to instantiate,
27826 # then the envvar interface is used. Set only those that are not.
27827 # We use the long form for the default assignment because of an extremely
27828 # bizarre bug on SunOS 4.1.3.
27829 if $ac_need_defaults; then
27830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27835 # Have a temporary directory for convenience. Make it in the build tree
27836 # simply because there is no reason against having it here, and in addition,
27837 # creating and moving files from /tmp can sometimes cause problems.
27838 # Hook for its removal unless debugging.
27839 # Note that there is a small window in which the directory will not be cleaned:
27840 # after its creation but before its name has been assigned to `$tmp'.
27841 $debug ||
27843 tmp=
27844 trap 'exit_status=$?
27845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27847 trap 'as_fn_exit 1' 1 2 13 15
27849 # Create a (secure) tmp directory for tmp files.
27852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27853 test -n "$tmp" && test -d "$tmp"
27854 } ||
27856 tmp=./conf$$-$RANDOM
27857 (umask 077 && mkdir "$tmp")
27858 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27860 # Set up the scripts for CONFIG_FILES section.
27861 # No need to generate them if there are no CONFIG_FILES.
27862 # This happens for instance with `./config.status config.h'.
27863 if test -n "$CONFIG_FILES"; then
27866 ac_cr=`echo X | tr X '\015'`
27867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27868 # But we know of no other shell where ac_cr would be empty at this
27869 # point, so we can use a bashism as a fallback.
27870 if test "x$ac_cr" = x; then
27871 eval ac_cr=\$\'\\r\'
27873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27875 ac_cs_awk_cr='\r'
27876 else
27877 ac_cs_awk_cr=$ac_cr
27880 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27881 _ACEOF
27885 echo "cat >conf$$subs.awk <<_ACEOF" &&
27886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27887 echo "_ACEOF"
27888 } >conf$$subs.sh ||
27889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27891 ac_delim='%!_!# '
27892 for ac_last_try in false false false false false :; do
27893 . ./conf$$subs.sh ||
27894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27897 if test $ac_delim_n = $ac_delim_num; then
27898 break
27899 elif $ac_last_try; then
27900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27901 else
27902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27904 done
27905 rm -f conf$$subs.sh
27907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27908 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27909 _ACEOF
27910 sed -n '
27912 s/^/S["/; s/!.*/"]=/
27915 s/^[^!]*!//
27916 :repl
27917 t repl
27918 s/'"$ac_delim"'$//
27919 t delim
27922 s/\(.\{148\}\).*/\1/
27923 t more1
27924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27927 b repl
27928 :more1
27929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27932 s/.\{148\}//
27933 t nl
27934 :delim
27936 s/\(.\{148\}\).*/\1/
27937 t more2
27938 s/["\\]/\\&/g; s/^/"/; s/$/"/
27941 :more2
27942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27945 s/.\{148\}//
27946 t delim
27947 ' <conf$$subs.awk | sed '
27948 /^[^""]/{
27950 s/\n//
27952 ' >>$CONFIG_STATUS || ac_write_fail=1
27953 rm -f conf$$subs.awk
27954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27955 _ACAWK
27956 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27957 for (key in S) S_is_set[key] = 1
27958 FS = "\a"
27962 line = $ 0
27963 nfields = split(line, field, "@")
27964 substed = 0
27965 len = length(field[1])
27966 for (i = 2; i < nfields; i++) {
27967 key = field[i]
27968 keylen = length(key)
27969 if (S_is_set[key]) {
27970 value = S[key]
27971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27972 len += length(value) + length(field[++i])
27973 substed = 1
27974 } else
27975 len += 1 + keylen
27978 print line
27981 _ACAWK
27982 _ACEOF
27983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27986 else
27988 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27989 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27990 _ACEOF
27992 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27993 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27994 # trailing colons and then remove the whole line if VPATH becomes empty
27995 # (actually we leave an empty line to preserve line numbers).
27996 if test "x$srcdir" = x.; then
27997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27998 s/:*\$(srcdir):*/:/
27999 s/:*\${srcdir}:*/:/
28000 s/:*@srcdir@:*/:/
28001 s/^\([^=]*=[ ]*\):*/\1/
28002 s/:*$//
28003 s/^[^=]*=[ ]*$//
28007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28008 fi # test -n "$CONFIG_FILES"
28010 # Set up the scripts for CONFIG_HEADERS section.
28011 # No need to generate them if there are no CONFIG_HEADERS.
28012 # This happens for instance with `./config.status Makefile'.
28013 if test -n "$CONFIG_HEADERS"; then
28014 cat >"$tmp/defines.awk" <<\_ACAWK ||
28015 BEGIN {
28016 _ACEOF
28018 # Transform confdefs.h into an awk script `defines.awk', embedded as
28019 # here-document in config.status, that substitutes the proper values into
28020 # config.h.in to produce config.h.
28022 # Create a delimiter string that does not exist in confdefs.h, to ease
28023 # handling of long lines.
28024 ac_delim='%!_!# '
28025 for ac_last_try in false false :; do
28026 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28027 if test -z "$ac_t"; then
28028 break
28029 elif $ac_last_try; then
28030 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28031 else
28032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28034 done
28036 # For the awk script, D is an array of macro values keyed by name,
28037 # likewise P contains macro parameters if any. Preserve backslash
28038 # newline sequences.
28040 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28041 sed -n '
28042 s/.\{148\}/&'"$ac_delim"'/g
28043 t rset
28044 :rset
28045 s/^[ ]*#[ ]*define[ ][ ]*/ /
28046 t def
28048 :def
28049 s/\\$//
28050 t bsnl
28051 s/["\\]/\\&/g
28052 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28053 D["\1"]=" \3"/p
28054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28056 :bsnl
28057 s/["\\]/\\&/g
28058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28059 D["\1"]=" \3\\\\\\n"\\/p
28060 t cont
28061 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28062 t cont
28064 :cont
28066 s/.\{148\}/&'"$ac_delim"'/g
28067 t clear
28068 :clear
28069 s/\\$//
28070 t bsnlc
28071 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28073 :bsnlc
28074 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28075 b cont
28076 ' <confdefs.h | sed '
28077 s/'"$ac_delim"'/"\\\
28078 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28081 for (key in D) D_is_set[key] = 1
28082 FS = "\a"
28084 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28085 line = \$ 0
28086 split(line, arg, " ")
28087 if (arg[1] == "#") {
28088 defundef = arg[2]
28089 mac1 = arg[3]
28090 } else {
28091 defundef = substr(arg[1], 2)
28092 mac1 = arg[2]
28094 split(mac1, mac2, "(") #)
28095 macro = mac2[1]
28096 prefix = substr(line, 1, index(line, defundef) - 1)
28097 if (D_is_set[macro]) {
28098 # Preserve the white space surrounding the "#".
28099 print prefix "define", macro P[macro] D[macro]
28100 next
28101 } else {
28102 # Replace #undef with comments. This is necessary, for example,
28103 # in the case of _POSIX_SOURCE, which is predefined and required
28104 # on some systems where configure will not decide to define it.
28105 if (defundef == "undef") {
28106 print "/*", prefix defundef, macro, "*/"
28107 next
28111 { print }
28112 _ACAWK
28113 _ACEOF
28114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28115 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28116 fi # test -n "$CONFIG_HEADERS"
28119 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28120 shift
28121 for ac_tag
28123 case $ac_tag in
28124 :[FHLC]) ac_mode=$ac_tag; continue;;
28125 esac
28126 case $ac_mode$ac_tag in
28127 :[FHL]*:*);;
28128 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28129 :[FH]-) ac_tag=-:-;;
28130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28131 esac
28132 ac_save_IFS=$IFS
28133 IFS=:
28134 set x $ac_tag
28135 IFS=$ac_save_IFS
28136 shift
28137 ac_file=$1
28138 shift
28140 case $ac_mode in
28141 :L) ac_source=$1;;
28142 :[FH])
28143 ac_file_inputs=
28144 for ac_f
28146 case $ac_f in
28147 -) ac_f="$tmp/stdin";;
28148 *) # Look for the file first in the build tree, then in the source tree
28149 # (if the path is not absolute). The absolute path cannot be DOS-style,
28150 # because $ac_f cannot contain `:'.
28151 test -f "$ac_f" ||
28152 case $ac_f in
28153 [\\/$]*) false;;
28154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28155 esac ||
28156 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28157 esac
28158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28159 as_fn_append ac_file_inputs " '$ac_f'"
28160 done
28162 # Let's still pretend it is `configure' which instantiates (i.e., don't
28163 # use $as_me), people would be surprised to read:
28164 # /* config.h. Generated by config.status. */
28165 configure_input='Generated from '`
28166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28167 `' by configure.'
28168 if test x"$ac_file" != x-; then
28169 configure_input="$ac_file. $configure_input"
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28171 $as_echo "$as_me: creating $ac_file" >&6;}
28173 # Neutralize special characters interpreted by sed in replacement strings.
28174 case $configure_input in #(
28175 *\&* | *\|* | *\\* )
28176 ac_sed_conf_input=`$as_echo "$configure_input" |
28177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28178 *) ac_sed_conf_input=$configure_input;;
28179 esac
28181 case $ac_tag in
28182 *:-:* | *:-) cat >"$tmp/stdin" \
28183 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28184 esac
28186 esac
28188 ac_dir=`$as_dirname -- "$ac_file" ||
28189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28190 X"$ac_file" : 'X\(//\)[^/]' \| \
28191 X"$ac_file" : 'X\(//\)$' \| \
28192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28193 $as_echo X"$ac_file" |
28194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28195 s//\1/
28198 /^X\(\/\/\)[^/].*/{
28199 s//\1/
28202 /^X\(\/\/\)$/{
28203 s//\1/
28206 /^X\(\/\).*/{
28207 s//\1/
28210 s/.*/./; q'`
28211 as_dir="$ac_dir"; as_fn_mkdir_p
28212 ac_builddir=.
28214 case "$ac_dir" in
28215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28218 # A ".." for each directory in $ac_dir_suffix.
28219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28220 case $ac_top_builddir_sub in
28221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28223 esac ;;
28224 esac
28225 ac_abs_top_builddir=$ac_pwd
28226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28227 # for backward compatibility:
28228 ac_top_builddir=$ac_top_build_prefix
28230 case $srcdir in
28231 .) # We are building in place.
28232 ac_srcdir=.
28233 ac_top_srcdir=$ac_top_builddir_sub
28234 ac_abs_top_srcdir=$ac_pwd ;;
28235 [\\/]* | ?:[\\/]* ) # Absolute name.
28236 ac_srcdir=$srcdir$ac_dir_suffix;
28237 ac_top_srcdir=$srcdir
28238 ac_abs_top_srcdir=$srcdir ;;
28239 *) # Relative name.
28240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28241 ac_top_srcdir=$ac_top_build_prefix$srcdir
28242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28243 esac
28244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28247 case $ac_mode in
28250 # CONFIG_FILE
28253 case $INSTALL in
28254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28256 esac
28257 ac_MKDIR_P=$MKDIR_P
28258 case $MKDIR_P in
28259 [\\/$]* | ?:[\\/]* ) ;;
28260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28261 esac
28262 _ACEOF
28264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28265 # If the template does not know about datarootdir, expand it.
28266 # FIXME: This hack should be removed a few years after 2.60.
28267 ac_datarootdir_hack=; ac_datarootdir_seen=
28268 ac_sed_dataroot='
28269 /datarootdir/ {
28273 /@datadir@/p
28274 /@docdir@/p
28275 /@infodir@/p
28276 /@localedir@/p
28277 /@mandir@/p'
28278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28279 *datarootdir*) ac_datarootdir_seen=yes;;
28280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28283 _ACEOF
28284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28285 ac_datarootdir_hack='
28286 s&@datadir@&$datadir&g
28287 s&@docdir@&$docdir&g
28288 s&@infodir@&$infodir&g
28289 s&@localedir@&$localedir&g
28290 s&@mandir@&$mandir&g
28291 s&\\\${datarootdir}&$datarootdir&g' ;;
28292 esac
28293 _ACEOF
28295 # Neutralize VPATH when `$srcdir' = `.'.
28296 # Shell code in configure.ac might set extrasub.
28297 # FIXME: do we really want to maintain this feature?
28298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28299 ac_sed_extra="$ac_vpsub
28300 $extrasub
28301 _ACEOF
28302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28305 s|@configure_input@|$ac_sed_conf_input|;t t
28306 s&@top_builddir@&$ac_top_builddir_sub&;t t
28307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28308 s&@srcdir@&$ac_srcdir&;t t
28309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28310 s&@top_srcdir@&$ac_top_srcdir&;t t
28311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28312 s&@builddir@&$ac_builddir&;t t
28313 s&@abs_builddir@&$ac_abs_builddir&;t t
28314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28315 s&@INSTALL@&$ac_INSTALL&;t t
28316 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28317 $ac_datarootdir_hack
28319 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28320 || as_fn_error "could not create $ac_file" "$LINENO" 5
28322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28323 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28326 which seems to be undefined. Please make sure it is defined." >&5
28327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28328 which seems to be undefined. Please make sure it is defined." >&2;}
28330 rm -f "$tmp/stdin"
28331 case $ac_file in
28332 -) cat "$tmp/out" && rm -f "$tmp/out";;
28333 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28334 esac \
28335 || as_fn_error "could not create $ac_file" "$LINENO" 5
28339 # CONFIG_HEADER
28341 if test x"$ac_file" != x-; then
28343 $as_echo "/* $configure_input */" \
28344 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28345 } >"$tmp/config.h" \
28346 || as_fn_error "could not create $ac_file" "$LINENO" 5
28347 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28350 else
28351 rm -f "$ac_file"
28352 mv "$tmp/config.h" "$ac_file" \
28353 || as_fn_error "could not create $ac_file" "$LINENO" 5
28355 else
28356 $as_echo "/* $configure_input */" \
28357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28358 || as_fn_error "could not create -" "$LINENO" 5
28360 # Compute "$ac_file"'s index in $config_headers.
28361 _am_arg="$ac_file"
28362 _am_stamp_count=1
28363 for _am_header in $config_headers :; do
28364 case $_am_header in
28365 $_am_arg | $_am_arg:* )
28366 break ;;
28368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28369 esac
28370 done
28371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28373 X"$_am_arg" : 'X\(//\)[^/]' \| \
28374 X"$_am_arg" : 'X\(//\)$' \| \
28375 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28376 $as_echo X"$_am_arg" |
28377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28378 s//\1/
28381 /^X\(\/\/\)[^/].*/{
28382 s//\1/
28385 /^X\(\/\/\)$/{
28386 s//\1/
28389 /^X\(\/\).*/{
28390 s//\1/
28393 s/.*/./; q'`/stamp-h$_am_stamp_count
28396 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28397 $as_echo "$as_me: executing $ac_file commands" >&6;}
28399 esac
28402 case $ac_file$ac_mode in
28403 "default-1":C)
28404 # Only add multilib support code if we just rebuilt the top-level
28405 # Makefile.
28406 case " $CONFIG_FILES " in
28407 *" Makefile "*)
28408 ac_file=Makefile . ${multi_basedir}/config-ml.in
28410 esac ;;
28411 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28412 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28413 # are listed without --file. Let's play safe and only enable the eval
28414 # if we detect the quoting.
28415 case $CONFIG_FILES in
28416 *\'*) eval set x "$CONFIG_FILES" ;;
28417 *) set x $CONFIG_FILES ;;
28418 esac
28419 shift
28420 for mf
28422 # Strip MF so we end up with the name of the file.
28423 mf=`echo "$mf" | sed -e 's/:.*$//'`
28424 # Check whether this is an Automake generated Makefile or not.
28425 # We used to match only the files named `Makefile.in', but
28426 # some people rename them; so instead we look at the file content.
28427 # Grep'ing the first line is not enough: some people post-process
28428 # each Makefile.in and add a new line on top of each file to say so.
28429 # Grep'ing the whole file is not good either: AIX grep has a line
28430 # limit of 2048, but all sed's we know have understand at least 4000.
28431 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28432 dirpart=`$as_dirname -- "$mf" ||
28433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28434 X"$mf" : 'X\(//\)[^/]' \| \
28435 X"$mf" : 'X\(//\)$' \| \
28436 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28437 $as_echo X"$mf" |
28438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28439 s//\1/
28442 /^X\(\/\/\)[^/].*/{
28443 s//\1/
28446 /^X\(\/\/\)$/{
28447 s//\1/
28450 /^X\(\/\).*/{
28451 s//\1/
28454 s/.*/./; q'`
28455 else
28456 continue
28458 # Extract the definition of DEPDIR, am__include, and am__quote
28459 # from the Makefile without running `make'.
28460 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28461 test -z "$DEPDIR" && continue
28462 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28463 test -z "am__include" && continue
28464 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28465 # When using ansi2knr, U may be empty or an underscore; expand it
28466 U=`sed -n 's/^U = //p' < "$mf"`
28467 # Find all dependency output files, they are included files with
28468 # $(DEPDIR) in their names. We invoke sed twice because it is the
28469 # simplest approach to changing $(DEPDIR) to its actual value in the
28470 # expansion.
28471 for file in `sed -n "
28472 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28474 # Make sure the directory exists.
28475 test -f "$dirpart/$file" && continue
28476 fdir=`$as_dirname -- "$file" ||
28477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478 X"$file" : 'X\(//\)[^/]' \| \
28479 X"$file" : 'X\(//\)$' \| \
28480 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28481 $as_echo X"$file" |
28482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28483 s//\1/
28486 /^X\(\/\/\)[^/].*/{
28487 s//\1/
28490 /^X\(\/\/\)$/{
28491 s//\1/
28494 /^X\(\/\).*/{
28495 s//\1/
28498 s/.*/./; q'`
28499 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28500 # echo "creating $dirpart/$file"
28501 echo '# dummy' > "$dirpart/$file"
28502 done
28503 done
28506 "libtool":C)
28508 # See if we are running on zsh, and set the options which allow our
28509 # commands through without removal of \ escapes.
28510 if test -n "${ZSH_VERSION+set}" ; then
28511 setopt NO_GLOB_SUBST
28514 cfgfile="${ofile}T"
28515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28516 $RM "$cfgfile"
28518 cat <<_LT_EOF >> "$cfgfile"
28519 #! $SHELL
28521 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28522 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28527 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28528 # Written by Gordon Matzigkeit, 1996
28530 # This file is part of GNU Libtool.
28532 # GNU Libtool is free software; you can redistribute it and/or
28533 # modify it under the terms of the GNU General Public License as
28534 # published by the Free Software Foundation; either version 2 of
28535 # the License, or (at your option) any later version.
28537 # As a special exception to the GNU General Public License,
28538 # if you distribute this file as part of a program or library that
28539 # is built using GNU Libtool, you may include this file under the
28540 # same distribution terms that you use for the rest of that program.
28542 # GNU Libtool is distributed in the hope that it will be useful,
28543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28545 # GNU General Public License for more details.
28547 # You should have received a copy of the GNU General Public License
28548 # along with GNU Libtool; see the file COPYING. If not, a copy
28549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28550 # obtained by writing to the Free Software Foundation, Inc.,
28551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28554 # The names of the tagged configurations supported by this script.
28555 available_tags="FC "
28557 # ### BEGIN LIBTOOL CONFIG
28559 # A sed program that does not truncate output.
28560 SED=$lt_SED
28562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28563 Xsed="\$SED -e 1s/^X//"
28565 # A grep program that handles long lines.
28566 GREP=$lt_GREP
28568 # An ERE matcher.
28569 EGREP=$lt_EGREP
28571 # A literal string matcher.
28572 FGREP=$lt_FGREP
28574 # Shell to use when invoking shell scripts.
28575 SHELL=$lt_SHELL
28577 # An echo program that protects backslashes.
28578 ECHO=$lt_ECHO
28580 # Which release of libtool.m4 was used?
28581 macro_version=$macro_version
28582 macro_revision=$macro_revision
28584 # Whether or not to build shared libraries.
28585 build_libtool_libs=$enable_shared
28587 # Whether or not to build static libraries.
28588 build_old_libs=$enable_static
28590 # What type of objects to build.
28591 pic_mode=$pic_mode
28593 # Whether or not to optimize for fast installation.
28594 fast_install=$enable_fast_install
28596 # The host system.
28597 host_alias=$host_alias
28598 host=$host
28599 host_os=$host_os
28601 # The build system.
28602 build_alias=$build_alias
28603 build=$build
28604 build_os=$build_os
28606 # A BSD- or MS-compatible name lister.
28607 NM=$lt_NM
28609 # Whether we need soft or hard links.
28610 LN_S=$lt_LN_S
28612 # What is the maximum length of a command?
28613 max_cmd_len=$max_cmd_len
28615 # Object file suffix (normally "o").
28616 objext=$ac_objext
28618 # Executable file suffix (normally "").
28619 exeext=$exeext
28621 # whether the shell understands "unset".
28622 lt_unset=$lt_unset
28624 # turn spaces into newlines.
28625 SP2NL=$lt_lt_SP2NL
28627 # turn newlines into spaces.
28628 NL2SP=$lt_lt_NL2SP
28630 # An object symbol dumper.
28631 OBJDUMP=$lt_OBJDUMP
28633 # Method to check whether dependent libraries are shared objects.
28634 deplibs_check_method=$lt_deplibs_check_method
28636 # Command to use when deplibs_check_method == "file_magic".
28637 file_magic_cmd=$lt_file_magic_cmd
28639 # The archiver.
28640 AR=$lt_AR
28641 AR_FLAGS=$lt_AR_FLAGS
28643 # A symbol stripping program.
28644 STRIP=$lt_STRIP
28646 # Commands used to install an old-style archive.
28647 RANLIB=$lt_RANLIB
28648 old_postinstall_cmds=$lt_old_postinstall_cmds
28649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28651 # Whether to use a lock for old archive extraction.
28652 lock_old_archive_extraction=$lock_old_archive_extraction
28654 # A C compiler.
28655 LTCC=$lt_CC
28657 # LTCC compiler flags.
28658 LTCFLAGS=$lt_CFLAGS
28660 # Take the output of nm and produce a listing of raw symbols and C names.
28661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28663 # Transform the output of nm in a proper C declaration.
28664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28666 # Transform the output of nm in a C name address pair.
28667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28669 # Transform the output of nm in a C name address pair when lib prefix is needed.
28670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28672 # The name of the directory that contains temporary libtool files.
28673 objdir=$objdir
28675 # Used to examine libraries when file_magic_cmd begins with "file".
28676 MAGIC_CMD=$MAGIC_CMD
28678 # Must we lock files when doing compilation?
28679 need_locks=$lt_need_locks
28681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28682 DSYMUTIL=$lt_DSYMUTIL
28684 # Tool to change global to local symbols on Mac OS X.
28685 NMEDIT=$lt_NMEDIT
28687 # Tool to manipulate fat objects and archives on Mac OS X.
28688 LIPO=$lt_LIPO
28690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28691 OTOOL=$lt_OTOOL
28693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28694 OTOOL64=$lt_OTOOL64
28696 # Old archive suffix (normally "a").
28697 libext=$libext
28699 # Shared library suffix (normally ".so").
28700 shrext_cmds=$lt_shrext_cmds
28702 # The commands to extract the exported symbol list from a shared archive.
28703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28705 # Variables whose values should be saved in libtool wrapper scripts and
28706 # restored at link time.
28707 variables_saved_for_relink=$lt_variables_saved_for_relink
28709 # Do we need the "lib" prefix for modules?
28710 need_lib_prefix=$need_lib_prefix
28712 # Do we need a version for libraries?
28713 need_version=$need_version
28715 # Library versioning type.
28716 version_type=$version_type
28718 # Shared library runtime path variable.
28719 runpath_var=$runpath_var
28721 # Shared library path variable.
28722 shlibpath_var=$shlibpath_var
28724 # Is shlibpath searched before the hard-coded library search path?
28725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28727 # Format of library name prefix.
28728 libname_spec=$lt_libname_spec
28730 # List of archive names. First name is the real one, the rest are links.
28731 # The last name is the one that the linker finds with -lNAME
28732 library_names_spec=$lt_library_names_spec
28734 # The coded name of the library, if different from the real name.
28735 soname_spec=$lt_soname_spec
28737 # Permission mode override for installation of shared libraries.
28738 install_override_mode=$lt_install_override_mode
28740 # Command to use after installation of a shared archive.
28741 postinstall_cmds=$lt_postinstall_cmds
28743 # Command to use after uninstallation of a shared archive.
28744 postuninstall_cmds=$lt_postuninstall_cmds
28746 # Commands used to finish a libtool library installation in a directory.
28747 finish_cmds=$lt_finish_cmds
28749 # As "finish_cmds", except a single script fragment to be evaled but
28750 # not shown.
28751 finish_eval=$lt_finish_eval
28753 # Whether we should hardcode library paths into libraries.
28754 hardcode_into_libs=$hardcode_into_libs
28756 # Compile-time system search path for libraries.
28757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28759 # Run-time system search path for libraries.
28760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28762 # Whether dlopen is supported.
28763 dlopen_support=$enable_dlopen
28765 # Whether dlopen of programs is supported.
28766 dlopen_self=$enable_dlopen_self
28768 # Whether dlopen of statically linked programs is supported.
28769 dlopen_self_static=$enable_dlopen_self_static
28771 # Commands to strip libraries.
28772 old_striplib=$lt_old_striplib
28773 striplib=$lt_striplib
28776 # The linker used to build libraries.
28777 LD=$lt_LD
28779 # How to create reloadable object files.
28780 reload_flag=$lt_reload_flag
28781 reload_cmds=$lt_reload_cmds
28783 # Commands used to build an old-style archive.
28784 old_archive_cmds=$lt_old_archive_cmds
28786 # A language specific compiler.
28787 CC=$lt_compiler
28789 # Is the compiler the GNU compiler?
28790 with_gcc=$GCC
28792 # Compiler flag to turn off builtin functions.
28793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28795 # How to pass a linker flag through the compiler.
28796 wl=$lt_lt_prog_compiler_wl
28798 # Additional compiler flags for building library objects.
28799 pic_flag=$lt_lt_prog_compiler_pic
28801 # Compiler flag to prevent dynamic linking.
28802 link_static_flag=$lt_lt_prog_compiler_static
28804 # Does compiler simultaneously support -c and -o options?
28805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28807 # Whether or not to add -lc for building shared libraries.
28808 build_libtool_need_lc=$archive_cmds_need_lc
28810 # Whether or not to disallow shared libs when runtime libs are static.
28811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28813 # Compiler flag to allow reflexive dlopens.
28814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28816 # Compiler flag to generate shared objects directly from archives.
28817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28819 # Whether the compiler copes with passing no objects directly.
28820 compiler_needs_object=$lt_compiler_needs_object
28822 # Create an old-style archive from a shared archive.
28823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28825 # Create a temporary old-style archive to link instead of a shared archive.
28826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28828 # Commands used to build a shared archive.
28829 archive_cmds=$lt_archive_cmds
28830 archive_expsym_cmds=$lt_archive_expsym_cmds
28832 # Commands used to build a loadable module if different from building
28833 # a shared archive.
28834 module_cmds=$lt_module_cmds
28835 module_expsym_cmds=$lt_module_expsym_cmds
28837 # Whether we are building with GNU ld or not.
28838 with_gnu_ld=$lt_with_gnu_ld
28840 # Flag that allows shared libraries with undefined symbols to be built.
28841 allow_undefined_flag=$lt_allow_undefined_flag
28843 # Flag that enforces no undefined symbols.
28844 no_undefined_flag=$lt_no_undefined_flag
28846 # Flag to hardcode \$libdir into a binary during linking.
28847 # This must work even if \$libdir does not exist
28848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28850 # If ld is used when linking, flag to hardcode \$libdir into a binary
28851 # during linking. This must work even if \$libdir does not exist.
28852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28854 # Whether we need a single "-rpath" flag with a separated argument.
28855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28858 # DIR into the resulting binary.
28859 hardcode_direct=$hardcode_direct
28861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28862 # DIR into the resulting binary and the resulting library dependency is
28863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28864 # library is relocated.
28865 hardcode_direct_absolute=$hardcode_direct_absolute
28867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28868 # into the resulting binary.
28869 hardcode_minus_L=$hardcode_minus_L
28871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28872 # into the resulting binary.
28873 hardcode_shlibpath_var=$hardcode_shlibpath_var
28875 # Set to "yes" if building a shared library automatically hardcodes DIR
28876 # into the library and all subsequent libraries and executables linked
28877 # against it.
28878 hardcode_automatic=$hardcode_automatic
28880 # Set to yes if linker adds runtime paths of dependent libraries
28881 # to runtime path list.
28882 inherit_rpath=$inherit_rpath
28884 # Whether libtool must link a program against all its dependency libraries.
28885 link_all_deplibs=$link_all_deplibs
28887 # Fix the shell variable \$srcfile for the compiler.
28888 fix_srcfile_path=$lt_fix_srcfile_path
28890 # Set to "yes" if exported symbols are required.
28891 always_export_symbols=$always_export_symbols
28893 # The commands to list exported symbols.
28894 export_symbols_cmds=$lt_export_symbols_cmds
28896 # Symbols that should not be listed in the preloaded symbols.
28897 exclude_expsyms=$lt_exclude_expsyms
28899 # Symbols that must always be exported.
28900 include_expsyms=$lt_include_expsyms
28902 # Commands necessary for linking programs (against libraries) with templates.
28903 prelink_cmds=$lt_prelink_cmds
28905 # Specify filename containing input files.
28906 file_list_spec=$lt_file_list_spec
28908 # How to hardcode a shared library path into an executable.
28909 hardcode_action=$hardcode_action
28911 # The directories searched by this compiler when creating a shared library.
28912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28914 # Dependencies to place before and after the objects being linked to
28915 # create a shared library.
28916 predep_objects=$lt_predep_objects
28917 postdep_objects=$lt_postdep_objects
28918 predeps=$lt_predeps
28919 postdeps=$lt_postdeps
28921 # The library search path used internally by the compiler when linking
28922 # a shared library.
28923 compiler_lib_search_path=$lt_compiler_lib_search_path
28925 # ### END LIBTOOL CONFIG
28927 _LT_EOF
28929 case $host_os in
28930 aix3*)
28931 cat <<\_LT_EOF >> "$cfgfile"
28932 # AIX sometimes has problems with the GCC collect2 program. For some
28933 # reason, if we set the COLLECT_NAMES environment variable, the problems
28934 # vanish in a puff of smoke.
28935 if test "X${COLLECT_NAMES+set}" != Xset; then
28936 COLLECT_NAMES=
28937 export COLLECT_NAMES
28939 _LT_EOF
28941 esac
28944 ltmain="$ac_aux_dir/ltmain.sh"
28947 # We use sed instead of cat because bash on DJGPP gets confused if
28948 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28949 # text mode, it properly converts lines to CR/LF. This bash problem
28950 # is reportedly fixed, but why not run on old versions too?
28951 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28952 || (rm -f "$cfgfile"; exit 1)
28954 case $xsi_shell in
28955 yes)
28956 cat << \_LT_EOF >> "$cfgfile"
28958 # func_dirname file append nondir_replacement
28959 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28960 # otherwise set result to NONDIR_REPLACEMENT.
28961 func_dirname ()
28963 case ${1} in
28964 */*) func_dirname_result="${1%/*}${2}" ;;
28965 * ) func_dirname_result="${3}" ;;
28966 esac
28969 # func_basename file
28970 func_basename ()
28972 func_basename_result="${1##*/}"
28975 # func_dirname_and_basename file append nondir_replacement
28976 # perform func_basename and func_dirname in a single function
28977 # call:
28978 # dirname: Compute the dirname of FILE. If nonempty,
28979 # add APPEND to the result, otherwise set result
28980 # to NONDIR_REPLACEMENT.
28981 # value returned in "$func_dirname_result"
28982 # basename: Compute filename of FILE.
28983 # value retuned in "$func_basename_result"
28984 # Implementation must be kept synchronized with func_dirname
28985 # and func_basename. For efficiency, we do not delegate to
28986 # those functions but instead duplicate the functionality here.
28987 func_dirname_and_basename ()
28989 case ${1} in
28990 */*) func_dirname_result="${1%/*}${2}" ;;
28991 * ) func_dirname_result="${3}" ;;
28992 esac
28993 func_basename_result="${1##*/}"
28996 # func_stripname prefix suffix name
28997 # strip PREFIX and SUFFIX off of NAME.
28998 # PREFIX and SUFFIX must not contain globbing or regex special
28999 # characters, hashes, percent signs, but SUFFIX may contain a leading
29000 # dot (in which case that matches only a dot).
29001 func_stripname ()
29003 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29004 # positional parameters, so assign one to ordinary parameter first.
29005 func_stripname_result=${3}
29006 func_stripname_result=${func_stripname_result#"${1}"}
29007 func_stripname_result=${func_stripname_result%"${2}"}
29010 # func_opt_split
29011 func_opt_split ()
29013 func_opt_split_opt=${1%%=*}
29014 func_opt_split_arg=${1#*=}
29017 # func_lo2o object
29018 func_lo2o ()
29020 case ${1} in
29021 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29022 *) func_lo2o_result=${1} ;;
29023 esac
29026 # func_xform libobj-or-source
29027 func_xform ()
29029 func_xform_result=${1%.*}.lo
29032 # func_arith arithmetic-term...
29033 func_arith ()
29035 func_arith_result=$(( $* ))
29038 # func_len string
29039 # STRING may not start with a hyphen.
29040 func_len ()
29042 func_len_result=${#1}
29045 _LT_EOF
29047 *) # Bourne compatible functions.
29048 cat << \_LT_EOF >> "$cfgfile"
29050 # func_dirname file append nondir_replacement
29051 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29052 # otherwise set result to NONDIR_REPLACEMENT.
29053 func_dirname ()
29055 # Extract subdirectory from the argument.
29056 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29057 if test "X$func_dirname_result" = "X${1}"; then
29058 func_dirname_result="${3}"
29059 else
29060 func_dirname_result="$func_dirname_result${2}"
29064 # func_basename file
29065 func_basename ()
29067 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29071 # func_stripname prefix suffix name
29072 # strip PREFIX and SUFFIX off of NAME.
29073 # PREFIX and SUFFIX must not contain globbing or regex special
29074 # characters, hashes, percent signs, but SUFFIX may contain a leading
29075 # dot (in which case that matches only a dot).
29076 # func_strip_suffix prefix name
29077 func_stripname ()
29079 case ${2} in
29080 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29081 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29082 esac
29085 # sed scripts:
29086 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29087 my_sed_long_arg='1s/^-[^=]*=//'
29089 # func_opt_split
29090 func_opt_split ()
29092 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29093 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29096 # func_lo2o object
29097 func_lo2o ()
29099 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29102 # func_xform libobj-or-source
29103 func_xform ()
29105 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29108 # func_arith arithmetic-term...
29109 func_arith ()
29111 func_arith_result=`expr "$@"`
29114 # func_len string
29115 # STRING may not start with a hyphen.
29116 func_len ()
29118 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29121 _LT_EOF
29122 esac
29124 case $lt_shell_append in
29125 yes)
29126 cat << \_LT_EOF >> "$cfgfile"
29128 # func_append var value
29129 # Append VALUE to the end of shell variable VAR.
29130 func_append ()
29132 eval "$1+=\$2"
29134 _LT_EOF
29137 cat << \_LT_EOF >> "$cfgfile"
29139 # func_append var value
29140 # Append VALUE to the end of shell variable VAR.
29141 func_append ()
29143 eval "$1=\$$1\$2"
29146 _LT_EOF
29148 esac
29151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29152 || (rm -f "$cfgfile"; exit 1)
29154 mv -f "$cfgfile" "$ofile" ||
29155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29156 chmod +x "$ofile"
29159 cat <<_LT_EOF >> "$ofile"
29161 # ### BEGIN LIBTOOL TAG CONFIG: FC
29163 # The linker used to build libraries.
29164 LD=$lt_LD_FC
29166 # How to create reloadable object files.
29167 reload_flag=$lt_reload_flag_FC
29168 reload_cmds=$lt_reload_cmds_FC
29170 # Commands used to build an old-style archive.
29171 old_archive_cmds=$lt_old_archive_cmds_FC
29173 # A language specific compiler.
29174 CC=$lt_compiler_FC
29176 # Is the compiler the GNU compiler?
29177 with_gcc=$GCC_FC
29179 # Compiler flag to turn off builtin functions.
29180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29182 # How to pass a linker flag through the compiler.
29183 wl=$lt_lt_prog_compiler_wl_FC
29185 # Additional compiler flags for building library objects.
29186 pic_flag=$lt_lt_prog_compiler_pic_FC
29188 # Compiler flag to prevent dynamic linking.
29189 link_static_flag=$lt_lt_prog_compiler_static_FC
29191 # Does compiler simultaneously support -c and -o options?
29192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29194 # Whether or not to add -lc for building shared libraries.
29195 build_libtool_need_lc=$archive_cmds_need_lc_FC
29197 # Whether or not to disallow shared libs when runtime libs are static.
29198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29200 # Compiler flag to allow reflexive dlopens.
29201 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29203 # Compiler flag to generate shared objects directly from archives.
29204 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29206 # Whether the compiler copes with passing no objects directly.
29207 compiler_needs_object=$lt_compiler_needs_object_FC
29209 # Create an old-style archive from a shared archive.
29210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29212 # Create a temporary old-style archive to link instead of a shared archive.
29213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29215 # Commands used to build a shared archive.
29216 archive_cmds=$lt_archive_cmds_FC
29217 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29219 # Commands used to build a loadable module if different from building
29220 # a shared archive.
29221 module_cmds=$lt_module_cmds_FC
29222 module_expsym_cmds=$lt_module_expsym_cmds_FC
29224 # Whether we are building with GNU ld or not.
29225 with_gnu_ld=$lt_with_gnu_ld_FC
29227 # Flag that allows shared libraries with undefined symbols to be built.
29228 allow_undefined_flag=$lt_allow_undefined_flag_FC
29230 # Flag that enforces no undefined symbols.
29231 no_undefined_flag=$lt_no_undefined_flag_FC
29233 # Flag to hardcode \$libdir into a binary during linking.
29234 # This must work even if \$libdir does not exist
29235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29237 # If ld is used when linking, flag to hardcode \$libdir into a binary
29238 # during linking. This must work even if \$libdir does not exist.
29239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29241 # Whether we need a single "-rpath" flag with a separated argument.
29242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29244 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29245 # DIR into the resulting binary.
29246 hardcode_direct=$hardcode_direct_FC
29248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29249 # DIR into the resulting binary and the resulting library dependency is
29250 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29251 # library is relocated.
29252 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29254 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29255 # into the resulting binary.
29256 hardcode_minus_L=$hardcode_minus_L_FC
29258 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29259 # into the resulting binary.
29260 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29262 # Set to "yes" if building a shared library automatically hardcodes DIR
29263 # into the library and all subsequent libraries and executables linked
29264 # against it.
29265 hardcode_automatic=$hardcode_automatic_FC
29267 # Set to yes if linker adds runtime paths of dependent libraries
29268 # to runtime path list.
29269 inherit_rpath=$inherit_rpath_FC
29271 # Whether libtool must link a program against all its dependency libraries.
29272 link_all_deplibs=$link_all_deplibs_FC
29274 # Fix the shell variable \$srcfile for the compiler.
29275 fix_srcfile_path=$lt_fix_srcfile_path_FC
29277 # Set to "yes" if exported symbols are required.
29278 always_export_symbols=$always_export_symbols_FC
29280 # The commands to list exported symbols.
29281 export_symbols_cmds=$lt_export_symbols_cmds_FC
29283 # Symbols that should not be listed in the preloaded symbols.
29284 exclude_expsyms=$lt_exclude_expsyms_FC
29286 # Symbols that must always be exported.
29287 include_expsyms=$lt_include_expsyms_FC
29289 # Commands necessary for linking programs (against libraries) with templates.
29290 prelink_cmds=$lt_prelink_cmds_FC
29292 # Specify filename containing input files.
29293 file_list_spec=$lt_file_list_spec_FC
29295 # How to hardcode a shared library path into an executable.
29296 hardcode_action=$hardcode_action_FC
29298 # The directories searched by this compiler when creating a shared library.
29299 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29301 # Dependencies to place before and after the objects being linked to
29302 # create a shared library.
29303 predep_objects=$lt_predep_objects_FC
29304 postdep_objects=$lt_postdep_objects_FC
29305 predeps=$lt_predeps_FC
29306 postdeps=$lt_postdeps_FC
29308 # The library search path used internally by the compiler when linking
29309 # a shared library.
29310 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29312 # ### END LIBTOOL TAG CONFIG: FC
29313 _LT_EOF
29316 "gstdint.h":C)
29317 if test "$GCC" = yes; then
29318 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29319 else
29320 echo "/* generated for $CC */" > tmp-stdint.h
29323 sed 's/^ *//' >> tmp-stdint.h <<EOF
29325 #ifndef GCC_GENERATED_STDINT_H
29326 #define GCC_GENERATED_STDINT_H 1
29328 #include <sys/types.h>
29331 if test "$acx_cv_header_stdint" != stdint.h; then
29332 echo "#include <stddef.h>" >> tmp-stdint.h
29334 if test "$acx_cv_header_stdint" != stddef.h; then
29335 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29338 sed 's/^ *//' >> tmp-stdint.h <<EOF
29339 /* glibc uses these symbols as guards to prevent redefinitions. */
29340 #ifdef __int8_t_defined
29341 #define _INT8_T
29342 #define _INT16_T
29343 #define _INT32_T
29344 #endif
29345 #ifdef __uint32_t_defined
29346 #define _UINT32_T
29347 #endif
29351 # ----------------- done header, emit basic int types -------------
29352 if test "$acx_cv_header_stdint" = stddef.h; then
29353 sed 's/^ *//' >> tmp-stdint.h <<EOF
29355 #ifndef _UINT8_T
29356 #define _UINT8_T
29357 #ifndef __uint8_t_defined
29358 #define __uint8_t_defined
29359 #ifndef uint8_t
29360 typedef unsigned $acx_cv_type_int8_t uint8_t;
29361 #endif
29362 #endif
29363 #endif
29365 #ifndef _UINT16_T
29366 #define _UINT16_T
29367 #ifndef __uint16_t_defined
29368 #define __uint16_t_defined
29369 #ifndef uint16_t
29370 typedef unsigned $acx_cv_type_int16_t uint16_t;
29371 #endif
29372 #endif
29373 #endif
29375 #ifndef _UINT32_T
29376 #define _UINT32_T
29377 #ifndef __uint32_t_defined
29378 #define __uint32_t_defined
29379 #ifndef uint32_t
29380 typedef unsigned $acx_cv_type_int32_t uint32_t;
29381 #endif
29382 #endif
29383 #endif
29385 #ifndef _INT8_T
29386 #define _INT8_T
29387 #ifndef __int8_t_defined
29388 #define __int8_t_defined
29389 #ifndef int8_t
29390 typedef $acx_cv_type_int8_t int8_t;
29391 #endif
29392 #endif
29393 #endif
29395 #ifndef _INT16_T
29396 #define _INT16_T
29397 #ifndef __int16_t_defined
29398 #define __int16_t_defined
29399 #ifndef int16_t
29400 typedef $acx_cv_type_int16_t int16_t;
29401 #endif
29402 #endif
29403 #endif
29405 #ifndef _INT32_T
29406 #define _INT32_T
29407 #ifndef __int32_t_defined
29408 #define __int32_t_defined
29409 #ifndef int32_t
29410 typedef $acx_cv_type_int32_t int32_t;
29411 #endif
29412 #endif
29413 #endif
29415 elif test "$ac_cv_type_u_int32_t" = yes; then
29416 sed 's/^ *//' >> tmp-stdint.h <<EOF
29418 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29419 #ifndef _INT8_T
29420 #define _INT8_T
29421 #endif
29422 #ifndef _INT16_T
29423 #define _INT16_T
29424 #endif
29425 #ifndef _INT32_T
29426 #define _INT32_T
29427 #endif
29429 #ifndef _UINT8_T
29430 #define _UINT8_T
29431 #ifndef __uint8_t_defined
29432 #define __uint8_t_defined
29433 #ifndef uint8_t
29434 typedef u_int8_t uint8_t;
29435 #endif
29436 #endif
29437 #endif
29439 #ifndef _UINT16_T
29440 #define _UINT16_T
29441 #ifndef __uint16_t_defined
29442 #define __uint16_t_defined
29443 #ifndef uint16_t
29444 typedef u_int16_t uint16_t;
29445 #endif
29446 #endif
29447 #endif
29449 #ifndef _UINT32_T
29450 #define _UINT32_T
29451 #ifndef __uint32_t_defined
29452 #define __uint32_t_defined
29453 #ifndef uint32_t
29454 typedef u_int32_t uint32_t;
29455 #endif
29456 #endif
29457 #endif
29459 else
29460 sed 's/^ *//' >> tmp-stdint.h <<EOF
29462 /* Some systems have guard macros to prevent redefinitions, define them. */
29463 #ifndef _INT8_T
29464 #define _INT8_T
29465 #endif
29466 #ifndef _INT16_T
29467 #define _INT16_T
29468 #endif
29469 #ifndef _INT32_T
29470 #define _INT32_T
29471 #endif
29472 #ifndef _UINT8_T
29473 #define _UINT8_T
29474 #endif
29475 #ifndef _UINT16_T
29476 #define _UINT16_T
29477 #endif
29478 #ifndef _UINT32_T
29479 #define _UINT32_T
29480 #endif
29484 # ------------- done basic int types, emit int64_t types ------------
29485 if test "$ac_cv_type_uint64_t" = yes; then
29486 sed 's/^ *//' >> tmp-stdint.h <<EOF
29488 /* system headers have good uint64_t and int64_t */
29489 #ifndef _INT64_T
29490 #define _INT64_T
29491 #endif
29492 #ifndef _UINT64_T
29493 #define _UINT64_T
29494 #endif
29496 elif test "$ac_cv_type_u_int64_t" = yes; then
29497 sed 's/^ *//' >> tmp-stdint.h <<EOF
29499 /* system headers have an u_int64_t (and int64_t) */
29500 #ifndef _INT64_T
29501 #define _INT64_T
29502 #endif
29503 #ifndef _UINT64_T
29504 #define _UINT64_T
29505 #ifndef __uint64_t_defined
29506 #define __uint64_t_defined
29507 #ifndef uint64_t
29508 typedef u_int64_t uint64_t;
29509 #endif
29510 #endif
29511 #endif
29513 elif test -n "$acx_cv_type_int64_t"; then
29514 sed 's/^ *//' >> tmp-stdint.h <<EOF
29516 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29517 #ifndef _INT64_T
29518 #define _INT64_T
29519 #ifndef int64_t
29520 typedef $acx_cv_type_int64_t int64_t;
29521 #endif
29522 #endif
29523 #ifndef _UINT64_T
29524 #define _UINT64_T
29525 #ifndef __uint64_t_defined
29526 #define __uint64_t_defined
29527 #ifndef uint64_t
29528 typedef unsigned $acx_cv_type_int64_t uint64_t;
29529 #endif
29530 #endif
29531 #endif
29533 else
29534 sed 's/^ *//' >> tmp-stdint.h <<EOF
29536 /* some common heuristics for int64_t, using compiler-specific tests */
29537 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29538 #ifndef _INT64_T
29539 #define _INT64_T
29540 #ifndef __int64_t_defined
29541 #ifndef int64_t
29542 typedef long long int64_t;
29543 #endif
29544 #endif
29545 #endif
29546 #ifndef _UINT64_T
29547 #define _UINT64_T
29548 #ifndef uint64_t
29549 typedef unsigned long long uint64_t;
29550 #endif
29551 #endif
29553 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29554 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29555 does not implement __extension__. But that compiler doesn't define
29556 __GNUC_MINOR__. */
29557 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29558 # define __extension__
29559 # endif
29561 # ifndef _INT64_T
29562 # define _INT64_T
29563 # ifndef int64_t
29564 __extension__ typedef long long int64_t;
29565 # endif
29566 # endif
29567 # ifndef _UINT64_T
29568 # define _UINT64_T
29569 # ifndef uint64_t
29570 __extension__ typedef unsigned long long uint64_t;
29571 # endif
29572 # endif
29574 #elif !defined __STRICT_ANSI__
29575 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29577 # ifndef _INT64_T
29578 # define _INT64_T
29579 # ifndef int64_t
29580 typedef __int64 int64_t;
29581 # endif
29582 # endif
29583 # ifndef _UINT64_T
29584 # define _UINT64_T
29585 # ifndef uint64_t
29586 typedef unsigned __int64 uint64_t;
29587 # endif
29588 # endif
29589 # endif /* compiler */
29591 #endif /* ANSI version */
29595 # ------------- done int64_t types, emit intptr types ------------
29596 if test "$ac_cv_type_uintptr_t" != yes; then
29597 sed 's/^ *//' >> tmp-stdint.h <<EOF
29599 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29600 #ifndef __uintptr_t_defined
29601 #ifndef uintptr_t
29602 typedef u$acx_cv_type_intptr_t uintptr_t;
29603 #endif
29604 #endif
29605 #ifndef __intptr_t_defined
29606 #ifndef intptr_t
29607 typedef $acx_cv_type_intptr_t intptr_t;
29608 #endif
29609 #endif
29613 # ------------- done intptr types, emit int_least types ------------
29614 if test "$ac_cv_type_int_least32_t" != yes; then
29615 sed 's/^ *//' >> tmp-stdint.h <<EOF
29617 /* Define int_least types */
29618 typedef int8_t int_least8_t;
29619 typedef int16_t int_least16_t;
29620 typedef int32_t int_least32_t;
29621 #ifdef _INT64_T
29622 typedef int64_t int_least64_t;
29623 #endif
29625 typedef uint8_t uint_least8_t;
29626 typedef uint16_t uint_least16_t;
29627 typedef uint32_t uint_least32_t;
29628 #ifdef _UINT64_T
29629 typedef uint64_t uint_least64_t;
29630 #endif
29634 # ------------- done intptr types, emit int_fast types ------------
29635 if test "$ac_cv_type_int_fast32_t" != yes; then
29636 sed 's/^ *//' >> tmp-stdint.h <<EOF
29638 /* Define int_fast types. short is often slow */
29639 typedef int8_t int_fast8_t;
29640 typedef int int_fast16_t;
29641 typedef int32_t int_fast32_t;
29642 #ifdef _INT64_T
29643 typedef int64_t int_fast64_t;
29644 #endif
29646 typedef uint8_t uint_fast8_t;
29647 typedef unsigned int uint_fast16_t;
29648 typedef uint32_t uint_fast32_t;
29649 #ifdef _UINT64_T
29650 typedef uint64_t uint_fast64_t;
29651 #endif
29655 if test "$ac_cv_type_uintmax_t" != yes; then
29656 sed 's/^ *//' >> tmp-stdint.h <<EOF
29658 /* Define intmax based on what we found */
29659 #ifndef intmax_t
29660 #ifdef _INT64_T
29661 typedef int64_t intmax_t;
29662 #else
29663 typedef long intmax_t;
29664 #endif
29665 #endif
29666 #ifndef uintmax_t
29667 #ifdef _UINT64_T
29668 typedef uint64_t uintmax_t;
29669 #else
29670 typedef unsigned long uintmax_t;
29671 #endif
29672 #endif
29676 sed 's/^ *//' >> tmp-stdint.h <<EOF
29678 #endif /* GCC_GENERATED_STDINT_H */
29681 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29682 rm -f tmp-stdint.h
29683 else
29684 mv -f tmp-stdint.h gstdint.h
29689 esac
29690 done # for ac_tag
29693 as_fn_exit 0
29694 _ACEOF
29695 ac_clean_files=$ac_clean_files_save
29697 test $ac_write_fail = 0 ||
29698 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29701 # configure is writing to config.log, and then calls config.status.
29702 # config.status does its own redirection, appending to config.log.
29703 # Unfortunately, on DOS this fails, as config.log is still kept open
29704 # by configure, so config.status won't be able to write to it; its
29705 # output is simply discarded. So we exec the FD to /dev/null,
29706 # effectively closing config.log, so it can be properly (re)opened and
29707 # appended to by config.status. When coming back to configure, we
29708 # need to make the FD available again.
29709 if test "$no_create" != yes; then
29710 ac_cs_success=:
29711 ac_config_status_args=
29712 test "$silent" = yes &&
29713 ac_config_status_args="$ac_config_status_args --quiet"
29714 exec 5>/dev/null
29715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29716 exec 5>>config.log
29717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29718 # would make configure fail if this is the last instruction.
29719 $ac_cs_success || as_fn_exit $?
29721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}