Update LOCAL_PATCHES after libsanitizer merge.
[official-gcc.git] / libgfortran / configure
blob1c93683acd27a80f5f3843bad463a22d0c6a5a23
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 [default=no]
1429 --disable-symvers disable symbol versioning for libgfortran
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --disable-largefile omit support for large files
1436 --disable-libquadmath-support
1437 disable libquadmath support for Fortran
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-build-libsubdir=DIR Directory where to find libraries for build system
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gcc-major-version-only
1447 use only GCC major number in filesystem paths
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1458 FC Fortran compiler command
1459 FCFLAGS Fortran compiler flags
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to the package provider.
1465 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1466 General help using GNU software: <http://www.gnu.org/gethelp/>.
1467 _ACEOF
1468 ac_status=$?
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 GNU Fortran Runtime Library configure 0.3
1530 generated by GNU Autoconf 2.64
1532 Copyright (C) 2009 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1574 ac_retval=1
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1579 } # ac_fn_c_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } >/dev/null && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1616 } # ac_fn_c_try_cpp
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1622 # accordingly.
1623 ac_fn_c_check_header_mongrel ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 else
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1646 else
1647 ac_header_compiler=no
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1662 else
1663 ac_header_preproc=no
1665 rm -f conftest.err conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 yes:no: )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 no:yes:* )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 esac
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 eval "$3=\$ac_header_compiler"
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
1745 } # ac_fn_c_try_run
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1822 } # ac_fn_c_try_link
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 if test x$gcc_no_link = xyes; then
1836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1855 #undef $2
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1872 main ()
1874 return $2 ();
1876 return 0;
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_func
1894 # ac_fn_fc_try_compile LINENO
1895 # ---------------------------
1896 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.$ac_objext; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 return $ac_retval
1930 } # ac_fn_fc_try_compile
1932 # ac_fn_fc_try_link LINENO
1933 # ------------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_fc_try_link ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_fc_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 $as_test_x conftest$ac_exeext
1960 }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_retval=1
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1976 } # ac_fn_fc_try_link
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=no"
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 if (sizeof ($2))
1998 return 0;
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 if (sizeof (($2)))
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2018 else
2019 eval "$3=yes"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_c_check_type
2032 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2033 # --------------------------------------------
2034 # Tries to find the compile-time value of EXPR in a program that includes
2035 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 # computed
2037 ac_fn_c_compute_int ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if test "$cross_compiling" = yes; then
2041 # Depending upon the size, compute the lo and hi bounds.
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 static int test_array [1 - 2 * !(($2) >= 0)];
2049 test_array [0] = 0
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=0 ac_mid=0
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2062 main ()
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid; break
2073 else
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2076 ac_lo= ac_hi=
2077 break
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) < 0)];
2091 test_array [0] = 0
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115 else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 ac_lo= ac_hi=
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid
2149 else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2167 main ()
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2180 else
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198 ac_retval=1
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206 return $ac_retval
2208 } # ac_fn_c_compute_int
2210 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2211 # ----------------------------------------------------
2212 # Tries to find if the field MEMBER exists in type AGGR, after including
2213 # INCLUDES, setting cache variable VAR accordingly.
2214 ac_fn_c_check_member ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2218 $as_echo_n "checking for $2.$3... " >&6; }
2219 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 static $2 ac_aggr;
2229 if (ac_aggr.$3)
2230 return 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 main ()
2244 static $2 ac_aggr;
2245 if (sizeof ac_aggr.$3)
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 eval "$4=no"
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 eval ac_res=\$$4
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_member
2266 cat >config.log <<_ACEOF
2267 This file contains any messages produced by compilers while
2268 running configure, to aid debugging if configure makes a mistake.
2270 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2271 generated by GNU Autoconf 2.64. Invocation command line was
2273 $ $0 $@
2275 _ACEOF
2276 exec 5>>config.log
2278 cat <<_ASUNAME
2279 ## --------- ##
2280 ## Platform. ##
2281 ## --------- ##
2283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2300 _ASUNAME
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 $as_echo "PATH: $as_dir"
2308 done
2309 IFS=$as_save_IFS
2311 } >&5
2313 cat >&5 <<_ACEOF
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2320 _ACEOF
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2334 for ac_arg
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2363 as_fn_append ac_configure_args " '$ac_arg'"
2365 esac
2366 done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log. We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377 # Save into config.log some information that might help in debugging.
2379 echo
2381 cat <<\_ASBOX
2382 ## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##
2385 _ASBOX
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414 esac |
2415 sort
2417 echo
2419 cat <<\_ASBOX
2420 ## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##
2423 _ASBOX
2424 echo
2425 for ac_var in $ac_subst_vars
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2435 if test -n "$ac_subst_files"; then
2436 cat <<\_ASBOX
2437 ## ------------------- ##
2438 ## File substitutions. ##
2439 ## ------------------- ##
2440 _ASBOX
2441 echo
2442 for ac_var in $ac_subst_files
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2453 if test -s confdefs.h; then
2454 cat <<\_ASBOX
2455 ## ----------- ##
2456 ## confdefs.h. ##
2457 ## ----------- ##
2458 _ASBOX
2459 echo
2460 cat confdefs.h
2461 echo
2463 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status"
2466 } >&5
2467 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status
2471 for ac_signal in 1 2 13 15; do
2472 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473 done
2474 ac_signal=0
2476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2477 rm -f -r conftest* confdefs.h
2479 $as_echo "/* confdefs.h */" > confdefs.h
2481 # Predefined preprocessor variables.
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 _ACEOF
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 _ACEOF
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_URL "$PACKAGE_URL"
2505 _ACEOF
2508 # Let the site file select an alternate cache file if it wants to.
2509 # Prefer an explicitly selected file to automatically selected ones.
2510 ac_site_file1=NONE
2511 ac_site_file2=NONE
2512 if test -n "$CONFIG_SITE"; then
2513 ac_site_file1=$CONFIG_SITE
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2517 else
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 test "x$ac_site_file" = xNONE && continue
2524 if test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file"
2530 done
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special
2534 # files actually), so we avoid doing that.
2535 if test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2549 as_fn_append ac_header_list " unistd.h"
2550 as_fn_append ac_header_list " sys/random.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/uio.h"
2557 as_fn_append ac_header_list " sys/wait.h"
2558 as_fn_append ac_header_list " floatingpoint.h"
2559 as_fn_append ac_header_list " ieeefp.h"
2560 as_fn_append ac_header_list " fenv.h"
2561 as_fn_append ac_header_list " fptrap.h"
2562 as_fn_append ac_header_list " fpxcp.h"
2563 as_fn_append ac_header_list " pwd.h"
2564 as_fn_append ac_header_list " complex.h"
2565 as_fn_append ac_header_list " xlocale.h"
2566 as_fn_append ac_func_list " getrusage"
2567 as_fn_append ac_func_list " times"
2568 as_fn_append ac_func_list " mkstemp"
2569 as_fn_append ac_func_list " strtof"
2570 as_fn_append ac_func_list " strtold"
2571 as_fn_append ac_func_list " snprintf"
2572 as_fn_append ac_func_list " ftruncate"
2573 as_fn_append ac_func_list " chsize"
2574 as_fn_append ac_func_list " chdir"
2575 as_fn_append ac_func_list " getentropy"
2576 as_fn_append ac_func_list " getlogin"
2577 as_fn_append ac_func_list " gethostname"
2578 as_fn_append ac_func_list " kill"
2579 as_fn_append ac_func_list " link"
2580 as_fn_append ac_func_list " symlink"
2581 as_fn_append ac_func_list " sleep"
2582 as_fn_append ac_func_list " ttyname"
2583 as_fn_append ac_func_list " alarm"
2584 as_fn_append ac_func_list " access"
2585 as_fn_append ac_func_list " fork"
2586 as_fn_append ac_func_list " setmode"
2587 as_fn_append ac_func_list " fcntl"
2588 as_fn_append ac_func_list " writev"
2589 as_fn_append ac_func_list " gettimeofday"
2590 as_fn_append ac_func_list " stat"
2591 as_fn_append ac_func_list " fstat"
2592 as_fn_append ac_func_list " lstat"
2593 as_fn_append ac_func_list " getpwuid"
2594 as_fn_append ac_func_list " vsnprintf"
2595 as_fn_append ac_func_list " dup"
2596 as_fn_append ac_func_list " getcwd"
2597 as_fn_append ac_func_list " localtime_r"
2598 as_fn_append ac_func_list " gmtime_r"
2599 as_fn_append ac_func_list " getpwuid_r"
2600 as_fn_append ac_func_list " ttyname_r"
2601 as_fn_append ac_func_list " clock_gettime"
2602 as_fn_append ac_func_list " getgid"
2603 as_fn_append ac_func_list " getpid"
2604 as_fn_append ac_func_list " getuid"
2605 as_fn_append ac_func_list " geteuid"
2606 as_fn_append ac_func_list " umask"
2607 as_fn_append ac_func_list " getegid"
2608 as_fn_append ac_func_list " secure_getenv"
2609 as_fn_append ac_func_list " __secure_getenv"
2610 as_fn_append ac_func_list " mkostemp"
2611 as_fn_append ac_func_list " strnlen"
2612 as_fn_append ac_func_list " strndup"
2613 as_fn_append ac_func_list " newlocale"
2614 as_fn_append ac_func_list " freelocale"
2615 as_fn_append ac_func_list " uselocale"
2616 as_fn_append ac_func_list " strerror_l"
2617 as_fn_append ac_header_list " math.h"
2618 # Check that the precious variables saved in the cache have kept the same
2619 # value.
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2627 set,)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,set)
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2635 ,);;
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x $ac_old_val`
2640 ac_new_val_w=`echo x $ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644 ac_cache_corrupted=:
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2654 fi;;
2655 esac
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2658 case $ac_new_val in
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2661 esac
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2665 esac
2667 done
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 ac_config_headers="$ac_config_headers config.h"
2691 ac_aux_dir=
2692 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2693 for ac_t in install-sh install.sh shtool; do
2694 if test -f "$ac_dir/$ac_t"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/$ac_t -c"
2697 break 2
2699 done
2700 done
2701 if test -z "$ac_aux_dir"; then
2702 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2716 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if test "${ac_cv_build+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 ac_build_alias=$build_alias
2724 test "x$ac_build_alias" = x &&
2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x &&
2727 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2735 *-*-*) ;;
2736 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2737 esac
2738 build=$ac_cv_build
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_build
2741 shift
2742 build_cpu=$1
2743 build_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 build_os=$*
2748 IFS=$ac_save_IFS
2749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2752 case ${build_alias} in
2753 "") build_noncanonical=${build} ;;
2754 *) build_noncanonical=${build_alias} ;;
2755 esac
2757 case ${host_alias} in
2758 "") host_noncanonical=${build_noncanonical} ;;
2759 *) host_noncanonical=${host_alias} ;;
2760 esac
2762 case ${target_alias} in
2763 "") target_noncanonical=${host_noncanonical} ;;
2764 *) target_noncanonical=${target_alias} ;;
2765 esac
2768 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2769 # have matching libraries, they should use host libraries: Makefile.tpl
2770 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2771 # However, they still use the build modules, because the corresponding
2772 # host modules (e.g. bison) are only built for the host when bootstrap
2773 # finishes. So:
2774 # - build_subdir is where we find build modules, and never changes.
2775 # - build_libsubdir is where we find build libraries, and can be overridden.
2777 # Prefix 'build-' so this never conflicts with target_subdir.
2778 build_subdir="build-${build_noncanonical}"
2780 # Check whether --with-build-libsubdir was given.
2781 if test "${with_build_libsubdir+set}" = set; then :
2782 withval=$with_build_libsubdir; build_libsubdir="$withval"
2783 else
2784 build_libsubdir="$build_subdir"
2787 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2788 if ( test $srcdir = . && test -d gcc ) \
2789 || test -d $srcdir/../host-${host_noncanonical}; then
2790 host_subdir="host-${host_noncanonical}"
2791 else
2792 host_subdir=.
2794 # No prefix.
2795 target_subdir=${target_noncanonical}
2798 # -------
2799 # Options
2800 # -------
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2803 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2804 # Check whether --enable-version-specific-runtime-libs was given.
2805 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2806 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2807 yes) version_specific_libs=yes ;;
2808 no) version_specific_libs=no ;;
2809 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2810 esac
2811 else
2812 version_specific_libs=no
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2816 $as_echo "$version_specific_libs" >&6; }
2818 # Build with intermodule optimisations
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2820 $as_echo_n "checking for --enable-intermodule... " >&6; }
2821 # Check whether --enable-intermodule was given.
2822 if test "${enable_intermodule+set}" = set; then :
2823 enableval=$enable_intermodule; case "$enable_intermodule" in
2824 yes) onestep="-onestep";;
2825 *) onestep="";;
2826 esac
2827 else
2828 onestep=""
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2832 $as_echo "$enable_intermodule" >&6; }
2833 if test x$onestep = x-onestep; then
2834 onestep_TRUE=
2835 onestep_FALSE='#'
2836 else
2837 onestep_TRUE='#'
2838 onestep_FALSE=
2843 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2845 # You will slowly go insane if you do not grok the following fact: when
2846 # building this library, the top-level /target/ becomes the library's /host/.
2848 # configure then causes --target to default to --host, exactly like any
2849 # other package using autoconf. Therefore, 'target' and 'host' will
2850 # always be the same. This makes sense both for native and cross compilers
2851 # just think about it for a little while. :-)
2853 # Also, if this library is being configured as part of a cross compiler, the
2854 # top-level configure script will pass the "real" host as $with_cross_host.
2856 # Do not delete or change the following two lines. For why, see
2857 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2859 $as_echo_n "checking host system type... " >&6; }
2860 if test "${ac_cv_host+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2865 else
2866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2867 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2872 $as_echo "$ac_cv_host" >&6; }
2873 case $ac_cv_host in
2874 *-*-*) ;;
2875 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2876 esac
2877 host=$ac_cv_host
2878 ac_save_IFS=$IFS; IFS='-'
2879 set x $ac_cv_host
2880 shift
2881 host_cpu=$1
2882 host_vendor=$2
2883 shift; shift
2884 # Remember, the first character of IFS is used to create $*,
2885 # except with old shells:
2886 host_os=$*
2887 IFS=$ac_save_IFS
2888 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2892 $as_echo_n "checking target system type... " >&6; }
2893 if test "${ac_cv_target+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test "x$target_alias" = x; then
2897 ac_cv_target=$ac_cv_host
2898 else
2899 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2900 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2905 $as_echo "$ac_cv_target" >&6; }
2906 case $ac_cv_target in
2907 *-*-*) ;;
2908 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2909 esac
2910 target=$ac_cv_target
2911 ac_save_IFS=$IFS; IFS='-'
2912 set x $ac_cv_target
2913 shift
2914 target_cpu=$1
2915 target_vendor=$2
2916 shift; shift
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2919 target_os=$*
2920 IFS=$ac_save_IFS
2921 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2924 # The aliases save the names the user supplied, while $host etc.
2925 # will get canonicalized.
2926 test -n "$target_alias" &&
2927 test "$program_prefix$program_suffix$program_transform_name" = \
2928 NONENONEs,x,x, &&
2929 program_prefix=${target_alias}-
2934 target_alias=${target_alias-$host_alias}
2937 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2938 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2939 # 1.9.6: minimum required version
2940 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2941 # of other PACKAGE_* variables will, however, and there's nothing
2942 # we can do about that; they come from AC_INIT).
2943 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2944 # file in the top srcdir, etc, etc), so stop complaining.
2945 # no-dist: we don't want 'dist' and related rules.
2946 # -Wall: turns on all automake warnings...
2947 # -Wno-portability: ...except this one, since GNU make is required.
2948 am__api_version='1.11'
2950 # Find a good install program. We prefer a C program (faster),
2951 # so one script is as good as another. But avoid the broken or
2952 # incompatible versions:
2953 # SysV /etc/install, /usr/sbin/install
2954 # SunOS /usr/etc/install
2955 # IRIX /sbin/install
2956 # AIX /bin/install
2957 # AmigaOS /C/install, which installs bootblocks on floppy discs
2958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2961 # OS/2's system install, which has a completely different semantic
2962 # ./install, which can be erroneously created by make from ./install.sh.
2963 # Reject install programs that cannot install multiple files.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2965 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2966 if test -z "$INSTALL"; then
2967 if test "${ac_cv_path_install+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 # Account for people who put trailing slashes in PATH elements.
2976 case $as_dir/ in #((
2977 ./ | .// | /[cC]/* | \
2978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2979 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2980 /usr/ucb/* ) ;;
2982 # OSF1 and SCO ODT 3.0 have their own names for install.
2983 # Don't use installbsd from OSF since it installs stuff as root
2984 # by default.
2985 for ac_prog in ginstall scoinst install; do
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2988 if test $ac_prog = install &&
2989 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # AIX install. It has an incompatible calling convention.
2992 elif test $ac_prog = install &&
2993 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # program-specific install script used by HP pwplus--don't use.
2996 else
2997 rm -rf conftest.one conftest.two conftest.dir
2998 echo one > conftest.one
2999 echo two > conftest.two
3000 mkdir conftest.dir
3001 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3002 test -s conftest.one && test -s conftest.two &&
3003 test -s conftest.dir/conftest.one &&
3004 test -s conftest.dir/conftest.two
3005 then
3006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3007 break 3
3011 done
3012 done
3014 esac
3016 done
3017 IFS=$as_save_IFS
3019 rm -rf conftest.one conftest.two conftest.dir
3022 if test "${ac_cv_path_install+set}" = set; then
3023 INSTALL=$ac_cv_path_install
3024 else
3025 # As a last resort, use the slow shell script. Don't cache a
3026 # value for INSTALL within a source directory, because that will
3027 # break other packages using the cache if that directory is
3028 # removed, or if the value is a relative name.
3029 INSTALL=$ac_install_sh
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3033 $as_echo "$INSTALL" >&6; }
3035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3036 # It thinks the first close brace ends the variable substitution.
3037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3044 $as_echo_n "checking whether build environment is sane... " >&6; }
3045 # Just in case
3046 sleep 1
3047 echo timestamp > conftest.file
3048 # Reject unsafe characters in $srcdir or the absolute working directory
3049 # name. Accept space and tab only in the latter.
3050 am_lf='
3052 case `pwd` in
3053 *[\\\"\#\$\&\'\`$am_lf]*)
3054 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3055 esac
3056 case $srcdir in
3057 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3058 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3059 esac
3061 # Do `set' in a subshell so we don't clobber the current shell's
3062 # arguments. Must try -L first in case configure is actually a
3063 # symlink; some systems play weird games with the mod time of symlinks
3064 # (eg FreeBSD returns the mod time of the symlink's containing
3065 # directory).
3066 if (
3067 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3068 if test "$*" = "X"; then
3069 # -L didn't work.
3070 set X `ls -t "$srcdir/configure" conftest.file`
3072 rm -f conftest.file
3073 if test "$*" != "X $srcdir/configure conftest.file" \
3074 && test "$*" != "X conftest.file $srcdir/configure"; then
3076 # If neither matched, then we have a broken ls. This can happen
3077 # if, for instance, CONFIG_SHELL is bash and it inherits a
3078 # broken ls alias from the environment. This has actually
3079 # happened. Such a system could not be considered "sane".
3080 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3081 alias in your environment" "$LINENO" 5
3084 test "$2" = conftest.file
3086 then
3087 # Ok.
3089 else
3090 as_fn_error "newly created file is older than distributed files!
3091 Check your system clock" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3095 test "$program_prefix" != NONE &&
3096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3097 # Use a double $ so make ignores it.
3098 test "$program_suffix" != NONE &&
3099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3100 # Double any \ or $.
3101 # By default was `s,x,x', remove it if useless.
3102 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3103 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105 # expand $ac_aux_dir to an absolute path
3106 am_aux_dir=`cd $ac_aux_dir && pwd`
3108 if test x"${MISSING+set}" != xset; then
3109 case $am_aux_dir in
3110 *\ * | *\ *)
3111 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3114 esac
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --run true"; then
3118 am_missing_run="$MISSING --run "
3119 else
3120 am_missing_run=
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3122 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3125 if test x"${install_sh}" != xset; then
3126 case $am_aux_dir in
3127 *\ * | *\ *)
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 esac
3134 # Installed binaries are usually stripped using `strip' when the user
3135 # run `make install-strip'. However `strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the `STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_STRIP+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$STRIP"; then
3148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 STRIP=$ac_cv_prog_STRIP
3168 if test -n "$STRIP"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3170 $as_echo "$STRIP" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_STRIP"; then
3179 ac_ct_STRIP=$STRIP
3180 # Extract the first word of "strip", so it can be a program name with args.
3181 set dummy strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_STRIP"; then
3188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_STRIP="strip"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3203 IFS=$as_save_IFS
3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3208 if test -n "$ac_ct_STRIP"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3210 $as_echo "$ac_ct_STRIP" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_STRIP" = x; then
3217 STRIP=":"
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 STRIP=$ac_ct_STRIP
3227 else
3228 STRIP="$ac_cv_prog_STRIP"
3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3235 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3236 if test -z "$MKDIR_P"; then
3237 if test "${ac_cv_path_mkdir+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_prog in mkdir gmkdir; do
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3248 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3249 'mkdir (GNU coreutils) '* | \
3250 'mkdir (coreutils) '* | \
3251 'mkdir (fileutils) '4.1*)
3252 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3253 break 3;;
3254 esac
3255 done
3256 done
3257 done
3258 IFS=$as_save_IFS
3262 if test "${ac_cv_path_mkdir+set}" = set; then
3263 MKDIR_P="$ac_cv_path_mkdir -p"
3264 else
3265 # As a last resort, use the slow shell script. Don't cache a
3266 # value for MKDIR_P within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the value is a relative name.
3269 test -d ./--version && rmdir ./--version
3270 MKDIR_P="$ac_install_sh -d"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3274 $as_echo "$MKDIR_P" >&6; }
3276 mkdir_p="$MKDIR_P"
3277 case $mkdir_p in
3278 [\\/$]* | ?:[\\/]*) ;;
3279 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3280 esac
3282 for ac_prog in gawk mawk nawk awk
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_AWK+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$AWK"; then
3292 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_AWK="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3307 IFS=$as_save_IFS
3311 AWK=$ac_cv_prog_AWK
3312 if test -n "$AWK"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3314 $as_echo "$AWK" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3321 test -n "$AWK" && break
3322 done
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3325 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3326 set x ${MAKE-make}
3327 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3328 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 cat >conftest.make <<\_ACEOF
3332 SHELL = /bin/sh
3333 all:
3334 @echo '@@@%%%=$(MAKE)=@@@%%%'
3335 _ACEOF
3336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3338 *@@@%%%=?*=@@@%%%*)
3339 eval ac_cv_prog_make_${ac_make}_set=yes;;
3341 eval ac_cv_prog_make_${ac_make}_set=no;;
3342 esac
3343 rm -f conftest.make
3345 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 SET_MAKE=
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 SET_MAKE="MAKE=${MAKE-make}"
3355 rm -rf .tst 2>/dev/null
3356 mkdir .tst 2>/dev/null
3357 if test -d .tst; then
3358 am__leading_dot=.
3359 else
3360 am__leading_dot=_
3362 rmdir .tst 2>/dev/null
3364 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3366 # is not polluted with repeated "-I."
3367 am__isrc=' -I$(srcdir)'
3368 # test to see if srcdir already configured
3369 if test -f $srcdir/config.status; then
3370 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3374 # test whether we have cygpath
3375 if test -z "$CYGPATH_W"; then
3376 if (cygpath --version) >/dev/null 2>/dev/null; then
3377 CYGPATH_W='cygpath -w'
3378 else
3379 CYGPATH_W=echo
3384 # Define the identity of the package.
3385 PACKAGE='libgfortran'
3386 VERSION='0.3'
3389 # Some tools Automake needs.
3391 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3394 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3397 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3400 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3405 # We need awk for the "check" target. The system "awk" is bad on
3406 # some platforms.
3407 # Always define AMTAR for backward compatibility. Yes, it's still used
3408 # in the wild :-( We should find a proper way to deprecate it ...
3409 AMTAR='$${TAR-tar}'
3411 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3421 # Check whether --enable-maintainer-mode was given.
3422 if test "${enable_maintainer_mode+set}" = set; then :
3423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3424 else
3425 USE_MAINTAINER_MODE=no
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3430 if test $USE_MAINTAINER_MODE = yes; then
3431 MAINTAINER_MODE_TRUE=
3432 MAINTAINER_MODE_FALSE='#'
3433 else
3434 MAINTAINER_MODE_TRUE='#'
3435 MAINTAINER_MODE_FALSE=
3438 MAINT=$MAINTAINER_MODE_TRUE
3441 # Default to --enable-multilib
3442 # Check whether --enable-multilib was given.
3443 if test "${enable_multilib+set}" = set; then :
3444 enableval=$enable_multilib; case "$enableval" in
3445 yes) multilib=yes ;;
3446 no) multilib=no ;;
3447 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3448 esac
3449 else
3450 multilib=yes
3454 # We may get other options which we leave undocumented:
3455 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3456 # See config-ml.in if you want the gory details.
3458 if test "$srcdir" = "."; then
3459 if test "$with_target_subdir" != "."; then
3460 multi_basedir="$srcdir/$with_multisrctop../.."
3461 else
3462 multi_basedir="$srcdir/$with_multisrctop.."
3464 else
3465 multi_basedir="$srcdir/.."
3469 # Even if the default multilib is not a cross compilation,
3470 # it may be that some of the other multilibs are.
3471 if test $cross_compiling = no && test $multilib = yes \
3472 && test "x${with_multisubdir}" != x ; then
3473 cross_compiling=maybe
3476 ac_config_commands="$ac_config_commands default-1"
3479 # Handy for debugging:
3480 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3482 # Are we being configured with some form of cross compiler?
3483 # NB: We don't actually need to know this just now, but when, say, a test
3484 # suite is included, we'll have to know.
3485 if test "$build" != "$host"; then
3486 LIBGFOR_IS_NATIVE=false
3488 else
3489 LIBGFOR_IS_NATIVE=true
3492 DEPDIR="${am__leading_dot}deps"
3494 ac_config_commands="$ac_config_commands depfiles"
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3499 am__doit:
3500 @echo this is the am__doit target
3501 .PHONY: am__doit
3503 # If we don't find an include directive, just comment out the code.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3506 am__include="#"
3507 am__quote=
3508 _am_result=none
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # Ignore all kinds of additional output from `make'.
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=include
3515 am__quote=
3516 _am_result=GNU
3518 esac
3519 # Now try BSD make style include.
3520 if test "$am__include" = "#"; then
3521 echo '.include "confinc"' > confmf
3522 case `$am_make -s -f confmf 2> /dev/null` in #(
3523 *the\ am__doit\ target*)
3524 am__include=.include
3525 am__quote="\""
3526 _am_result=BSD
3528 esac
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3533 $as_echo "$_am_result" >&6; }
3534 rm -f confinc confmf
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then :
3538 enableval=$enable_dependency_tracking;
3541 if test "x$enable_dependency_tracking" != xno; then
3542 am_depcomp="$ac_aux_dir/depcomp"
3543 AMDEPBACKSLASH='\'
3544 am__nodep='_no'
3546 if test "x$enable_dependency_tracking" != xno; then
3547 AMDEP_TRUE=
3548 AMDEP_FALSE='#'
3549 else
3550 AMDEP_TRUE='#'
3551 AMDEP_FALSE=
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3584 IFS=$as_save_IFS
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3599 if test -z "$ac_cv_prog_CC"; then
3600 ac_ct_CC=$CC
3601 # Extract the first word of "gcc", so it can be a program name with args.
3602 set dummy gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$ac_ct_CC"; then
3609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_ac_ct_CC="gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629 if test -n "$ac_ct_CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631 $as_echo "$ac_ct_CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3637 if test "x$ac_ct_CC" = x; then
3638 CC=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CC=$ac_ct_CC
3648 else
3649 CC="$ac_cv_prog_CC"
3652 if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}cc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if test "${ac_cv_prog_CC+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -n "$CC"; then
3662 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_CC="${ac_tool_prefix}cc"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3675 done
3676 done
3677 IFS=$as_save_IFS
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3693 if test -z "$CC"; then
3694 # Extract the first word of "cc", so it can be a program name with args.
3695 set dummy cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 ac_prog_rejected=no
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3713 ac_prog_rejected=yes
3714 continue
3716 ac_cv_prog_CC="cc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3724 if test $ac_prog_rejected = yes; then
3725 # We found a bogon in the path, so make sure we never use it.
3726 set dummy $ac_cv_prog_CC
3727 shift
3728 if test $# != 0; then
3729 # We chose a different compiler from the bogus one.
3730 # However, it has the same basename, so the bogon will be chosen
3731 # first if we set CC to just the basename; use the full file name.
3732 shift
3733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 for ac_prog in cl.exe
3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if test "${ac_cv_prog_CC+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3790 test -n "$CC" && break
3791 done
3793 if test -z "$CC"; then
3794 ac_ct_CC=$CC
3795 for ac_prog in cl.exe
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_ac_ct_CC="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3820 IFS=$as_save_IFS
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$ac_ct_CC" && break
3835 done
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error "no acceptable C compiler found in \$PATH
3856 See \`config.log' for more details." "$LINENO" 5; }
3858 # Provide some information about the compiler.
3859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3860 set X $ac_compile
3861 ac_compiler=$2
3862 for ac_option in --version -v -V -qversion; do
3863 { { ac_try="$ac_compiler $ac_option >&5"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3871 ac_status=$?
3872 if test -s conftest.err; then
3873 sed '10a\
3874 ... rest of stderr output deleted ...
3875 10q' conftest.err >conftest.er1
3876 cat conftest.er1 >&5
3877 rm -f conftest.er1 conftest.err
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 done
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3891 return 0;
3893 _ACEOF
3894 # FIXME: Cleanup?
3895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3896 (eval $ac_link) 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 gcc_no_link=no
3901 else
3902 gcc_no_link=yes
3904 if test x$gcc_no_link = xyes; then
3905 # Setting cross_compile will disable run tests; it will
3906 # also disable AC_CHECK_FILE but that's generally
3907 # correct if we can't link.
3908 cross_compiling=yes
3909 EXEEXT=
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 main ()
3919 return 0;
3921 _ACEOF
3922 ac_clean_files_save=$ac_clean_files
3923 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3924 # Try to create an executable without -o first, disregard a.out.
3925 # It will help us diagnose broken compilers, and finding out an intuition
3926 # of exeext.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928 $as_echo_n "checking for C compiler default output file name... " >&6; }
3929 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3931 # The possible output files:
3932 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3934 ac_rmfiles=
3935 for ac_file in $ac_files
3937 case $ac_file in
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3940 esac
3941 done
3942 rm -f $ac_rmfiles
3944 if { { ac_try="$ac_link_default"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link_default") 2>&5
3952 ac_status=$?
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3957 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3958 # so that the user can short-circuit this test for compilers unknown to
3959 # Autoconf.
3960 for ac_file in $ac_files ''
3962 test -f "$ac_file" || continue
3963 case $ac_file in
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3966 [ab].out )
3967 # We found the default executable, but exeext='' is most
3968 # certainly right.
3969 break;;
3970 *.* )
3971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3972 then :; else
3973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975 # We set ac_cv_exeext here because the later test for it is not
3976 # safe: cross compilers may not add the suffix if given an `-o'
3977 # argument, so we may need to know it at that point already.
3978 # Even if this section looks crufty: it has the advantage of
3979 # actually working.
3980 break;;
3982 break;;
3983 esac
3984 done
3985 test "$ac_cv_exeext" = no && ac_cv_exeext=
3987 else
3988 ac_file=''
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3991 $as_echo "$ac_file" >&6; }
3992 if test -z "$ac_file"; then :
3993 $as_echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 { as_fn_set_status 77
3999 as_fn_error "C compiler cannot create executables
4000 See \`config.log' for more details." "$LINENO" 5; }; }
4002 ac_exeext=$ac_cv_exeext
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4007 $as_echo_n "checking whether the C compiler works... " >&6; }
4008 # If not cross compiling, check that we can run a simple program.
4009 if test "$cross_compiling" != yes; then
4010 if { ac_try='./$ac_file'
4011 { { case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_try") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; }; then
4021 cross_compiling=no
4022 else
4023 if test "$cross_compiling" = maybe; then
4024 cross_compiling=yes
4025 else
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error "cannot run C compiled programs.
4029 If you meant to cross compile, use \`--host'.
4030 See \`config.log' for more details." "$LINENO" 5; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035 $as_echo "yes" >&6; }
4037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 # Check that the compiler produces executables we can run. If not, either
4040 # the compiler is broken, or we cross compile.
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4042 $as_echo_n "checking whether we are cross compiling... " >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044 $as_echo "$cross_compiling" >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4047 $as_echo_n "checking for suffix of executables... " >&6; }
4048 if { { ac_try="$ac_link"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_link") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4061 # work properly (i.e., refer to `conftest.exe'), while it won't with
4062 # `rm'.
4063 for ac_file in conftest.exe conftest conftest.*; do
4064 test -f "$ac_file" || continue
4065 case $ac_file in
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4068 break;;
4069 * ) break;;
4070 esac
4071 done
4072 else
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "cannot compute suffix of executables: cannot compile and link
4076 See \`config.log' for more details." "$LINENO" 5; }
4078 rm -f conftest$ac_cv_exeext
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4080 $as_echo "$ac_cv_exeext" >&6; }
4082 rm -f conftest.$ac_ext
4083 EXEEXT=$ac_cv_exeext
4084 ac_exeext=$EXEEXT
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4087 $as_echo_n "checking for suffix of object files... " >&6; }
4088 if test "${ac_cv_objext+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 rm -f conftest.o conftest.obj
4103 if { { ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_compile") 2>&5
4111 ac_status=$?
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }; then :
4114 for ac_file in conftest.o conftest.obj conftest.*; do
4115 test -f "$ac_file" || continue;
4116 case $ac_file in
4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4119 break;;
4120 esac
4121 done
4122 else
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error "cannot compute suffix of object files: cannot compile
4129 See \`config.log' for more details." "$LINENO" 5; }
4131 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4134 $as_echo "$ac_cv_objext" >&6; }
4135 OBJEXT=$ac_cv_objext
4136 ac_objext=$OBJEXT
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4138 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4139 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4148 #ifndef __GNUC__
4149 choke me
4150 #endif
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_compiler_gnu=yes
4158 else
4159 ac_compiler_gnu=no
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4166 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4167 if test $ac_compiler_gnu = yes; then
4168 GCC=yes
4169 else
4170 GCC=
4172 ac_test_CFLAGS=${CFLAGS+set}
4173 ac_save_CFLAGS=$CFLAGS
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4175 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4176 if test "${ac_cv_prog_cc_g+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 ac_save_c_werror_flag=$ac_c_werror_flag
4180 ac_c_werror_flag=yes
4181 ac_cv_prog_cc_g=no
4182 CFLAGS="-g"
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4187 main ()
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_prog_cc_g=yes
4196 else
4197 CFLAGS=""
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4202 main ()
4206 return 0;
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"; then :
4211 else
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4213 CFLAGS="-g"
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4218 main ()
4222 return 0;
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_prog_cc_g=yes
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_c_werror_flag=$ac_save_c_werror_flag
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4236 $as_echo "$ac_cv_prog_cc_g" >&6; }
4237 if test "$ac_test_CFLAGS" = set; then
4238 CFLAGS=$ac_save_CFLAGS
4239 elif test $ac_cv_prog_cc_g = yes; then
4240 if test "$GCC" = yes; then
4241 CFLAGS="-g -O2"
4242 else
4243 CFLAGS="-g"
4245 else
4246 if test "$GCC" = yes; then
4247 CFLAGS="-O2"
4248 else
4249 CFLAGS=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4253 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4254 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 ac_cv_prog_cc_c89=no
4258 ac_save_CC=$CC
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <stdarg.h>
4262 #include <stdio.h>
4263 #include <sys/types.h>
4264 #include <sys/stat.h>
4265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4266 struct buf { int x; };
4267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4268 static char *e (p, i)
4269 char **p;
4270 int i;
4272 return p[i];
4274 static char *f (char * (*g) (char **, int), char **p, ...)
4276 char *s;
4277 va_list v;
4278 va_start (v,p);
4279 s = g (p, va_arg (v,int));
4280 va_end (v);
4281 return s;
4284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4285 function prototypes and stuff, but not '\xHH' hex character constants.
4286 These don't provoke an error unfortunately, instead are silently treated
4287 as 'x'. The following induces an error, until -std is added to get
4288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4289 array size at least. It's necessary to write '\x00'==0 to get something
4290 that's true only with -std. */
4291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4294 inside strings and character constants. */
4295 #define FOO(x) 'x'
4296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4298 int test (int i, double x);
4299 struct s1 {int (*f) (int a);};
4300 struct s2 {int (*f) (double a);};
4301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4302 int argc;
4303 char **argv;
4305 main ()
4307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 return 0;
4311 _ACEOF
4312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4315 CC="$ac_save_CC $ac_arg"
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_prog_cc_c89=$ac_arg
4319 rm -f core conftest.err conftest.$ac_objext
4320 test "x$ac_cv_prog_cc_c89" != "xno" && break
4321 done
4322 rm -f conftest.$ac_ext
4323 CC=$ac_save_CC
4326 # AC_CACHE_VAL
4327 case "x$ac_cv_prog_cc_c89" in
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330 $as_echo "none needed" >&6; } ;;
4331 xno)
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4333 $as_echo "unsupported" >&6; } ;;
4335 CC="$CC $ac_cv_prog_cc_c89"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4337 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4338 esac
4339 if test "x$ac_cv_prog_cc_c89" != xno; then :
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 depcc="$CC" am_compiler_list=
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4352 $as_echo_n "checking dependency style of $depcc... " >&6; }
4353 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4357 # We make a subdir and do the tests there. Otherwise we can end up
4358 # making bogus files that we don't know about and never remove. For
4359 # instance it was reported that on HP-UX the gcc test will end up
4360 # making a dummy file named `D' -- because `-MD' means `put the output
4361 # in D'.
4362 rm -rf conftest.dir
4363 mkdir conftest.dir
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4367 cd conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4373 # directory.
4374 mkdir sub
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380 am__universal=false
4381 case " $depcc " in #(
4382 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4383 esac
4385 for depmode in $am_compiler_list; do
4386 # Setup a source with many dependencies, because some compilers
4387 # like to wrap large dependency lists on column 80 (with \), and
4388 # we should not choose a depcomp mode which is confused by this.
4390 # We need to recreate these files for each test, as the compiler may
4391 # overwrite some of them when testing with obscure command lines.
4392 # This happens at least with the AIX C compiler.
4393 : > sub/conftest.c
4394 for i in 1 2 3 4 5 6; do
4395 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4396 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4397 # Solaris 8's {/usr,}/bin/sh.
4398 touch sub/conftst$i.h
4399 done
4400 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4403 # mode. It turns out that the SunPro C++ compiler does not properly
4404 # handle `-M -o', and we need to detect this. Also, some Intel
4405 # versions had trouble with output in subdirs
4406 am__obj=sub/conftest.${OBJEXT-o}
4407 am__minus_obj="-o $am__obj"
4408 case $depmode in
4409 gcc)
4410 # This depmode causes a compiler race in universal mode.
4411 test "$am__universal" = false || continue
4413 nosideeffect)
4414 # after this tag, mechanisms are not by side-effect, so they'll
4415 # only be used when explicitly requested
4416 if test "x$enable_dependency_tracking" = xyes; then
4417 continue
4418 else
4419 break
4422 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4423 # This compiler won't grok `-c -o', but also, the minuso test has
4424 # not run yet. These depmodes are late enough in the game, and
4425 # so weak that their functioning should not be impacted.
4426 am__obj=conftest.${OBJEXT-o}
4427 am__minus_obj=
4429 none) break ;;
4430 esac
4431 if depmode=$depmode \
4432 source=sub/conftest.c object=$am__obj \
4433 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4434 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4435 >/dev/null 2>conftest.err &&
4436 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4437 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4438 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4439 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4440 # icc doesn't choke on unknown options, it will just issue warnings
4441 # or remarks (even with -Werror). So we grep stderr for any message
4442 # that says an option was ignored or not supported.
4443 # When given -MP, icc 7.0 and 7.1 complain thusly:
4444 # icc: Command line warning: ignoring option '-M'; no argument required
4445 # The diagnosis changed in icc 8.0:
4446 # icc: Command line remark: option '-MP' not supported
4447 if (grep 'ignoring option' conftest.err ||
4448 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4449 am_cv_CC_dependencies_compiler_type=$depmode
4450 break
4453 done
4455 cd ..
4456 rm -rf conftest.dir
4457 else
4458 am_cv_CC_dependencies_compiler_type=none
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4463 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4464 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467 test "x$enable_dependency_tracking" != xno \
4468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4469 am__fastdepCC_TRUE=
4470 am__fastdepCC_FALSE='#'
4471 else
4472 am__fastdepCC_TRUE='#'
4473 am__fastdepCC_FALSE=
4478 ac_ext=c
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4485 # On Suns, sometimes $CPP names a directory.
4486 if test -n "$CPP" && test -d "$CPP"; then
4487 CPP=
4489 if test -z "$CPP"; then
4490 if test "${ac_cv_prog_CPP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 # Double quotes because CPP needs to be expanded
4494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4496 ac_preproc_ok=false
4497 for ac_c_preproc_warn_flag in '' yes
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #ifdef __STDC__
4508 # include <limits.h>
4509 #else
4510 # include <assert.h>
4511 #endif
4512 Syntax error
4513 _ACEOF
4514 if ac_fn_c_try_cpp "$LINENO"; then :
4516 else
4517 # Broken: fails on valid input.
4518 continue
4520 rm -f conftest.err conftest.$ac_ext
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4529 # Broken: success on invalid input.
4530 continue
4531 else
4532 # Passes both tests.
4533 ac_preproc_ok=:
4534 break
4536 rm -f conftest.err conftest.$ac_ext
4538 done
4539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540 rm -f conftest.err conftest.$ac_ext
4541 if $ac_preproc_ok; then :
4542 break
4545 done
4546 ac_cv_prog_CPP=$CPP
4549 CPP=$ac_cv_prog_CPP
4550 else
4551 ac_cv_prog_CPP=$CPP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4554 $as_echo "$CPP" >&6; }
4555 ac_preproc_ok=false
4556 for ac_c_preproc_warn_flag in '' yes
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if ac_fn_c_try_cpp "$LINENO"; then :
4575 else
4576 # Broken: fails on valid input.
4577 continue
4579 rm -f conftest.err conftest.$ac_ext
4581 # OK, works on sane cases. Now check whether nonexistent headers
4582 # can be detected and how.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ac_nonexistent.h>
4586 _ACEOF
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4588 # Broken: success on invalid input.
4589 continue
4590 else
4591 # Passes both tests.
4592 ac_preproc_ok=:
4593 break
4595 rm -f conftest.err conftest.$ac_ext
4597 done
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then :
4602 else
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details." "$LINENO" 5; }
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4618 if test "${ac_cv_path_GREP+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -z "$GREP"; then
4622 ac_path_GREP_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in grep ggrep; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4632 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4633 # Check for GNU ac_path_GREP and select it if it is found.
4634 # Check for GNU $ac_path_GREP
4635 case `"$ac_path_GREP" --version 2>&1` in
4636 *GNU*)
4637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'GREP' >> "conftest.nl"
4647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_GREP="$ac_path_GREP"
4653 ac_path_GREP_max=$ac_count
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4661 $ac_path_GREP_found && break 3
4662 done
4663 done
4664 done
4665 IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_GREP"; then
4667 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 else
4670 ac_cv_path_GREP=$GREP
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4675 $as_echo "$ac_cv_path_GREP" >&6; }
4676 GREP="$ac_cv_path_GREP"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4680 $as_echo_n "checking for egrep... " >&6; }
4681 if test "${ac_cv_path_EGREP+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4685 then ac_cv_path_EGREP="$GREP -E"
4686 else
4687 if test -z "$EGREP"; then
4688 ac_path_EGREP_found=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_prog in egrep; do
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4698 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4699 # Check for GNU ac_path_EGREP and select it if it is found.
4700 # Check for GNU $ac_path_EGREP
4701 case `"$ac_path_EGREP" --version 2>&1` in
4702 *GNU*)
4703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705 ac_count=0
4706 $as_echo_n 0123456789 >"conftest.in"
4707 while :
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'EGREP' >> "conftest.nl"
4713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715 as_fn_arith $ac_count + 1 && ac_count=$as_val
4716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_EGREP="$ac_path_EGREP"
4719 ac_path_EGREP_max=$ac_count
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4723 done
4724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 esac
4727 $ac_path_EGREP_found && break 3
4728 done
4729 done
4730 done
4731 IFS=$as_save_IFS
4732 if test -z "$ac_cv_path_EGREP"; then
4733 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 else
4736 ac_cv_path_EGREP=$EGREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4742 $as_echo "$ac_cv_path_EGREP" >&6; }
4743 EGREP="$ac_cv_path_EGREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4747 $as_echo_n "checking for ANSI C header files... " >&6; }
4748 if test "${ac_cv_header_stdc+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <stdlib.h>
4754 #include <stdarg.h>
4755 #include <string.h>
4756 #include <float.h>
4759 main ()
4763 return 0;
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_header_stdc=yes
4768 else
4769 ac_cv_header_stdc=no
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 if test $ac_cv_header_stdc = yes; then
4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #include <string.h>
4779 _ACEOF
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev/null 2>&1; then :
4783 else
4784 ac_cv_header_stdc=no
4786 rm -f conftest*
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <stdlib.h>
4796 _ACEOF
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 $EGREP "free" >/dev/null 2>&1; then :
4800 else
4801 ac_cv_header_stdc=no
4803 rm -f conftest*
4807 if test $ac_cv_header_stdc = yes; then
4808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4809 if test "$cross_compiling" = yes; then :
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <ctype.h>
4815 #include <stdlib.h>
4816 #if ((' ' & 0x0FF) == 0x020)
4817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4819 #else
4820 # define ISLOWER(c) \
4821 (('a' <= (c) && (c) <= 'i') \
4822 || ('j' <= (c) && (c) <= 'r') \
4823 || ('s' <= (c) && (c) <= 'z'))
4824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4825 #endif
4827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 main ()
4831 int i;
4832 for (i = 0; i < 256; i++)
4833 if (XOR (islower (i), ISLOWER (i))
4834 || toupper (i) != TOUPPER (i))
4835 return 2;
4836 return 0;
4838 _ACEOF
4839 if ac_fn_c_try_run "$LINENO"; then :
4841 else
4842 ac_cv_header_stdc=no
4844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4845 conftest.$ac_objext conftest.beam conftest.$ac_ext
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4851 $as_echo "$ac_cv_header_stdc" >&6; }
4852 if test $ac_cv_header_stdc = yes; then
4854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4860 inttypes.h stdint.h unistd.h
4861 do :
4862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4865 eval as_val=\$$as_ac_Header
4866 if test "x$as_val" = x""yes; then :
4867 cat >>confdefs.h <<_ACEOF
4868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869 _ACEOF
4873 done
4877 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4878 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4879 MINIX=yes
4880 else
4881 MINIX=
4885 if test "$MINIX" = yes; then
4887 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4890 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4893 $as_echo "#define _MINIX 1" >>confdefs.h
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4899 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4900 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4906 # define __EXTENSIONS__ 1
4907 $ac_includes_default
4909 main ()
4913 return 0;
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 ac_cv_safe_to_define___extensions__=yes
4918 else
4919 ac_cv_safe_to_define___extensions__=no
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4924 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4925 test $ac_cv_safe_to_define___extensions__ = yes &&
4926 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4928 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4930 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4932 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4934 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4938 # Calculate toolexeclibdir
4939 # Also toolexecdir, though it's only used in toolexeclibdir
4940 case ${version_specific_libs} in
4941 yes)
4942 # Need the gcc compiler version to know where to install libraries
4943 # and header files if --enable-version-specific-runtime-libs option
4944 # is selected.
4945 toolexecdir='$(libdir)/gcc/$(target_alias)'
4946 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4949 if test -n "$with_cross_host" &&
4950 test x"$with_cross_host" != x"no"; then
4951 # Install a library built with a cross compiler in tooldir, not libdir.
4952 toolexecdir='$(exec_prefix)/$(target_alias)'
4953 toolexeclibdir='$(toolexecdir)/lib'
4954 else
4955 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4956 toolexeclibdir='$(libdir)'
4958 multi_os_directory=`$CC -print-multi-os-directory`
4959 case $multi_os_directory in
4960 .) ;; # Avoid trailing /.
4961 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4962 esac
4964 esac
4968 # Create a spec file, so that compile/link tests don't fail
4969 test -f libgfortran.spec || touch libgfortran.spec
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 # Check the compiler.
4978 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4979 # We must force CC to /not/ be precious variables; otherwise
4980 # the wrong, non-multilib-adjusted value will be used in multilibs.
4981 # As a side effect, we have to subst CFLAGS ourselves.
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_CC+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$CC"; then
4999 ac_cv_prog_CC="$CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 CC=$ac_cv_prog_CC
5019 if test -n "$CC"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5021 $as_echo "$CC" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5029 if test -z "$ac_cv_prog_CC"; then
5030 ac_ct_CC=$CC
5031 # Extract the first word of "gcc", so it can be a program name with args.
5032 set dummy gcc; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_CC"; then
5039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_CC="gcc"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5059 if test -n "$ac_ct_CC"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5061 $as_echo "$ac_ct_CC" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5067 if test "x$ac_ct_CC" = x; then
5068 CC=""
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 CC=$ac_ct_CC
5078 else
5079 CC="$ac_cv_prog_CC"
5082 if test -z "$CC"; then
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}cc; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_CC+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CC"; then
5092 ac_cv_prog_CC="$CC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_CC="${ac_tool_prefix}cc"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 CC=$ac_cv_prog_CC
5112 if test -n "$CC"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5114 $as_echo "$CC" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5123 if test -z "$CC"; then
5124 # Extract the first word of "cc", so it can be a program name with args.
5125 set dummy cc; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_CC+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$CC"; then
5132 ac_cv_prog_CC="$CC" # Let the user override the test.
5133 else
5134 ac_prog_rejected=no
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5143 ac_prog_rejected=yes
5144 continue
5146 ac_cv_prog_CC="cc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5154 if test $ac_prog_rejected = yes; then
5155 # We found a bogon in the path, so make sure we never use it.
5156 set dummy $ac_cv_prog_CC
5157 shift
5158 if test $# != 0; then
5159 # We chose a different compiler from the bogus one.
5160 # However, it has the same basename, so the bogon will be chosen
5161 # first if we set CC to just the basename; use the full file name.
5162 shift
5163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5168 CC=$ac_cv_prog_CC
5169 if test -n "$CC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 $as_echo "$CC" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 if test -z "$CC"; then
5180 if test -n "$ac_tool_prefix"; then
5181 for ac_prog in cl.exe
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_CC+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$CC"; then
5191 ac_cv_prog_CC="$CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 CC=$ac_cv_prog_CC
5211 if test -n "$CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5213 $as_echo "$CC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 test -n "$CC" && break
5221 done
5223 if test -z "$CC"; then
5224 ac_ct_CC=$CC
5225 for ac_prog in cl.exe
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_CC"; then
5235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_CC="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5250 IFS=$as_save_IFS
5254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5255 if test -n "$ac_ct_CC"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5257 $as_echo "$ac_ct_CC" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$ac_ct_CC" && break
5265 done
5267 if test "x$ac_ct_CC" = x; then
5268 CC=""
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 CC=$ac_ct_CC
5283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5285 as_fn_error "no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details." "$LINENO" 5; }
5288 # Provide some information about the compiler.
5289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5290 set X $ac_compile
5291 ac_compiler=$2
5292 for ac_option in --version -v -V -qversion; do
5293 { { ac_try="$ac_compiler $ac_option >&5"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5301 ac_status=$?
5302 if test -s conftest.err; then
5303 sed '10a\
5304 ... rest of stderr output deleted ...
5305 10q' conftest.err >conftest.er1
5306 cat conftest.er1 >&5
5307 rm -f conftest.er1 conftest.err
5309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5310 test $ac_status = 0; }
5311 done
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5315 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5322 main ()
5324 #ifndef __GNUC__
5325 choke me
5326 #endif
5329 return 0;
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_compiler_gnu=yes
5334 else
5335 ac_compiler_gnu=no
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5343 if test $ac_compiler_gnu = yes; then
5344 GCC=yes
5345 else
5346 GCC=
5348 ac_test_CFLAGS=${CFLAGS+set}
5349 ac_save_CFLAGS=$CFLAGS
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5352 if test "${ac_cv_prog_cc_g+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 ac_save_c_werror_flag=$ac_c_werror_flag
5356 ac_c_werror_flag=yes
5357 ac_cv_prog_cc_g=no
5358 CFLAGS="-g"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5363 main ()
5367 return 0;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_g=yes
5372 else
5373 CFLAGS=""
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5378 main ()
5382 return 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5387 else
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5389 CFLAGS="-g"
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5394 main ()
5398 return 0;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_prog_cc_g=yes
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_c_werror_flag=$ac_save_c_werror_flag
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5412 $as_echo "$ac_cv_prog_cc_g" >&6; }
5413 if test "$ac_test_CFLAGS" = set; then
5414 CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416 if test "$GCC" = yes; then
5417 CFLAGS="-g -O2"
5418 else
5419 CFLAGS="-g"
5421 else
5422 if test "$GCC" = yes; then
5423 CFLAGS="-O2"
5424 else
5425 CFLAGS=
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5430 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 ac_cv_prog_cc_c89=no
5434 ac_save_CC=$CC
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <stdarg.h>
5438 #include <stdio.h>
5439 #include <sys/types.h>
5440 #include <sys/stat.h>
5441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5442 struct buf { int x; };
5443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5444 static char *e (p, i)
5445 char **p;
5446 int i;
5448 return p[i];
5450 static char *f (char * (*g) (char **, int), char **p, ...)
5452 char *s;
5453 va_list v;
5454 va_start (v,p);
5455 s = g (p, va_arg (v,int));
5456 va_end (v);
5457 return s;
5460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5461 function prototypes and stuff, but not '\xHH' hex character constants.
5462 These don't provoke an error unfortunately, instead are silently treated
5463 as 'x'. The following induces an error, until -std is added to get
5464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5465 array size at least. It's necessary to write '\x00'==0 to get something
5466 that's true only with -std. */
5467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5470 inside strings and character constants. */
5471 #define FOO(x) 'x'
5472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5474 int test (int i, double x);
5475 struct s1 {int (*f) (int a);};
5476 struct s2 {int (*f) (double a);};
5477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5478 int argc;
5479 char **argv;
5481 main ()
5483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5485 return 0;
5487 _ACEOF
5488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5491 CC="$ac_save_CC $ac_arg"
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 ac_cv_prog_cc_c89=$ac_arg
5495 rm -f core conftest.err conftest.$ac_objext
5496 test "x$ac_cv_prog_cc_c89" != "xno" && break
5497 done
5498 rm -f conftest.$ac_ext
5499 CC=$ac_save_CC
5502 # AC_CACHE_VAL
5503 case "x$ac_cv_prog_cc_c89" in
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5506 $as_echo "none needed" >&6; } ;;
5507 xno)
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5509 $as_echo "unsupported" >&6; } ;;
5511 CC="$CC $ac_cv_prog_cc_c89"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5514 esac
5515 if test "x$ac_cv_prog_cc_c89" != xno; then :
5519 ac_ext=c
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525 depcc="$CC" am_compiler_list=
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5528 $as_echo_n "checking dependency style of $depcc... " >&6; }
5529 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5533 # We make a subdir and do the tests there. Otherwise we can end up
5534 # making bogus files that we don't know about and never remove. For
5535 # instance it was reported that on HP-UX the gcc test will end up
5536 # making a dummy file named `D' -- because `-MD' means `put the output
5537 # in D'.
5538 rm -rf conftest.dir
5539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle `-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs
5582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5589 nosideeffect)
5590 # after this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested
5592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5599 # This compiler won't grok `-c -o', but also, the minuso test has
5600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5629 done
5631 cd ..
5632 rm -rf conftest.dir
5633 else
5634 am_cv_CC_dependencies_compiler_type=none
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647 else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5657 if test "x$CC" != xcc; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5659 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5662 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5664 set dummy $CC; ac_cc=`$as_echo "$2" |
5665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5666 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5673 main ()
5677 return 0;
5679 _ACEOF
5680 # Make sure it works both with $CC and with simple cc.
5681 # We do the test twice because some compilers refuse to overwrite an
5682 # existing .o file with -o, though they will create one.
5683 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5684 rm -f conftest2.*
5685 if { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; } &&
5695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; };
5705 then
5706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5707 if test "x$CC" != xcc; then
5708 # Test first that cc exists at all.
5709 if { ac_try='cc -c conftest.$ac_ext >&5'
5710 { { case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5715 $as_echo "$ac_try_echo"; } >&5
5716 (eval "$ac_try") 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; }; }; then
5720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5721 rm -f conftest2.*
5722 if { { case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; } &&
5732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5737 $as_echo "$ac_try_echo"; } >&5
5738 (eval "$ac_try") 2>&5
5739 ac_status=$?
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; };
5742 then
5743 # cc works too.
5745 else
5746 # cc exists but doesn't like -o.
5747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5751 else
5752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5754 rm -f core conftest*
5757 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5764 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5768 # FIXME: we rely on the cache variable name because
5769 # there is no other way.
5770 set dummy $CC
5771 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5772 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5773 if test "$am_t" != yes; then
5774 # Losing compiler, so override with the script.
5775 # FIXME: It is wrong to rewrite CC.
5776 # But if we don't then we get into trouble of one sort or another.
5777 # A longer-term fix would be to have automake use am__CC in this case,
5778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5779 CC="$am_aux_dir/compile $CC"
5784 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5785 if test "x$GCC" = "xyes"; then
5786 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5787 ## We like to use C11 and C99 routines when available. This makes
5788 ## sure that
5789 ## __STDC_VERSION__ is set such that libc includes make them available.
5790 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5791 ## Compile the following tests with the same system header contents
5792 ## that we'll encounter when compiling our own source files.
5793 CFLAGS="-std=gnu11 $CFLAGS"
5796 # Add CET specific flags if CET is enabled
5797 # Check whether --enable-cet was given.
5798 if test "${enable_cet+set}" = set; then :
5799 enableval=$enable_cet;
5800 case "$enableval" in
5801 yes|no|auto) ;;
5802 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5803 esac
5805 else
5806 enable_cet=no
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5811 $as_echo_n "checking for CET support... " >&6; }
5813 case "$host" in
5814 i[34567]86-*-linux* | x86_64-*-linux*)
5815 case "$enable_cet" in
5816 auto)
5817 # Check if target supports multi-byte NOPs
5818 # and if assembler supports CET insn.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5823 main ()
5826 #if !defined(__SSE2__)
5827 #error target does not support multi-byte NOPs
5828 #else
5829 asm ("setssbsy");
5830 #endif
5833 return 0;
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 enable_cet=yes
5838 else
5839 enable_cet=no
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 yes)
5844 # Check if assembler supports CET.
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5849 main ()
5851 asm ("setssbsy");
5853 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5858 else
5859 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 esac
5866 enable_cet=no
5868 esac
5869 if test x$enable_cet = xyes; then
5870 CET_FLAGS="-fcf-protection -mshstk"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872 $as_echo "yes" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5878 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
5879 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
5880 CFLAGS="$CFLAGS $CET_FLAGS"
5886 # Check for symbol versioning (copied from libssp).
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5888 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5889 # Check whether --enable-symvers was given.
5890 if test "${enable_symvers+set}" = set; then :
5891 enableval=$enable_symvers; gfortran_use_symver=$enableval
5892 else
5893 gfortran_use_symver=yes
5896 if test "x$gfortran_use_symver" != xno; then
5897 save_LDFLAGS="$LDFLAGS"
5898 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5899 cat > conftest.map <<EOF
5900 FOO_1.0 {
5901 global: *foo*; bar; local: *;
5904 if test x$gcc_no_link = xyes; then
5905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int foo;
5911 main ()
5915 return 0;
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"; then :
5919 gfortran_use_symver=gnu
5920 else
5921 gfortran_use_symver=no
5923 rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 if test x$gfortran_use_symver = xno; then
5926 case "$target_os" in
5927 solaris2*)
5928 LDFLAGS="$save_LDFLAGS"
5929 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5930 # Sun ld cannot handle wildcards and treats all entries as undefined.
5931 cat > conftest.map <<EOF
5932 FOO_1.0 {
5933 global: foo; local: *;
5936 if test x$gcc_no_link = xyes; then
5937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 int foo;
5943 main ()
5947 return 0;
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 gfortran_use_symver=sun
5952 else
5953 gfortran_use_symver=no
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5958 esac
5960 LDFLAGS="$save_LDFLAGS"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5963 $as_echo "$gfortran_use_symver" >&6; }
5964 if test "x$gfortran_use_symver" != xno; then
5965 LIBGFOR_USE_SYMVER_TRUE=
5966 LIBGFOR_USE_SYMVER_FALSE='#'
5967 else
5968 LIBGFOR_USE_SYMVER_TRUE='#'
5969 LIBGFOR_USE_SYMVER_FALSE=
5972 if test "x$gfortran_use_symver" = xgnu; then
5973 LIBGFOR_USE_SYMVER_GNU_TRUE=
5974 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5975 else
5976 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5977 LIBGFOR_USE_SYMVER_GNU_FALSE=
5980 if test "x$gfortran_use_symver" = xsun; then
5981 LIBGFOR_USE_SYMVER_SUN_TRUE=
5982 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5983 else
5984 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5985 LIBGFOR_USE_SYMVER_SUN_FALSE=
5989 # For GPU offloading, not everything in libfortran can be supported.
5990 # Currently, the only target that has this problem is nvptx. The
5991 # following is a (partial) list of features that are unsupportable on
5992 # this particular target:
5993 # * Constructors
5994 # * alloca
5995 # * C library support for I/O, with printf as the one notable exception
5996 # * C library support for other features such as signal, environment
5997 # variables, time functions
5999 if test "x${target_cpu}" = xnvptx; then
6000 LIBGFOR_MINIMAL_TRUE=
6001 LIBGFOR_MINIMAL_FALSE='#'
6002 else
6003 LIBGFOR_MINIMAL_TRUE='#'
6004 LIBGFOR_MINIMAL_FALSE=
6008 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6009 # similarly to how libstdc++ does it
6010 ac_test_CFLAGS="${CFLAGS+set}"
6011 ac_save_CFLAGS="$CFLAGS"
6013 # Check for -ffunction-sections -fdata-sections
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6015 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6016 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6021 main ()
6023 int foo;
6025 return 0;
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 ac_fdsections=yes
6030 else
6031 ac_fdsections=no
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test "$ac_test_CFLAGS" = set; then
6035 CFLAGS="$ac_save_CFLAGS"
6036 else
6037 # this is the suspicious part
6038 CFLAGS=""
6040 if test x"$ac_fdsections" = x"yes"; then
6041 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6044 $as_echo "$ac_fdsections" >&6; }
6047 # Check linker hardware capability support.
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6049 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6050 if test "${ac_cv_path_SED+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6054 for ac_i in 1 2 3 4 5 6 7; do
6055 ac_script="$ac_script$as_nl$ac_script"
6056 done
6057 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6058 { ac_script=; unset ac_script;}
6059 if test -z "$SED"; then
6060 ac_path_SED_found=false
6061 # Loop through the user's path and test for each of PROGNAME-LIST
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_prog in sed gsed; do
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6070 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6071 # Check for GNU ac_path_SED and select it if it is found.
6072 # Check for GNU $ac_path_SED
6073 case `"$ac_path_SED" --version 2>&1` in
6074 *GNU*)
6075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6077 ac_count=0
6078 $as_echo_n 0123456789 >"conftest.in"
6079 while :
6081 cat "conftest.in" "conftest.in" >"conftest.tmp"
6082 mv "conftest.tmp" "conftest.in"
6083 cp "conftest.in" "conftest.nl"
6084 $as_echo '' >> "conftest.nl"
6085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087 as_fn_arith $ac_count + 1 && ac_count=$as_val
6088 if test $ac_count -gt ${ac_path_SED_max-0}; then
6089 # Best one so far, save it but keep looking for a better one
6090 ac_cv_path_SED="$ac_path_SED"
6091 ac_path_SED_max=$ac_count
6093 # 10*(2^10) chars as input seems more than enough
6094 test $ac_count -gt 10 && break
6095 done
6096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097 esac
6099 $ac_path_SED_found && break 3
6100 done
6101 done
6102 done
6103 IFS=$as_save_IFS
6104 if test -z "$ac_cv_path_SED"; then
6105 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6107 else
6108 ac_cv_path_SED=$SED
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6113 $as_echo "$ac_cv_path_SED" >&6; }
6114 SED="$ac_cv_path_SED"
6115 rm -f conftest.sed
6117 test -z "$SED" && SED=sed
6118 Xsed="$SED -e 1s/^X//"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6131 $as_echo_n "checking for fgrep... " >&6; }
6132 if test "${ac_cv_path_FGREP+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6136 then ac_cv_path_FGREP="$GREP -F"
6137 else
6138 if test -z "$FGREP"; then
6139 ac_path_FGREP_found=false
6140 # Loop through the user's path and test for each of PROGNAME-LIST
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_prog in fgrep; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6149 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6150 # Check for GNU ac_path_FGREP and select it if it is found.
6151 # Check for GNU $ac_path_FGREP
6152 case `"$ac_path_FGREP" --version 2>&1` in
6153 *GNU*)
6154 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6156 ac_count=0
6157 $as_echo_n 0123456789 >"conftest.in"
6158 while :
6160 cat "conftest.in" "conftest.in" >"conftest.tmp"
6161 mv "conftest.tmp" "conftest.in"
6162 cp "conftest.in" "conftest.nl"
6163 $as_echo 'FGREP' >> "conftest.nl"
6164 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6166 as_fn_arith $ac_count + 1 && ac_count=$as_val
6167 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6168 # Best one so far, save it but keep looking for a better one
6169 ac_cv_path_FGREP="$ac_path_FGREP"
6170 ac_path_FGREP_max=$ac_count
6172 # 10*(2^10) chars as input seems more than enough
6173 test $ac_count -gt 10 && break
6174 done
6175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6176 esac
6178 $ac_path_FGREP_found && break 3
6179 done
6180 done
6181 done
6182 IFS=$as_save_IFS
6183 if test -z "$ac_cv_path_FGREP"; then
6184 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6186 else
6187 ac_cv_path_FGREP=$FGREP
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6193 $as_echo "$ac_cv_path_FGREP" >&6; }
6194 FGREP="$ac_cv_path_FGREP"
6197 test -z "$GREP" && GREP=grep
6215 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6220 $as_echo_n "checking how to print strings... " >&6; }
6221 # Test print first, because it will be a builtin if present.
6222 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6223 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6224 ECHO='print -r --'
6225 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6226 ECHO='printf %s\n'
6227 else
6228 # Use this function as a fallback that always works.
6229 func_fallback_echo ()
6231 eval 'cat <<_LTECHO_EOF
6233 _LTECHO_EOF'
6235 ECHO='func_fallback_echo'
6238 # func_echo_all arg...
6239 # Invoke $ECHO with all args, space-separated.
6240 func_echo_all ()
6242 $ECHO ""
6245 case "$ECHO" in
6246 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6247 $as_echo "printf" >&6; } ;;
6248 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6249 $as_echo "print -r" >&6; } ;;
6250 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6251 $as_echo "cat" >&6; } ;;
6252 esac
6269 # Check whether --with-gnu-ld was given.
6270 if test "${with_gnu_ld+set}" = set; then :
6271 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6272 else
6273 with_gnu_ld=no
6276 ac_prog=ld
6277 if test "$GCC" = yes; then
6278 # Check if gcc -print-prog-name=ld gives a path.
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6280 $as_echo_n "checking for ld used by $CC... " >&6; }
6281 case $host in
6282 *-*-mingw*)
6283 # gcc leaves a trailing carriage return which upsets mingw
6284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6287 esac
6288 case $ac_prog in
6289 # Accept absolute paths.
6290 [\\/]* | ?:[\\/]*)
6291 re_direlt='/[^/][^/]*/\.\./'
6292 # Canonicalize the pathname of ld
6293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6296 done
6297 test -z "$LD" && LD="$ac_prog"
6300 # If it fails, then pretend we aren't using GCC.
6301 ac_prog=ld
6304 # If it is relative, then search for the first ld in PATH.
6305 with_gnu_ld=unknown
6307 esac
6308 elif test "$with_gnu_ld" = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6310 $as_echo_n "checking for GNU ld... " >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6313 $as_echo_n "checking for non-GNU ld... " >&6; }
6315 if test "${lt_cv_path_LD+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -z "$LD"; then
6319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6320 for ac_dir in $PATH; do
6321 IFS="$lt_save_ifs"
6322 test -z "$ac_dir" && ac_dir=.
6323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6324 lt_cv_path_LD="$ac_dir/$ac_prog"
6325 # Check to see if the program is GNU ld. I'd rather use --version,
6326 # but apparently some variants of GNU ld only accept -v.
6327 # Break only if it was the GNU/non-GNU ld that we prefer.
6328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330 test "$with_gnu_ld" != no && break
6333 test "$with_gnu_ld" != yes && break
6335 esac
6337 done
6338 IFS="$lt_save_ifs"
6339 else
6340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6344 LD="$lt_cv_path_LD"
6345 if test -n "$LD"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6347 $as_echo "$LD" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6352 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6355 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6359 case `$LD -v 2>&1 </dev/null` in
6360 *GNU* | *'with BFD'*)
6361 lt_cv_prog_gnu_ld=yes
6364 lt_cv_prog_gnu_ld=no
6366 esac
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6370 with_gnu_ld=$lt_cv_prog_gnu_ld
6381 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6384 ac_save_LDFLAGS="$LDFLAGS"
6385 LDFLAGS="$LFLAGS -mclear-hwcap"
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6388 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6389 if test x$gcc_no_link = xyes; then
6390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6396 main ()
6398 return 0;
6400 return 0;
6402 _ACEOF
6403 if ac_fn_c_try_link "$LINENO"; then :
6404 ac_hwcap_ldflags=yes
6405 else
6406 ac_hwcap_ldflags=no
6408 rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_hwcap_ldflags" = "yes"; then
6411 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6414 $as_echo "$ac_hwcap_ldflags" >&6; }
6416 LDFLAGS="$ac_save_LDFLAGS"
6420 if test $ac_hwcap_ldflags != no; then
6421 HAVE_HWCAP_TRUE=
6422 HAVE_HWCAP_FALSE='#'
6423 else
6424 HAVE_HWCAP_TRUE='#'
6425 HAVE_HWCAP_FALSE=
6430 # Find other programs we need.
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}as; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_AS+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$AS"; then
6440 ac_cv_prog_AS="$AS" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_AS="${ac_tool_prefix}as"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6453 done
6454 done
6455 IFS=$as_save_IFS
6459 AS=$ac_cv_prog_AS
6460 if test -n "$AS"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6462 $as_echo "$AS" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6470 if test -z "$ac_cv_prog_AS"; then
6471 ac_ct_AS=$AS
6472 # Extract the first word of "as", so it can be a program name with args.
6473 set dummy as; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if test -n "$ac_ct_AS"; then
6480 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_AS="as"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6493 done
6494 done
6495 IFS=$as_save_IFS
6499 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6500 if test -n "$ac_ct_AS"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6502 $as_echo "$ac_ct_AS" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6508 if test "x$ac_ct_AS" = x; then
6509 AS=""
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 AS=$ac_ct_AS
6519 else
6520 AS="$ac_cv_prog_AS"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}ar; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_AR+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$AR"; then
6532 ac_cv_prog_AR="$AR" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_AR="${ac_tool_prefix}ar"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6551 AR=$ac_cv_prog_AR
6552 if test -n "$AR"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6554 $as_echo "$AR" >&6; }
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6562 if test -z "$ac_cv_prog_AR"; then
6563 ac_ct_AR=$AR
6564 # Extract the first word of "ar", so it can be a program name with args.
6565 set dummy ar; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_AR"; then
6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_AR="ar"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6592 if test -n "$ac_ct_AR"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6594 $as_echo "$ac_ct_AR" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6600 if test "x$ac_ct_AR" = x; then
6601 AR=""
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 AR=$ac_ct_AR
6611 else
6612 AR="$ac_cv_prog_AR"
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$RANLIB"; then
6624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6637 done
6638 done
6639 IFS=$as_save_IFS
6643 RANLIB=$ac_cv_prog_RANLIB
6644 if test -n "$RANLIB"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6646 $as_echo "$RANLIB" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6654 if test -z "$ac_cv_prog_RANLIB"; then
6655 ac_ct_RANLIB=$RANLIB
6656 # Extract the first word of "ranlib", so it can be a program name with args.
6657 set dummy ranlib; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$ac_ct_RANLIB"; then
6664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_RANLIB="ranlib"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684 if test -n "$ac_ct_RANLIB"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6686 $as_echo "$ac_ct_RANLIB" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6692 if test "x$ac_ct_RANLIB" = x; then
6693 RANLIB="ranlib-not-found-in-path-error"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 RANLIB=$ac_ct_RANLIB
6703 else
6704 RANLIB="$ac_cv_prog_RANLIB"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6709 set x ${MAKE-make}
6710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6711 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat >conftest.make <<\_ACEOF
6715 SHELL = /bin/sh
6716 all:
6717 @echo '@@@%%%=$(MAKE)=@@@%%%'
6718 _ACEOF
6719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6721 *@@@%%%=?*=@@@%%%*)
6722 eval ac_cv_prog_make_${ac_make}_set=yes;;
6724 eval ac_cv_prog_make_${ac_make}_set=no;;
6725 esac
6726 rm -f conftest.make
6728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6730 $as_echo "yes" >&6; }
6731 SET_MAKE=
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 SET_MAKE="MAKE=${MAKE-make}"
6740 # Configure libtool
6741 #AC_MSG_NOTICE([====== Starting libtool configuration])
6742 enable_dlopen=yes
6746 case `pwd` in
6747 *\ * | *\ *)
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6749 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6750 esac
6754 macro_version='2.2.7a'
6755 macro_revision='1.3134'
6769 ltmain="$ac_aux_dir/ltmain.sh"
6771 # Backslashify metacharacters that are still active within
6772 # double-quoted strings.
6773 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6775 # Same as above, but do not quote variable references.
6776 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6778 # Sed substitution to delay expansion of an escaped shell variable in a
6779 # double_quote_subst'ed string.
6780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6782 # Sed substitution to delay expansion of an escaped single quote.
6783 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6785 # Sed substitution to avoid accidental globbing in evaled expressions
6786 no_glob_subst='s/\*/\\\*/g'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6789 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6790 if test "${lt_cv_path_NM+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6795 lt_cv_path_NM="$NM"
6796 else
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6804 IFS="$lt_save_ifs"
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that /dev/null is an invalid object file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev/null* | *'Invalid file or object type'*)
6814 lt_cv_path_NM="$tmp_nm -B"
6815 break
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6819 */dev/null*)
6820 lt_cv_path_NM="$tmp_nm -p"
6821 break
6824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6827 esac
6829 esac
6831 done
6832 IFS="$lt_save_ifs"
6833 done
6834 : ${lt_cv_path_NM=no}
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6838 $as_echo "$lt_cv_path_NM" >&6; }
6839 if test "$lt_cv_path_NM" != "no"; then
6840 NM="$lt_cv_path_NM"
6841 else
6842 # Didn't find any BSD compatible name lister, look for dumpbin.
6843 if test -n "$DUMPBIN"; then :
6844 # Let the user override the test.
6845 else
6846 if test -n "$ac_tool_prefix"; then
6847 for ac_prog in dumpbin "link -dump"
6849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$DUMPBIN"; then
6857 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 DUMPBIN=$ac_cv_prog_DUMPBIN
6877 if test -n "$DUMPBIN"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6879 $as_echo "$DUMPBIN" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 test -n "$DUMPBIN" && break
6887 done
6889 if test -z "$DUMPBIN"; then
6890 ac_ct_DUMPBIN=$DUMPBIN
6891 for ac_prog in dumpbin "link -dump"
6893 # Extract the first word of "$ac_prog", so it can be a program name with args.
6894 set dummy $ac_prog; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_DUMPBIN"; then
6901 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6916 IFS=$as_save_IFS
6920 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6921 if test -n "$ac_ct_DUMPBIN"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6923 $as_echo "$ac_ct_DUMPBIN" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6930 test -n "$ac_ct_DUMPBIN" && break
6931 done
6933 if test "x$ac_ct_DUMPBIN" = x; then
6934 DUMPBIN=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 DUMPBIN=$ac_ct_DUMPBIN
6946 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6947 *COFF*)
6948 DUMPBIN="$DUMPBIN -symbols"
6951 DUMPBIN=:
6953 esac
6956 if test "$DUMPBIN" != ":"; then
6957 NM="$DUMPBIN"
6960 test -z "$NM" && NM=nm
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6968 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6969 if test "${lt_cv_nm_interface+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 lt_cv_nm_interface="BSD nm"
6973 echo "int some_variable = 0;" > conftest.$ac_ext
6974 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6975 (eval "$ac_compile" 2>conftest.err)
6976 cat conftest.err >&5
6977 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6978 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6979 cat conftest.err >&5
6980 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6981 cat conftest.out >&5
6982 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6983 lt_cv_nm_interface="MS dumpbin"
6985 rm -f conftest*
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6988 $as_echo "$lt_cv_nm_interface" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6991 $as_echo_n "checking whether ln -s works... " >&6; }
6992 LN_S=$as_ln_s
6993 if test "$LN_S" = "ln -s"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6995 $as_echo "yes" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6998 $as_echo "no, using $LN_S" >&6; }
7001 # find the maximum length of command line arguments
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7003 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7004 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7008 teststring="ABCD"
7010 case $build_os in
7011 msdosdjgpp*)
7012 # On DJGPP, this test can blow up pretty badly due to problems in libc
7013 # (any single argument exceeding 2000 bytes causes a buffer overrun
7014 # during glob expansion). Even if it were fixed, the result of this
7015 # check would be larger than it should be.
7016 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7019 gnu*)
7020 # Under GNU Hurd, this test is not required because there is
7021 # no limit to the length of command line arguments.
7022 # Libtool will interpret -1 as no limit whatsoever
7023 lt_cv_sys_max_cmd_len=-1;
7026 cygwin* | mingw* | cegcc*)
7027 # On Win9x/ME, this test blows up -- it succeeds, but takes
7028 # about 5 minutes as the teststring grows exponentially.
7029 # Worse, since 9x/ME are not pre-emptively multitasking,
7030 # you end up with a "frozen" computer, even though with patience
7031 # the test eventually succeeds (with a max line length of 256k).
7032 # Instead, let's just punt: use the minimum linelength reported by
7033 # all of the supported platforms: 8192 (on NT/2K/XP).
7034 lt_cv_sys_max_cmd_len=8192;
7037 mint*)
7038 # On MiNT this can take a long time and run out of memory.
7039 lt_cv_sys_max_cmd_len=8192;
7042 amigaos*)
7043 # On AmigaOS with pdksh, this test takes hours, literally.
7044 # So we just punt and use a minimum line length of 8192.
7045 lt_cv_sys_max_cmd_len=8192;
7048 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7049 # This has been around since 386BSD, at least. Likely further.
7050 if test -x /sbin/sysctl; then
7051 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7052 elif test -x /usr/sbin/sysctl; then
7053 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7054 else
7055 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7057 # And add a safety zone
7058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7062 interix*)
7063 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7064 lt_cv_sys_max_cmd_len=196608
7067 osf*)
7068 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7069 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7070 # nice to cause kernel panics so lets avoid the loop below.
7071 # First set a reasonable default.
7072 lt_cv_sys_max_cmd_len=16384
7074 if test -x /sbin/sysconfig; then
7075 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7076 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7077 esac
7080 sco3.2v5*)
7081 lt_cv_sys_max_cmd_len=102400
7083 sysv5* | sco5v6* | sysv4.2uw2*)
7084 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7085 if test -n "$kargmax"; then
7086 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7087 else
7088 lt_cv_sys_max_cmd_len=32768
7092 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7093 if test -n "$lt_cv_sys_max_cmd_len"; then
7094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7096 else
7097 # Make teststring a little bigger before we do anything with it.
7098 # a 1K string should be a reasonable start.
7099 for i in 1 2 3 4 5 6 7 8 ; do
7100 teststring=$teststring$teststring
7101 done
7102 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7103 # If test is not a shell built-in, we'll probably end up computing a
7104 # maximum length that is only half of the actual maximum length, but
7105 # we can't tell.
7106 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7107 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7108 test $i != 17 # 1/2 MB should be enough
7110 i=`expr $i + 1`
7111 teststring=$teststring$teststring
7112 done
7113 # Only check the string length outside the loop.
7114 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7115 teststring=
7116 # Add a significant safety factor because C++ compilers can tack on
7117 # massive amounts of additional arguments before passing them to the
7118 # linker. It appears as though 1/2 is a usable value.
7119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7122 esac
7126 if test -n $lt_cv_sys_max_cmd_len ; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7128 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7131 $as_echo "none" >&6; }
7133 max_cmd_len=$lt_cv_sys_max_cmd_len
7140 : ${CP="cp -f"}
7141 : ${MV="mv -f"}
7142 : ${RM="rm -f"}
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7145 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7146 # Try some XSI features
7147 xsi_shell=no
7148 ( _lt_dummy="a/b/c"
7149 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7150 = c,a/b,, \
7151 && eval 'test $(( 1 + 1 )) -eq 2 \
7152 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7153 && xsi_shell=yes
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7155 $as_echo "$xsi_shell" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7159 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7160 lt_shell_append=no
7161 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7162 >/dev/null 2>&1 \
7163 && lt_shell_append=yes
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7165 $as_echo "$lt_shell_append" >&6; }
7168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7169 lt_unset=unset
7170 else
7171 lt_unset=false
7178 # test EBCDIC or ASCII
7179 case `echo X|tr X '\101'` in
7180 A) # ASCII based system
7181 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7182 lt_SP2NL='tr \040 \012'
7183 lt_NL2SP='tr \015\012 \040\040'
7185 *) # EBCDIC based system
7186 lt_SP2NL='tr \100 \n'
7187 lt_NL2SP='tr \r\n \100\100'
7189 esac
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7200 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7201 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 lt_cv_ld_reload_flag='-r'
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7207 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7208 reload_flag=$lt_cv_ld_reload_flag
7209 case $reload_flag in
7210 "" | " "*) ;;
7211 *) reload_flag=" $reload_flag" ;;
7212 esac
7213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7214 case $host_os in
7215 darwin*)
7216 if test "$GCC" = yes; then
7217 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7218 else
7219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7222 esac
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$OBJDUMP"; then
7241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7254 done
7255 done
7256 IFS=$as_save_IFS
7260 OBJDUMP=$ac_cv_prog_OBJDUMP
7261 if test -n "$OBJDUMP"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7263 $as_echo "$OBJDUMP" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_OBJDUMP"; then
7272 ac_ct_OBJDUMP=$OBJDUMP
7273 # Extract the first word of "objdump", so it can be a program name with args.
7274 set dummy objdump; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_OBJDUMP"; then
7281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7294 done
7295 done
7296 IFS=$as_save_IFS
7300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7301 if test -n "$ac_ct_OBJDUMP"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7303 $as_echo "$ac_ct_OBJDUMP" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_OBJDUMP" = x; then
7310 OBJDUMP="false"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 OBJDUMP=$ac_ct_OBJDUMP
7320 else
7321 OBJDUMP="$ac_cv_prog_OBJDUMP"
7324 test -z "$OBJDUMP" && OBJDUMP=objdump
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7335 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7336 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 lt_cv_file_magic_cmd='$MAGIC_CMD'
7340 lt_cv_file_magic_test_file=
7341 lt_cv_deplibs_check_method='unknown'
7342 # Need to set the preceding variable on all platforms that support
7343 # interlibrary dependencies.
7344 # 'none' -- dependencies not supported.
7345 # `unknown' -- same as none, but documents that we really don't know.
7346 # 'pass_all' -- all dependencies passed with no checks.
7347 # 'test_compile' -- check by making test program.
7348 # 'file_magic [[regex]]' -- check by looking for files in library path
7349 # which responds to the $file_magic_cmd with a given extended regex.
7350 # If you have `file' or equivalent on your system and you're not sure
7351 # whether `pass_all' will *always* work, you probably want this one.
7353 case $host_os in
7354 aix[4-9]*)
7355 lt_cv_deplibs_check_method=pass_all
7358 beos*)
7359 lt_cv_deplibs_check_method=pass_all
7362 bsdi[45]*)
7363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7364 lt_cv_file_magic_cmd='/usr/bin/file -L'
7365 lt_cv_file_magic_test_file=/shlib/libc.so
7368 cygwin*)
7369 # func_win32_libid is a shell function defined in ltmain.sh
7370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7371 lt_cv_file_magic_cmd='func_win32_libid'
7374 mingw* | pw32*)
7375 # Base MSYS/MinGW do not provide the 'file' command needed by
7376 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7377 # unless we find 'file', for example because we are cross-compiling.
7378 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7379 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7381 lt_cv_file_magic_cmd='func_win32_libid'
7382 else
7383 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7384 lt_cv_file_magic_cmd='$OBJDUMP -f'
7388 cegcc*)
7389 # use the weaker test based on 'objdump'. See mingw*.
7390 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7391 lt_cv_file_magic_cmd='$OBJDUMP -f'
7394 darwin* | rhapsody*)
7395 lt_cv_deplibs_check_method=pass_all
7398 freebsd* | dragonfly*)
7399 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7400 case $host_cpu in
7401 i*86 )
7402 # Not sure whether the presence of OpenBSD here was a mistake.
7403 # Let's accept both of them until this is cleared up.
7404 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7405 lt_cv_file_magic_cmd=/usr/bin/file
7406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7408 esac
7409 else
7410 lt_cv_deplibs_check_method=pass_all
7414 gnu*)
7415 lt_cv_deplibs_check_method=pass_all
7418 haiku*)
7419 lt_cv_deplibs_check_method=pass_all
7422 hpux10.20* | hpux11*)
7423 lt_cv_file_magic_cmd=/usr/bin/file
7424 case $host_cpu in
7425 ia64*)
7426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7429 hppa*64*)
7430 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]'
7431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7437 esac
7440 interix[3-9]*)
7441 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7445 irix5* | irix6* | nonstopux*)
7446 case $LD in
7447 *-32|*"-32 ") libmagic=32-bit;;
7448 *-n32|*"-n32 ") libmagic=N32;;
7449 *-64|*"-64 ") libmagic=64-bit;;
7450 *) libmagic=never-match;;
7451 esac
7452 lt_cv_deplibs_check_method=pass_all
7455 # This must be Linux ELF.
7456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7457 lt_cv_deplibs_check_method=pass_all
7460 netbsd*)
7461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7463 else
7464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7468 newos6*)
7469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7470 lt_cv_file_magic_cmd=/usr/bin/file
7471 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7474 *nto* | *qnx*)
7475 lt_cv_deplibs_check_method=pass_all
7478 openbsd*)
7479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7481 else
7482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7486 osf3* | osf4* | osf5*)
7487 lt_cv_deplibs_check_method=pass_all
7490 rdos*)
7491 lt_cv_deplibs_check_method=pass_all
7494 solaris*)
7495 lt_cv_deplibs_check_method=pass_all
7498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7499 lt_cv_deplibs_check_method=pass_all
7502 sysv4 | sysv4.3*)
7503 case $host_vendor in
7504 motorola)
7505 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]'
7506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7508 ncr)
7509 lt_cv_deplibs_check_method=pass_all
7511 sequent)
7512 lt_cv_file_magic_cmd='/bin/file'
7513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7515 sni)
7516 lt_cv_file_magic_cmd='/bin/file'
7517 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7518 lt_cv_file_magic_test_file=/lib/libc.so
7520 siemens)
7521 lt_cv_deplibs_check_method=pass_all
7524 lt_cv_deplibs_check_method=pass_all
7526 esac
7529 tpf*)
7530 lt_cv_deplibs_check_method=pass_all
7532 esac
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7536 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7537 file_magic_cmd=$lt_cv_file_magic_cmd
7538 deplibs_check_method=$lt_cv_deplibs_check_method
7539 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}ar; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_AR+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$AR"; then
7561 ac_cv_prog_AR="$AR" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_AR="${ac_tool_prefix}ar"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7574 done
7575 done
7576 IFS=$as_save_IFS
7580 AR=$ac_cv_prog_AR
7581 if test -n "$AR"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7583 $as_echo "$AR" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_AR"; then
7592 ac_ct_AR=$AR
7593 # Extract the first word of "ar", so it can be a program name with args.
7594 set dummy ar; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_AR"; then
7601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_AR="ar"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7621 if test -n "$ac_ct_AR"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7623 $as_echo "$ac_ct_AR" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_AR" = x; then
7630 AR="false"
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638 AR=$ac_ct_AR
7640 else
7641 AR="$ac_cv_prog_AR"
7644 test -z "$AR" && AR=ar
7645 test -z "$AR_FLAGS" && AR_FLAGS=cru
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}strip; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_STRIP+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$STRIP"; then
7666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 STRIP=$ac_cv_prog_STRIP
7686 if test -n "$STRIP"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7688 $as_echo "$STRIP" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_STRIP"; then
7697 ac_ct_STRIP=$STRIP
7698 # Extract the first word of "strip", so it can be a program name with args.
7699 set dummy strip; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$ac_ct_STRIP"; then
7706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_STRIP="strip"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7726 if test -n "$ac_ct_STRIP"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7728 $as_echo "$ac_ct_STRIP" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_STRIP" = x; then
7735 STRIP=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 STRIP=$ac_ct_STRIP
7745 else
7746 STRIP="$ac_cv_prog_STRIP"
7749 test -z "$STRIP" && STRIP=:
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$RANLIB"; then
7765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 RANLIB=$ac_cv_prog_RANLIB
7785 if test -n "$RANLIB"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7787 $as_echo "$RANLIB" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7795 if test -z "$ac_cv_prog_RANLIB"; then
7796 ac_ct_RANLIB=$RANLIB
7797 # Extract the first word of "ranlib", so it can be a program name with args.
7798 set dummy ranlib; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_RANLIB"; then
7805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_ac_ct_RANLIB="ranlib"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7820 IFS=$as_save_IFS
7824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7825 if test -n "$ac_ct_RANLIB"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7827 $as_echo "$ac_ct_RANLIB" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7833 if test "x$ac_ct_RANLIB" = x; then
7834 RANLIB=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 RANLIB=$ac_ct_RANLIB
7844 else
7845 RANLIB="$ac_cv_prog_RANLIB"
7848 test -z "$RANLIB" && RANLIB=:
7855 # Determine commands to create old-style static archives.
7856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7857 old_postinstall_cmds='chmod 644 $oldlib'
7858 old_postuninstall_cmds=
7860 if test -n "$RANLIB"; then
7861 case $host_os in
7862 openbsd*)
7863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7868 esac
7869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7872 case $host_os in
7873 darwin*)
7874 lock_old_archive_extraction=yes ;;
7876 lock_old_archive_extraction=no ;;
7877 esac
7917 # If no C compiler was specified, use CC.
7918 LTCC=${LTCC-"$CC"}
7920 # If no C compiler flags were specified, use CFLAGS.
7921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7923 # Allow CC to be a program name with arguments.
7924 compiler=$CC
7927 # Check for command to grab the raw symbol name followed by C symbol from nm.
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7930 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7934 # These are sane defaults that work on at least a few old systems.
7935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7937 # Character class describing NM global symbol codes.
7938 symcode='[BCDEGRST]'
7940 # Regexp to match symbols that can be accessed directly from C.
7941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7943 # Define system-specific variables.
7944 case $host_os in
7945 aix*)
7946 symcode='[BCDT]'
7948 cygwin* | mingw* | pw32* | cegcc*)
7949 symcode='[ABCDGISTW]'
7951 hpux*)
7952 if test "$host_cpu" = ia64; then
7953 symcode='[ABCDEGRST]'
7956 irix* | nonstopux*)
7957 symcode='[BCDEGRST]'
7959 osf*)
7960 symcode='[BCDEGQRST]'
7962 solaris*)
7963 symcode='[BDRT]'
7965 sco3.2v5*)
7966 symcode='[DT]'
7968 sysv4.2uw2*)
7969 symcode='[DT]'
7971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7972 symcode='[ABDT]'
7974 sysv4)
7975 symcode='[DFNSTU]'
7977 esac
7979 # If we're using GNU nm, then use its standard symbol codes.
7980 case `$NM -V 2>&1` in
7981 *GNU* | *'with BFD'*)
7982 symcode='[ABCDGIRSTW]' ;;
7983 esac
7985 # Transform an extracted symbol line into a proper C declaration.
7986 # Some systems (esp. on ia64) link data and code symbols differently,
7987 # so use this general approach.
7988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7990 # Transform an extracted symbol line into symbol name and symbol address
7991 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7992 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'"
7994 # Handle CRLF in mingw tool chain
7995 opt_cr=
7996 case $build_os in
7997 mingw*)
7998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8000 esac
8002 # Try without a prefix underscore, then with it.
8003 for ac_symprfx in "" "_"; do
8005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8006 symxfrm="\\1 $ac_symprfx\\2 \\2"
8008 # Write the raw and C identifiers.
8009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8010 # Fake it for dumpbin and say T for any non-static function
8011 # and D for any global variable.
8012 # Also find C++ and __fastcall symbols from MSVC++,
8013 # which start with @ or ?.
8014 lt_cv_sys_global_symbol_pipe="$AWK '"\
8015 " {last_section=section; section=\$ 3};"\
8016 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8017 " \$ 0!~/External *\|/{next};"\
8018 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8019 " {if(hide[section]) next};"\
8020 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8021 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8022 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8023 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8024 " ' prfx=^$ac_symprfx"
8025 else
8026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8029 # Check to see that the pipe works correctly.
8030 pipe_works=no
8032 rm -f conftest*
8033 cat > conftest.$ac_ext <<_LT_EOF
8034 #ifdef __cplusplus
8035 extern "C" {
8036 #endif
8037 char nm_test_var;
8038 void nm_test_func(void);
8039 void nm_test_func(void){}
8040 #ifdef __cplusplus
8042 #endif
8043 int main(){nm_test_var='a';nm_test_func();return(0);}
8044 _LT_EOF
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 # Now try to grab the symbols.
8052 nlist=conftest.nm
8053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8054 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8055 ac_status=$?
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; } && test -s "$nlist"; then
8058 # Try sorting and uniquifying the output.
8059 if sort "$nlist" | uniq > "$nlist"T; then
8060 mv -f "$nlist"T "$nlist"
8061 else
8062 rm -f "$nlist"T
8065 # Make sure that we snagged all the symbols we need.
8066 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8067 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8068 cat <<_LT_EOF > conftest.$ac_ext
8069 #ifdef __cplusplus
8070 extern "C" {
8071 #endif
8073 _LT_EOF
8074 # Now generate the symbol file.
8075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8077 cat <<_LT_EOF >> conftest.$ac_ext
8079 /* The mapping between symbol names and symbols. */
8080 const struct {
8081 const char *name;
8082 void *address;
8084 lt__PROGRAM__LTX_preloaded_symbols[] =
8086 { "@PROGRAM@", (void *) 0 },
8087 _LT_EOF
8088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8089 cat <<\_LT_EOF >> conftest.$ac_ext
8090 {0, (void *) 0}
8093 /* This works around a problem in FreeBSD linker */
8094 #ifdef FREEBSD_WORKAROUND
8095 static const void *lt_preloaded_setup() {
8096 return lt__PROGRAM__LTX_preloaded_symbols;
8098 #endif
8100 #ifdef __cplusplus
8102 #endif
8103 _LT_EOF
8104 # Now try linking the two files.
8105 mv conftest.$ac_objext conftstm.$ac_objext
8106 lt_save_LIBS="$LIBS"
8107 lt_save_CFLAGS="$CFLAGS"
8108 LIBS="conftstm.$ac_objext"
8109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8115 pipe_works=yes
8117 LIBS="$lt_save_LIBS"
8118 CFLAGS="$lt_save_CFLAGS"
8119 else
8120 echo "cannot find nm_test_func in $nlist" >&5
8122 else
8123 echo "cannot find nm_test_var in $nlist" >&5
8125 else
8126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8128 else
8129 echo "$progname: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 rm -rf conftest* conftst*
8134 # Do not use the global_symbol_pipe unless it works.
8135 if test "$pipe_works" = yes; then
8136 break
8137 else
8138 lt_cv_sys_global_symbol_pipe=
8140 done
8144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8145 lt_cv_sys_global_symbol_to_cdecl=
8147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8149 $as_echo "failed" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8152 $as_echo "ok" >&6; }
8176 # Check whether --enable-libtool-lock was given.
8177 if test "${enable_libtool_lock+set}" = set; then :
8178 enableval=$enable_libtool_lock;
8181 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8183 # Some flags need to be propagated to the compiler or linker for good
8184 # libtool support.
8185 case $host in
8186 ia64-*-hpux*)
8187 # Find out which ABI we are using.
8188 echo 'int i;' > conftest.$ac_ext
8189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8190 (eval $ac_compile) 2>&5
8191 ac_status=$?
8192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193 test $ac_status = 0; }; then
8194 case `/usr/bin/file conftest.$ac_objext` in
8195 *ELF-32*)
8196 HPUX_IA64_MODE="32"
8198 *ELF-64*)
8199 HPUX_IA64_MODE="64"
8201 esac
8203 rm -rf conftest*
8205 *-*-irix6*)
8206 # Find out which ABI we are using.
8207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8209 (eval $ac_compile) 2>&5
8210 ac_status=$?
8211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
8213 if test "$lt_cv_prog_gnu_ld" = yes; then
8214 case `/usr/bin/file conftest.$ac_objext` in
8215 *32-bit*)
8216 LD="${LD-ld} -melf32bsmip"
8218 *N32*)
8219 LD="${LD-ld} -melf32bmipn32"
8221 *64-bit*)
8222 LD="${LD-ld} -melf64bmip"
8224 esac
8225 else
8226 case `/usr/bin/file conftest.$ac_objext` in
8227 *32-bit*)
8228 LD="${LD-ld} -32"
8230 *N32*)
8231 LD="${LD-ld} -n32"
8233 *64-bit*)
8234 LD="${LD-ld} -64"
8236 esac
8239 rm -rf conftest*
8242 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8243 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8244 # Find out which ABI we are using.
8245 echo 'int i;' > conftest.$ac_ext
8246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8247 (eval $ac_compile) 2>&5
8248 ac_status=$?
8249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250 test $ac_status = 0; }; then
8251 case `/usr/bin/file conftest.o` in
8252 *32-bit*)
8253 case $host in
8254 x86_64-*kfreebsd*-gnu)
8255 LD="${LD-ld} -m elf_i386_fbsd"
8257 x86_64-*linux*)
8258 case `/usr/bin/file conftest.o` in
8259 *x86-64*)
8260 LD="${LD-ld} -m elf32_x86_64"
8263 LD="${LD-ld} -m elf_i386"
8265 esac
8267 powerpc64le-*linux*)
8268 LD="${LD-ld} -m elf32lppclinux"
8270 powerpc64-*linux*)
8271 LD="${LD-ld} -m elf32ppclinux"
8273 s390x-*linux*)
8274 LD="${LD-ld} -m elf_s390"
8276 sparc64-*linux*)
8277 LD="${LD-ld} -m elf32_sparc"
8279 esac
8281 *64-bit*)
8282 case $host in
8283 x86_64-*kfreebsd*-gnu)
8284 LD="${LD-ld} -m elf_x86_64_fbsd"
8286 x86_64-*linux*)
8287 LD="${LD-ld} -m elf_x86_64"
8289 powerpcle-*linux*)
8290 LD="${LD-ld} -m elf64lppc"
8292 powerpc-*linux*)
8293 LD="${LD-ld} -m elf64ppc"
8295 s390*-*linux*|s390*-*tpf*)
8296 LD="${LD-ld} -m elf64_s390"
8298 sparc*-*linux*)
8299 LD="${LD-ld} -m elf64_sparc"
8301 esac
8303 esac
8305 rm -rf conftest*
8308 *-*-sco3.2v5*)
8309 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8310 SAVE_CFLAGS="$CFLAGS"
8311 CFLAGS="$CFLAGS -belf"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8313 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8314 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 ac_ext=c
8318 ac_cpp='$CPP $CPPFLAGS'
8319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323 if test x$gcc_no_link = xyes; then
8324 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8330 main ()
8334 return 0;
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 lt_cv_cc_needs_belf=yes
8339 else
8340 lt_cv_cc_needs_belf=no
8342 rm -f core conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 ac_ext=c
8345 ac_cpp='$CPP $CPPFLAGS'
8346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8352 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8353 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8354 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8355 CFLAGS="$SAVE_CFLAGS"
8358 sparc*-*solaris*)
8359 # Find out which ABI we are using.
8360 echo 'int i;' > conftest.$ac_ext
8361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8362 (eval $ac_compile) 2>&5
8363 ac_status=$?
8364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8365 test $ac_status = 0; }; then
8366 case `/usr/bin/file conftest.o` in
8367 *64-bit*)
8368 case $lt_cv_prog_gnu_ld in
8369 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8371 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8372 LD="${LD-ld} -64"
8375 esac
8377 esac
8379 rm -rf conftest*
8381 esac
8383 need_locks="$enable_libtool_lock"
8386 case $host_os in
8387 rhapsody* | darwin*)
8388 if test -n "$ac_tool_prefix"; then
8389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8390 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 if test -n "$DSYMUTIL"; then
8397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8410 done
8411 done
8412 IFS=$as_save_IFS
8416 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8417 if test -n "$DSYMUTIL"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8419 $as_echo "$DSYMUTIL" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8427 if test -z "$ac_cv_prog_DSYMUTIL"; then
8428 ac_ct_DSYMUTIL=$DSYMUTIL
8429 # Extract the first word of "dsymutil", so it can be a program name with args.
8430 set dummy dsymutil; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 if test -n "$ac_ct_DSYMUTIL"; then
8437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8450 done
8451 done
8452 IFS=$as_save_IFS
8456 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8457 if test -n "$ac_ct_DSYMUTIL"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8459 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8465 if test "x$ac_ct_DSYMUTIL" = x; then
8466 DSYMUTIL=":"
8467 else
8468 case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474 DSYMUTIL=$ac_ct_DSYMUTIL
8476 else
8477 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8480 if test -n "$ac_tool_prefix"; then
8481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8482 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$NMEDIT"; then
8489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8502 done
8503 done
8504 IFS=$as_save_IFS
8508 NMEDIT=$ac_cv_prog_NMEDIT
8509 if test -n "$NMEDIT"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8511 $as_echo "$NMEDIT" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8519 if test -z "$ac_cv_prog_NMEDIT"; then
8520 ac_ct_NMEDIT=$NMEDIT
8521 # Extract the first word of "nmedit", so it can be a program name with args.
8522 set dummy nmedit; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$ac_ct_NMEDIT"; then
8529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8542 done
8543 done
8544 IFS=$as_save_IFS
8548 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8549 if test -n "$ac_ct_NMEDIT"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8551 $as_echo "$ac_ct_NMEDIT" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8557 if test "x$ac_ct_NMEDIT" = x; then
8558 NMEDIT=":"
8559 else
8560 case $cross_compiling:$ac_tool_warned in
8561 yes:)
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8564 ac_tool_warned=yes ;;
8565 esac
8566 NMEDIT=$ac_ct_NMEDIT
8568 else
8569 NMEDIT="$ac_cv_prog_NMEDIT"
8572 if test -n "$ac_tool_prefix"; then
8573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8574 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if test "${ac_cv_prog_LIPO+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 if test -n "$LIPO"; then
8581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8582 else
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8594 done
8595 done
8596 IFS=$as_save_IFS
8600 LIPO=$ac_cv_prog_LIPO
8601 if test -n "$LIPO"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8603 $as_echo "$LIPO" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8611 if test -z "$ac_cv_prog_LIPO"; then
8612 ac_ct_LIPO=$LIPO
8613 # Extract the first word of "lipo", so it can be a program name with args.
8614 set dummy lipo; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test -n "$ac_ct_LIPO"; then
8621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_ac_ct_LIPO="lipo"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8634 done
8635 done
8636 IFS=$as_save_IFS
8640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8641 if test -n "$ac_ct_LIPO"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8643 $as_echo "$ac_ct_LIPO" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8649 if test "x$ac_ct_LIPO" = x; then
8650 LIPO=":"
8651 else
8652 case $cross_compiling:$ac_tool_warned in
8653 yes:)
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8656 ac_tool_warned=yes ;;
8657 esac
8658 LIPO=$ac_ct_LIPO
8660 else
8661 LIPO="$ac_cv_prog_LIPO"
8664 if test -n "$ac_tool_prefix"; then
8665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8666 set dummy ${ac_tool_prefix}otool; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 if test -n "$OTOOL"; then
8673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8674 else
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 for as_dir in $PATH
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8686 done
8687 done
8688 IFS=$as_save_IFS
8692 OTOOL=$ac_cv_prog_OTOOL
8693 if test -n "$OTOOL"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8695 $as_echo "$OTOOL" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8703 if test -z "$ac_cv_prog_OTOOL"; then
8704 ac_ct_OTOOL=$OTOOL
8705 # Extract the first word of "otool", so it can be a program name with args.
8706 set dummy otool; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$ac_ct_OTOOL"; then
8713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_ac_ct_OTOOL="otool"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8726 done
8727 done
8728 IFS=$as_save_IFS
8732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8733 if test -n "$ac_ct_OTOOL"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8735 $as_echo "$ac_ct_OTOOL" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8741 if test "x$ac_ct_OTOOL" = x; then
8742 OTOOL=":"
8743 else
8744 case $cross_compiling:$ac_tool_warned in
8745 yes:)
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8748 ac_tool_warned=yes ;;
8749 esac
8750 OTOOL=$ac_ct_OTOOL
8752 else
8753 OTOOL="$ac_cv_prog_OTOOL"
8756 if test -n "$ac_tool_prefix"; then
8757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 if test -n "$OTOOL64"; then
8765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8778 done
8779 done
8780 IFS=$as_save_IFS
8784 OTOOL64=$ac_cv_prog_OTOOL64
8785 if test -n "$OTOOL64"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8787 $as_echo "$OTOOL64" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8795 if test -z "$ac_cv_prog_OTOOL64"; then
8796 ac_ct_OTOOL64=$OTOOL64
8797 # Extract the first word of "otool64", so it can be a program name with args.
8798 set dummy otool64; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 if test -n "$ac_ct_OTOOL64"; then
8805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_prog_ac_ct_OTOOL64="otool64"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8824 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8825 if test -n "$ac_ct_OTOOL64"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8827 $as_echo "$ac_ct_OTOOL64" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8833 if test "x$ac_ct_OTOOL64" = x; then
8834 OTOOL64=":"
8835 else
8836 case $cross_compiling:$ac_tool_warned in
8837 yes:)
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8840 ac_tool_warned=yes ;;
8841 esac
8842 OTOOL64=$ac_ct_OTOOL64
8844 else
8845 OTOOL64="$ac_cv_prog_OTOOL64"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8875 $as_echo_n "checking for -single_module linker flag... " >&6; }
8876 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 lt_cv_apple_cc_single_mod=no
8880 if test -z "${LT_MULTI_MODULE}"; then
8881 # By default we will add the -single_module flag. You can override
8882 # by either setting the environment variable LT_MULTI_MODULE
8883 # non-empty at configure time, or by adding -multi_module to the
8884 # link flags.
8885 rm -rf libconftest.dylib*
8886 echo "int foo(void){return 1;}" > conftest.c
8887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8888 -dynamiclib -Wl,-single_module conftest.c" >&5
8889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8891 _lt_result=$?
8892 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8893 lt_cv_apple_cc_single_mod=yes
8894 else
8895 cat conftest.err >&5
8897 rm -rf libconftest.dylib*
8898 rm -f conftest.*
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8902 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8905 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 lt_cv_ld_exported_symbols_list=no
8909 save_LDFLAGS=$LDFLAGS
8910 echo "_main" > conftest.sym
8911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8912 if test x$gcc_no_link = xyes; then
8913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8919 main ()
8923 return 0;
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 lt_cv_ld_exported_symbols_list=yes
8928 else
8929 lt_cv_ld_exported_symbols_list=no
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LDFLAGS="$save_LDFLAGS"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8939 $as_echo_n "checking for -force_load linker flag... " >&6; }
8940 if test "${lt_cv_ld_force_load+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 lt_cv_ld_force_load=no
8944 cat > conftest.c << _LT_EOF
8945 int forced_loaded() { return 2;}
8946 _LT_EOF
8947 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8948 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8949 echo "$AR cru libconftest.a conftest.o" >&5
8950 $AR cru libconftest.a conftest.o 2>&5
8951 cat > conftest.c << _LT_EOF
8952 int main() { return 0;}
8953 _LT_EOF
8954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8956 _lt_result=$?
8957 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8958 lt_cv_ld_force_load=yes
8959 else
8960 cat conftest.err >&5
8962 rm -f conftest.err libconftest.a conftest conftest.c
8963 rm -rf conftest.dSYM
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8967 $as_echo "$lt_cv_ld_force_load" >&6; }
8968 case $host_os in
8969 rhapsody* | darwin1.[012])
8970 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8971 darwin1.*)
8972 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8973 darwin*) # darwin 5.x on
8974 # if running on 10.5 or later, the deployment target defaults
8975 # to the OS version, if on x86, and 10.4, the deployment
8976 # target defaults to 10.4. Don't you love it?
8977 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8978 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8979 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8980 10.[012][,.]*)
8981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8982 10.*)
8983 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8984 esac
8986 esac
8987 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8988 _lt_dar_single_mod='$single_module'
8990 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8991 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8992 else
8993 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8995 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8996 _lt_dsymutil='~$DSYMUTIL $lib || :'
8997 else
8998 _lt_dsymutil=
9001 esac
9003 for ac_header in dlfcn.h
9004 do :
9005 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9007 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_DLFCN_H 1
9010 _ACEOF
9014 done
9020 # Set options
9025 enable_win32_dll=no
9028 # Check whether --enable-shared was given.
9029 if test "${enable_shared+set}" = set; then :
9030 enableval=$enable_shared; p=${PACKAGE-default}
9031 case $enableval in
9032 yes) enable_shared=yes ;;
9033 no) enable_shared=no ;;
9035 enable_shared=no
9036 # Look at the argument we got. We use all the common list separators.
9037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038 for pkg in $enableval; do
9039 IFS="$lt_save_ifs"
9040 if test "X$pkg" = "X$p"; then
9041 enable_shared=yes
9043 done
9044 IFS="$lt_save_ifs"
9046 esac
9047 else
9048 enable_shared=yes
9059 # Check whether --enable-static was given.
9060 if test "${enable_static+set}" = set; then :
9061 enableval=$enable_static; p=${PACKAGE-default}
9062 case $enableval in
9063 yes) enable_static=yes ;;
9064 no) enable_static=no ;;
9066 enable_static=no
9067 # Look at the argument we got. We use all the common list separators.
9068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9069 for pkg in $enableval; do
9070 IFS="$lt_save_ifs"
9071 if test "X$pkg" = "X$p"; then
9072 enable_static=yes
9074 done
9075 IFS="$lt_save_ifs"
9077 esac
9078 else
9079 enable_static=yes
9091 # Check whether --with-pic was given.
9092 if test "${with_pic+set}" = set; then :
9093 withval=$with_pic; pic_mode="$withval"
9094 else
9095 pic_mode=default
9099 test -z "$pic_mode" && pic_mode=default
9107 # Check whether --enable-fast-install was given.
9108 if test "${enable_fast_install+set}" = set; then :
9109 enableval=$enable_fast_install; p=${PACKAGE-default}
9110 case $enableval in
9111 yes) enable_fast_install=yes ;;
9112 no) enable_fast_install=no ;;
9114 enable_fast_install=no
9115 # Look at the argument we got. We use all the common list separators.
9116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9117 for pkg in $enableval; do
9118 IFS="$lt_save_ifs"
9119 if test "X$pkg" = "X$p"; then
9120 enable_fast_install=yes
9122 done
9123 IFS="$lt_save_ifs"
9125 esac
9126 else
9127 enable_fast_install=yes
9140 # This can be used to rebuild libtool when needed
9141 LIBTOOL_DEPS="$ltmain"
9143 # Always use our own libtool.
9144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9171 test -z "$LN_S" && LN_S="ln -s"
9186 if test -n "${ZSH_VERSION+set}" ; then
9187 setopt NO_GLOB_SUBST
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9191 $as_echo_n "checking for objdir... " >&6; }
9192 if test "${lt_cv_objdir+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 rm -f .libs 2>/dev/null
9196 mkdir .libs 2>/dev/null
9197 if test -d .libs; then
9198 lt_cv_objdir=.libs
9199 else
9200 # MS-DOS does not allow filenames that begin with a dot.
9201 lt_cv_objdir=_libs
9203 rmdir .libs 2>/dev/null
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9206 $as_echo "$lt_cv_objdir" >&6; }
9207 objdir=$lt_cv_objdir
9213 cat >>confdefs.h <<_ACEOF
9214 #define LT_OBJDIR "$lt_cv_objdir/"
9215 _ACEOF
9220 case $host_os in
9221 aix3*)
9222 # AIX sometimes has problems with the GCC collect2 program. For some
9223 # reason, if we set the COLLECT_NAMES environment variable, the problems
9224 # vanish in a puff of smoke.
9225 if test "X${COLLECT_NAMES+set}" != Xset; then
9226 COLLECT_NAMES=
9227 export COLLECT_NAMES
9230 esac
9232 # Global variables:
9233 ofile=libtool
9234 can_build_shared=yes
9236 # All known linkers require a `.a' archive for static linking (except MSVC,
9237 # which needs '.lib').
9238 libext=a
9240 with_gnu_ld="$lt_cv_prog_gnu_ld"
9242 old_CC="$CC"
9243 old_CFLAGS="$CFLAGS"
9245 # Set sane defaults for various variables
9246 test -z "$CC" && CC=cc
9247 test -z "$LTCC" && LTCC=$CC
9248 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9249 test -z "$LD" && LD=ld
9250 test -z "$ac_objext" && ac_objext=o
9252 for cc_temp in $compiler""; do
9253 case $cc_temp in
9254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9256 \-*) ;;
9257 *) break;;
9258 esac
9259 done
9260 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9263 # Only perform the check for file, if the check method requires it
9264 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9265 case $deplibs_check_method in
9266 file_magic*)
9267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9269 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 case $MAGIC_CMD in
9274 [\\/*] | ?:[\\/]*)
9275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9278 lt_save_MAGIC_CMD="$MAGIC_CMD"
9279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9281 for ac_dir in $ac_dummy; do
9282 IFS="$lt_save_ifs"
9283 test -z "$ac_dir" && ac_dir=.
9284 if test -f $ac_dir/${ac_tool_prefix}file; then
9285 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9286 if test -n "$file_magic_test_file"; then
9287 case $deplibs_check_method in
9288 "file_magic "*)
9289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9292 $EGREP "$file_magic_regex" > /dev/null; then
9294 else
9295 cat <<_LT_EOF 1>&2
9297 *** Warning: the command libtool uses to detect shared libraries,
9298 *** $file_magic_cmd, produces output that libtool cannot recognize.
9299 *** The result is that libtool may fail to recognize shared libraries
9300 *** as such. This will affect the creation of libtool libraries that
9301 *** depend on shared libraries, but programs linked with such libtool
9302 *** libraries will work regardless of this problem. Nevertheless, you
9303 *** may want to report the problem to your system manager and/or to
9304 *** bug-libtool@gnu.org
9306 _LT_EOF
9307 fi ;;
9308 esac
9310 break
9312 done
9313 IFS="$lt_save_ifs"
9314 MAGIC_CMD="$lt_save_MAGIC_CMD"
9316 esac
9319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9320 if test -n "$MAGIC_CMD"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9322 $as_echo "$MAGIC_CMD" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9332 if test -z "$lt_cv_path_MAGIC_CMD"; then
9333 if test -n "$ac_tool_prefix"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9335 $as_echo_n "checking for file... " >&6; }
9336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 case $MAGIC_CMD in
9340 [\\/*] | ?:[\\/]*)
9341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9344 lt_save_MAGIC_CMD="$MAGIC_CMD"
9345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9347 for ac_dir in $ac_dummy; do
9348 IFS="$lt_save_ifs"
9349 test -z "$ac_dir" && ac_dir=.
9350 if test -f $ac_dir/file; then
9351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9352 if test -n "$file_magic_test_file"; then
9353 case $deplibs_check_method in
9354 "file_magic "*)
9355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9358 $EGREP "$file_magic_regex" > /dev/null; then
9360 else
9361 cat <<_LT_EOF 1>&2
9363 *** Warning: the command libtool uses to detect shared libraries,
9364 *** $file_magic_cmd, produces output that libtool cannot recognize.
9365 *** The result is that libtool may fail to recognize shared libraries
9366 *** as such. This will affect the creation of libtool libraries that
9367 *** depend on shared libraries, but programs linked with such libtool
9368 *** libraries will work regardless of this problem. Nevertheless, you
9369 *** may want to report the problem to your system manager and/or to
9370 *** bug-libtool@gnu.org
9372 _LT_EOF
9373 fi ;;
9374 esac
9376 break
9378 done
9379 IFS="$lt_save_ifs"
9380 MAGIC_CMD="$lt_save_MAGIC_CMD"
9382 esac
9385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9386 if test -n "$MAGIC_CMD"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9388 $as_echo "$MAGIC_CMD" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9395 else
9396 MAGIC_CMD=:
9402 esac
9404 # Use C for the default configuration in the libtool script
9406 lt_save_CC="$CC"
9407 ac_ext=c
9408 ac_cpp='$CPP $CPPFLAGS'
9409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9414 # Source file extension for C test sources.
9415 ac_ext=c
9417 # Object file extension for compiled C test sources.
9418 objext=o
9419 objext=$objext
9421 # Code to be used in simple compile tests
9422 lt_simple_compile_test_code="int some_variable = 0;"
9424 # Code to be used in simple link tests
9425 lt_simple_link_test_code='int main(){return(0);}'
9433 # If no C compiler was specified, use CC.
9434 LTCC=${LTCC-"$CC"}
9436 # If no C compiler flags were specified, use CFLAGS.
9437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9439 # Allow CC to be a program name with arguments.
9440 compiler=$CC
9442 # Save the default compiler, since it gets overwritten when the other
9443 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9444 compiler_DEFAULT=$CC
9446 # save warnings/boilerplate of simple test code
9447 ac_outfile=conftest.$ac_objext
9448 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9450 _lt_compiler_boilerplate=`cat conftest.err`
9451 $RM conftest*
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9456 _lt_linker_boilerplate=`cat conftest.err`
9457 $RM -r conftest*
9460 ## CAVEAT EMPTOR:
9461 ## There is no encapsulation within the following macros, do not change
9462 ## the running order or otherwise move them around unless you know exactly
9463 ## what you are doing...
9464 if test -n "$compiler"; then
9466 lt_prog_compiler_no_builtin_flag=
9468 if test "$GCC" = yes; then
9469 case $cc_basename in
9470 nvcc*)
9471 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9474 esac
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9477 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9478 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 lt_cv_prog_compiler_rtti_exceptions=no
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484 lt_compiler_flag="-fno-rtti -fno-exceptions"
9485 # Insert the option either (1) after the last *FLAGS variable, or
9486 # (2) before a word containing "conftest.", or (3) at the end.
9487 # Note that $ac_compile itself does not contain backslashes and begins
9488 # with a dollar sign (not a hyphen), so the echo should work correctly.
9489 # The option is referenced via a variable to avoid confusing sed.
9490 lt_compile=`echo "$ac_compile" | $SED \
9491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493 -e 's:$: $lt_compiler_flag:'`
9494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9495 (eval "$lt_compile" 2>conftest.err)
9496 ac_status=$?
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 if (exit $ac_status) && test -s "$ac_outfile"; then
9500 # The compiler can only warn and ignore the option if not recognized
9501 # So say no if there are warnings other than the usual output.
9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_rtti_exceptions=yes
9508 $RM conftest*
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9512 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9514 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9516 else
9527 lt_prog_compiler_wl=
9528 lt_prog_compiler_pic=
9529 lt_prog_compiler_static=
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9534 if test "$GCC" = yes; then
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_static='-static'
9538 case $host_os in
9539 aix*)
9540 # All AIX code is PIC.
9541 if test "$host_cpu" = ia64; then
9542 # AIX 5 now supports IA64 processor
9543 lt_prog_compiler_static='-Bstatic'
9545 lt_prog_compiler_pic='-fPIC'
9548 amigaos*)
9549 case $host_cpu in
9550 powerpc)
9551 # see comment about AmigaOS4 .so support
9552 lt_prog_compiler_pic='-fPIC'
9554 m68k)
9555 # FIXME: we need at least 68020 code to build shared libraries, but
9556 # adding the `-m68020' flag to GCC prevents building anything better,
9557 # like `-m68040'.
9558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9560 esac
9563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9564 # PIC is the default for these OSes.
9567 mingw* | cygwin* | pw32* | os2* | cegcc*)
9568 # This hack is so that the source file can tell whether it is being
9569 # built for inclusion in a dll (and should export symbols for example).
9570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9571 # (--disable-auto-import) libraries
9572 lt_prog_compiler_pic='-DDLL_EXPORT'
9575 darwin* | rhapsody*)
9576 # PIC is the default on this platform
9577 # Common symbols not allowed in MH_DYLIB files
9578 lt_prog_compiler_pic='-fno-common'
9581 haiku*)
9582 # PIC is the default for Haiku.
9583 # The "-static" flag exists, but is broken.
9584 lt_prog_compiler_static=
9587 hpux*)
9588 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9589 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9590 # sets the default TLS model and affects inlining.
9591 case $host_cpu in
9592 hppa*64*)
9593 # +Z the default
9596 lt_prog_compiler_pic='-fPIC'
9598 esac
9601 interix[3-9]*)
9602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9603 # Instead, we relocate shared libraries at runtime.
9606 msdosdjgpp*)
9607 # Just because we use GCC doesn't mean we suddenly get shared libraries
9608 # on systems that don't support them.
9609 lt_prog_compiler_can_build_shared=no
9610 enable_shared=no
9613 *nto* | *qnx*)
9614 # QNX uses GNU C++, but need to define -shared option too, otherwise
9615 # it will coredump.
9616 lt_prog_compiler_pic='-fPIC -shared'
9619 sysv4*MP*)
9620 if test -d /usr/nec; then
9621 lt_prog_compiler_pic=-Kconform_pic
9626 lt_prog_compiler_pic='-fPIC'
9628 esac
9630 case $cc_basename in
9631 nvcc*) # Cuda Compiler Driver 2.2
9632 lt_prog_compiler_wl='-Xlinker '
9633 lt_prog_compiler_pic='-Xcompiler -fPIC'
9635 esac
9636 else
9637 # PORTME Check for flag to pass linker flags through the system compiler.
9638 case $host_os in
9639 aix*)
9640 lt_prog_compiler_wl='-Wl,'
9641 if test "$host_cpu" = ia64; then
9642 # AIX 5 now supports IA64 processor
9643 lt_prog_compiler_static='-Bstatic'
9644 else
9645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9649 mingw* | cygwin* | pw32* | os2* | cegcc*)
9650 # This hack is so that the source file can tell whether it is being
9651 # built for inclusion in a dll (and should export symbols for example).
9652 lt_prog_compiler_pic='-DDLL_EXPORT'
9655 hpux9* | hpux10* | hpux11*)
9656 lt_prog_compiler_wl='-Wl,'
9657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9658 # not for PA HP-UX.
9659 case $host_cpu in
9660 hppa*64*|ia64*)
9661 # +Z the default
9664 lt_prog_compiler_pic='+Z'
9666 esac
9667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9668 lt_prog_compiler_static='${wl}-a ${wl}archive'
9671 irix5* | irix6* | nonstopux*)
9672 lt_prog_compiler_wl='-Wl,'
9673 # PIC (with -KPIC) is the default.
9674 lt_prog_compiler_static='-non_shared'
9677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9678 case $cc_basename in
9679 # old Intel for x86_64 which still supported -KPIC.
9680 ecc*)
9681 lt_prog_compiler_wl='-Wl,'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-static'
9685 # icc used to be incompatible with GCC.
9686 # ICC 10 doesn't accept -KPIC any more.
9687 icc* | ifort*)
9688 lt_prog_compiler_wl='-Wl,'
9689 lt_prog_compiler_pic='-fPIC'
9690 lt_prog_compiler_static='-static'
9692 # Lahey Fortran 8.1.
9693 lf95*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='--shared'
9696 lt_prog_compiler_static='--static'
9698 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9699 # Portland Group compilers (*not* the Pentium gcc compiler,
9700 # which looks to be a dead project)
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-fpic'
9703 lt_prog_compiler_static='-Bstatic'
9705 ccc*)
9706 lt_prog_compiler_wl='-Wl,'
9707 # All Alpha code is PIC.
9708 lt_prog_compiler_static='-non_shared'
9710 xl* | bgxl* | bgf* | mpixl*)
9711 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-qpic'
9714 lt_prog_compiler_static='-qstaticlink'
9717 case `$CC -V 2>&1 | sed 5q` in
9718 *Sun\ F* | *Sun*Fortran*)
9719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl=''
9724 *Sun\ C*)
9725 # Sun C 5.9
9726 lt_prog_compiler_pic='-KPIC'
9727 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9730 esac
9732 esac
9735 newsos6)
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9740 *nto* | *qnx*)
9741 # QNX uses GNU C++, but need to define -shared option too, otherwise
9742 # it will coredump.
9743 lt_prog_compiler_pic='-fPIC -shared'
9746 osf3* | osf4* | osf5*)
9747 lt_prog_compiler_wl='-Wl,'
9748 # All OSF/1 code is PIC.
9749 lt_prog_compiler_static='-non_shared'
9752 rdos*)
9753 lt_prog_compiler_static='-non_shared'
9756 solaris*)
9757 lt_prog_compiler_pic='-KPIC'
9758 lt_prog_compiler_static='-Bstatic'
9759 case $cc_basename in
9760 f77* | f90* | f95*)
9761 lt_prog_compiler_wl='-Qoption ld ';;
9763 lt_prog_compiler_wl='-Wl,';;
9764 esac
9767 sunos4*)
9768 lt_prog_compiler_wl='-Qoption ld '
9769 lt_prog_compiler_pic='-PIC'
9770 lt_prog_compiler_static='-Bstatic'
9773 sysv4 | sysv4.2uw2* | sysv4.3*)
9774 lt_prog_compiler_wl='-Wl,'
9775 lt_prog_compiler_pic='-KPIC'
9776 lt_prog_compiler_static='-Bstatic'
9779 sysv4*MP*)
9780 if test -d /usr/nec ;then
9781 lt_prog_compiler_pic='-Kconform_pic'
9782 lt_prog_compiler_static='-Bstatic'
9786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-Bstatic'
9792 unicos*)
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_can_build_shared=no
9797 uts4*)
9798 lt_prog_compiler_pic='-pic'
9799 lt_prog_compiler_static='-Bstatic'
9803 lt_prog_compiler_can_build_shared=no
9805 esac
9808 case $host_os in
9809 # For platforms which do not support PIC, -DPIC is meaningless:
9810 *djgpp*)
9811 lt_prog_compiler_pic=
9814 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9816 esac
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9818 $as_echo "$lt_prog_compiler_pic" >&6; }
9826 # Check to make sure the PIC flag actually works.
9828 if test -n "$lt_prog_compiler_pic"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9831 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 lt_cv_prog_compiler_pic_works=no
9835 ac_outfile=conftest.$ac_objext
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 # The option is referenced via a variable to avoid confusing sed.
9843 lt_compile=`echo "$ac_compile" | $SED \
9844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846 -e 's:$: $lt_compiler_flag:'`
9847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848 (eval "$lt_compile" 2>conftest.err)
9849 ac_status=$?
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 if (exit $ac_status) && test -s "$ac_outfile"; then
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings other than the usual output.
9855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_pic_works=yes
9861 $RM conftest*
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9868 case $lt_prog_compiler_pic in
9869 "" | " "*) ;;
9870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9871 esac
9872 else
9873 lt_prog_compiler_pic=
9874 lt_prog_compiler_can_build_shared=no
9885 # Check to make sure the static flag actually works.
9887 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9889 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9890 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 lt_cv_prog_compiler_static_works=no
9894 save_LDFLAGS="$LDFLAGS"
9895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9896 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9898 # The linker can only warn and ignore the option if not recognized
9899 # So say no if there are warnings
9900 if test -s conftest.err; then
9901 # Append any errors to the config.log.
9902 cat conftest.err 1>&5
9903 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9905 if diff conftest.exp conftest.er2 >/dev/null; then
9906 lt_cv_prog_compiler_static_works=yes
9908 else
9909 lt_cv_prog_compiler_static_works=yes
9912 $RM -r conftest*
9913 LDFLAGS="$save_LDFLAGS"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9917 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9919 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9921 else
9922 lt_prog_compiler_static=
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 lt_cv_prog_compiler_c_o=no
9937 $RM -r conftest 2>/dev/null
9938 mkdir conftest
9939 cd conftest
9940 mkdir out
9941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9943 lt_compiler_flag="-o out/conftest2.$ac_objext"
9944 # Insert the option either (1) after the last *FLAGS variable, or
9945 # (2) before a word containing "conftest.", or (3) at the end.
9946 # Note that $ac_compile itself does not contain backslashes and begins
9947 # with a dollar sign (not a hyphen), so the echo should work correctly.
9948 lt_compile=`echo "$ac_compile" | $SED \
9949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951 -e 's:$: $lt_compiler_flag:'`
9952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9953 (eval "$lt_compile" 2>out/conftest.err)
9954 ac_status=$?
9955 cat out/conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9958 then
9959 # The compiler can only warn and ignore the option if not recognized
9960 # So say no if there are warnings
9961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9964 lt_cv_prog_compiler_c_o=yes
9967 chmod u+w . 2>&5
9968 $RM conftest*
9969 # SGI C++ compiler will create directory out/ii_files/ for
9970 # template instantiation
9971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9972 $RM out/* && rmdir out
9973 cd ..
9974 $RM -r conftest
9975 $RM conftest*
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 lt_cv_prog_compiler_c_o=no
9992 $RM -r conftest 2>/dev/null
9993 mkdir conftest
9994 cd conftest
9995 mkdir out
9996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9998 lt_compiler_flag="-o out/conftest2.$ac_objext"
9999 # Insert the option either (1) after the last *FLAGS variable, or
10000 # (2) before a word containing "conftest.", or (3) at the end.
10001 # Note that $ac_compile itself does not contain backslashes and begins
10002 # with a dollar sign (not a hyphen), so the echo should work correctly.
10003 lt_compile=`echo "$ac_compile" | $SED \
10004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10006 -e 's:$: $lt_compiler_flag:'`
10007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10008 (eval "$lt_compile" 2>out/conftest.err)
10009 ac_status=$?
10010 cat out/conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10013 then
10014 # The compiler can only warn and ignore the option if not recognized
10015 # So say no if there are warnings
10016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10019 lt_cv_prog_compiler_c_o=yes
10022 chmod u+w . 2>&5
10023 $RM conftest*
10024 # SGI C++ compiler will create directory out/ii_files/ for
10025 # template instantiation
10026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10027 $RM out/* && rmdir out
10028 cd ..
10029 $RM -r conftest
10030 $RM conftest*
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10039 hard_links="nottested"
10040 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10041 # do not overwrite the value of need_locks provided by the user
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10043 $as_echo_n "checking if we can lock with hard links... " >&6; }
10044 hard_links=yes
10045 $RM conftest*
10046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047 touch conftest.a
10048 ln conftest.a conftest.b 2>&5 || hard_links=no
10049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10051 $as_echo "$hard_links" >&6; }
10052 if test "$hard_links" = no; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10054 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10055 need_locks=warn
10057 else
10058 need_locks=no
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10067 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10069 runpath_var=
10070 allow_undefined_flag=
10071 always_export_symbols=no
10072 archive_cmds=
10073 archive_expsym_cmds=
10074 compiler_needs_object=no
10075 enable_shared_with_static_runtimes=no
10076 export_dynamic_flag_spec=
10077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10078 hardcode_automatic=no
10079 hardcode_direct=no
10080 hardcode_direct_absolute=no
10081 hardcode_libdir_flag_spec=
10082 hardcode_libdir_flag_spec_ld=
10083 hardcode_libdir_separator=
10084 hardcode_minus_L=no
10085 hardcode_shlibpath_var=unsupported
10086 inherit_rpath=no
10087 link_all_deplibs=unknown
10088 module_cmds=
10089 module_expsym_cmds=
10090 old_archive_from_new_cmds=
10091 old_archive_from_expsyms_cmds=
10092 thread_safe_flag_spec=
10093 whole_archive_flag_spec=
10094 # include_expsyms should be a list of space-separated symbols to be *always*
10095 # included in the symbol list
10096 include_expsyms=
10097 # exclude_expsyms can be an extended regexp of symbols to exclude
10098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10100 # as well as any symbol that contains `d'.
10101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10103 # platforms (ab)use it in PIC code, but their linkers get confused if
10104 # the symbol is explicitly referenced. Since portable code cannot
10105 # rely on this symbol name, it's probably fine to never include it in
10106 # preloaded symbol tables.
10107 # Exclude shared library initialization/finalization symbols.
10108 extract_expsyms_cmds=
10110 case $host_os in
10111 cygwin* | mingw* | pw32* | cegcc*)
10112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10113 # When not using gcc, we currently assume that we are using
10114 # Microsoft Visual C++.
10115 if test "$GCC" != yes; then
10116 with_gnu_ld=no
10119 interix*)
10120 # we just hope/assume this is gcc and not c89 (= MSVC++)
10121 with_gnu_ld=yes
10123 openbsd*)
10124 with_gnu_ld=no
10126 esac
10128 ld_shlibs=yes
10130 # On some targets, GNU ld is compatible enough with the native linker
10131 # that we're better off using the native interface for both.
10132 lt_use_gnu_ld_interface=no
10133 if test "$with_gnu_ld" = yes; then
10134 case $host_os in
10135 aix*)
10136 # The AIX port of GNU ld has always aspired to compatibility
10137 # with the native linker. However, as the warning in the GNU ld
10138 # block says, versions before 2.19.5* couldn't really create working
10139 # shared libraries, regardless of the interface used.
10140 case `$LD -v 2>&1` in
10141 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10142 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10143 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10145 lt_use_gnu_ld_interface=yes
10147 esac
10150 lt_use_gnu_ld_interface=yes
10152 esac
10155 if test "$lt_use_gnu_ld_interface" = yes; then
10156 # If archive_cmds runs LD, not CC, wlarc should be empty
10157 wlarc='${wl}'
10159 # Set some defaults for GNU ld with shared library support. These
10160 # are reset later if shared libraries are not supported. Putting them
10161 # here allows them to be overridden if necessary.
10162 runpath_var=LD_RUN_PATH
10163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10164 export_dynamic_flag_spec='${wl}--export-dynamic'
10165 # ancient GNU ld didn't support --whole-archive et. al.
10166 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10168 else
10169 whole_archive_flag_spec=
10171 supports_anon_versioning=no
10172 case `$LD -v 2>&1` in
10173 *GNU\ gold*) supports_anon_versioning=yes ;;
10174 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10177 *\ 2.11.*) ;; # other 2.11 versions
10178 *) supports_anon_versioning=yes ;;
10179 esac
10181 # See if GNU ld supports shared libraries.
10182 case $host_os in
10183 aix[3-9]*)
10184 # On AIX/PPC, the GNU linker is very broken
10185 if test "$host_cpu" != ia64; then
10186 ld_shlibs=no
10187 cat <<_LT_EOF 1>&2
10189 *** Warning: the GNU linker, at least up to release 2.19, is reported
10190 *** to be unable to reliably create shared libraries on AIX.
10191 *** Therefore, libtool is disabling shared libraries support. If you
10192 *** really care for shared libraries, you may want to install binutils
10193 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10194 *** You will then need to restart the configuration process.
10196 _LT_EOF
10200 amigaos*)
10201 case $host_cpu in
10202 powerpc)
10203 # see comment about AmigaOS4 .so support
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds=''
10207 m68k)
10208 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)'
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_minus_L=yes
10212 esac
10215 beos*)
10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 allow_undefined_flag=unsupported
10218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10219 # support --undefined. This deserves some investigation. FIXME
10220 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 else
10222 ld_shlibs=no
10226 cygwin* | mingw* | pw32* | cegcc*)
10227 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10228 # as there is no search path for DLLs.
10229 hardcode_libdir_flag_spec='-L$libdir'
10230 export_dynamic_flag_spec='${wl}--export-all-symbols'
10231 allow_undefined_flag=unsupported
10232 always_export_symbols=no
10233 enable_shared_with_static_runtimes=yes
10234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10236 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10238 # If the export-symbols file already is a .def file (1st line
10239 # is EXPORTS), use it as is; otherwise, prepend...
10240 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10241 cp $export_symbols $output_objdir/$soname.def;
10242 else
10243 echo EXPORTS > $output_objdir/$soname.def;
10244 cat $export_symbols >> $output_objdir/$soname.def;
10246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10247 else
10248 ld_shlibs=no
10252 haiku*)
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 link_all_deplibs=yes
10257 interix[3-9]*)
10258 hardcode_direct=no
10259 hardcode_shlibpath_var=no
10260 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10261 export_dynamic_flag_spec='${wl}-E'
10262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10263 # Instead, shared libraries are loaded at an image base (0x10000000 by
10264 # default) and relocated if they conflict, which is a slow very memory
10265 # consuming and fragmenting process. To avoid this, we pick a random,
10266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10269 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'
10272 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10273 tmp_diet=no
10274 if test "$host_os" = linux-dietlibc; then
10275 case $cc_basename in
10276 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10277 esac
10279 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10280 && test "$tmp_diet" = no
10281 then
10282 tmp_addflag=' $pic_flag'
10283 tmp_sharedflag='-shared'
10284 case $cc_basename,$host_cpu in
10285 pgcc*) # Portland Group C compiler
10286 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'
10287 tmp_addflag=' $pic_flag'
10289 pgf77* | pgf90* | pgf95* | pgfortran*)
10290 # Portland Group f77 and f90 compilers
10291 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'
10292 tmp_addflag=' $pic_flag -Mnomain' ;;
10293 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10294 tmp_addflag=' -i_dynamic' ;;
10295 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10296 tmp_addflag=' -i_dynamic -nofor_main' ;;
10297 ifc* | ifort*) # Intel Fortran compiler
10298 tmp_addflag=' -nofor_main' ;;
10299 lf95*) # Lahey Fortran 8.1
10300 whole_archive_flag_spec=
10301 tmp_sharedflag='--shared' ;;
10302 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10303 tmp_sharedflag='-qmkshrobj'
10304 tmp_addflag= ;;
10305 nvcc*) # Cuda Compiler Driver 2.2
10306 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'
10307 compiler_needs_object=yes
10309 esac
10310 case `$CC -V 2>&1 | sed 5q` in
10311 *Sun\ C*) # Sun C 5.9
10312 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'
10313 compiler_needs_object=yes
10314 tmp_sharedflag='-G' ;;
10315 *Sun\ F*) # Sun Fortran 8.3
10316 tmp_sharedflag='-G' ;;
10317 esac
10318 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 if test "x$supports_anon_versioning" = xyes; then
10321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10323 echo "local: *; };" >> $output_objdir/$libname.ver~
10324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10327 case $cc_basename in
10328 xlf* | bgf* | bgxlf* | mpixlf*)
10329 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10330 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10331 hardcode_libdir_flag_spec=
10332 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10333 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10334 if test "x$supports_anon_versioning" = xyes; then
10335 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10337 echo "local: *; };" >> $output_objdir/$libname.ver~
10338 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10341 esac
10342 else
10343 ld_shlibs=no
10347 netbsd*)
10348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10349 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10350 wlarc=
10351 else
10352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10357 solaris*)
10358 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10359 ld_shlibs=no
10360 cat <<_LT_EOF 1>&2
10362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10363 *** create shared libraries on Solaris systems. Therefore, libtool
10364 *** is disabling shared libraries support. We urge you to upgrade GNU
10365 *** binutils to release 2.9.1 or newer. Another option is to modify
10366 *** your PATH or compiler configuration so that the native linker is
10367 *** used, and then restart.
10369 _LT_EOF
10370 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10373 else
10374 ld_shlibs=no
10378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10379 case `$LD -v 2>&1` in
10380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10381 ld_shlibs=no
10382 cat <<_LT_EOF 1>&2
10384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10385 *** reliably create shared libraries on SCO systems. Therefore, libtool
10386 *** is disabling shared libraries support. We urge you to upgrade GNU
10387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10388 *** your PATH or compiler configuration so that the native linker is
10389 *** used, and then restart.
10391 _LT_EOF
10394 # For security reasons, it is highly recommended that you always
10395 # use absolute paths for naming shared libraries, and exclude the
10396 # DT_RUNPATH tag from executables and libraries. But doing so
10397 # requires that you compile everything twice, which is a pain.
10398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10402 else
10403 ld_shlibs=no
10406 esac
10409 sunos4*)
10410 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411 wlarc=
10412 hardcode_direct=yes
10413 hardcode_shlibpath_var=no
10417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10420 else
10421 ld_shlibs=no
10424 esac
10426 if test "$ld_shlibs" = no; then
10427 runpath_var=
10428 hardcode_libdir_flag_spec=
10429 export_dynamic_flag_spec=
10430 whole_archive_flag_spec=
10432 else
10433 # PORTME fill in a description of your system's linker (not GNU ld)
10434 case $host_os in
10435 aix3*)
10436 allow_undefined_flag=unsupported
10437 always_export_symbols=yes
10438 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'
10439 # Note: this linker hardcodes the directories in LIBPATH if there
10440 # are no directories specified by -L.
10441 hardcode_minus_L=yes
10442 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10443 # Neither direct hardcoding nor static linking is supported with a
10444 # broken collect2.
10445 hardcode_direct=unsupported
10449 aix[4-9]*)
10450 if test "$host_cpu" = ia64; then
10451 # On IA64, the linker does run time linking by default, so we don't
10452 # have to do anything special.
10453 aix_use_runtimelinking=no
10454 exp_sym_flag='-Bexport'
10455 no_entry_flag=""
10456 else
10457 # If we're using GNU nm, then we don't want the "-C" option.
10458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10459 # Also, AIX nm treats weak defined symbols like other global
10460 # defined symbols, whereas GNU nm marks them as "W".
10461 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10462 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'
10463 else
10464 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'
10466 aix_use_runtimelinking=no
10468 # Test if we are trying to use run time linking or normal
10469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10470 # need to do runtime linking.
10471 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10472 for ld_flag in $LDFLAGS; do
10473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10474 aix_use_runtimelinking=yes
10475 break
10477 done
10479 esac
10481 exp_sym_flag='-bexport'
10482 no_entry_flag='-bnoentry'
10485 # When large executables or shared objects are built, AIX ld can
10486 # have problems creating the table of contents. If linking a library
10487 # or program results in "error TOC overflow" add -mminimal-toc to
10488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10491 archive_cmds=''
10492 hardcode_direct=yes
10493 hardcode_direct_absolute=yes
10494 hardcode_libdir_separator=':'
10495 link_all_deplibs=yes
10496 file_list_spec='${wl}-f,'
10498 if test "$GCC" = yes; then
10499 case $host_os in aix4.[012]|aix4.[012].*)
10500 # We only want to do this on AIX 4.2 and lower, the check
10501 # below for broken collect2 doesn't work under 4.3+
10502 collect2name=`${CC} -print-prog-name=collect2`
10503 if test -f "$collect2name" &&
10504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10505 then
10506 # We have reworked collect2
10508 else
10509 # We have old collect2
10510 hardcode_direct=unsupported
10511 # It fails to find uninstalled libraries when the uninstalled
10512 # path is not listed in the libpath. Setting hardcode_minus_L
10513 # to unsupported forces relinking
10514 hardcode_minus_L=yes
10515 hardcode_libdir_flag_spec='-L$libdir'
10516 hardcode_libdir_separator=
10519 esac
10520 shared_flag='-shared'
10521 if test "$aix_use_runtimelinking" = yes; then
10522 shared_flag="$shared_flag "'${wl}-G'
10524 else
10525 # not using gcc
10526 if test "$host_cpu" = ia64; then
10527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10528 # chokes on -Wl,-G. The following line is correct:
10529 shared_flag='-G'
10530 else
10531 if test "$aix_use_runtimelinking" = yes; then
10532 shared_flag='${wl}-G'
10533 else
10534 shared_flag='${wl}-bM:SRE'
10539 export_dynamic_flag_spec='${wl}-bexpall'
10540 # It seems that -bexpall does not export symbols beginning with
10541 # underscore (_), so it is better to generate a list of symbols to export.
10542 always_export_symbols=yes
10543 if test "$aix_use_runtimelinking" = yes; then
10544 # Warning - without using the other runtime loading flags (-brtl),
10545 # -berok will link without error, but may produce a broken library.
10546 allow_undefined_flag='-berok'
10547 # Determine the default libpath from the value encoded in an
10548 # empty executable.
10549 if test x$gcc_no_link = xyes; then
10550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10556 main ()
10560 return 0;
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10565 lt_aix_libpath_sed='
10566 /Import File Strings/,/^$/ {
10567 /^0/ {
10568 s/^0 *\(.*\)$/\1/
10572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 # Check for a 64-bit object if we didn't find anything.
10574 if test -z "$aix_libpath"; then
10575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10583 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"
10584 else
10585 if test "$host_cpu" = ia64; then
10586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10587 allow_undefined_flag="-z nodefs"
10588 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"
10589 else
10590 # Determine the default libpath from the value encoded in an
10591 # empty executable.
10592 if test x$gcc_no_link = xyes; then
10593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10599 main ()
10603 return 0;
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10608 lt_aix_libpath_sed='
10609 /Import File Strings/,/^$/ {
10610 /^0/ {
10611 s/^0 *\(.*\)$/\1/
10615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10616 # Check for a 64-bit object if we didn't find anything.
10617 if test -z "$aix_libpath"; then
10618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10626 # Warning - without using the other run time loading flags,
10627 # -berok will link without error, but may produce a broken library.
10628 no_undefined_flag=' ${wl}-bernotok'
10629 allow_undefined_flag=' ${wl}-berok'
10630 if test "$with_gnu_ld" = yes; then
10631 # We only use this code for GNU lds that support --whole-archive.
10632 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10633 else
10634 # Exported symbols can be pulled into shared objects from archives
10635 whole_archive_flag_spec='$convenience'
10637 archive_cmds_need_lc=yes
10638 # This is similar to how AIX traditionally builds its shared libraries.
10639 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'
10644 amigaos*)
10645 case $host_cpu in
10646 powerpc)
10647 # see comment about AmigaOS4 .so support
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds=''
10651 m68k)
10652 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)'
10653 hardcode_libdir_flag_spec='-L$libdir'
10654 hardcode_minus_L=yes
10656 esac
10659 bsdi[45]*)
10660 export_dynamic_flag_spec=-rdynamic
10663 cygwin* | mingw* | pw32* | cegcc*)
10664 # When not using gcc, we currently assume that we are using
10665 # Microsoft Visual C++.
10666 # hardcode_libdir_flag_spec is actually meaningless, as there is
10667 # no search path for DLLs.
10668 hardcode_libdir_flag_spec=' '
10669 allow_undefined_flag=unsupported
10670 # Tell ltmain to make .lib files, not .a files.
10671 libext=lib
10672 # Tell ltmain to make .dll files, not .so files.
10673 shrext_cmds=".dll"
10674 # FIXME: Setting linknames here is a bad hack.
10675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10676 # The linker will automatically build a .lib file if we build a DLL.
10677 old_archive_from_new_cmds='true'
10678 # FIXME: Should let the user specify the lib program.
10679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10680 fix_srcfile_path='`cygpath -w "$srcfile"`'
10681 enable_shared_with_static_runtimes=yes
10684 darwin* | rhapsody*)
10687 archive_cmds_need_lc=no
10688 hardcode_direct=no
10689 hardcode_automatic=yes
10690 hardcode_shlibpath_var=unsupported
10691 if test "$lt_cv_ld_force_load" = "yes"; then
10692 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\"`'
10693 else
10694 whole_archive_flag_spec=''
10696 link_all_deplibs=yes
10697 allow_undefined_flag="$_lt_dar_allow_undefined"
10698 case $cc_basename in
10699 ifort*) _lt_dar_can_shared=yes ;;
10700 *) _lt_dar_can_shared=$GCC ;;
10701 esac
10702 if test "$_lt_dar_can_shared" = "yes"; then
10703 output_verbose_link_cmd=func_echo_all
10704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10706 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}"
10707 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}"
10709 else
10710 ld_shlibs=no
10715 dgux*)
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_shlibpath_var=no
10721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10722 # support. Future versions do this automatically, but an explicit c++rt0.o
10723 # does not break anything, and helps significantly (at the cost of a little
10724 # extra space).
10725 freebsd2.2*)
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10733 freebsd2.*)
10734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_direct=yes
10736 hardcode_minus_L=yes
10737 hardcode_shlibpath_var=no
10740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10741 freebsd* | dragonfly*)
10742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_direct=yes
10745 hardcode_shlibpath_var=no
10748 hpux9*)
10749 if test "$GCC" = yes; then
10750 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'
10751 else
10752 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'
10754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10755 hardcode_libdir_separator=:
10756 hardcode_direct=yes
10758 # hardcode_minus_L: Not really in the search PATH,
10759 # but as the default location of the library.
10760 hardcode_minus_L=yes
10761 export_dynamic_flag_spec='${wl}-E'
10764 hpux10*)
10765 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767 else
10768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10770 if test "$with_gnu_ld" = no; then
10771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10772 hardcode_libdir_flag_spec_ld='+b $libdir'
10773 hardcode_libdir_separator=:
10774 hardcode_direct=yes
10775 hardcode_direct_absolute=yes
10776 export_dynamic_flag_spec='${wl}-E'
10777 # hardcode_minus_L: Not really in the search PATH,
10778 # but as the default location of the library.
10779 hardcode_minus_L=yes
10783 hpux11*)
10784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10785 case $host_cpu in
10786 hppa*64*)
10787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 ia64*)
10790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10795 esac
10796 else
10797 case $host_cpu in
10798 hppa*64*)
10799 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10801 ia64*)
10802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10806 # Older versions of the 11.00 compiler do not understand -b yet
10807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10809 $as_echo_n "checking if $CC understands -b... " >&6; }
10810 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 lt_cv_prog_compiler__b=no
10814 save_LDFLAGS="$LDFLAGS"
10815 LDFLAGS="$LDFLAGS -b"
10816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10818 # The linker can only warn and ignore the option if not recognized
10819 # So say no if there are warnings
10820 if test -s conftest.err; then
10821 # Append any errors to the config.log.
10822 cat conftest.err 1>&5
10823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10825 if diff conftest.exp conftest.er2 >/dev/null; then
10826 lt_cv_prog_compiler__b=yes
10828 else
10829 lt_cv_prog_compiler__b=yes
10832 $RM -r conftest*
10833 LDFLAGS="$save_LDFLAGS"
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10839 if test x"$lt_cv_prog_compiler__b" = xyes; then
10840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10841 else
10842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10846 esac
10848 if test "$with_gnu_ld" = no; then
10849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10850 hardcode_libdir_separator=:
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 hardcode_direct=no
10855 hardcode_shlibpath_var=no
10858 hardcode_direct=yes
10859 hardcode_direct_absolute=yes
10860 export_dynamic_flag_spec='${wl}-E'
10862 # hardcode_minus_L: Not really in the search PATH,
10863 # but as the default location of the library.
10864 hardcode_minus_L=yes
10866 esac
10870 irix5* | irix6* | nonstopux*)
10871 if test "$GCC" = yes; then
10872 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'
10873 # Try to use the -exported_symbol ld option, if it does not
10874 # work, assume that -exports_file does not work either and
10875 # implicitly export all symbols.
10876 save_LDFLAGS="$LDFLAGS"
10877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10878 if test x$gcc_no_link = xyes; then
10879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 int foo(void) {}
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 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'
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS="$save_LDFLAGS"
10892 else
10893 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'
10894 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'
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 hardcode_libdir_separator=:
10899 inherit_rpath=yes
10900 link_all_deplibs=yes
10903 netbsd*)
10904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10906 else
10907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10909 hardcode_libdir_flag_spec='-R$libdir'
10910 hardcode_direct=yes
10911 hardcode_shlibpath_var=no
10914 newsos6)
10915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 hardcode_direct=yes
10917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10918 hardcode_libdir_separator=:
10919 hardcode_shlibpath_var=no
10922 *nto* | *qnx*)
10925 openbsd*)
10926 if test -f /usr/libexec/ld.so; then
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10929 hardcode_direct_absolute=yes
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10934 export_dynamic_flag_spec='${wl}-E'
10935 else
10936 case $host_os in
10937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_libdir_flag_spec='-R$libdir'
10942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10945 esac
10947 else
10948 ld_shlibs=no
10952 os2*)
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_minus_L=yes
10955 allow_undefined_flag=unsupported
10956 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'
10957 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10960 osf3*)
10961 if test "$GCC" = yes; then
10962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10963 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'
10964 else
10965 allow_undefined_flag=' -expect_unresolved \*'
10966 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'
10968 archive_cmds_need_lc='no'
10969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10970 hardcode_libdir_separator=:
10973 osf4* | osf5*) # as osf3* with the addition of -msym flag
10974 if test "$GCC" = yes; then
10975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10976 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'
10977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10978 else
10979 allow_undefined_flag=' -expect_unresolved \*'
10980 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'
10981 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~
10982 $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'
10984 # Both c and cxx compiler support -rpath directly
10985 hardcode_libdir_flag_spec='-rpath $libdir'
10987 archive_cmds_need_lc='no'
10988 hardcode_libdir_separator=:
10991 solaris*)
10992 no_undefined_flag=' -z defs'
10993 if test "$GCC" = yes; then
10994 wlarc='${wl}'
10995 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10998 else
10999 case `$CC -V 2>&1` in
11000 *"Compilers 5.0"*)
11001 wlarc=''
11002 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11007 wlarc='${wl}'
11008 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11012 esac
11014 hardcode_libdir_flag_spec='-R$libdir'
11015 hardcode_shlibpath_var=no
11016 case $host_os in
11017 solaris2.[0-5] | solaris2.[0-5].*) ;;
11019 # The compiler driver will combine and reorder linker options,
11020 # but understands `-z linker_flag'. GCC discards it without `$wl',
11021 # but is careful enough not to reorder.
11022 # Supported since Solaris 2.6 (maybe 2.5.1?)
11023 if test "$GCC" = yes; then
11024 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11025 else
11026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11029 esac
11030 link_all_deplibs=yes
11033 sunos4*)
11034 if test "x$host_vendor" = xsequent; then
11035 # Use $CC to link under sequent, because it throws in some extra .o
11036 # files that make .init and .fini sections work.
11037 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038 else
11039 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_direct=yes
11043 hardcode_minus_L=yes
11044 hardcode_shlibpath_var=no
11047 sysv4)
11048 case $host_vendor in
11049 sni)
11050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11051 hardcode_direct=yes # is this really true???
11053 siemens)
11054 ## LD is ld it makes a PLAMLIB
11055 ## CC just makes a GrossModule.
11056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11057 reload_cmds='$CC -r -o $output$reload_objs'
11058 hardcode_direct=no
11060 motorola)
11061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11064 esac
11065 runpath_var='LD_RUN_PATH'
11066 hardcode_shlibpath_var=no
11069 sysv4.3*)
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_shlibpath_var=no
11072 export_dynamic_flag_spec='-Bexport'
11075 sysv4*MP*)
11076 if test -d /usr/nec; then
11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 hardcode_shlibpath_var=no
11079 runpath_var=LD_RUN_PATH
11080 hardcode_runpath_var=yes
11081 ld_shlibs=yes
11085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11086 no_undefined_flag='${wl}-z,text'
11087 archive_cmds_need_lc=no
11088 hardcode_shlibpath_var=no
11089 runpath_var='LD_RUN_PATH'
11091 if test "$GCC" = yes; then
11092 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094 else
11095 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100 sysv5* | sco3.2v5* | sco5v6*)
11101 # Note: We can NOT use -z defs as we might desire, because we do not
11102 # link with -lc, and that would cause any symbols used from libc to
11103 # always be unresolved, which means just about no library would
11104 # ever link correctly. If we're not using GNU ld we use -z text
11105 # though, which does catch some bad symbols but isn't as heavy-handed
11106 # as -z defs.
11107 no_undefined_flag='${wl}-z,text'
11108 allow_undefined_flag='${wl}-z,nodefs'
11109 archive_cmds_need_lc=no
11110 hardcode_shlibpath_var=no
11111 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11112 hardcode_libdir_separator=':'
11113 link_all_deplibs=yes
11114 export_dynamic_flag_spec='${wl}-Bexport'
11115 runpath_var='LD_RUN_PATH'
11117 if test "$GCC" = yes; then
11118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11120 else
11121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 uts4*)
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_libdir_flag_spec='-L$libdir'
11129 hardcode_shlibpath_var=no
11133 ld_shlibs=no
11135 esac
11137 if test x$host_vendor = xsni; then
11138 case $host in
11139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11140 export_dynamic_flag_spec='${wl}-Blargedynsym'
11142 esac
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11147 $as_echo "$ld_shlibs" >&6; }
11148 test "$ld_shlibs" = no && can_build_shared=no
11150 with_gnu_ld=$with_gnu_ld
11167 # Do we need to explicitly link libc?
11169 case "x$archive_cmds_need_lc" in
11170 x|xyes)
11171 # Assume -lc should be added
11172 archive_cmds_need_lc=yes
11174 if test "$enable_shared" = yes && test "$GCC" = yes; then
11175 case $archive_cmds in
11176 *'~'*)
11177 # FIXME: we may have to deal with multi-command sequences.
11179 '$CC '*)
11180 # Test whether the compiler implicitly links with -lc since on some
11181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11182 # to ld, don't add -lc before -lgcc.
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11184 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11185 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 $RM conftest*
11189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11192 (eval $ac_compile) 2>&5
11193 ac_status=$?
11194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195 test $ac_status = 0; } 2>conftest.err; then
11196 soname=conftest
11197 lib=conftest
11198 libobjs=conftest.$ac_objext
11199 deplibs=
11200 wl=$lt_prog_compiler_wl
11201 pic_flag=$lt_prog_compiler_pic
11202 compiler_flags=-v
11203 linker_flags=-v
11204 verstring=
11205 output_objdir=.
11206 libname=conftest
11207 lt_save_allow_undefined_flag=$allow_undefined_flag
11208 allow_undefined_flag=
11209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11210 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11211 ac_status=$?
11212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11213 test $ac_status = 0; }
11214 then
11215 lt_cv_archive_cmds_need_lc=no
11216 else
11217 lt_cv_archive_cmds_need_lc=yes
11219 allow_undefined_flag=$lt_save_allow_undefined_flag
11220 else
11221 cat conftest.err 1>&5
11223 $RM conftest*
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11227 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11228 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11230 esac
11233 esac
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11394 if test "$GCC" = yes; then
11395 case $host_os in
11396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11397 *) lt_awk_arg="/^libraries:/" ;;
11398 esac
11399 case $host_os in
11400 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11401 *) lt_sed_strip_eq="s,=/,/,g" ;;
11402 esac
11403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11404 case $lt_search_path_spec in
11405 *\;*)
11406 # if the path contains ";" then we assume it to be the separator
11407 # otherwise default to the standard path separator (i.e. ":") - it is
11408 # assumed that no part of a normal pathname contains ";" but that should
11409 # okay in the real world where ";" in dirpaths is itself problematic.
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11415 esac
11416 # Ok, now we have the path, separated by spaces, we can step through it
11417 # and add multilib dir if necessary.
11418 lt_tmp_lt_search_path_spec=
11419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420 for lt_sys_path in $lt_search_path_spec; do
11421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11423 else
11424 test -d "$lt_sys_path" && \
11425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11427 done
11428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11429 BEGIN {RS=" "; FS="/|\n";} {
11430 lt_foo="";
11431 lt_count=0;
11432 for (lt_i = NF; lt_i > 0; lt_i--) {
11433 if ($lt_i != "" && $lt_i != ".") {
11434 if ($lt_i == "..") {
11435 lt_count++;
11436 } else {
11437 if (lt_count == 0) {
11438 lt_foo="/" $lt_i lt_foo;
11439 } else {
11440 lt_count--;
11445 if (lt_foo != "") { lt_freq[lt_foo]++; }
11446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11448 # AWK program above erroneously prepends '/' to C:/dos/paths
11449 # for these hosts.
11450 case $host_os in
11451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11452 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11453 esac
11454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11455 else
11456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11458 library_names_spec=
11459 libname_spec='lib$name'
11460 soname_spec=
11461 shrext_cmds=".so"
11462 postinstall_cmds=
11463 postuninstall_cmds=
11464 finish_cmds=
11465 finish_eval=
11466 shlibpath_var=
11467 shlibpath_overrides_runpath=unknown
11468 version_type=none
11469 dynamic_linker="$host_os ld.so"
11470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11471 need_lib_prefix=unknown
11472 hardcode_into_libs=no
11474 # when you set need_version to no, make sure it does not cause -set_version
11475 # flags to be left without arguments
11476 need_version=unknown
11478 case $host_os in
11479 aix3*)
11480 version_type=linux
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11482 shlibpath_var=LIBPATH
11484 # AIX 3 has no versioning support, so we append a major version to the name.
11485 soname_spec='${libname}${release}${shared_ext}$major'
11488 aix[4-9]*)
11489 version_type=linux
11490 need_lib_prefix=no
11491 need_version=no
11492 hardcode_into_libs=yes
11493 if test "$host_cpu" = ia64; then
11494 # AIX 5 supports IA64
11495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 else
11498 # With GCC up to 2.95.x, collect2 would create an import file
11499 # for dependence libraries. The import file would start with
11500 # the line `#! .'. This would cause the generated library to
11501 # depend on `.', always an invalid library. This was fixed in
11502 # development snapshots of GCC prior to 3.0.
11503 case $host_os in
11504 aix4 | aix4.[01] | aix4.[01].*)
11505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11506 echo ' yes '
11507 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11509 else
11510 can_build_shared=no
11513 esac
11514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11515 # soname into executable. Probably we can add versioning support to
11516 # collect2, so additional links can be useful in future.
11517 if test "$aix_use_runtimelinking" = yes; then
11518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11519 # instead of lib<name>.a to let people know that these are not
11520 # typical AIX shared libraries.
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 else
11523 # We preserve .a as extension for shared libraries through AIX4.2
11524 # and later when we are not doing run time linking.
11525 library_names_spec='${libname}${release}.a $libname.a'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11528 shlibpath_var=LIBPATH
11532 amigaos*)
11533 case $host_cpu in
11534 powerpc)
11535 # Since July 2007 AmigaOS4 officially supports .so libraries.
11536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 m68k)
11540 library_names_spec='$libname.ixlibrary $libname.a'
11541 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11542 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'
11544 esac
11547 beos*)
11548 library_names_spec='${libname}${shared_ext}'
11549 dynamic_linker="$host_os ld.so"
11550 shlibpath_var=LIBRARY_PATH
11553 bsdi[45]*)
11554 version_type=linux
11555 need_version=no
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11562 # the default ld.so.conf also contains /usr/contrib/lib and
11563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11564 # libtool to hard-code these into programs
11567 cygwin* | mingw* | pw32* | cegcc*)
11568 version_type=windows
11569 shrext_cmds=".dll"
11570 need_version=no
11571 need_lib_prefix=no
11573 case $GCC,$host_os in
11574 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11575 library_names_spec='$libname.dll.a'
11576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11577 postinstall_cmds='base_file=`basename \${file}`~
11578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11579 dldir=$destdir/`dirname \$dlpath`~
11580 test -d \$dldir || mkdir -p \$dldir~
11581 $install_prog $dir/$dlname \$dldir/$dlname~
11582 chmod a+x \$dldir/$dlname~
11583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11587 dlpath=$dir/\$dldll~
11588 $RM \$dlpath'
11589 shlibpath_overrides_runpath=yes
11591 case $host_os in
11592 cygwin*)
11593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11596 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11598 mingw* | cegcc*)
11599 # MinGW DLLs use traditional 'lib' prefix
11600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11602 pw32*)
11603 # pw32 DLLs use 'pw' prefix rather than 'lib'
11604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11606 esac
11610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11612 esac
11613 dynamic_linker='Win32 ld.exe'
11614 # FIXME: first we should search . and the directory the executable is in
11615 shlibpath_var=PATH
11618 darwin* | rhapsody*)
11619 dynamic_linker="$host_os dyld"
11620 version_type=darwin
11621 need_lib_prefix=no
11622 need_version=no
11623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11624 soname_spec='${libname}${release}${major}$shared_ext'
11625 shlibpath_overrides_runpath=yes
11626 shlibpath_var=DYLD_LIBRARY_PATH
11627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11633 dgux*)
11634 version_type=linux
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11642 freebsd* | dragonfly*)
11643 # DragonFly does not have aout. When/if they implement a new
11644 # versioning mechanism, adjust this.
11645 if test -x /usr/bin/objformat; then
11646 objformat=`/usr/bin/objformat`
11647 else
11648 case $host_os in
11649 freebsd[23].*) objformat=aout ;;
11650 *) objformat=elf ;;
11651 esac
11653 version_type=freebsd-$objformat
11654 case $version_type in
11655 freebsd-elf*)
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11657 need_version=no
11658 need_lib_prefix=no
11660 freebsd-*)
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11662 need_version=yes
11664 esac
11665 shlibpath_var=LD_LIBRARY_PATH
11666 case $host_os in
11667 freebsd2.*)
11668 shlibpath_overrides_runpath=yes
11670 freebsd3.[01]* | freebsdelf3.[01]*)
11671 shlibpath_overrides_runpath=yes
11672 hardcode_into_libs=yes
11674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11676 shlibpath_overrides_runpath=no
11677 hardcode_into_libs=yes
11679 *) # from 4.6 on, and DragonFly
11680 shlibpath_overrides_runpath=yes
11681 hardcode_into_libs=yes
11683 esac
11686 gnu*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 hardcode_into_libs=yes
11696 haiku*)
11697 version_type=linux
11698 need_lib_prefix=no
11699 need_version=no
11700 dynamic_linker="$host_os runtime_loader"
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11706 hardcode_into_libs=yes
11709 hpux9* | hpux10* | hpux11*)
11710 # Give a soname corresponding to the major version so that dld.sl refuses to
11711 # link against other versions.
11712 version_type=sunos
11713 need_lib_prefix=no
11714 need_version=no
11715 case $host_cpu in
11716 ia64*)
11717 shrext_cmds='.so'
11718 hardcode_into_libs=yes
11719 dynamic_linker="$host_os dld.so"
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 if test "X$HPUX_IA64_MODE" = X32; then
11725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11726 else
11727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11731 hppa*64*)
11732 shrext_cmds='.sl'
11733 hardcode_into_libs=yes
11734 dynamic_linker="$host_os dld.sl"
11735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11743 shrext_cmds='.sl'
11744 dynamic_linker="$host_os dld.sl"
11745 shlibpath_var=SHLIB_PATH
11746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11750 esac
11751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11752 postinstall_cmds='chmod 555 $lib'
11753 # or fails outright, so override atomically:
11754 install_override_mode=555
11757 interix[3-9]*)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=no
11766 hardcode_into_libs=yes
11769 irix5* | irix6* | nonstopux*)
11770 case $host_os in
11771 nonstopux*) version_type=nonstopux ;;
11773 if test "$lt_cv_prog_gnu_ld" = yes; then
11774 version_type=linux
11775 else
11776 version_type=irix
11777 fi ;;
11778 esac
11779 need_lib_prefix=no
11780 need_version=no
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11783 case $host_os in
11784 irix5* | nonstopux*)
11785 libsuff= shlibsuff=
11788 case $LD in # libtool.m4 will add one of these switches to LD
11789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11790 libsuff= shlibsuff= libmagic=32-bit;;
11791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11792 libsuff=32 shlibsuff=N32 libmagic=N32;;
11793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11794 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11795 *) libsuff= shlibsuff= libmagic=never-match;;
11796 esac
11798 esac
11799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11800 shlibpath_overrides_runpath=no
11801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11803 hardcode_into_libs=yes
11806 # No shared lib support for Linux oldld, aout, or coff.
11807 linux*oldld* | linux*aout* | linux*coff*)
11808 dynamic_linker=no
11811 # This must be Linux ELF.
11812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11813 version_type=linux
11814 need_lib_prefix=no
11815 need_version=no
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=no
11822 # Some binutils ld are patched to set DT_RUNPATH
11823 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 lt_cv_shlibpath_overrides_runpath=no
11827 save_LDFLAGS=$LDFLAGS
11828 save_libdir=$libdir
11829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11831 if test x$gcc_no_link = xyes; then
11832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11838 main ()
11842 return 0;
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11847 lt_cv_shlibpath_overrides_runpath=yes
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LDFLAGS=$save_LDFLAGS
11853 libdir=$save_libdir
11857 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11859 # This implies no fast_install, which is unacceptable.
11860 # Some rework will be needed to allow for fast_install
11861 # before this can be enabled.
11862 hardcode_into_libs=yes
11864 # Append ld.so.conf contents to the search path
11865 if test -f /etc/ld.so.conf; then
11866 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' ' '`
11867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11870 # We used to test for /lib/ld.so.1 and disable shared libraries on
11871 # powerpc, because MkLinux only supported shared libraries with the
11872 # GNU dynamic linker. Since this was broken with cross compilers,
11873 # most powerpc-linux boxes support dynamic linking these days and
11874 # people can always --disable-shared, the test was removed, and we
11875 # assume the GNU/Linux dynamic linker is in use.
11876 dynamic_linker='GNU/Linux ld.so'
11879 netbsd*)
11880 version_type=sunos
11881 need_lib_prefix=no
11882 need_version=no
11883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11886 dynamic_linker='NetBSD (a.out) ld.so'
11887 else
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 dynamic_linker='NetBSD ld.elf_so'
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11897 newsos6)
11898 version_type=linux
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=yes
11904 *nto* | *qnx*)
11905 version_type=qnx
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=no
11912 hardcode_into_libs=yes
11913 dynamic_linker='ldqnx.so'
11916 openbsd*)
11917 version_type=sunos
11918 sys_lib_dlsearch_path_spec="/usr/lib"
11919 need_lib_prefix=no
11920 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11921 case $host_os in
11922 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11923 *) need_version=no ;;
11924 esac
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11929 case $host_os in
11930 openbsd2.[89] | openbsd2.[89].*)
11931 shlibpath_overrides_runpath=no
11934 shlibpath_overrides_runpath=yes
11936 esac
11937 else
11938 shlibpath_overrides_runpath=yes
11942 os2*)
11943 libname_spec='$name'
11944 shrext_cmds=".dll"
11945 need_lib_prefix=no
11946 library_names_spec='$libname${shared_ext} $libname.a'
11947 dynamic_linker='OS/2 ld.exe'
11948 shlibpath_var=LIBPATH
11951 osf3* | osf4* | osf5*)
11952 version_type=osf
11953 need_lib_prefix=no
11954 need_version=no
11955 soname_spec='${libname}${release}${shared_ext}$major'
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11959 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11962 rdos*)
11963 dynamic_linker=no
11966 solaris*)
11967 version_type=linux
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=yes
11974 hardcode_into_libs=yes
11975 # ldd complains unless libraries are executable
11976 postinstall_cmds='chmod +x $lib'
11979 sunos4*)
11980 version_type=sunos
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 if test "$with_gnu_ld" = yes; then
11986 need_lib_prefix=no
11988 need_version=yes
11991 sysv4 | sysv4.3*)
11992 version_type=linux
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994 soname_spec='${libname}${release}${shared_ext}$major'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 case $host_vendor in
11997 sni)
11998 shlibpath_overrides_runpath=no
11999 need_lib_prefix=no
12000 runpath_var=LD_RUN_PATH
12002 siemens)
12003 need_lib_prefix=no
12005 motorola)
12006 need_lib_prefix=no
12007 need_version=no
12008 shlibpath_overrides_runpath=no
12009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12011 esac
12014 sysv4*MP*)
12015 if test -d /usr/nec ;then
12016 version_type=linux
12017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12018 soname_spec='$libname${shared_ext}.$major'
12019 shlibpath_var=LD_LIBRARY_PATH
12023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12024 version_type=freebsd-elf
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12031 hardcode_into_libs=yes
12032 if test "$with_gnu_ld" = yes; then
12033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12034 else
12035 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12036 case $host_os in
12037 sco3.2v5*)
12038 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12040 esac
12042 sys_lib_dlsearch_path_spec='/usr/lib'
12045 tpf*)
12046 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12047 version_type=linux
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=no
12053 hardcode_into_libs=yes
12056 uts4*)
12057 version_type=linux
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 shlibpath_var=LD_LIBRARY_PATH
12064 dynamic_linker=no
12066 esac
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12068 $as_echo "$dynamic_linker" >&6; }
12069 test "$dynamic_linker" = no && can_build_shared=no
12071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12072 if test "$GCC" = yes; then
12073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12076 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12077 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12079 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12080 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12175 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12176 hardcode_action=
12177 if test -n "$hardcode_libdir_flag_spec" ||
12178 test -n "$runpath_var" ||
12179 test "X$hardcode_automatic" = "Xyes" ; then
12181 # We can hardcode non-existent directories.
12182 if test "$hardcode_direct" != no &&
12183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12184 # have to relink, otherwise we might link with an installed library
12185 # when we should be linking with a yet-to-be-installed one
12186 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12187 test "$hardcode_minus_L" != no; then
12188 # Linking always hardcodes the temporary library directory.
12189 hardcode_action=relink
12190 else
12191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12192 hardcode_action=immediate
12194 else
12195 # We cannot hardcode anything, or else we can only hardcode existing
12196 # directories.
12197 hardcode_action=unsupported
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12200 $as_echo "$hardcode_action" >&6; }
12202 if test "$hardcode_action" = relink ||
12203 test "$inherit_rpath" = yes; then
12204 # Fast installation is not supported
12205 enable_fast_install=no
12206 elif test "$shlibpath_overrides_runpath" = yes ||
12207 test "$enable_shared" = no; then
12208 # Fast installation is not necessary
12209 enable_fast_install=needless
12217 if test "x$enable_dlopen" != xyes; then
12218 enable_dlopen=unknown
12219 enable_dlopen_self=unknown
12220 enable_dlopen_self_static=unknown
12221 else
12222 lt_cv_dlopen=no
12223 lt_cv_dlopen_libs=
12225 case $host_os in
12226 beos*)
12227 lt_cv_dlopen="load_add_on"
12228 lt_cv_dlopen_libs=
12229 lt_cv_dlopen_self=yes
12232 mingw* | pw32* | cegcc*)
12233 lt_cv_dlopen="LoadLibrary"
12234 lt_cv_dlopen_libs=
12237 cygwin*)
12238 lt_cv_dlopen="dlopen"
12239 lt_cv_dlopen_libs=
12242 darwin*)
12243 # if libdl is installed we need to link against it
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldl $LIBS"
12251 if test x$gcc_no_link = xyes; then
12252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dlopen ();
12265 main ()
12267 return dlopen ();
12269 return 0;
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_dl_dlopen=yes
12274 else
12275 ac_cv_lib_dl_dlopen=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12282 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12283 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12285 else
12287 lt_cv_dlopen="dyld"
12288 lt_cv_dlopen_libs=
12289 lt_cv_dlopen_self=yes
12296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297 if test "x$ac_cv_func_shl_load" = x""yes; then :
12298 lt_cv_dlopen="shl_load"
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-ldld $LIBS"
12307 if test x$gcc_no_link = xyes; then
12308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char shl_load ();
12321 main ()
12323 return shl_load ();
12325 return 0;
12327 _ACEOF
12328 if ac_fn_c_try_link "$LINENO"; then :
12329 ac_cv_lib_dld_shl_load=yes
12330 else
12331 ac_cv_lib_dld_shl_load=no
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12338 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12339 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12341 else
12342 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12343 if test "x$ac_cv_func_dlopen" = x""yes; then :
12344 lt_cv_dlopen="dlopen"
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12347 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-ldl $LIBS"
12353 if test x$gcc_no_link = xyes; then
12354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 char dlopen ();
12367 main ()
12369 return dlopen ();
12371 return 0;
12373 _ACEOF
12374 if ac_fn_c_try_link "$LINENO"; then :
12375 ac_cv_lib_dl_dlopen=yes
12376 else
12377 ac_cv_lib_dl_dlopen=no
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12385 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12389 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12390 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lsvld $LIBS"
12395 if test x$gcc_no_link = xyes; then
12396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char dlopen ();
12409 main ()
12411 return dlopen ();
12413 return 0;
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 ac_cv_lib_svld_dlopen=yes
12418 else
12419 ac_cv_lib_svld_dlopen=no
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12426 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12427 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12431 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12432 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldld $LIBS"
12437 if test x$gcc_no_link = xyes; then
12438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char dld_link ();
12451 main ()
12453 return dld_link ();
12455 return 0;
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_lib_dld_dld_link=yes
12460 else
12461 ac_cv_lib_dld_dld_link=no
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12468 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12469 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12470 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12489 esac
12491 if test "x$lt_cv_dlopen" != xno; then
12492 enable_dlopen=yes
12493 else
12494 enable_dlopen=no
12497 case $lt_cv_dlopen in
12498 dlopen)
12499 save_CPPFLAGS="$CPPFLAGS"
12500 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12502 save_LDFLAGS="$LDFLAGS"
12503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12505 save_LIBS="$LIBS"
12506 LIBS="$lt_cv_dlopen_libs $LIBS"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12509 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12510 if test "${lt_cv_dlopen_self+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test "$cross_compiling" = yes; then :
12514 lt_cv_dlopen_self=cross
12515 else
12516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12517 lt_status=$lt_dlunknown
12518 cat > conftest.$ac_ext <<_LT_EOF
12519 #line 12519 "configure"
12520 #include "confdefs.h"
12522 #if HAVE_DLFCN_H
12523 #include <dlfcn.h>
12524 #endif
12526 #include <stdio.h>
12528 #ifdef RTLD_GLOBAL
12529 # define LT_DLGLOBAL RTLD_GLOBAL
12530 #else
12531 # ifdef DL_GLOBAL
12532 # define LT_DLGLOBAL DL_GLOBAL
12533 # else
12534 # define LT_DLGLOBAL 0
12535 # endif
12536 #endif
12538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12539 find out it does not work in some platform. */
12540 #ifndef LT_DLLAZY_OR_NOW
12541 # ifdef RTLD_LAZY
12542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12543 # else
12544 # ifdef DL_LAZY
12545 # define LT_DLLAZY_OR_NOW DL_LAZY
12546 # else
12547 # ifdef RTLD_NOW
12548 # define LT_DLLAZY_OR_NOW RTLD_NOW
12549 # else
12550 # ifdef DL_NOW
12551 # define LT_DLLAZY_OR_NOW DL_NOW
12552 # else
12553 # define LT_DLLAZY_OR_NOW 0
12554 # endif
12555 # endif
12556 # endif
12557 # endif
12558 #endif
12560 /* When -fvisbility=hidden is used, assume the code has been annotated
12561 correspondingly for the symbols needed. */
12562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12563 void fnord () __attribute__((visibility("default")));
12564 #endif
12566 void fnord () { int i=42; }
12567 int main ()
12569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12570 int status = $lt_dlunknown;
12572 if (self)
12574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12575 else
12577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12578 else puts (dlerror ());
12580 /* dlclose (self); */
12582 else
12583 puts (dlerror ());
12585 return status;
12587 _LT_EOF
12588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12589 (eval $ac_link) 2>&5
12590 ac_status=$?
12591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12593 (./conftest; exit; ) >&5 2>/dev/null
12594 lt_status=$?
12595 case x$lt_status in
12596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12598 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12599 esac
12600 else :
12601 # compilation failed
12602 lt_cv_dlopen_self=no
12605 rm -fr conftest*
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12610 $as_echo "$lt_cv_dlopen_self" >&6; }
12612 if test "x$lt_cv_dlopen_self" = xyes; then
12613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12615 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12616 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test "$cross_compiling" = yes; then :
12620 lt_cv_dlopen_self_static=cross
12621 else
12622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12623 lt_status=$lt_dlunknown
12624 cat > conftest.$ac_ext <<_LT_EOF
12625 #line 12625 "configure"
12626 #include "confdefs.h"
12628 #if HAVE_DLFCN_H
12629 #include <dlfcn.h>
12630 #endif
12632 #include <stdio.h>
12634 #ifdef RTLD_GLOBAL
12635 # define LT_DLGLOBAL RTLD_GLOBAL
12636 #else
12637 # ifdef DL_GLOBAL
12638 # define LT_DLGLOBAL DL_GLOBAL
12639 # else
12640 # define LT_DLGLOBAL 0
12641 # endif
12642 #endif
12644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12645 find out it does not work in some platform. */
12646 #ifndef LT_DLLAZY_OR_NOW
12647 # ifdef RTLD_LAZY
12648 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12649 # else
12650 # ifdef DL_LAZY
12651 # define LT_DLLAZY_OR_NOW DL_LAZY
12652 # else
12653 # ifdef RTLD_NOW
12654 # define LT_DLLAZY_OR_NOW RTLD_NOW
12655 # else
12656 # ifdef DL_NOW
12657 # define LT_DLLAZY_OR_NOW DL_NOW
12658 # else
12659 # define LT_DLLAZY_OR_NOW 0
12660 # endif
12661 # endif
12662 # endif
12663 # endif
12664 #endif
12666 /* When -fvisbility=hidden is used, assume the code has been annotated
12667 correspondingly for the symbols needed. */
12668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12669 void fnord () __attribute__((visibility("default")));
12670 #endif
12672 void fnord () { int i=42; }
12673 int main ()
12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676 int status = $lt_dlunknown;
12678 if (self)
12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12681 else
12683 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12684 else puts (dlerror ());
12686 /* dlclose (self); */
12688 else
12689 puts (dlerror ());
12691 return status;
12693 _LT_EOF
12694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12695 (eval $ac_link) 2>&5
12696 ac_status=$?
12697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12699 (./conftest; exit; ) >&5 2>/dev/null
12700 lt_status=$?
12701 case x$lt_status in
12702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12704 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12705 esac
12706 else :
12707 # compilation failed
12708 lt_cv_dlopen_self_static=no
12711 rm -fr conftest*
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12716 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12719 CPPFLAGS="$save_CPPFLAGS"
12720 LDFLAGS="$save_LDFLAGS"
12721 LIBS="$save_LIBS"
12723 esac
12725 case $lt_cv_dlopen_self in
12726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12727 *) enable_dlopen_self=unknown ;;
12728 esac
12730 case $lt_cv_dlopen_self_static in
12731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12732 *) enable_dlopen_self_static=unknown ;;
12733 esac
12752 striplib=
12753 old_striplib=
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12755 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12756 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12758 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12761 else
12762 # FIXME - insert some real tests, host_os isn't really good enough
12763 case $host_os in
12764 darwin*)
12765 if test -n "$STRIP" ; then
12766 striplib="$STRIP -x"
12767 old_striplib="$STRIP -S"
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769 $as_echo "yes" >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12779 esac
12793 # Report which library types will actually be built
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12795 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12797 $as_echo "$can_build_shared" >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12800 $as_echo_n "checking whether to build shared libraries... " >&6; }
12801 test "$can_build_shared" = "no" && enable_shared=no
12803 # On AIX, shared libraries and static libraries use the same namespace, and
12804 # are all built from PIC.
12805 case $host_os in
12806 aix3*)
12807 test "$enable_shared" = yes && enable_static=no
12808 if test -n "$RANLIB"; then
12809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12810 postinstall_cmds='$RANLIB $lib'
12814 aix[4-9]*)
12815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12816 test "$enable_shared" = yes && enable_static=no
12819 esac
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12821 $as_echo "$enable_shared" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12824 $as_echo_n "checking whether to build static libraries... " >&6; }
12825 # Make sure either enable_shared or enable_static is yes.
12826 test "$enable_shared" = yes || enable_static=yes
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12828 $as_echo "$enable_static" >&6; }
12834 ac_ext=c
12835 ac_cpp='$CPP $CPPFLAGS'
12836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12840 CC="$lt_save_CC"
12854 ac_config_commands="$ac_config_commands libtool"
12859 # Only expand once:
12865 case $host in
12866 *-cygwin* | *-mingw*)
12867 # 'host' will be top-level target in the case of a target lib,
12868 # we must compare to with_cross_host to decide if this is a native
12869 # or cross-compiler and select where to install dlls appropriately.
12870 if test -n "$with_cross_host" &&
12871 test x"$with_cross_host" != x"no"; then
12872 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12873 else
12874 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12878 lt_host_flags=
12880 esac
12886 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12888 # We need gfortran to compile parts of the library
12889 #AC_PROG_FC(gfortran)
12890 FC="$GFORTRAN"
12891 ac_ext=${ac_fc_srcext-f}
12892 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12893 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12894 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12895 if test -n "$ac_tool_prefix"; then
12896 for ac_prog in gfortran
12898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_FC+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$FC"; then
12906 ac_cv_prog_FC="$FC" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12925 FC=$ac_cv_prog_FC
12926 if test -n "$FC"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12928 $as_echo "$FC" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12935 test -n "$FC" && break
12936 done
12938 if test -z "$FC"; then
12939 ac_ct_FC=$FC
12940 for ac_prog in gfortran
12942 # Extract the first word of "$ac_prog", so it can be a program name with args.
12943 set dummy $ac_prog; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 if test -n "$ac_ct_FC"; then
12950 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959 ac_cv_prog_ac_ct_FC="$ac_prog"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12963 done
12964 done
12965 IFS=$as_save_IFS
12969 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12970 if test -n "$ac_ct_FC"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12972 $as_echo "$ac_ct_FC" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12979 test -n "$ac_ct_FC" && break
12980 done
12982 if test "x$ac_ct_FC" = x; then
12983 FC=""
12984 else
12985 case $cross_compiling:$ac_tool_warned in
12986 yes:)
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12989 ac_tool_warned=yes ;;
12990 esac
12991 FC=$ac_ct_FC
12996 # Provide some information about the compiler.
12997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12998 set X $ac_compile
12999 ac_compiler=$2
13000 for ac_option in --version -v -V -qversion; do
13001 { { ac_try="$ac_compiler $ac_option >&5"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13007 $as_echo "$ac_try_echo"; } >&5
13008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13009 ac_status=$?
13010 if test -s conftest.err; then
13011 sed '10a\
13012 ... rest of stderr output deleted ...
13013 10q' conftest.err >conftest.er1
13014 cat conftest.er1 >&5
13015 rm -f conftest.er1 conftest.err
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; }
13019 done
13020 rm -f a.out
13022 # If we don't use `.F' as extension, the preprocessor is not run on the
13023 # input file. (Note that this only needs to work for GNU compilers.)
13024 ac_save_ext=$ac_ext
13025 ac_ext=F
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13027 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13028 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 cat > conftest.$ac_ext <<_ACEOF
13032 program main
13033 #ifndef __GNUC__
13034 choke me
13035 #endif
13038 _ACEOF
13039 if ac_fn_fc_try_compile "$LINENO"; then :
13040 ac_compiler_gnu=yes
13041 else
13042 ac_compiler_gnu=no
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13049 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13050 ac_ext=$ac_save_ext
13051 ac_test_FCFLAGS=${FCFLAGS+set}
13052 ac_save_FCFLAGS=$FCFLAGS
13053 FCFLAGS=
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13055 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13056 if test "${ac_cv_prog_fc_g+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 FCFLAGS=-g
13060 cat > conftest.$ac_ext <<_ACEOF
13061 program main
13064 _ACEOF
13065 if ac_fn_fc_try_compile "$LINENO"; then :
13066 ac_cv_prog_fc_g=yes
13067 else
13068 ac_cv_prog_fc_g=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13074 $as_echo "$ac_cv_prog_fc_g" >&6; }
13075 if test "$ac_test_FCFLAGS" = set; then
13076 FCFLAGS=$ac_save_FCFLAGS
13077 elif test $ac_cv_prog_fc_g = yes; then
13078 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13079 FCFLAGS="-g -O2"
13080 else
13081 FCFLAGS="-g"
13083 else
13084 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13085 FCFLAGS="-O2"
13086 else
13087 FCFLAGS=
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097 ac_ext=${ac_fc_srcext-f}
13098 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13099 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13103 if test -z "$FC" || test "X$FC" = "Xno"; then
13104 _lt_disable_FC=yes
13107 archive_cmds_need_lc_FC=no
13108 allow_undefined_flag_FC=
13109 always_export_symbols_FC=no
13110 archive_expsym_cmds_FC=
13111 export_dynamic_flag_spec_FC=
13112 hardcode_direct_FC=no
13113 hardcode_direct_absolute_FC=no
13114 hardcode_libdir_flag_spec_FC=
13115 hardcode_libdir_flag_spec_ld_FC=
13116 hardcode_libdir_separator_FC=
13117 hardcode_minus_L_FC=no
13118 hardcode_automatic_FC=no
13119 inherit_rpath_FC=no
13120 module_cmds_FC=
13121 module_expsym_cmds_FC=
13122 link_all_deplibs_FC=unknown
13123 old_archive_cmds_FC=$old_archive_cmds
13124 reload_flag_FC=$reload_flag
13125 reload_cmds_FC=$reload_cmds
13126 no_undefined_flag_FC=
13127 whole_archive_flag_spec_FC=
13128 enable_shared_with_static_runtimes_FC=no
13130 # Source file extension for fc test sources.
13131 ac_ext=${ac_fc_srcext-f}
13133 # Object file extension for compiled fc test sources.
13134 objext=o
13135 objext_FC=$objext
13137 # No sense in running all these tests if we already determined that
13138 # the FC compiler isn't working. Some variables (like enable_shared)
13139 # are currently assumed to apply to all compilers on this platform,
13140 # and will be corrupted by setting them based on a non-working compiler.
13141 if test "$_lt_disable_FC" != yes; then
13142 # Code to be used in simple compile tests
13143 lt_simple_compile_test_code="\
13144 subroutine t
13145 return
13149 # Code to be used in simple link tests
13150 lt_simple_link_test_code="\
13151 program t
13155 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13162 # If no C compiler was specified, use CC.
13163 LTCC=${LTCC-"$CC"}
13165 # If no C compiler flags were specified, use CFLAGS.
13166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13168 # Allow CC to be a program name with arguments.
13169 compiler=$CC
13172 # save warnings/boilerplate of simple test code
13173 ac_outfile=conftest.$ac_objext
13174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13176 _lt_compiler_boilerplate=`cat conftest.err`
13177 $RM conftest*
13179 ac_outfile=conftest.$ac_objext
13180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13182 _lt_linker_boilerplate=`cat conftest.err`
13183 $RM -r conftest*
13186 # Allow CC to be a program name with arguments.
13187 lt_save_CC="$CC"
13188 lt_save_GCC=$GCC
13189 CC=${FC-"f95"}
13190 compiler=$CC
13191 GCC=$ac_cv_fc_compiler_gnu
13193 compiler_FC=$CC
13194 for cc_temp in $compiler""; do
13195 case $cc_temp in
13196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13198 \-*) ;;
13199 *) break;;
13200 esac
13201 done
13202 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13205 if test -n "$compiler"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13207 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13209 $as_echo "$can_build_shared" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13212 $as_echo_n "checking whether to build shared libraries... " >&6; }
13213 test "$can_build_shared" = "no" && enable_shared=no
13215 # On AIX, shared libraries and static libraries use the same namespace, and
13216 # are all built from PIC.
13217 case $host_os in
13218 aix3*)
13219 test "$enable_shared" = yes && enable_static=no
13220 if test -n "$RANLIB"; then
13221 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13222 postinstall_cmds='$RANLIB $lib'
13225 aix[4-9]*)
13226 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13227 test "$enable_shared" = yes && enable_static=no
13230 esac
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13232 $as_echo "$enable_shared" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13235 $as_echo_n "checking whether to build static libraries... " >&6; }
13236 # Make sure either enable_shared or enable_static is yes.
13237 test "$enable_shared" = yes || enable_static=yes
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13239 $as_echo "$enable_static" >&6; }
13241 GCC_FC="$ac_cv_fc_compiler_gnu"
13242 LD_FC="$LD"
13244 ## CAVEAT EMPTOR:
13245 ## There is no encapsulation within the following macros, do not change
13246 ## the running order or otherwise move them around unless you know exactly
13247 ## what you are doing...
13248 # Dependencies to place before and after the object being linked:
13249 predep_objects_FC=
13250 postdep_objects_FC=
13251 predeps_FC=
13252 postdeps_FC=
13253 compiler_lib_search_path_FC=
13255 cat > conftest.$ac_ext <<_LT_EOF
13256 subroutine foo
13257 implicit none
13258 integer a
13260 return
13262 _LT_EOF
13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13265 (eval $ac_compile) 2>&5
13266 ac_status=$?
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; }; then
13269 # Parse the compiler output and extract the necessary
13270 # objects, libraries and library flags.
13272 # Sentinel used to keep track of whether or not we are before
13273 # the conftest object file.
13274 pre_test_object_deps_done=no
13276 for p in `eval "$output_verbose_link_cmd"`; do
13277 case $p in
13279 -L* | -R* | -l*)
13280 # Some compilers place space between "-{L,R}" and the path.
13281 # Remove the space.
13282 if test $p = "-L" ||
13283 test $p = "-R"; then
13284 prev=$p
13285 continue
13286 else
13287 prev=
13290 if test "$pre_test_object_deps_done" = no; then
13291 case $p in
13292 -L* | -R*)
13293 # Internal compiler library paths should come after those
13294 # provided the user. The postdeps already come after the
13295 # user supplied libs so there is no need to process them.
13296 if test -z "$compiler_lib_search_path_FC"; then
13297 compiler_lib_search_path_FC="${prev}${p}"
13298 else
13299 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13302 # The "-l" case would never come before the object being
13303 # linked, so don't bother handling this case.
13304 esac
13305 else
13306 if test -z "$postdeps_FC"; then
13307 postdeps_FC="${prev}${p}"
13308 else
13309 postdeps_FC="${postdeps_FC} ${prev}${p}"
13314 *.$objext)
13315 # This assumes that the test object file only shows up
13316 # once in the compiler output.
13317 if test "$p" = "conftest.$objext"; then
13318 pre_test_object_deps_done=yes
13319 continue
13322 if test "$pre_test_object_deps_done" = no; then
13323 if test -z "$predep_objects_FC"; then
13324 predep_objects_FC="$p"
13325 else
13326 predep_objects_FC="$predep_objects_FC $p"
13328 else
13329 if test -z "$postdep_objects_FC"; then
13330 postdep_objects_FC="$p"
13331 else
13332 postdep_objects_FC="$postdep_objects_FC $p"
13337 *) ;; # Ignore the rest.
13339 esac
13340 done
13342 # Clean up.
13343 rm -f a.out a.exe
13344 else
13345 echo "libtool.m4: error: problem compiling FC test program"
13348 $RM -f confest.$objext
13350 # PORTME: override above test on systems where it is broken
13353 case " $postdeps_FC " in
13354 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13355 esac
13356 compiler_lib_search_dirs_FC=
13357 if test -n "${compiler_lib_search_path_FC}"; then
13358 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13391 lt_prog_compiler_wl_FC=
13392 lt_prog_compiler_pic_FC=
13393 lt_prog_compiler_static_FC=
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13398 if test "$GCC" = yes; then
13399 lt_prog_compiler_wl_FC='-Wl,'
13400 lt_prog_compiler_static_FC='-static'
13402 case $host_os in
13403 aix*)
13404 # All AIX code is PIC.
13405 if test "$host_cpu" = ia64; then
13406 # AIX 5 now supports IA64 processor
13407 lt_prog_compiler_static_FC='-Bstatic'
13409 lt_prog_compiler_pic_FC='-fPIC'
13412 amigaos*)
13413 case $host_cpu in
13414 powerpc)
13415 # see comment about AmigaOS4 .so support
13416 lt_prog_compiler_pic_FC='-fPIC'
13418 m68k)
13419 # FIXME: we need at least 68020 code to build shared libraries, but
13420 # adding the `-m68020' flag to GCC prevents building anything better,
13421 # like `-m68040'.
13422 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13424 esac
13427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13428 # PIC is the default for these OSes.
13431 mingw* | cygwin* | pw32* | os2* | cegcc*)
13432 # This hack is so that the source file can tell whether it is being
13433 # built for inclusion in a dll (and should export symbols for example).
13434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13435 # (--disable-auto-import) libraries
13436 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13439 darwin* | rhapsody*)
13440 # PIC is the default on this platform
13441 # Common symbols not allowed in MH_DYLIB files
13442 lt_prog_compiler_pic_FC='-fno-common'
13445 haiku*)
13446 # PIC is the default for Haiku.
13447 # The "-static" flag exists, but is broken.
13448 lt_prog_compiler_static_FC=
13451 hpux*)
13452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13454 # sets the default TLS model and affects inlining.
13455 case $host_cpu in
13456 hppa*64*)
13457 # +Z the default
13460 lt_prog_compiler_pic_FC='-fPIC'
13462 esac
13465 interix[3-9]*)
13466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13467 # Instead, we relocate shared libraries at runtime.
13470 msdosdjgpp*)
13471 # Just because we use GCC doesn't mean we suddenly get shared libraries
13472 # on systems that don't support them.
13473 lt_prog_compiler_can_build_shared_FC=no
13474 enable_shared=no
13477 *nto* | *qnx*)
13478 # QNX uses GNU C++, but need to define -shared option too, otherwise
13479 # it will coredump.
13480 lt_prog_compiler_pic_FC='-fPIC -shared'
13483 sysv4*MP*)
13484 if test -d /usr/nec; then
13485 lt_prog_compiler_pic_FC=-Kconform_pic
13490 lt_prog_compiler_pic_FC='-fPIC'
13492 esac
13494 case $cc_basename in
13495 nvcc*) # Cuda Compiler Driver 2.2
13496 lt_prog_compiler_wl_FC='-Xlinker '
13497 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13499 esac
13500 else
13501 # PORTME Check for flag to pass linker flags through the system compiler.
13502 case $host_os in
13503 aix*)
13504 lt_prog_compiler_wl_FC='-Wl,'
13505 if test "$host_cpu" = ia64; then
13506 # AIX 5 now supports IA64 processor
13507 lt_prog_compiler_static_FC='-Bstatic'
13508 else
13509 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13513 mingw* | cygwin* | pw32* | os2* | cegcc*)
13514 # This hack is so that the source file can tell whether it is being
13515 # built for inclusion in a dll (and should export symbols for example).
13516 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13519 hpux9* | hpux10* | hpux11*)
13520 lt_prog_compiler_wl_FC='-Wl,'
13521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13522 # not for PA HP-UX.
13523 case $host_cpu in
13524 hppa*64*|ia64*)
13525 # +Z the default
13528 lt_prog_compiler_pic_FC='+Z'
13530 esac
13531 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13532 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13535 irix5* | irix6* | nonstopux*)
13536 lt_prog_compiler_wl_FC='-Wl,'
13537 # PIC (with -KPIC) is the default.
13538 lt_prog_compiler_static_FC='-non_shared'
13541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13542 case $cc_basename in
13543 # old Intel for x86_64 which still supported -KPIC.
13544 ecc*)
13545 lt_prog_compiler_wl_FC='-Wl,'
13546 lt_prog_compiler_pic_FC='-KPIC'
13547 lt_prog_compiler_static_FC='-static'
13549 # icc used to be incompatible with GCC.
13550 # ICC 10 doesn't accept -KPIC any more.
13551 icc* | ifort*)
13552 lt_prog_compiler_wl_FC='-Wl,'
13553 lt_prog_compiler_pic_FC='-fPIC'
13554 lt_prog_compiler_static_FC='-static'
13556 # Lahey Fortran 8.1.
13557 lf95*)
13558 lt_prog_compiler_wl_FC='-Wl,'
13559 lt_prog_compiler_pic_FC='--shared'
13560 lt_prog_compiler_static_FC='--static'
13562 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13563 # Portland Group compilers (*not* the Pentium gcc compiler,
13564 # which looks to be a dead project)
13565 lt_prog_compiler_wl_FC='-Wl,'
13566 lt_prog_compiler_pic_FC='-fpic'
13567 lt_prog_compiler_static_FC='-Bstatic'
13569 ccc*)
13570 lt_prog_compiler_wl_FC='-Wl,'
13571 # All Alpha code is PIC.
13572 lt_prog_compiler_static_FC='-non_shared'
13574 xl* | bgxl* | bgf* | mpixl*)
13575 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13576 lt_prog_compiler_wl_FC='-Wl,'
13577 lt_prog_compiler_pic_FC='-qpic'
13578 lt_prog_compiler_static_FC='-qstaticlink'
13581 case `$CC -V 2>&1 | sed 5q` in
13582 *Sun\ F* | *Sun*Fortran*)
13583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13584 lt_prog_compiler_pic_FC='-KPIC'
13585 lt_prog_compiler_static_FC='-Bstatic'
13586 lt_prog_compiler_wl_FC=''
13588 *Sun\ C*)
13589 # Sun C 5.9
13590 lt_prog_compiler_pic_FC='-KPIC'
13591 lt_prog_compiler_static_FC='-Bstatic'
13592 lt_prog_compiler_wl_FC='-Wl,'
13594 esac
13596 esac
13599 newsos6)
13600 lt_prog_compiler_pic_FC='-KPIC'
13601 lt_prog_compiler_static_FC='-Bstatic'
13604 *nto* | *qnx*)
13605 # QNX uses GNU C++, but need to define -shared option too, otherwise
13606 # it will coredump.
13607 lt_prog_compiler_pic_FC='-fPIC -shared'
13610 osf3* | osf4* | osf5*)
13611 lt_prog_compiler_wl_FC='-Wl,'
13612 # All OSF/1 code is PIC.
13613 lt_prog_compiler_static_FC='-non_shared'
13616 rdos*)
13617 lt_prog_compiler_static_FC='-non_shared'
13620 solaris*)
13621 lt_prog_compiler_pic_FC='-KPIC'
13622 lt_prog_compiler_static_FC='-Bstatic'
13623 case $cc_basename in
13624 f77* | f90* | f95*)
13625 lt_prog_compiler_wl_FC='-Qoption ld ';;
13627 lt_prog_compiler_wl_FC='-Wl,';;
13628 esac
13631 sunos4*)
13632 lt_prog_compiler_wl_FC='-Qoption ld '
13633 lt_prog_compiler_pic_FC='-PIC'
13634 lt_prog_compiler_static_FC='-Bstatic'
13637 sysv4 | sysv4.2uw2* | sysv4.3*)
13638 lt_prog_compiler_wl_FC='-Wl,'
13639 lt_prog_compiler_pic_FC='-KPIC'
13640 lt_prog_compiler_static_FC='-Bstatic'
13643 sysv4*MP*)
13644 if test -d /usr/nec ;then
13645 lt_prog_compiler_pic_FC='-Kconform_pic'
13646 lt_prog_compiler_static_FC='-Bstatic'
13650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13651 lt_prog_compiler_wl_FC='-Wl,'
13652 lt_prog_compiler_pic_FC='-KPIC'
13653 lt_prog_compiler_static_FC='-Bstatic'
13656 unicos*)
13657 lt_prog_compiler_wl_FC='-Wl,'
13658 lt_prog_compiler_can_build_shared_FC=no
13661 uts4*)
13662 lt_prog_compiler_pic_FC='-pic'
13663 lt_prog_compiler_static_FC='-Bstatic'
13667 lt_prog_compiler_can_build_shared_FC=no
13669 esac
13672 case $host_os in
13673 # For platforms which do not support PIC, -DPIC is meaningless:
13674 *djgpp*)
13675 lt_prog_compiler_pic_FC=
13678 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13680 esac
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13682 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13687 # Check to make sure the PIC flag actually works.
13689 if test -n "$lt_prog_compiler_pic_FC"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13692 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 lt_cv_prog_compiler_pic_works_FC=no
13696 ac_outfile=conftest.$ac_objext
13697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13698 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13699 # Insert the option either (1) after the last *FLAGS variable, or
13700 # (2) before a word containing "conftest.", or (3) at the end.
13701 # Note that $ac_compile itself does not contain backslashes and begins
13702 # with a dollar sign (not a hyphen), so the echo should work correctly.
13703 # The option is referenced via a variable to avoid confusing sed.
13704 lt_compile=`echo "$ac_compile" | $SED \
13705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13707 -e 's:$: $lt_compiler_flag:'`
13708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13709 (eval "$lt_compile" 2>conftest.err)
13710 ac_status=$?
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 if (exit $ac_status) && test -s "$ac_outfile"; then
13714 # The compiler can only warn and ignore the option if not recognized
13715 # So say no if there are warnings other than the usual output.
13716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13719 lt_cv_prog_compiler_pic_works_FC=yes
13722 $RM conftest*
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13726 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13728 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13729 case $lt_prog_compiler_pic_FC in
13730 "" | " "*) ;;
13731 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13732 esac
13733 else
13734 lt_prog_compiler_pic_FC=
13735 lt_prog_compiler_can_build_shared_FC=no
13743 # Check to make sure the static flag actually works.
13745 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13748 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 lt_cv_prog_compiler_static_works_FC=no
13752 save_LDFLAGS="$LDFLAGS"
13753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13756 # The linker can only warn and ignore the option if not recognized
13757 # So say no if there are warnings
13758 if test -s conftest.err; then
13759 # Append any errors to the config.log.
13760 cat conftest.err 1>&5
13761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13763 if diff conftest.exp conftest.er2 >/dev/null; then
13764 lt_cv_prog_compiler_static_works_FC=yes
13766 else
13767 lt_cv_prog_compiler_static_works_FC=yes
13770 $RM -r conftest*
13771 LDFLAGS="$save_LDFLAGS"
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13775 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13777 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13779 else
13780 lt_prog_compiler_static_FC=
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13788 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 lt_cv_prog_compiler_c_o_FC=no
13792 $RM -r conftest 2>/dev/null
13793 mkdir conftest
13794 cd conftest
13795 mkdir out
13796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13798 lt_compiler_flag="-o out/conftest2.$ac_objext"
13799 # Insert the option either (1) after the last *FLAGS variable, or
13800 # (2) before a word containing "conftest.", or (3) at the end.
13801 # Note that $ac_compile itself does not contain backslashes and begins
13802 # with a dollar sign (not a hyphen), so the echo should work correctly.
13803 lt_compile=`echo "$ac_compile" | $SED \
13804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13806 -e 's:$: $lt_compiler_flag:'`
13807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13808 (eval "$lt_compile" 2>out/conftest.err)
13809 ac_status=$?
13810 cat out/conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13813 then
13814 # The compiler can only warn and ignore the option if not recognized
13815 # So say no if there are warnings
13816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13819 lt_cv_prog_compiler_c_o_FC=yes
13822 chmod u+w . 2>&5
13823 $RM conftest*
13824 # SGI C++ compiler will create directory out/ii_files/ for
13825 # template instantiation
13826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13827 $RM out/* && rmdir out
13828 cd ..
13829 $RM -r conftest
13830 $RM conftest*
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13834 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13840 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 lt_cv_prog_compiler_c_o_FC=no
13844 $RM -r conftest 2>/dev/null
13845 mkdir conftest
13846 cd conftest
13847 mkdir out
13848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13850 lt_compiler_flag="-o out/conftest2.$ac_objext"
13851 # Insert the option either (1) after the last *FLAGS variable, or
13852 # (2) before a word containing "conftest.", or (3) at the end.
13853 # Note that $ac_compile itself does not contain backslashes and begins
13854 # with a dollar sign (not a hyphen), so the echo should work correctly.
13855 lt_compile=`echo "$ac_compile" | $SED \
13856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13858 -e 's:$: $lt_compiler_flag:'`
13859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13860 (eval "$lt_compile" 2>out/conftest.err)
13861 ac_status=$?
13862 cat out/conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13865 then
13866 # The compiler can only warn and ignore the option if not recognized
13867 # So say no if there are warnings
13868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13871 lt_cv_prog_compiler_c_o_FC=yes
13874 chmod u+w . 2>&5
13875 $RM conftest*
13876 # SGI C++ compiler will create directory out/ii_files/ for
13877 # template instantiation
13878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13879 $RM out/* && rmdir out
13880 cd ..
13881 $RM -r conftest
13882 $RM conftest*
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13886 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13891 hard_links="nottested"
13892 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13893 # do not overwrite the value of need_locks provided by the user
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13895 $as_echo_n "checking if we can lock with hard links... " >&6; }
13896 hard_links=yes
13897 $RM conftest*
13898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13899 touch conftest.a
13900 ln conftest.a conftest.b 2>&5 || hard_links=no
13901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13903 $as_echo "$hard_links" >&6; }
13904 if test "$hard_links" = no; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13907 need_locks=warn
13909 else
13910 need_locks=no
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13918 runpath_var=
13919 allow_undefined_flag_FC=
13920 always_export_symbols_FC=no
13921 archive_cmds_FC=
13922 archive_expsym_cmds_FC=
13923 compiler_needs_object_FC=no
13924 enable_shared_with_static_runtimes_FC=no
13925 export_dynamic_flag_spec_FC=
13926 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13927 hardcode_automatic_FC=no
13928 hardcode_direct_FC=no
13929 hardcode_direct_absolute_FC=no
13930 hardcode_libdir_flag_spec_FC=
13931 hardcode_libdir_flag_spec_ld_FC=
13932 hardcode_libdir_separator_FC=
13933 hardcode_minus_L_FC=no
13934 hardcode_shlibpath_var_FC=unsupported
13935 inherit_rpath_FC=no
13936 link_all_deplibs_FC=unknown
13937 module_cmds_FC=
13938 module_expsym_cmds_FC=
13939 old_archive_from_new_cmds_FC=
13940 old_archive_from_expsyms_cmds_FC=
13941 thread_safe_flag_spec_FC=
13942 whole_archive_flag_spec_FC=
13943 # include_expsyms should be a list of space-separated symbols to be *always*
13944 # included in the symbol list
13945 include_expsyms_FC=
13946 # exclude_expsyms can be an extended regexp of symbols to exclude
13947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13949 # as well as any symbol that contains `d'.
13950 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13952 # platforms (ab)use it in PIC code, but their linkers get confused if
13953 # the symbol is explicitly referenced. Since portable code cannot
13954 # rely on this symbol name, it's probably fine to never include it in
13955 # preloaded symbol tables.
13956 # Exclude shared library initialization/finalization symbols.
13957 extract_expsyms_cmds=
13959 case $host_os in
13960 cygwin* | mingw* | pw32* | cegcc*)
13961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13962 # When not using gcc, we currently assume that we are using
13963 # Microsoft Visual C++.
13964 if test "$GCC" != yes; then
13965 with_gnu_ld=no
13968 interix*)
13969 # we just hope/assume this is gcc and not c89 (= MSVC++)
13970 with_gnu_ld=yes
13972 openbsd*)
13973 with_gnu_ld=no
13975 esac
13977 ld_shlibs_FC=yes
13979 # On some targets, GNU ld is compatible enough with the native linker
13980 # that we're better off using the native interface for both.
13981 lt_use_gnu_ld_interface=no
13982 if test "$with_gnu_ld" = yes; then
13983 case $host_os in
13984 aix*)
13985 # The AIX port of GNU ld has always aspired to compatibility
13986 # with the native linker. However, as the warning in the GNU ld
13987 # block says, versions before 2.19.5* couldn't really create working
13988 # shared libraries, regardless of the interface used.
13989 case `$LD -v 2>&1` in
13990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13994 lt_use_gnu_ld_interface=yes
13996 esac
13999 lt_use_gnu_ld_interface=yes
14001 esac
14004 if test "$lt_use_gnu_ld_interface" = yes; then
14005 # If archive_cmds runs LD, not CC, wlarc should be empty
14006 wlarc='${wl}'
14008 # Set some defaults for GNU ld with shared library support. These
14009 # are reset later if shared libraries are not supported. Putting them
14010 # here allows them to be overridden if necessary.
14011 runpath_var=LD_RUN_PATH
14012 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14014 # ancient GNU ld didn't support --whole-archive et. al.
14015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14016 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017 else
14018 whole_archive_flag_spec_FC=
14020 supports_anon_versioning=no
14021 case `$LD -v 2>&1` in
14022 *GNU\ gold*) supports_anon_versioning=yes ;;
14023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14026 *\ 2.11.*) ;; # other 2.11 versions
14027 *) supports_anon_versioning=yes ;;
14028 esac
14030 # See if GNU ld supports shared libraries.
14031 case $host_os in
14032 aix[3-9]*)
14033 # On AIX/PPC, the GNU linker is very broken
14034 if test "$host_cpu" != ia64; then
14035 ld_shlibs_FC=no
14036 cat <<_LT_EOF 1>&2
14038 *** Warning: the GNU linker, at least up to release 2.19, is reported
14039 *** to be unable to reliably create shared libraries on AIX.
14040 *** Therefore, libtool is disabling shared libraries support. If you
14041 *** really care for shared libraries, you may want to install binutils
14042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14043 *** You will then need to restart the configuration process.
14045 _LT_EOF
14049 amigaos*)
14050 case $host_cpu in
14051 powerpc)
14052 # see comment about AmigaOS4 .so support
14053 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054 archive_expsym_cmds_FC=''
14056 m68k)
14057 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)'
14058 hardcode_libdir_flag_spec_FC='-L$libdir'
14059 hardcode_minus_L_FC=yes
14061 esac
14064 beos*)
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066 allow_undefined_flag_FC=unsupported
14067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14068 # support --undefined. This deserves some investigation. FIXME
14069 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 else
14071 ld_shlibs_FC=no
14075 cygwin* | mingw* | pw32* | cegcc*)
14076 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14077 # as there is no search path for DLLs.
14078 hardcode_libdir_flag_spec_FC='-L$libdir'
14079 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14080 allow_undefined_flag_FC=unsupported
14081 always_export_symbols_FC=no
14082 enable_shared_with_static_runtimes_FC=yes
14083 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14086 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14087 # If the export-symbols file already is a .def file (1st line
14088 # is EXPORTS), use it as is; otherwise, prepend...
14089 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14090 cp $export_symbols $output_objdir/$soname.def;
14091 else
14092 echo EXPORTS > $output_objdir/$soname.def;
14093 cat $export_symbols >> $output_objdir/$soname.def;
14095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14096 else
14097 ld_shlibs_FC=no
14101 haiku*)
14102 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 link_all_deplibs_FC=yes
14106 interix[3-9]*)
14107 hardcode_direct_FC=no
14108 hardcode_shlibpath_var_FC=no
14109 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14110 export_dynamic_flag_spec_FC='${wl}-E'
14111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14112 # Instead, shared libraries are loaded at an image base (0x10000000 by
14113 # default) and relocated if they conflict, which is a slow very memory
14114 # consuming and fragmenting process. To avoid this, we pick a random,
14115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14117 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'
14118 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'
14121 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14122 tmp_diet=no
14123 if test "$host_os" = linux-dietlibc; then
14124 case $cc_basename in
14125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14126 esac
14128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14129 && test "$tmp_diet" = no
14130 then
14131 tmp_addflag=' $pic_flag'
14132 tmp_sharedflag='-shared'
14133 case $cc_basename,$host_cpu in
14134 pgcc*) # Portland Group C compiler
14135 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'
14136 tmp_addflag=' $pic_flag'
14138 pgf77* | pgf90* | pgf95* | pgfortran*)
14139 # Portland Group f77 and f90 compilers
14140 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'
14141 tmp_addflag=' $pic_flag -Mnomain' ;;
14142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14143 tmp_addflag=' -i_dynamic' ;;
14144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14145 tmp_addflag=' -i_dynamic -nofor_main' ;;
14146 ifc* | ifort*) # Intel Fortran compiler
14147 tmp_addflag=' -nofor_main' ;;
14148 lf95*) # Lahey Fortran 8.1
14149 whole_archive_flag_spec_FC=
14150 tmp_sharedflag='--shared' ;;
14151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14152 tmp_sharedflag='-qmkshrobj'
14153 tmp_addflag= ;;
14154 nvcc*) # Cuda Compiler Driver 2.2
14155 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'
14156 compiler_needs_object_FC=yes
14158 esac
14159 case `$CC -V 2>&1 | sed 5q` in
14160 *Sun\ C*) # Sun C 5.9
14161 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'
14162 compiler_needs_object_FC=yes
14163 tmp_sharedflag='-G' ;;
14164 *Sun\ F*) # Sun Fortran 8.3
14165 tmp_sharedflag='-G' ;;
14166 esac
14167 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169 if test "x$supports_anon_versioning" = xyes; then
14170 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14172 echo "local: *; };" >> $output_objdir/$libname.ver~
14173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14176 case $cc_basename in
14177 xlf* | bgf* | bgxlf* | mpixlf*)
14178 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14179 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14180 hardcode_libdir_flag_spec_FC=
14181 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14182 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14183 if test "x$supports_anon_versioning" = xyes; then
14184 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14186 echo "local: *; };" >> $output_objdir/$libname.ver~
14187 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14190 esac
14191 else
14192 ld_shlibs_FC=no
14196 netbsd*)
14197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14198 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14199 wlarc=
14200 else
14201 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14206 solaris*)
14207 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14208 ld_shlibs_FC=no
14209 cat <<_LT_EOF 1>&2
14211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14212 *** create shared libraries on Solaris systems. Therefore, libtool
14213 *** is disabling shared libraries support. We urge you to upgrade GNU
14214 *** binutils to release 2.9.1 or newer. Another option is to modify
14215 *** your PATH or compiler configuration so that the native linker is
14216 *** used, and then restart.
14218 _LT_EOF
14219 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14220 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14221 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14222 else
14223 ld_shlibs_FC=no
14227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14228 case `$LD -v 2>&1` in
14229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14230 ld_shlibs_FC=no
14231 cat <<_LT_EOF 1>&2
14233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14234 *** reliably create shared libraries on SCO systems. Therefore, libtool
14235 *** is disabling shared libraries support. We urge you to upgrade GNU
14236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14237 *** your PATH or compiler configuration so that the native linker is
14238 *** used, and then restart.
14240 _LT_EOF
14243 # For security reasons, it is highly recommended that you always
14244 # use absolute paths for naming shared libraries, and exclude the
14245 # DT_RUNPATH tag from executables and libraries. But doing so
14246 # requires that you compile everything twice, which is a pain.
14247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14248 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14249 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251 else
14252 ld_shlibs_FC=no
14255 esac
14258 sunos4*)
14259 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14260 wlarc=
14261 hardcode_direct_FC=yes
14262 hardcode_shlibpath_var_FC=no
14266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14267 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14268 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14269 else
14270 ld_shlibs_FC=no
14273 esac
14275 if test "$ld_shlibs_FC" = no; then
14276 runpath_var=
14277 hardcode_libdir_flag_spec_FC=
14278 export_dynamic_flag_spec_FC=
14279 whole_archive_flag_spec_FC=
14281 else
14282 # PORTME fill in a description of your system's linker (not GNU ld)
14283 case $host_os in
14284 aix3*)
14285 allow_undefined_flag_FC=unsupported
14286 always_export_symbols_FC=yes
14287 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'
14288 # Note: this linker hardcodes the directories in LIBPATH if there
14289 # are no directories specified by -L.
14290 hardcode_minus_L_FC=yes
14291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14292 # Neither direct hardcoding nor static linking is supported with a
14293 # broken collect2.
14294 hardcode_direct_FC=unsupported
14298 aix[4-9]*)
14299 if test "$host_cpu" = ia64; then
14300 # On IA64, the linker does run time linking by default, so we don't
14301 # have to do anything special.
14302 aix_use_runtimelinking=no
14303 exp_sym_flag='-Bexport'
14304 no_entry_flag=""
14305 else
14306 # If we're using GNU nm, then we don't want the "-C" option.
14307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14308 # Also, AIX nm treats weak defined symbols like other global
14309 # defined symbols, whereas GNU nm marks them as "W".
14310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14311 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'
14312 else
14313 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'
14315 aix_use_runtimelinking=no
14317 # Test if we are trying to use run time linking or normal
14318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14319 # need to do runtime linking.
14320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14321 for ld_flag in $LDFLAGS; do
14322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14323 aix_use_runtimelinking=yes
14324 break
14326 done
14328 esac
14330 exp_sym_flag='-bexport'
14331 no_entry_flag='-bnoentry'
14334 # When large executables or shared objects are built, AIX ld can
14335 # have problems creating the table of contents. If linking a library
14336 # or program results in "error TOC overflow" add -mminimal-toc to
14337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14340 archive_cmds_FC=''
14341 hardcode_direct_FC=yes
14342 hardcode_direct_absolute_FC=yes
14343 hardcode_libdir_separator_FC=':'
14344 link_all_deplibs_FC=yes
14345 file_list_spec_FC='${wl}-f,'
14347 if test "$GCC" = yes; then
14348 case $host_os in aix4.[012]|aix4.[012].*)
14349 # We only want to do this on AIX 4.2 and lower, the check
14350 # below for broken collect2 doesn't work under 4.3+
14351 collect2name=`${CC} -print-prog-name=collect2`
14352 if test -f "$collect2name" &&
14353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14354 then
14355 # We have reworked collect2
14357 else
14358 # We have old collect2
14359 hardcode_direct_FC=unsupported
14360 # It fails to find uninstalled libraries when the uninstalled
14361 # path is not listed in the libpath. Setting hardcode_minus_L
14362 # to unsupported forces relinking
14363 hardcode_minus_L_FC=yes
14364 hardcode_libdir_flag_spec_FC='-L$libdir'
14365 hardcode_libdir_separator_FC=
14368 esac
14369 shared_flag='-shared'
14370 if test "$aix_use_runtimelinking" = yes; then
14371 shared_flag="$shared_flag "'${wl}-G'
14373 else
14374 # not using gcc
14375 if test "$host_cpu" = ia64; then
14376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14377 # chokes on -Wl,-G. The following line is correct:
14378 shared_flag='-G'
14379 else
14380 if test "$aix_use_runtimelinking" = yes; then
14381 shared_flag='${wl}-G'
14382 else
14383 shared_flag='${wl}-bM:SRE'
14388 export_dynamic_flag_spec_FC='${wl}-bexpall'
14389 # It seems that -bexpall does not export symbols beginning with
14390 # underscore (_), so it is better to generate a list of symbols to export.
14391 always_export_symbols_FC=yes
14392 if test "$aix_use_runtimelinking" = yes; then
14393 # Warning - without using the other runtime loading flags (-brtl),
14394 # -berok will link without error, but may produce a broken library.
14395 allow_undefined_flag_FC='-berok'
14396 # Determine the default libpath from the value encoded in an
14397 # empty executable.
14398 if test x$gcc_no_link = xyes; then
14399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14401 cat > conftest.$ac_ext <<_ACEOF
14402 program main
14405 _ACEOF
14406 if ac_fn_fc_try_link "$LINENO"; then :
14408 lt_aix_libpath_sed='
14409 /Import File Strings/,/^$/ {
14410 /^0/ {
14411 s/^0 *\(.*\)$/\1/
14415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14416 # Check for a 64-bit object if we didn't find anything.
14417 if test -z "$aix_libpath"; then
14418 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14425 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14426 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"
14427 else
14428 if test "$host_cpu" = ia64; then
14429 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14430 allow_undefined_flag_FC="-z nodefs"
14431 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"
14432 else
14433 # Determine the default libpath from the value encoded in an
14434 # empty executable.
14435 if test x$gcc_no_link = xyes; then
14436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14438 cat > conftest.$ac_ext <<_ACEOF
14439 program main
14442 _ACEOF
14443 if ac_fn_fc_try_link "$LINENO"; then :
14445 lt_aix_libpath_sed='
14446 /Import File Strings/,/^$/ {
14447 /^0/ {
14448 s/^0 *\(.*\)$/\1/
14452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14453 # Check for a 64-bit object if we didn't find anything.
14454 if test -z "$aix_libpath"; then
14455 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14462 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14463 # Warning - without using the other run time loading flags,
14464 # -berok will link without error, but may produce a broken library.
14465 no_undefined_flag_FC=' ${wl}-bernotok'
14466 allow_undefined_flag_FC=' ${wl}-berok'
14467 if test "$with_gnu_ld" = yes; then
14468 # We only use this code for GNU lds that support --whole-archive.
14469 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14470 else
14471 # Exported symbols can be pulled into shared objects from archives
14472 whole_archive_flag_spec_FC='$convenience'
14474 archive_cmds_need_lc_FC=yes
14475 # This is similar to how AIX traditionally builds its shared libraries.
14476 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'
14481 amigaos*)
14482 case $host_cpu in
14483 powerpc)
14484 # see comment about AmigaOS4 .so support
14485 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14486 archive_expsym_cmds_FC=''
14488 m68k)
14489 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)'
14490 hardcode_libdir_flag_spec_FC='-L$libdir'
14491 hardcode_minus_L_FC=yes
14493 esac
14496 bsdi[45]*)
14497 export_dynamic_flag_spec_FC=-rdynamic
14500 cygwin* | mingw* | pw32* | cegcc*)
14501 # When not using gcc, we currently assume that we are using
14502 # Microsoft Visual C++.
14503 # hardcode_libdir_flag_spec is actually meaningless, as there is
14504 # no search path for DLLs.
14505 hardcode_libdir_flag_spec_FC=' '
14506 allow_undefined_flag_FC=unsupported
14507 # Tell ltmain to make .lib files, not .a files.
14508 libext=lib
14509 # Tell ltmain to make .dll files, not .so files.
14510 shrext_cmds=".dll"
14511 # FIXME: Setting linknames here is a bad hack.
14512 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14513 # The linker will automatically build a .lib file if we build a DLL.
14514 old_archive_from_new_cmds_FC='true'
14515 # FIXME: Should let the user specify the lib program.
14516 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14517 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14518 enable_shared_with_static_runtimes_FC=yes
14521 darwin* | rhapsody*)
14524 archive_cmds_need_lc_FC=no
14525 hardcode_direct_FC=no
14526 hardcode_automatic_FC=yes
14527 hardcode_shlibpath_var_FC=unsupported
14528 if test "$lt_cv_ld_force_load" = "yes"; then
14529 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\"`'
14530 else
14531 whole_archive_flag_spec_FC=''
14533 link_all_deplibs_FC=yes
14534 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14535 case $cc_basename in
14536 ifort*) _lt_dar_can_shared=yes ;;
14537 *) _lt_dar_can_shared=$GCC ;;
14538 esac
14539 if test "$_lt_dar_can_shared" = "yes"; then
14540 output_verbose_link_cmd=func_echo_all
14541 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}"
14542 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14543 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}"
14544 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}"
14546 else
14547 ld_shlibs_FC=no
14552 dgux*)
14553 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_libdir_flag_spec_FC='-L$libdir'
14555 hardcode_shlibpath_var_FC=no
14558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14559 # support. Future versions do this automatically, but an explicit c++rt0.o
14560 # does not break anything, and helps significantly (at the cost of a little
14561 # extra space).
14562 freebsd2.2*)
14563 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14564 hardcode_libdir_flag_spec_FC='-R$libdir'
14565 hardcode_direct_FC=yes
14566 hardcode_shlibpath_var_FC=no
14569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14570 freebsd2.*)
14571 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_direct_FC=yes
14573 hardcode_minus_L_FC=yes
14574 hardcode_shlibpath_var_FC=no
14577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14578 freebsd* | dragonfly*)
14579 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14580 hardcode_libdir_flag_spec_FC='-R$libdir'
14581 hardcode_direct_FC=yes
14582 hardcode_shlibpath_var_FC=no
14585 hpux9*)
14586 if test "$GCC" = yes; then
14587 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'
14588 else
14589 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'
14591 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14592 hardcode_libdir_separator_FC=:
14593 hardcode_direct_FC=yes
14595 # hardcode_minus_L: Not really in the search PATH,
14596 # but as the default location of the library.
14597 hardcode_minus_L_FC=yes
14598 export_dynamic_flag_spec_FC='${wl}-E'
14601 hpux10*)
14602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14603 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14604 else
14605 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14607 if test "$with_gnu_ld" = no; then
14608 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14609 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14610 hardcode_libdir_separator_FC=:
14611 hardcode_direct_FC=yes
14612 hardcode_direct_absolute_FC=yes
14613 export_dynamic_flag_spec_FC='${wl}-E'
14614 # hardcode_minus_L: Not really in the search PATH,
14615 # but as the default location of the library.
14616 hardcode_minus_L_FC=yes
14620 hpux11*)
14621 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14622 case $host_cpu in
14623 hppa*64*)
14624 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 ia64*)
14627 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14630 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14632 esac
14633 else
14634 case $host_cpu in
14635 hppa*64*)
14636 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14638 ia64*)
14639 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14642 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14644 esac
14646 if test "$with_gnu_ld" = no; then
14647 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14648 hardcode_libdir_separator_FC=:
14650 case $host_cpu in
14651 hppa*64*|ia64*)
14652 hardcode_direct_FC=no
14653 hardcode_shlibpath_var_FC=no
14656 hardcode_direct_FC=yes
14657 hardcode_direct_absolute_FC=yes
14658 export_dynamic_flag_spec_FC='${wl}-E'
14660 # hardcode_minus_L: Not really in the search PATH,
14661 # but as the default location of the library.
14662 hardcode_minus_L_FC=yes
14664 esac
14668 irix5* | irix6* | nonstopux*)
14669 if test "$GCC" = yes; then
14670 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'
14671 # Try to use the -exported_symbol ld option, if it does not
14672 # work, assume that -exports_file does not work either and
14673 # implicitly export all symbols.
14674 save_LDFLAGS="$LDFLAGS"
14675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14676 if test x$gcc_no_link = xyes; then
14677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14679 cat > conftest.$ac_ext <<_ACEOF
14680 int foo(void) {}
14681 _ACEOF
14682 if ac_fn_fc_try_link "$LINENO"; then :
14683 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'
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS="$save_LDFLAGS"
14689 else
14690 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'
14691 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'
14693 archive_cmds_need_lc_FC='no'
14694 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14695 hardcode_libdir_separator_FC=:
14696 inherit_rpath_FC=yes
14697 link_all_deplibs_FC=yes
14700 netbsd*)
14701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14702 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14703 else
14704 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14706 hardcode_libdir_flag_spec_FC='-R$libdir'
14707 hardcode_direct_FC=yes
14708 hardcode_shlibpath_var_FC=no
14711 newsos6)
14712 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713 hardcode_direct_FC=yes
14714 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14715 hardcode_libdir_separator_FC=:
14716 hardcode_shlibpath_var_FC=no
14719 *nto* | *qnx*)
14722 openbsd*)
14723 if test -f /usr/libexec/ld.so; then
14724 hardcode_direct_FC=yes
14725 hardcode_shlibpath_var_FC=no
14726 hardcode_direct_absolute_FC=yes
14727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14728 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14729 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14730 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14731 export_dynamic_flag_spec_FC='${wl}-E'
14732 else
14733 case $host_os in
14734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14735 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_libdir_flag_spec_FC='-R$libdir'
14739 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14742 esac
14744 else
14745 ld_shlibs_FC=no
14749 os2*)
14750 hardcode_libdir_flag_spec_FC='-L$libdir'
14751 hardcode_minus_L_FC=yes
14752 allow_undefined_flag_FC=unsupported
14753 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'
14754 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14757 osf3*)
14758 if test "$GCC" = yes; then
14759 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14760 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'
14761 else
14762 allow_undefined_flag_FC=' -expect_unresolved \*'
14763 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'
14765 archive_cmds_need_lc_FC='no'
14766 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14767 hardcode_libdir_separator_FC=:
14770 osf4* | osf5*) # as osf3* with the addition of -msym flag
14771 if test "$GCC" = yes; then
14772 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14773 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'
14774 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14775 else
14776 allow_undefined_flag_FC=' -expect_unresolved \*'
14777 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'
14778 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~
14779 $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'
14781 # Both c and cxx compiler support -rpath directly
14782 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14784 archive_cmds_need_lc_FC='no'
14785 hardcode_libdir_separator_FC=:
14788 solaris*)
14789 no_undefined_flag_FC=' -z defs'
14790 if test "$GCC" = yes; then
14791 wlarc='${wl}'
14792 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14793 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14794 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14795 else
14796 case `$CC -V 2>&1` in
14797 *"Compilers 5.0"*)
14798 wlarc=''
14799 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14804 wlarc='${wl}'
14805 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14807 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14809 esac
14811 hardcode_libdir_flag_spec_FC='-R$libdir'
14812 hardcode_shlibpath_var_FC=no
14813 case $host_os in
14814 solaris2.[0-5] | solaris2.[0-5].*) ;;
14816 # The compiler driver will combine and reorder linker options,
14817 # but understands `-z linker_flag'. GCC discards it without `$wl',
14818 # but is careful enough not to reorder.
14819 # Supported since Solaris 2.6 (maybe 2.5.1?)
14820 if test "$GCC" = yes; then
14821 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14822 else
14823 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14826 esac
14827 link_all_deplibs_FC=yes
14830 sunos4*)
14831 if test "x$host_vendor" = xsequent; then
14832 # Use $CC to link under sequent, because it throws in some extra .o
14833 # files that make .init and .fini sections work.
14834 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14835 else
14836 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_libdir_flag_spec_FC='-L$libdir'
14839 hardcode_direct_FC=yes
14840 hardcode_minus_L_FC=yes
14841 hardcode_shlibpath_var_FC=no
14844 sysv4)
14845 case $host_vendor in
14846 sni)
14847 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 hardcode_direct_FC=yes # is this really true???
14850 siemens)
14851 ## LD is ld it makes a PLAMLIB
14852 ## CC just makes a GrossModule.
14853 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14854 reload_cmds_FC='$CC -r -o $output$reload_objs'
14855 hardcode_direct_FC=no
14857 motorola)
14858 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14861 esac
14862 runpath_var='LD_RUN_PATH'
14863 hardcode_shlibpath_var_FC=no
14866 sysv4.3*)
14867 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_shlibpath_var_FC=no
14869 export_dynamic_flag_spec_FC='-Bexport'
14872 sysv4*MP*)
14873 if test -d /usr/nec; then
14874 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_shlibpath_var_FC=no
14876 runpath_var=LD_RUN_PATH
14877 hardcode_runpath_var=yes
14878 ld_shlibs_FC=yes
14882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14883 no_undefined_flag_FC='${wl}-z,text'
14884 archive_cmds_need_lc_FC=no
14885 hardcode_shlibpath_var_FC=no
14886 runpath_var='LD_RUN_PATH'
14888 if test "$GCC" = yes; then
14889 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891 else
14892 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14893 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14897 sysv5* | sco3.2v5* | sco5v6*)
14898 # Note: We can NOT use -z defs as we might desire, because we do not
14899 # link with -lc, and that would cause any symbols used from libc to
14900 # always be unresolved, which means just about no library would
14901 # ever link correctly. If we're not using GNU ld we use -z text
14902 # though, which does catch some bad symbols but isn't as heavy-handed
14903 # as -z defs.
14904 no_undefined_flag_FC='${wl}-z,text'
14905 allow_undefined_flag_FC='${wl}-z,nodefs'
14906 archive_cmds_need_lc_FC=no
14907 hardcode_shlibpath_var_FC=no
14908 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14909 hardcode_libdir_separator_FC=':'
14910 link_all_deplibs_FC=yes
14911 export_dynamic_flag_spec_FC='${wl}-Bexport'
14912 runpath_var='LD_RUN_PATH'
14914 if test "$GCC" = yes; then
14915 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 else
14918 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 uts4*)
14924 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_libdir_flag_spec_FC='-L$libdir'
14926 hardcode_shlibpath_var_FC=no
14930 ld_shlibs_FC=no
14932 esac
14934 if test x$host_vendor = xsni; then
14935 case $host in
14936 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14937 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14939 esac
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14944 $as_echo "$ld_shlibs_FC" >&6; }
14945 test "$ld_shlibs_FC" = no && can_build_shared=no
14947 with_gnu_ld_FC=$with_gnu_ld
14955 # Do we need to explicitly link libc?
14957 case "x$archive_cmds_need_lc_FC" in
14958 x|xyes)
14959 # Assume -lc should be added
14960 archive_cmds_need_lc_FC=yes
14962 if test "$enable_shared" = yes && test "$GCC" = yes; then
14963 case $archive_cmds_FC in
14964 *'~'*)
14965 # FIXME: we may have to deal with multi-command sequences.
14967 '$CC '*)
14968 # Test whether the compiler implicitly links with -lc since on some
14969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14970 # to ld, don't add -lc before -lgcc.
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14972 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14973 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 $RM conftest*
14977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14980 (eval $ac_compile) 2>&5
14981 ac_status=$?
14982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983 test $ac_status = 0; } 2>conftest.err; then
14984 soname=conftest
14985 lib=conftest
14986 libobjs=conftest.$ac_objext
14987 deplibs=
14988 wl=$lt_prog_compiler_wl_FC
14989 pic_flag=$lt_prog_compiler_pic_FC
14990 compiler_flags=-v
14991 linker_flags=-v
14992 verstring=
14993 output_objdir=.
14994 libname=conftest
14995 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14996 allow_undefined_flag_FC=
14997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14998 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14999 ac_status=$?
15000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15001 test $ac_status = 0; }
15002 then
15003 lt_cv_archive_cmds_need_lc_FC=no
15004 else
15005 lt_cv_archive_cmds_need_lc_FC=yes
15007 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15008 else
15009 cat conftest.err 1>&5
15011 $RM conftest*
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15015 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15016 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15018 esac
15021 esac
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15087 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15089 library_names_spec=
15090 libname_spec='lib$name'
15091 soname_spec=
15092 shrext_cmds=".so"
15093 postinstall_cmds=
15094 postuninstall_cmds=
15095 finish_cmds=
15096 finish_eval=
15097 shlibpath_var=
15098 shlibpath_overrides_runpath=unknown
15099 version_type=none
15100 dynamic_linker="$host_os ld.so"
15101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15102 need_lib_prefix=unknown
15103 hardcode_into_libs=no
15105 # when you set need_version to no, make sure it does not cause -set_version
15106 # flags to be left without arguments
15107 need_version=unknown
15109 case $host_os in
15110 aix3*)
15111 version_type=linux
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15113 shlibpath_var=LIBPATH
15115 # AIX 3 has no versioning support, so we append a major version to the name.
15116 soname_spec='${libname}${release}${shared_ext}$major'
15119 aix[4-9]*)
15120 version_type=linux
15121 need_lib_prefix=no
15122 need_version=no
15123 hardcode_into_libs=yes
15124 if test "$host_cpu" = ia64; then
15125 # AIX 5 supports IA64
15126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 else
15129 # With GCC up to 2.95.x, collect2 would create an import file
15130 # for dependence libraries. The import file would start with
15131 # the line `#! .'. This would cause the generated library to
15132 # depend on `.', always an invalid library. This was fixed in
15133 # development snapshots of GCC prior to 3.0.
15134 case $host_os in
15135 aix4 | aix4.[01] | aix4.[01].*)
15136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15137 echo ' yes '
15138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15140 else
15141 can_build_shared=no
15144 esac
15145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15146 # soname into executable. Probably we can add versioning support to
15147 # collect2, so additional links can be useful in future.
15148 if test "$aix_use_runtimelinking" = yes; then
15149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15150 # instead of lib<name>.a to let people know that these are not
15151 # typical AIX shared libraries.
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 else
15154 # We preserve .a as extension for shared libraries through AIX4.2
15155 # and later when we are not doing run time linking.
15156 library_names_spec='${libname}${release}.a $libname.a'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LIBPATH
15163 amigaos*)
15164 case $host_cpu in
15165 powerpc)
15166 # Since July 2007 AmigaOS4 officially supports .so libraries.
15167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 m68k)
15171 library_names_spec='$libname.ixlibrary $libname.a'
15172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15173 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'
15175 esac
15178 beos*)
15179 library_names_spec='${libname}${shared_ext}'
15180 dynamic_linker="$host_os ld.so"
15181 shlibpath_var=LIBRARY_PATH
15184 bsdi[45]*)
15185 version_type=linux
15186 need_version=no
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15193 # the default ld.so.conf also contains /usr/contrib/lib and
15194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15195 # libtool to hard-code these into programs
15198 cygwin* | mingw* | pw32* | cegcc*)
15199 version_type=windows
15200 shrext_cmds=".dll"
15201 need_version=no
15202 need_lib_prefix=no
15204 case $GCC,$host_os in
15205 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15206 library_names_spec='$libname.dll.a'
15207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15208 postinstall_cmds='base_file=`basename \${file}`~
15209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15210 dldir=$destdir/`dirname \$dlpath`~
15211 test -d \$dldir || mkdir -p \$dldir~
15212 $install_prog $dir/$dlname \$dldir/$dlname~
15213 chmod a+x \$dldir/$dlname~
15214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15218 dlpath=$dir/\$dldll~
15219 $RM \$dlpath'
15220 shlibpath_overrides_runpath=yes
15222 case $host_os in
15223 cygwin*)
15224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15228 mingw* | cegcc*)
15229 # MinGW DLLs use traditional 'lib' prefix
15230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15232 pw32*)
15233 # pw32 DLLs use 'pw' prefix rather than 'lib'
15234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236 esac
15240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15242 esac
15243 dynamic_linker='Win32 ld.exe'
15244 # FIXME: first we should search . and the directory the executable is in
15245 shlibpath_var=PATH
15248 darwin* | rhapsody*)
15249 dynamic_linker="$host_os dyld"
15250 version_type=darwin
15251 need_lib_prefix=no
15252 need_version=no
15253 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15254 soname_spec='${libname}${release}${major}$shared_ext'
15255 shlibpath_overrides_runpath=yes
15256 shlibpath_var=DYLD_LIBRARY_PATH
15257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15262 dgux*)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15271 freebsd* | dragonfly*)
15272 # DragonFly does not have aout. When/if they implement a new
15273 # versioning mechanism, adjust this.
15274 if test -x /usr/bin/objformat; then
15275 objformat=`/usr/bin/objformat`
15276 else
15277 case $host_os in
15278 freebsd[23].*) objformat=aout ;;
15279 *) objformat=elf ;;
15280 esac
15282 version_type=freebsd-$objformat
15283 case $version_type in
15284 freebsd-elf*)
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15286 need_version=no
15287 need_lib_prefix=no
15289 freebsd-*)
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15291 need_version=yes
15293 esac
15294 shlibpath_var=LD_LIBRARY_PATH
15295 case $host_os in
15296 freebsd2.*)
15297 shlibpath_overrides_runpath=yes
15299 freebsd3.[01]* | freebsdelf3.[01]*)
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15305 shlibpath_overrides_runpath=no
15306 hardcode_into_libs=yes
15308 *) # from 4.6 on, and DragonFly
15309 shlibpath_overrides_runpath=yes
15310 hardcode_into_libs=yes
15312 esac
15315 gnu*)
15316 version_type=linux
15317 need_lib_prefix=no
15318 need_version=no
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 hardcode_into_libs=yes
15325 haiku*)
15326 version_type=linux
15327 need_lib_prefix=no
15328 need_version=no
15329 dynamic_linker="$host_os runtime_loader"
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LIBRARY_PATH
15333 shlibpath_overrides_runpath=yes
15334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15335 hardcode_into_libs=yes
15338 hpux9* | hpux10* | hpux11*)
15339 # Give a soname corresponding to the major version so that dld.sl refuses to
15340 # link against other versions.
15341 version_type=sunos
15342 need_lib_prefix=no
15343 need_version=no
15344 case $host_cpu in
15345 ia64*)
15346 shrext_cmds='.so'
15347 hardcode_into_libs=yes
15348 dynamic_linker="$host_os dld.so"
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 if test "X$HPUX_IA64_MODE" = X32; then
15354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15355 else
15356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15360 hppa*64*)
15361 shrext_cmds='.sl'
15362 hardcode_into_libs=yes
15363 dynamic_linker="$host_os dld.sl"
15364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15372 shrext_cmds='.sl'
15373 dynamic_linker="$host_os dld.sl"
15374 shlibpath_var=SHLIB_PATH
15375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15379 esac
15380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15381 postinstall_cmds='chmod 555 $lib'
15382 # or fails outright, so override atomically:
15383 install_override_mode=555
15386 interix[3-9]*)
15387 version_type=linux
15388 need_lib_prefix=no
15389 need_version=no
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15398 irix5* | irix6* | nonstopux*)
15399 case $host_os in
15400 nonstopux*) version_type=nonstopux ;;
15402 if test "$lt_cv_prog_gnu_ld" = yes; then
15403 version_type=linux
15404 else
15405 version_type=irix
15406 fi ;;
15407 esac
15408 need_lib_prefix=no
15409 need_version=no
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15412 case $host_os in
15413 irix5* | nonstopux*)
15414 libsuff= shlibsuff=
15417 case $LD in # libtool.m4 will add one of these switches to LD
15418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15419 libsuff= shlibsuff= libmagic=32-bit;;
15420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15421 libsuff=32 shlibsuff=N32 libmagic=N32;;
15422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15424 *) libsuff= shlibsuff= libmagic=never-match;;
15425 esac
15427 esac
15428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15432 hardcode_into_libs=yes
15435 # No shared lib support for Linux oldld, aout, or coff.
15436 linux*oldld* | linux*aout* | linux*coff*)
15437 dynamic_linker=no
15440 # This must be Linux ELF.
15441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15442 version_type=linux
15443 need_lib_prefix=no
15444 need_version=no
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=no
15451 # Some binutils ld are patched to set DT_RUNPATH
15452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 lt_cv_shlibpath_overrides_runpath=no
15456 save_LDFLAGS=$LDFLAGS
15457 save_libdir=$libdir
15458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15460 if test x$gcc_no_link = xyes; then
15461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15463 cat > conftest.$ac_ext <<_ACEOF
15464 program main
15467 _ACEOF
15468 if ac_fn_fc_try_link "$LINENO"; then :
15469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15470 lt_cv_shlibpath_overrides_runpath=yes
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LDFLAGS=$save_LDFLAGS
15476 libdir=$save_libdir
15480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15482 # This implies no fast_install, which is unacceptable.
15483 # Some rework will be needed to allow for fast_install
15484 # before this can be enabled.
15485 hardcode_into_libs=yes
15487 # Append ld.so.conf contents to the search path
15488 if test -f /etc/ld.so.conf; then
15489 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' ' '`
15490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15493 # We used to test for /lib/ld.so.1 and disable shared libraries on
15494 # powerpc, because MkLinux only supported shared libraries with the
15495 # GNU dynamic linker. Since this was broken with cross compilers,
15496 # most powerpc-linux boxes support dynamic linking these days and
15497 # people can always --disable-shared, the test was removed, and we
15498 # assume the GNU/Linux dynamic linker is in use.
15499 dynamic_linker='GNU/Linux ld.so'
15502 netbsd*)
15503 version_type=sunos
15504 need_lib_prefix=no
15505 need_version=no
15506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15509 dynamic_linker='NetBSD (a.out) ld.so'
15510 else
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 dynamic_linker='NetBSD ld.elf_so'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=yes
15517 hardcode_into_libs=yes
15520 newsos6)
15521 version_type=linux
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes
15527 *nto* | *qnx*)
15528 version_type=qnx
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 hardcode_into_libs=yes
15536 dynamic_linker='ldqnx.so'
15539 openbsd*)
15540 version_type=sunos
15541 sys_lib_dlsearch_path_spec="/usr/lib"
15542 need_lib_prefix=no
15543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15544 case $host_os in
15545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15546 *) need_version=no ;;
15547 esac
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15552 case $host_os in
15553 openbsd2.[89] | openbsd2.[89].*)
15554 shlibpath_overrides_runpath=no
15557 shlibpath_overrides_runpath=yes
15559 esac
15560 else
15561 shlibpath_overrides_runpath=yes
15565 os2*)
15566 libname_spec='$name'
15567 shrext_cmds=".dll"
15568 need_lib_prefix=no
15569 library_names_spec='$libname${shared_ext} $libname.a'
15570 dynamic_linker='OS/2 ld.exe'
15571 shlibpath_var=LIBPATH
15574 osf3* | osf4* | osf5*)
15575 version_type=osf
15576 need_lib_prefix=no
15577 need_version=no
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15585 rdos*)
15586 dynamic_linker=no
15589 solaris*)
15590 version_type=linux
15591 need_lib_prefix=no
15592 need_version=no
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15597 hardcode_into_libs=yes
15598 # ldd complains unless libraries are executable
15599 postinstall_cmds='chmod +x $lib'
15602 sunos4*)
15603 version_type=sunos
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 if test "$with_gnu_ld" = yes; then
15609 need_lib_prefix=no
15611 need_version=yes
15614 sysv4 | sysv4.3*)
15615 version_type=linux
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 case $host_vendor in
15620 sni)
15621 shlibpath_overrides_runpath=no
15622 need_lib_prefix=no
15623 runpath_var=LD_RUN_PATH
15625 siemens)
15626 need_lib_prefix=no
15628 motorola)
15629 need_lib_prefix=no
15630 need_version=no
15631 shlibpath_overrides_runpath=no
15632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15634 esac
15637 sysv4*MP*)
15638 if test -d /usr/nec ;then
15639 version_type=linux
15640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15641 soname_spec='$libname${shared_ext}.$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15647 version_type=freebsd-elf
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 hardcode_into_libs=yes
15655 if test "$with_gnu_ld" = yes; then
15656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15657 else
15658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15659 case $host_os in
15660 sco3.2v5*)
15661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15663 esac
15665 sys_lib_dlsearch_path_spec='/usr/lib'
15668 tpf*)
15669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15670 version_type=linux
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=no
15676 hardcode_into_libs=yes
15679 uts4*)
15680 version_type=linux
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15687 dynamic_linker=no
15689 esac
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15691 $as_echo "$dynamic_linker" >&6; }
15692 test "$dynamic_linker" = no && can_build_shared=no
15694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15695 if test "$GCC" = yes; then
15696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15699 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15700 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15702 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15703 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15744 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15745 hardcode_action_FC=
15746 if test -n "$hardcode_libdir_flag_spec_FC" ||
15747 test -n "$runpath_var_FC" ||
15748 test "X$hardcode_automatic_FC" = "Xyes" ; then
15750 # We can hardcode non-existent directories.
15751 if test "$hardcode_direct_FC" != no &&
15752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15753 # have to relink, otherwise we might link with an installed library
15754 # when we should be linking with a yet-to-be-installed one
15755 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15756 test "$hardcode_minus_L_FC" != no; then
15757 # Linking always hardcodes the temporary library directory.
15758 hardcode_action_FC=relink
15759 else
15760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15761 hardcode_action_FC=immediate
15763 else
15764 # We cannot hardcode anything, or else we can only hardcode existing
15765 # directories.
15766 hardcode_action_FC=unsupported
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15769 $as_echo "$hardcode_action_FC" >&6; }
15771 if test "$hardcode_action_FC" = relink ||
15772 test "$inherit_rpath_FC" = yes; then
15773 # Fast installation is not supported
15774 enable_fast_install=no
15775 elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no; then
15777 # Fast installation is not necessary
15778 enable_fast_install=needless
15787 fi # test -n "$compiler"
15789 GCC=$lt_save_GCC
15790 CC="$lt_save_CC"
15791 fi # test "$_lt_disable_FC" != yes
15793 ac_ext=c
15794 ac_cpp='$CPP $CPPFLAGS'
15795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15801 # extra LD Flags which are required for targets
15802 case "${host}" in
15803 *-darwin*)
15804 # Darwin needs -single_module when linking libgfortran
15805 extra_ldflags_libgfortran=-Wl,-single_module
15807 esac
15810 # We need a working compiler at that point, otherwise give a clear
15811 # error message and bail out.
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15814 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15815 ac_ext=${ac_fc_srcext-f}
15816 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15817 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15818 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15820 cat > conftest.$ac_ext <<_ACEOF
15822 program foo
15823 real, parameter :: bar = sin (12.34 / 2.5)
15824 end program foo
15825 _ACEOF
15826 if ac_fn_fc_try_compile "$LINENO"; then :
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15828 $as_echo "yes" >&6; }
15829 else
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15832 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 ac_ext=c
15837 ac_cpp='$CPP $CPPFLAGS'
15838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15844 # Check whether --enable-largefile was given.
15845 if test "${enable_largefile+set}" = set; then :
15846 enableval=$enable_largefile;
15849 if test "$enable_largefile" != no; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15852 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15853 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 ac_cv_sys_largefile_CC=no
15857 if test "$GCC" != yes; then
15858 ac_save_CC=$CC
15859 while :; do
15860 # IRIX 6.2 and later do not support large files by default,
15861 # so use the C compiler's -n32 option if that helps.
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15865 /* Check that off_t can represent 2**63 - 1 correctly.
15866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15867 since some C++ compilers masquerading as C compilers
15868 incorrectly reject 9223372036854775807. */
15869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15871 && LARGE_OFF_T % 2147483647 == 1)
15872 ? 1 : -1];
15874 main ()
15878 return 0;
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 break
15884 rm -f core conftest.err conftest.$ac_objext
15885 CC="$CC -n32"
15886 if ac_fn_c_try_compile "$LINENO"; then :
15887 ac_cv_sys_largefile_CC=' -n32'; break
15889 rm -f core conftest.err conftest.$ac_objext
15890 break
15891 done
15892 CC=$ac_save_CC
15893 rm -f conftest.$ac_ext
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15897 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15898 if test "$ac_cv_sys_largefile_CC" != no; then
15899 CC=$CC$ac_cv_sys_largefile_CC
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15903 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15904 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 while :; do
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <sys/types.h>
15911 /* Check that off_t can represent 2**63 - 1 correctly.
15912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15913 since some C++ compilers masquerading as C compilers
15914 incorrectly reject 9223372036854775807. */
15915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15917 && LARGE_OFF_T % 2147483647 == 1)
15918 ? 1 : -1];
15920 main ()
15924 return 0;
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928 ac_cv_sys_file_offset_bits=no; break
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15933 #define _FILE_OFFSET_BITS 64
15934 #include <sys/types.h>
15935 /* Check that off_t can represent 2**63 - 1 correctly.
15936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15937 since some C++ compilers masquerading as C compilers
15938 incorrectly reject 9223372036854775807. */
15939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15941 && LARGE_OFF_T % 2147483647 == 1)
15942 ? 1 : -1];
15944 main ()
15948 return 0;
15950 _ACEOF
15951 if ac_fn_c_try_compile "$LINENO"; then :
15952 ac_cv_sys_file_offset_bits=64; break
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 ac_cv_sys_file_offset_bits=unknown
15956 break
15957 done
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15960 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15961 case $ac_cv_sys_file_offset_bits in #(
15962 no | unknown) ;;
15964 cat >>confdefs.h <<_ACEOF
15965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15966 _ACEOF
15968 esac
15969 rm -rf conftest*
15970 if test $ac_cv_sys_file_offset_bits = unknown; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15972 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15973 if test "${ac_cv_sys_large_files+set}" = set; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 while :; do
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <sys/types.h>
15980 /* Check that off_t can represent 2**63 - 1 correctly.
15981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15982 since some C++ compilers masquerading as C compilers
15983 incorrectly reject 9223372036854775807. */
15984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15986 && LARGE_OFF_T % 2147483647 == 1)
15987 ? 1 : -1];
15989 main ()
15993 return 0;
15995 _ACEOF
15996 if ac_fn_c_try_compile "$LINENO"; then :
15997 ac_cv_sys_large_files=no; break
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #define _LARGE_FILES 1
16003 #include <sys/types.h>
16004 /* Check that off_t can represent 2**63 - 1 correctly.
16005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16006 since some C++ compilers masquerading as C compilers
16007 incorrectly reject 9223372036854775807. */
16008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16010 && LARGE_OFF_T % 2147483647 == 1)
16011 ? 1 : -1];
16013 main ()
16017 return 0;
16019 _ACEOF
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 ac_cv_sys_large_files=1; break
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 ac_cv_sys_large_files=unknown
16025 break
16026 done
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16029 $as_echo "$ac_cv_sys_large_files" >&6; }
16030 case $ac_cv_sys_large_files in #(
16031 no | unknown) ;;
16033 cat >>confdefs.h <<_ACEOF
16034 #define _LARGE_FILES $ac_cv_sys_large_files
16035 _ACEOF
16037 esac
16038 rm -rf conftest*
16043 # Types
16044 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16045 if test "x$ac_cv_type_off_t" = x""yes; then :
16047 else
16049 cat >>confdefs.h <<_ACEOF
16050 #define off_t long int
16051 _ACEOF
16056 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16057 if test "x$ac_cv_type_intptr_t" = x""yes; then :
16059 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16061 else
16062 for ac_type in 'int' 'long int' 'long long int'; do
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 $ac_includes_default
16067 main ()
16069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16070 test_array [0] = 0
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"; then :
16078 cat >>confdefs.h <<_ACEOF
16079 #define intptr_t $ac_type
16080 _ACEOF
16082 ac_type=
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 test -z "$ac_type" && break
16086 done
16091 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16092 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16094 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16096 else
16097 for ac_type in 'unsigned int' 'unsigned long int' \
16098 'unsigned long long int'; do
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 $ac_includes_default
16103 main ()
16105 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16106 test_array [0] = 0
16109 return 0;
16111 _ACEOF
16112 if ac_fn_c_try_compile "$LINENO"; then :
16114 cat >>confdefs.h <<_ACEOF
16115 #define uintptr_t $ac_type
16116 _ACEOF
16118 ac_type=
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 test -z "$ac_type" && break
16122 done
16126 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16127 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_PTRDIFF_T 1
16131 _ACEOF
16137 # check header files (we assume C89 is available, so don't check for that)
16141 for ac_header in $ac_header_list
16142 do :
16143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16144 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16146 eval as_val=\$$as_ac_Header
16147 if test "x$as_val" = x""yes; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 _ACEOF
16154 done
16194 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16196 acx_cv_header_stdint=stddef.h
16197 acx_cv_header_stdint_kind="(already complete)"
16198 for i in stdint.h $inttype_headers; do
16199 unset ac_cv_type_uintptr_t
16200 unset ac_cv_type_uintmax_t
16201 unset ac_cv_type_int_least32_t
16202 unset ac_cv_type_int_fast32_t
16203 unset ac_cv_type_uint64_t
16204 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16205 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16206 #include <$i>
16208 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16209 acx_cv_header_stdint=$i
16210 else
16211 continue
16214 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16215 #include <$i>
16217 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16219 else
16220 acx_cv_header_stdint_kind="(mostly complete)"
16223 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16224 #include <$i>
16226 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16228 else
16229 acx_cv_header_stdint_kind="(mostly complete)"
16232 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16233 #include <$i>
16235 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16237 else
16238 acx_cv_header_stdint_kind="(mostly complete)"
16241 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16242 #include <$i>
16244 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16246 else
16247 acx_cv_header_stdint_kind="(lacks uint64_t)"
16250 break
16251 done
16252 if test "$acx_cv_header_stdint" = stddef.h; then
16253 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16254 for i in stdint.h $inttype_headers; do
16255 unset ac_cv_type_uintptr_t
16256 unset ac_cv_type_uint32_t
16257 unset ac_cv_type_uint64_t
16258 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16259 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16260 #include <$i>
16262 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16263 acx_cv_header_stdint=$i
16264 else
16265 continue
16268 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16269 #include <$i>
16271 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16275 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16276 #include <$i>
16278 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16282 break
16283 done
16285 if test "$acx_cv_header_stdint" = stddef.h; then
16286 acx_cv_header_stdint_kind="(u_intXX_t style)"
16287 for i in sys/types.h $inttype_headers; do
16288 unset ac_cv_type_u_int32_t
16289 unset ac_cv_type_u_int64_t
16290 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16291 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16292 #include <$i>
16294 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16295 acx_cv_header_stdint=$i
16296 else
16297 continue
16300 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16301 #include <$i>
16303 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16307 break
16308 done
16310 if test "$acx_cv_header_stdint" = stddef.h; then
16311 acx_cv_header_stdint_kind="(using manual detection)"
16314 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16315 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16316 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16317 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16318 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16320 # ----------------- Summarize what we found so far
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16323 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16325 case `$as_basename -- gstdint.h ||
16326 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16327 Xgstdint.h : 'X\(//\)$' \| \
16328 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16329 $as_echo X/gstdint.h |
16330 sed '/^.*\/\([^/][^/]*\)\/*$/{
16331 s//\1/
16334 /^X\/\(\/\/\)$/{
16335 s//\1/
16338 /^X\/\(\/\).*/{
16339 s//\1/
16342 s/.*/./; q'` in
16343 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16344 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16345 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16346 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16347 *) ;;
16348 esac
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16351 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16353 # ----------------- done included file, check C basic types --------
16355 # Lacking an uintptr_t? Test size of void *
16356 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16357 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16360 # This bug is HP SR number 8606223364.
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16362 $as_echo_n "checking size of void *... " >&6; }
16363 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16364 $as_echo_n "(cached) " >&6
16365 else
16366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16368 else
16369 if test "$ac_cv_type_void_p" = yes; then
16370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16372 { as_fn_set_status 77
16373 as_fn_error "cannot compute sizeof (void *)
16374 See \`config.log' for more details." "$LINENO" 5; }; }
16375 else
16376 ac_cv_sizeof_void_p=0
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16382 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16386 cat >>confdefs.h <<_ACEOF
16387 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16388 _ACEOF
16391 esac
16393 # Lacking an uint64_t? Test size of long
16394 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16395 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16398 # This bug is HP SR number 8606223364.
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16400 $as_echo_n "checking size of long... " >&6; }
16401 if test "${ac_cv_sizeof_long+set}" = set; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16406 else
16407 if test "$ac_cv_type_long" = yes; then
16408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16410 { as_fn_set_status 77
16411 as_fn_error "cannot compute sizeof (long)
16412 See \`config.log' for more details." "$LINENO" 5; }; }
16413 else
16414 ac_cv_sizeof_long=0
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16420 $as_echo "$ac_cv_sizeof_long" >&6; }
16424 cat >>confdefs.h <<_ACEOF
16425 #define SIZEOF_LONG $ac_cv_sizeof_long
16426 _ACEOF
16429 esac
16431 if test $acx_cv_header_stdint = stddef.h; then
16432 # Lacking a good header? Test size of everything and deduce all types.
16433 # The cast to long int works around a bug in the HP C Compiler
16434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16436 # This bug is HP SR number 8606223364.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16438 $as_echo_n "checking size of int... " >&6; }
16439 if test "${ac_cv_sizeof_int+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16441 else
16442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16444 else
16445 if test "$ac_cv_type_int" = yes; then
16446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16448 { as_fn_set_status 77
16449 as_fn_error "cannot compute sizeof (int)
16450 See \`config.log' for more details." "$LINENO" 5; }; }
16451 else
16452 ac_cv_sizeof_int=0
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16458 $as_echo "$ac_cv_sizeof_int" >&6; }
16462 cat >>confdefs.h <<_ACEOF
16463 #define SIZEOF_INT $ac_cv_sizeof_int
16464 _ACEOF
16467 # The cast to long int works around a bug in the HP C Compiler
16468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16470 # This bug is HP SR number 8606223364.
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16472 $as_echo_n "checking size of short... " >&6; }
16473 if test "${ac_cv_sizeof_short+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16478 else
16479 if test "$ac_cv_type_short" = yes; then
16480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16482 { as_fn_set_status 77
16483 as_fn_error "cannot compute sizeof (short)
16484 See \`config.log' for more details." "$LINENO" 5; }; }
16485 else
16486 ac_cv_sizeof_short=0
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16492 $as_echo "$ac_cv_sizeof_short" >&6; }
16496 cat >>confdefs.h <<_ACEOF
16497 #define SIZEOF_SHORT $ac_cv_sizeof_short
16498 _ACEOF
16501 # The cast to long int works around a bug in the HP C Compiler
16502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16504 # This bug is HP SR number 8606223364.
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16506 $as_echo_n "checking size of char... " >&6; }
16507 if test "${ac_cv_sizeof_char+set}" = set; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16512 else
16513 if test "$ac_cv_type_char" = yes; then
16514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516 { as_fn_set_status 77
16517 as_fn_error "cannot compute sizeof (char)
16518 See \`config.log' for more details." "$LINENO" 5; }; }
16519 else
16520 ac_cv_sizeof_char=0
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16526 $as_echo "$ac_cv_sizeof_char" >&6; }
16530 cat >>confdefs.h <<_ACEOF
16531 #define SIZEOF_CHAR $ac_cv_sizeof_char
16532 _ACEOF
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16537 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16538 case "$ac_cv_sizeof_char" in
16539 1) acx_cv_type_int8_t=char ;;
16540 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16541 esac
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16543 $as_echo "$acx_cv_type_int8_t" >&6; }
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16546 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16547 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16548 2:*) acx_cv_type_int16_t=int ;;
16549 *:2) acx_cv_type_int16_t=short ;;
16550 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16551 esac
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16553 $as_echo "$acx_cv_type_int16_t" >&6; }
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16556 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16557 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16558 4:*) acx_cv_type_int32_t=int ;;
16559 *:4) acx_cv_type_int32_t=long ;;
16560 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16561 esac
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16563 $as_echo "$acx_cv_type_int32_t" >&6; }
16566 # These tests are here to make the output prettier
16568 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16569 case "$ac_cv_sizeof_long" in
16570 8) acx_cv_type_int64_t=long ;;
16571 esac
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16573 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16575 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16578 # Now we can use the above types
16580 if test "$ac_cv_type_uintptr_t" != yes; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16582 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16583 case $ac_cv_sizeof_void_p in
16584 2) acx_cv_type_intptr_t=int16_t ;;
16585 4) acx_cv_type_intptr_t=int32_t ;;
16586 8) acx_cv_type_intptr_t=int64_t ;;
16587 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16588 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16590 $as_echo "$acx_cv_type_intptr_t" >&6; }
16593 # ----------------- done all checks, emit header -------------
16594 ac_config_commands="$ac_config_commands gstdint.h"
16599 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16600 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16602 cat >>confdefs.h <<_ACEOF
16603 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16604 _ACEOF
16608 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16609 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16611 cat >>confdefs.h <<_ACEOF
16612 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16613 _ACEOF
16617 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16618 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_STRUCT_STAT_ST_RDEV 1
16622 _ACEOF
16628 case "${host}--x${with_newlib}" in
16629 mips*--xyes)
16630 hardwire_newlib=1;;
16631 nvptx*--xyes)
16632 hardwire_newlib=1;;
16633 esac
16635 # Check for library functions.
16636 if test "${hardwire_newlib:-0}" -eq 1; then
16637 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16638 # may not work correctly, because the compiler may not be able to
16639 # link executables.
16641 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16644 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16647 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16650 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16653 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16656 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16659 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16662 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16665 # At some point, we should differentiate between architectures
16666 # like x86, which have long double versions, and alpha/powerpc/etc.,
16667 # which don't. For the time being, punt.
16668 if test x"long_double_math_on_this_cpu" = x"yes"; then
16670 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16673 else
16677 for ac_func in $ac_func_list
16678 do :
16679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16681 eval as_val=\$$as_ac_var
16682 if test "x$as_val" = x""yes; then :
16683 cat >>confdefs.h <<_ACEOF
16684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16685 _ACEOF
16688 done
16795 # Check strerror_r, cannot be above as versions with two and three arguments exist
16797 ac_save_CFLAGS="$CFLAGS"
16798 CFLAGS="-Wimplicit-function-declaration -Werror"
16799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800 /* end confdefs.h. */
16801 #define _GNU_SOURCE 1
16802 #include <string.h>
16803 #include <locale.h>
16805 main ()
16807 char s[128]; strerror_r(5, s, 128);
16809 return 0;
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"; then :
16814 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 CFLAGS="$ac_save_CFLAGS"
16820 ac_save_CFLAGS="$CFLAGS"
16821 CFLAGS="-Wimplicit-function-declaration -Werror"
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 #define _GNU_SOURCE 1
16825 #include <string.h>
16826 #include <locale.h>
16828 main ()
16830 char s[128]; strerror_r(5, s);
16832 return 0;
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16837 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 CFLAGS="$ac_save_CFLAGS"
16844 # Check for C99 (and other IEEE) math functions
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16846 $as_echo_n "checking for sin in -lm... " >&6; }
16847 if test "${ac_cv_lib_m_sin+set}" = set; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 ac_check_lib_save_LIBS=$LIBS
16851 LIBS="-lm $LIBS"
16852 if test x$gcc_no_link = xyes; then
16853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16858 /* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 char sin ();
16866 main ()
16868 return sin ();
16870 return 0;
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"; then :
16874 ac_cv_lib_m_sin=yes
16875 else
16876 ac_cv_lib_m_sin=no
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880 LIBS=$ac_check_lib_save_LIBS
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16883 $as_echo "$ac_cv_lib_m_sin" >&6; }
16884 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16885 cat >>confdefs.h <<_ACEOF
16886 #define HAVE_LIBM 1
16887 _ACEOF
16889 LIBS="-lm $LIBS"
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16900 $as_echo_n "checking for acosf... " >&6; }
16901 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16904 if test x$gcc_no_link = xyes; then
16905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16910 #ifdef HAVE_COMPLEX_H
16911 #include <complex.h>
16912 #endif
16913 #ifdef HAVE_MATH_H
16914 #include <math.h>
16915 #endif
16917 int (*ptr)() = (int (*)())acosf;
16920 main ()
16922 return 0;
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 gcc_cv_math_func_acosf=yes
16928 else
16929 gcc_cv_math_func_acosf=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16935 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16936 if test $gcc_cv_math_func_acosf = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define HAVE_ACOSF 1
16940 _ACEOF
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16948 $as_echo_n "checking for acos... " >&6; }
16949 if test "${gcc_cv_math_func_acos+set}" = set; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 if test x$gcc_no_link = xyes; then
16953 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16958 #ifdef HAVE_COMPLEX_H
16959 #include <complex.h>
16960 #endif
16961 #ifdef HAVE_MATH_H
16962 #include <math.h>
16963 #endif
16965 int (*ptr)() = (int (*)())acos;
16968 main ()
16970 return 0;
16973 _ACEOF
16974 if ac_fn_c_try_link "$LINENO"; then :
16975 gcc_cv_math_func_acos=yes
16976 else
16977 gcc_cv_math_func_acos=no
16979 rm -f core conftest.err conftest.$ac_objext \
16980 conftest$ac_exeext conftest.$ac_ext
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16983 $as_echo "$gcc_cv_math_func_acos" >&6; }
16984 if test $gcc_cv_math_func_acos = yes; then
16986 cat >>confdefs.h <<_ACEOF
16987 #define HAVE_ACOS 1
16988 _ACEOF
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16996 $as_echo_n "checking for acosl... " >&6; }
16997 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 if test x$gcc_no_link = xyes; then
17001 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17006 #ifdef HAVE_COMPLEX_H
17007 #include <complex.h>
17008 #endif
17009 #ifdef HAVE_MATH_H
17010 #include <math.h>
17011 #endif
17013 int (*ptr)() = (int (*)())acosl;
17016 main ()
17018 return 0;
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 gcc_cv_math_func_acosl=yes
17024 else
17025 gcc_cv_math_func_acosl=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17031 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17032 if test $gcc_cv_math_func_acosl = yes; then
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_ACOSL 1
17036 _ACEOF
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17044 $as_echo_n "checking for acoshf... " >&6; }
17045 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
17046 $as_echo_n "(cached) " >&6
17047 else
17048 if test x$gcc_no_link = xyes; then
17049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17054 #ifdef HAVE_COMPLEX_H
17055 #include <complex.h>
17056 #endif
17057 #ifdef HAVE_MATH_H
17058 #include <math.h>
17059 #endif
17061 int (*ptr)() = (int (*)())acoshf;
17064 main ()
17066 return 0;
17069 _ACEOF
17070 if ac_fn_c_try_link "$LINENO"; then :
17071 gcc_cv_math_func_acoshf=yes
17072 else
17073 gcc_cv_math_func_acoshf=no
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17079 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17080 if test $gcc_cv_math_func_acoshf = yes; then
17082 cat >>confdefs.h <<_ACEOF
17083 #define HAVE_ACOSHF 1
17084 _ACEOF
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17092 $as_echo_n "checking for acosh... " >&6; }
17093 if test "${gcc_cv_math_func_acosh+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 if test x$gcc_no_link = xyes; then
17097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17102 #ifdef HAVE_COMPLEX_H
17103 #include <complex.h>
17104 #endif
17105 #ifdef HAVE_MATH_H
17106 #include <math.h>
17107 #endif
17109 int (*ptr)() = (int (*)())acosh;
17112 main ()
17114 return 0;
17117 _ACEOF
17118 if ac_fn_c_try_link "$LINENO"; then :
17119 gcc_cv_math_func_acosh=yes
17120 else
17121 gcc_cv_math_func_acosh=no
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17127 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17128 if test $gcc_cv_math_func_acosh = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define HAVE_ACOSH 1
17132 _ACEOF
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17140 $as_echo_n "checking for acoshl... " >&6; }
17141 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17142 $as_echo_n "(cached) " >&6
17143 else
17144 if test x$gcc_no_link = xyes; then
17145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17150 #ifdef HAVE_COMPLEX_H
17151 #include <complex.h>
17152 #endif
17153 #ifdef HAVE_MATH_H
17154 #include <math.h>
17155 #endif
17157 int (*ptr)() = (int (*)())acoshl;
17160 main ()
17162 return 0;
17165 _ACEOF
17166 if ac_fn_c_try_link "$LINENO"; then :
17167 gcc_cv_math_func_acoshl=yes
17168 else
17169 gcc_cv_math_func_acoshl=no
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17175 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17176 if test $gcc_cv_math_func_acoshl = yes; then
17178 cat >>confdefs.h <<_ACEOF
17179 #define HAVE_ACOSHL 1
17180 _ACEOF
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17188 $as_echo_n "checking for asinf... " >&6; }
17189 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 if test x$gcc_no_link = xyes; then
17193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17198 #ifdef HAVE_COMPLEX_H
17199 #include <complex.h>
17200 #endif
17201 #ifdef HAVE_MATH_H
17202 #include <math.h>
17203 #endif
17205 int (*ptr)() = (int (*)())asinf;
17208 main ()
17210 return 0;
17213 _ACEOF
17214 if ac_fn_c_try_link "$LINENO"; then :
17215 gcc_cv_math_func_asinf=yes
17216 else
17217 gcc_cv_math_func_asinf=no
17219 rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17223 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17224 if test $gcc_cv_math_func_asinf = yes; then
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_ASINF 1
17228 _ACEOF
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17236 $as_echo_n "checking for asin... " >&6; }
17237 if test "${gcc_cv_math_func_asin+set}" = set; then :
17238 $as_echo_n "(cached) " >&6
17239 else
17240 if test x$gcc_no_link = xyes; then
17241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17246 #ifdef HAVE_COMPLEX_H
17247 #include <complex.h>
17248 #endif
17249 #ifdef HAVE_MATH_H
17250 #include <math.h>
17251 #endif
17253 int (*ptr)() = (int (*)())asin;
17256 main ()
17258 return 0;
17261 _ACEOF
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 gcc_cv_math_func_asin=yes
17264 else
17265 gcc_cv_math_func_asin=no
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17271 $as_echo "$gcc_cv_math_func_asin" >&6; }
17272 if test $gcc_cv_math_func_asin = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define HAVE_ASIN 1
17276 _ACEOF
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17284 $as_echo_n "checking for asinl... " >&6; }
17285 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 if test x$gcc_no_link = xyes; then
17289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17294 #ifdef HAVE_COMPLEX_H
17295 #include <complex.h>
17296 #endif
17297 #ifdef HAVE_MATH_H
17298 #include <math.h>
17299 #endif
17301 int (*ptr)() = (int (*)())asinl;
17304 main ()
17306 return 0;
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"; then :
17311 gcc_cv_math_func_asinl=yes
17312 else
17313 gcc_cv_math_func_asinl=no
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17319 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17320 if test $gcc_cv_math_func_asinl = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define HAVE_ASINL 1
17324 _ACEOF
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17332 $as_echo_n "checking for asinhf... " >&6; }
17333 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 if test x$gcc_no_link = xyes; then
17337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17342 #ifdef HAVE_COMPLEX_H
17343 #include <complex.h>
17344 #endif
17345 #ifdef HAVE_MATH_H
17346 #include <math.h>
17347 #endif
17349 int (*ptr)() = (int (*)())asinhf;
17352 main ()
17354 return 0;
17357 _ACEOF
17358 if ac_fn_c_try_link "$LINENO"; then :
17359 gcc_cv_math_func_asinhf=yes
17360 else
17361 gcc_cv_math_func_asinhf=no
17363 rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17367 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17368 if test $gcc_cv_math_func_asinhf = yes; then
17370 cat >>confdefs.h <<_ACEOF
17371 #define HAVE_ASINHF 1
17372 _ACEOF
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17380 $as_echo_n "checking for asinh... " >&6; }
17381 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 if test x$gcc_no_link = xyes; then
17385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17390 #ifdef HAVE_COMPLEX_H
17391 #include <complex.h>
17392 #endif
17393 #ifdef HAVE_MATH_H
17394 #include <math.h>
17395 #endif
17397 int (*ptr)() = (int (*)())asinh;
17400 main ()
17402 return 0;
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 gcc_cv_math_func_asinh=yes
17408 else
17409 gcc_cv_math_func_asinh=no
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17415 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17416 if test $gcc_cv_math_func_asinh = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419 #define HAVE_ASINH 1
17420 _ACEOF
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17428 $as_echo_n "checking for asinhl... " >&6; }
17429 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17430 $as_echo_n "(cached) " >&6
17431 else
17432 if test x$gcc_no_link = xyes; then
17433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17438 #ifdef HAVE_COMPLEX_H
17439 #include <complex.h>
17440 #endif
17441 #ifdef HAVE_MATH_H
17442 #include <math.h>
17443 #endif
17445 int (*ptr)() = (int (*)())asinhl;
17448 main ()
17450 return 0;
17453 _ACEOF
17454 if ac_fn_c_try_link "$LINENO"; then :
17455 gcc_cv_math_func_asinhl=yes
17456 else
17457 gcc_cv_math_func_asinhl=no
17459 rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17463 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17464 if test $gcc_cv_math_func_asinhl = yes; then
17466 cat >>confdefs.h <<_ACEOF
17467 #define HAVE_ASINHL 1
17468 _ACEOF
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17476 $as_echo_n "checking for atan2f... " >&6; }
17477 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17478 $as_echo_n "(cached) " >&6
17479 else
17480 if test x$gcc_no_link = xyes; then
17481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17486 #ifdef HAVE_COMPLEX_H
17487 #include <complex.h>
17488 #endif
17489 #ifdef HAVE_MATH_H
17490 #include <math.h>
17491 #endif
17493 int (*ptr)() = (int (*)())atan2f;
17496 main ()
17498 return 0;
17501 _ACEOF
17502 if ac_fn_c_try_link "$LINENO"; then :
17503 gcc_cv_math_func_atan2f=yes
17504 else
17505 gcc_cv_math_func_atan2f=no
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17511 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17512 if test $gcc_cv_math_func_atan2f = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define HAVE_ATAN2F 1
17516 _ACEOF
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17524 $as_echo_n "checking for atan2... " >&6; }
17525 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if test x$gcc_no_link = xyes; then
17529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h. */
17534 #ifdef HAVE_COMPLEX_H
17535 #include <complex.h>
17536 #endif
17537 #ifdef HAVE_MATH_H
17538 #include <math.h>
17539 #endif
17541 int (*ptr)() = (int (*)())atan2;
17544 main ()
17546 return 0;
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"; then :
17551 gcc_cv_math_func_atan2=yes
17552 else
17553 gcc_cv_math_func_atan2=no
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17559 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17560 if test $gcc_cv_math_func_atan2 = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define HAVE_ATAN2 1
17564 _ACEOF
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17572 $as_echo_n "checking for atan2l... " >&6; }
17573 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17576 if test x$gcc_no_link = xyes; then
17577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17582 #ifdef HAVE_COMPLEX_H
17583 #include <complex.h>
17584 #endif
17585 #ifdef HAVE_MATH_H
17586 #include <math.h>
17587 #endif
17589 int (*ptr)() = (int (*)())atan2l;
17592 main ()
17594 return 0;
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"; then :
17599 gcc_cv_math_func_atan2l=yes
17600 else
17601 gcc_cv_math_func_atan2l=no
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17607 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17608 if test $gcc_cv_math_func_atan2l = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_ATAN2L 1
17612 _ACEOF
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17620 $as_echo_n "checking for atanf... " >&6; }
17621 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
17623 else
17624 if test x$gcc_no_link = xyes; then
17625 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17630 #ifdef HAVE_COMPLEX_H
17631 #include <complex.h>
17632 #endif
17633 #ifdef HAVE_MATH_H
17634 #include <math.h>
17635 #endif
17637 int (*ptr)() = (int (*)())atanf;
17640 main ()
17642 return 0;
17645 _ACEOF
17646 if ac_fn_c_try_link "$LINENO"; then :
17647 gcc_cv_math_func_atanf=yes
17648 else
17649 gcc_cv_math_func_atanf=no
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17655 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17656 if test $gcc_cv_math_func_atanf = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_ATANF 1
17660 _ACEOF
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17668 $as_echo_n "checking for atan... " >&6; }
17669 if test "${gcc_cv_math_func_atan+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 if test x$gcc_no_link = xyes; then
17673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17678 #ifdef HAVE_COMPLEX_H
17679 #include <complex.h>
17680 #endif
17681 #ifdef HAVE_MATH_H
17682 #include <math.h>
17683 #endif
17685 int (*ptr)() = (int (*)())atan;
17688 main ()
17690 return 0;
17693 _ACEOF
17694 if ac_fn_c_try_link "$LINENO"; then :
17695 gcc_cv_math_func_atan=yes
17696 else
17697 gcc_cv_math_func_atan=no
17699 rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17703 $as_echo "$gcc_cv_math_func_atan" >&6; }
17704 if test $gcc_cv_math_func_atan = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_ATAN 1
17708 _ACEOF
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17716 $as_echo_n "checking for atanl... " >&6; }
17717 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 if test x$gcc_no_link = xyes; then
17721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17726 #ifdef HAVE_COMPLEX_H
17727 #include <complex.h>
17728 #endif
17729 #ifdef HAVE_MATH_H
17730 #include <math.h>
17731 #endif
17733 int (*ptr)() = (int (*)())atanl;
17736 main ()
17738 return 0;
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743 gcc_cv_math_func_atanl=yes
17744 else
17745 gcc_cv_math_func_atanl=no
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17751 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17752 if test $gcc_cv_math_func_atanl = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_ATANL 1
17756 _ACEOF
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17764 $as_echo_n "checking for atanhf... " >&6; }
17765 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 if test x$gcc_no_link = xyes; then
17769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17774 #ifdef HAVE_COMPLEX_H
17775 #include <complex.h>
17776 #endif
17777 #ifdef HAVE_MATH_H
17778 #include <math.h>
17779 #endif
17781 int (*ptr)() = (int (*)())atanhf;
17784 main ()
17786 return 0;
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791 gcc_cv_math_func_atanhf=yes
17792 else
17793 gcc_cv_math_func_atanhf=no
17795 rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17799 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17800 if test $gcc_cv_math_func_atanhf = yes; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_ATANHF 1
17804 _ACEOF
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17812 $as_echo_n "checking for atanh... " >&6; }
17813 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 if test x$gcc_no_link = xyes; then
17817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h. */
17822 #ifdef HAVE_COMPLEX_H
17823 #include <complex.h>
17824 #endif
17825 #ifdef HAVE_MATH_H
17826 #include <math.h>
17827 #endif
17829 int (*ptr)() = (int (*)())atanh;
17832 main ()
17834 return 0;
17837 _ACEOF
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 gcc_cv_math_func_atanh=yes
17840 else
17841 gcc_cv_math_func_atanh=no
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17847 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17848 if test $gcc_cv_math_func_atanh = yes; then
17850 cat >>confdefs.h <<_ACEOF
17851 #define HAVE_ATANH 1
17852 _ACEOF
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17860 $as_echo_n "checking for atanhl... " >&6; }
17861 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 if test x$gcc_no_link = xyes; then
17865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17870 #ifdef HAVE_COMPLEX_H
17871 #include <complex.h>
17872 #endif
17873 #ifdef HAVE_MATH_H
17874 #include <math.h>
17875 #endif
17877 int (*ptr)() = (int (*)())atanhl;
17880 main ()
17882 return 0;
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 gcc_cv_math_func_atanhl=yes
17888 else
17889 gcc_cv_math_func_atanhl=no
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17895 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17896 if test $gcc_cv_math_func_atanhl = yes; then
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_ATANHL 1
17900 _ACEOF
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17908 $as_echo_n "checking for cargf... " >&6; }
17909 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 if test x$gcc_no_link = xyes; then
17913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17918 #ifdef HAVE_COMPLEX_H
17919 #include <complex.h>
17920 #endif
17921 #ifdef HAVE_MATH_H
17922 #include <math.h>
17923 #endif
17925 int (*ptr)() = (int (*)())cargf;
17928 main ()
17930 return 0;
17933 _ACEOF
17934 if ac_fn_c_try_link "$LINENO"; then :
17935 gcc_cv_math_func_cargf=yes
17936 else
17937 gcc_cv_math_func_cargf=no
17939 rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17943 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17944 if test $gcc_cv_math_func_cargf = yes; then
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_CARGF 1
17948 _ACEOF
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17956 $as_echo_n "checking for carg... " >&6; }
17957 if test "${gcc_cv_math_func_carg+set}" = set; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 if test x$gcc_no_link = xyes; then
17961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17966 #ifdef HAVE_COMPLEX_H
17967 #include <complex.h>
17968 #endif
17969 #ifdef HAVE_MATH_H
17970 #include <math.h>
17971 #endif
17973 int (*ptr)() = (int (*)())carg;
17976 main ()
17978 return 0;
17981 _ACEOF
17982 if ac_fn_c_try_link "$LINENO"; then :
17983 gcc_cv_math_func_carg=yes
17984 else
17985 gcc_cv_math_func_carg=no
17987 rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17991 $as_echo "$gcc_cv_math_func_carg" >&6; }
17992 if test $gcc_cv_math_func_carg = yes; then
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_CARG 1
17996 _ACEOF
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18004 $as_echo_n "checking for cargl... " >&6; }
18005 if test "${gcc_cv_math_func_cargl+set}" = set; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008 if test x$gcc_no_link = xyes; then
18009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18014 #ifdef HAVE_COMPLEX_H
18015 #include <complex.h>
18016 #endif
18017 #ifdef HAVE_MATH_H
18018 #include <math.h>
18019 #endif
18021 int (*ptr)() = (int (*)())cargl;
18024 main ()
18026 return 0;
18029 _ACEOF
18030 if ac_fn_c_try_link "$LINENO"; then :
18031 gcc_cv_math_func_cargl=yes
18032 else
18033 gcc_cv_math_func_cargl=no
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18039 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18040 if test $gcc_cv_math_func_cargl = yes; then
18042 cat >>confdefs.h <<_ACEOF
18043 #define HAVE_CARGL 1
18044 _ACEOF
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18052 $as_echo_n "checking for ceilf... " >&6; }
18053 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 if test x$gcc_no_link = xyes; then
18057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18062 #ifdef HAVE_COMPLEX_H
18063 #include <complex.h>
18064 #endif
18065 #ifdef HAVE_MATH_H
18066 #include <math.h>
18067 #endif
18069 int (*ptr)() = (int (*)())ceilf;
18072 main ()
18074 return 0;
18077 _ACEOF
18078 if ac_fn_c_try_link "$LINENO"; then :
18079 gcc_cv_math_func_ceilf=yes
18080 else
18081 gcc_cv_math_func_ceilf=no
18083 rm -f core conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18087 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18088 if test $gcc_cv_math_func_ceilf = yes; then
18090 cat >>confdefs.h <<_ACEOF
18091 #define HAVE_CEILF 1
18092 _ACEOF
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18100 $as_echo_n "checking for ceil... " >&6; }
18101 if test "${gcc_cv_math_func_ceil+set}" = set; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 if test x$gcc_no_link = xyes; then
18105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18110 #ifdef HAVE_COMPLEX_H
18111 #include <complex.h>
18112 #endif
18113 #ifdef HAVE_MATH_H
18114 #include <math.h>
18115 #endif
18117 int (*ptr)() = (int (*)())ceil;
18120 main ()
18122 return 0;
18125 _ACEOF
18126 if ac_fn_c_try_link "$LINENO"; then :
18127 gcc_cv_math_func_ceil=yes
18128 else
18129 gcc_cv_math_func_ceil=no
18131 rm -f core conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18135 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18136 if test $gcc_cv_math_func_ceil = yes; then
18138 cat >>confdefs.h <<_ACEOF
18139 #define HAVE_CEIL 1
18140 _ACEOF
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18148 $as_echo_n "checking for ceill... " >&6; }
18149 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18150 $as_echo_n "(cached) " >&6
18151 else
18152 if test x$gcc_no_link = xyes; then
18153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18158 #ifdef HAVE_COMPLEX_H
18159 #include <complex.h>
18160 #endif
18161 #ifdef HAVE_MATH_H
18162 #include <math.h>
18163 #endif
18165 int (*ptr)() = (int (*)())ceill;
18168 main ()
18170 return 0;
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"; then :
18175 gcc_cv_math_func_ceill=yes
18176 else
18177 gcc_cv_math_func_ceill=no
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18183 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18184 if test $gcc_cv_math_func_ceill = yes; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_CEILL 1
18188 _ACEOF
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18196 $as_echo_n "checking for copysignf... " >&6; }
18197 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 if test x$gcc_no_link = xyes; then
18201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18206 #ifdef HAVE_COMPLEX_H
18207 #include <complex.h>
18208 #endif
18209 #ifdef HAVE_MATH_H
18210 #include <math.h>
18211 #endif
18213 int (*ptr)() = (int (*)())copysignf;
18216 main ()
18218 return 0;
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 gcc_cv_math_func_copysignf=yes
18224 else
18225 gcc_cv_math_func_copysignf=no
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18231 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18232 if test $gcc_cv_math_func_copysignf = yes; then
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_COPYSIGNF 1
18236 _ACEOF
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18244 $as_echo_n "checking for copysign... " >&6; }
18245 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18246 $as_echo_n "(cached) " >&6
18247 else
18248 if test x$gcc_no_link = xyes; then
18249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18254 #ifdef HAVE_COMPLEX_H
18255 #include <complex.h>
18256 #endif
18257 #ifdef HAVE_MATH_H
18258 #include <math.h>
18259 #endif
18261 int (*ptr)() = (int (*)())copysign;
18264 main ()
18266 return 0;
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 gcc_cv_math_func_copysign=yes
18272 else
18273 gcc_cv_math_func_copysign=no
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18279 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18280 if test $gcc_cv_math_func_copysign = yes; then
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_COPYSIGN 1
18284 _ACEOF
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18292 $as_echo_n "checking for copysignl... " >&6; }
18293 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18294 $as_echo_n "(cached) " >&6
18295 else
18296 if test x$gcc_no_link = xyes; then
18297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 #ifdef HAVE_COMPLEX_H
18303 #include <complex.h>
18304 #endif
18305 #ifdef HAVE_MATH_H
18306 #include <math.h>
18307 #endif
18309 int (*ptr)() = (int (*)())copysignl;
18312 main ()
18314 return 0;
18317 _ACEOF
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 gcc_cv_math_func_copysignl=yes
18320 else
18321 gcc_cv_math_func_copysignl=no
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18327 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18328 if test $gcc_cv_math_func_copysignl = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define HAVE_COPYSIGNL 1
18332 _ACEOF
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18340 $as_echo_n "checking for cosf... " >&6; }
18341 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
18343 else
18344 if test x$gcc_no_link = xyes; then
18345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18350 #ifdef HAVE_COMPLEX_H
18351 #include <complex.h>
18352 #endif
18353 #ifdef HAVE_MATH_H
18354 #include <math.h>
18355 #endif
18357 int (*ptr)() = (int (*)())cosf;
18360 main ()
18362 return 0;
18365 _ACEOF
18366 if ac_fn_c_try_link "$LINENO"; then :
18367 gcc_cv_math_func_cosf=yes
18368 else
18369 gcc_cv_math_func_cosf=no
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18375 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18376 if test $gcc_cv_math_func_cosf = yes; then
18378 cat >>confdefs.h <<_ACEOF
18379 #define HAVE_COSF 1
18380 _ACEOF
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18388 $as_echo_n "checking for cos... " >&6; }
18389 if test "${gcc_cv_math_func_cos+set}" = set; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 if test x$gcc_no_link = xyes; then
18393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18398 #ifdef HAVE_COMPLEX_H
18399 #include <complex.h>
18400 #endif
18401 #ifdef HAVE_MATH_H
18402 #include <math.h>
18403 #endif
18405 int (*ptr)() = (int (*)())cos;
18408 main ()
18410 return 0;
18413 _ACEOF
18414 if ac_fn_c_try_link "$LINENO"; then :
18415 gcc_cv_math_func_cos=yes
18416 else
18417 gcc_cv_math_func_cos=no
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18423 $as_echo "$gcc_cv_math_func_cos" >&6; }
18424 if test $gcc_cv_math_func_cos = yes; then
18426 cat >>confdefs.h <<_ACEOF
18427 #define HAVE_COS 1
18428 _ACEOF
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18436 $as_echo_n "checking for cosl... " >&6; }
18437 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18438 $as_echo_n "(cached) " >&6
18439 else
18440 if test x$gcc_no_link = xyes; then
18441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18446 #ifdef HAVE_COMPLEX_H
18447 #include <complex.h>
18448 #endif
18449 #ifdef HAVE_MATH_H
18450 #include <math.h>
18451 #endif
18453 int (*ptr)() = (int (*)())cosl;
18456 main ()
18458 return 0;
18461 _ACEOF
18462 if ac_fn_c_try_link "$LINENO"; then :
18463 gcc_cv_math_func_cosl=yes
18464 else
18465 gcc_cv_math_func_cosl=no
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18471 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18472 if test $gcc_cv_math_func_cosl = yes; then
18474 cat >>confdefs.h <<_ACEOF
18475 #define HAVE_COSL 1
18476 _ACEOF
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18484 $as_echo_n "checking for ccosf... " >&6; }
18485 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 if test x$gcc_no_link = xyes; then
18489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18494 #ifdef HAVE_COMPLEX_H
18495 #include <complex.h>
18496 #endif
18497 #ifdef HAVE_MATH_H
18498 #include <math.h>
18499 #endif
18501 int (*ptr)() = (int (*)())ccosf;
18504 main ()
18506 return 0;
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511 gcc_cv_math_func_ccosf=yes
18512 else
18513 gcc_cv_math_func_ccosf=no
18515 rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18519 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18520 if test $gcc_cv_math_func_ccosf = yes; then
18522 cat >>confdefs.h <<_ACEOF
18523 #define HAVE_CCOSF 1
18524 _ACEOF
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18532 $as_echo_n "checking for ccos... " >&6; }
18533 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 if test x$gcc_no_link = xyes; then
18537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18542 #ifdef HAVE_COMPLEX_H
18543 #include <complex.h>
18544 #endif
18545 #ifdef HAVE_MATH_H
18546 #include <math.h>
18547 #endif
18549 int (*ptr)() = (int (*)())ccos;
18552 main ()
18554 return 0;
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 gcc_cv_math_func_ccos=yes
18560 else
18561 gcc_cv_math_func_ccos=no
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18567 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18568 if test $gcc_cv_math_func_ccos = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_CCOS 1
18572 _ACEOF
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18580 $as_echo_n "checking for ccosl... " >&6; }
18581 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584 if test x$gcc_no_link = xyes; then
18585 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18590 #ifdef HAVE_COMPLEX_H
18591 #include <complex.h>
18592 #endif
18593 #ifdef HAVE_MATH_H
18594 #include <math.h>
18595 #endif
18597 int (*ptr)() = (int (*)())ccosl;
18600 main ()
18602 return 0;
18605 _ACEOF
18606 if ac_fn_c_try_link "$LINENO"; then :
18607 gcc_cv_math_func_ccosl=yes
18608 else
18609 gcc_cv_math_func_ccosl=no
18611 rm -f core conftest.err conftest.$ac_objext \
18612 conftest$ac_exeext conftest.$ac_ext
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18615 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18616 if test $gcc_cv_math_func_ccosl = yes; then
18618 cat >>confdefs.h <<_ACEOF
18619 #define HAVE_CCOSL 1
18620 _ACEOF
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18628 $as_echo_n "checking for coshf... " >&6; }
18629 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18632 if test x$gcc_no_link = xyes; then
18633 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18638 #ifdef HAVE_COMPLEX_H
18639 #include <complex.h>
18640 #endif
18641 #ifdef HAVE_MATH_H
18642 #include <math.h>
18643 #endif
18645 int (*ptr)() = (int (*)())coshf;
18648 main ()
18650 return 0;
18653 _ACEOF
18654 if ac_fn_c_try_link "$LINENO"; then :
18655 gcc_cv_math_func_coshf=yes
18656 else
18657 gcc_cv_math_func_coshf=no
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18663 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18664 if test $gcc_cv_math_func_coshf = yes; then
18666 cat >>confdefs.h <<_ACEOF
18667 #define HAVE_COSHF 1
18668 _ACEOF
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18676 $as_echo_n "checking for cosh... " >&6; }
18677 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18678 $as_echo_n "(cached) " >&6
18679 else
18680 if test x$gcc_no_link = xyes; then
18681 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18686 #ifdef HAVE_COMPLEX_H
18687 #include <complex.h>
18688 #endif
18689 #ifdef HAVE_MATH_H
18690 #include <math.h>
18691 #endif
18693 int (*ptr)() = (int (*)())cosh;
18696 main ()
18698 return 0;
18701 _ACEOF
18702 if ac_fn_c_try_link "$LINENO"; then :
18703 gcc_cv_math_func_cosh=yes
18704 else
18705 gcc_cv_math_func_cosh=no
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18711 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18712 if test $gcc_cv_math_func_cosh = yes; then
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_COSH 1
18716 _ACEOF
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18724 $as_echo_n "checking for coshl... " >&6; }
18725 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 if test x$gcc_no_link = xyes; then
18729 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18734 #ifdef HAVE_COMPLEX_H
18735 #include <complex.h>
18736 #endif
18737 #ifdef HAVE_MATH_H
18738 #include <math.h>
18739 #endif
18741 int (*ptr)() = (int (*)())coshl;
18744 main ()
18746 return 0;
18749 _ACEOF
18750 if ac_fn_c_try_link "$LINENO"; then :
18751 gcc_cv_math_func_coshl=yes
18752 else
18753 gcc_cv_math_func_coshl=no
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18759 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18760 if test $gcc_cv_math_func_coshl = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_COSHL 1
18764 _ACEOF
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18772 $as_echo_n "checking for ccoshf... " >&6; }
18773 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18774 $as_echo_n "(cached) " >&6
18775 else
18776 if test x$gcc_no_link = xyes; then
18777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 #ifdef HAVE_COMPLEX_H
18783 #include <complex.h>
18784 #endif
18785 #ifdef HAVE_MATH_H
18786 #include <math.h>
18787 #endif
18789 int (*ptr)() = (int (*)())ccoshf;
18792 main ()
18794 return 0;
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 gcc_cv_math_func_ccoshf=yes
18800 else
18801 gcc_cv_math_func_ccoshf=no
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18807 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18808 if test $gcc_cv_math_func_ccoshf = yes; then
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_CCOSHF 1
18812 _ACEOF
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18820 $as_echo_n "checking for ccosh... " >&6; }
18821 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18822 $as_echo_n "(cached) " >&6
18823 else
18824 if test x$gcc_no_link = xyes; then
18825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18830 #ifdef HAVE_COMPLEX_H
18831 #include <complex.h>
18832 #endif
18833 #ifdef HAVE_MATH_H
18834 #include <math.h>
18835 #endif
18837 int (*ptr)() = (int (*)())ccosh;
18840 main ()
18842 return 0;
18845 _ACEOF
18846 if ac_fn_c_try_link "$LINENO"; then :
18847 gcc_cv_math_func_ccosh=yes
18848 else
18849 gcc_cv_math_func_ccosh=no
18851 rm -f core conftest.err conftest.$ac_objext \
18852 conftest$ac_exeext conftest.$ac_ext
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18855 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18856 if test $gcc_cv_math_func_ccosh = yes; then
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_CCOSH 1
18860 _ACEOF
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18868 $as_echo_n "checking for ccoshl... " >&6; }
18869 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18870 $as_echo_n "(cached) " >&6
18871 else
18872 if test x$gcc_no_link = xyes; then
18873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18878 #ifdef HAVE_COMPLEX_H
18879 #include <complex.h>
18880 #endif
18881 #ifdef HAVE_MATH_H
18882 #include <math.h>
18883 #endif
18885 int (*ptr)() = (int (*)())ccoshl;
18888 main ()
18890 return 0;
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18895 gcc_cv_math_func_ccoshl=yes
18896 else
18897 gcc_cv_math_func_ccoshl=no
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18903 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18904 if test $gcc_cv_math_func_ccoshl = yes; then
18906 cat >>confdefs.h <<_ACEOF
18907 #define HAVE_CCOSHL 1
18908 _ACEOF
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18916 $as_echo_n "checking for expf... " >&6; }
18917 if test "${gcc_cv_math_func_expf+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 if test x$gcc_no_link = xyes; then
18921 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924 /* end confdefs.h. */
18926 #ifdef HAVE_COMPLEX_H
18927 #include <complex.h>
18928 #endif
18929 #ifdef HAVE_MATH_H
18930 #include <math.h>
18931 #endif
18933 int (*ptr)() = (int (*)())expf;
18936 main ()
18938 return 0;
18941 _ACEOF
18942 if ac_fn_c_try_link "$LINENO"; then :
18943 gcc_cv_math_func_expf=yes
18944 else
18945 gcc_cv_math_func_expf=no
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18951 $as_echo "$gcc_cv_math_func_expf" >&6; }
18952 if test $gcc_cv_math_func_expf = yes; then
18954 cat >>confdefs.h <<_ACEOF
18955 #define HAVE_EXPF 1
18956 _ACEOF
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18964 $as_echo_n "checking for exp... " >&6; }
18965 if test "${gcc_cv_math_func_exp+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 if test x$gcc_no_link = xyes; then
18969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18974 #ifdef HAVE_COMPLEX_H
18975 #include <complex.h>
18976 #endif
18977 #ifdef HAVE_MATH_H
18978 #include <math.h>
18979 #endif
18981 int (*ptr)() = (int (*)())exp;
18984 main ()
18986 return 0;
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 gcc_cv_math_func_exp=yes
18992 else
18993 gcc_cv_math_func_exp=no
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18999 $as_echo "$gcc_cv_math_func_exp" >&6; }
19000 if test $gcc_cv_math_func_exp = yes; then
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_EXP 1
19004 _ACEOF
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19012 $as_echo_n "checking for expl... " >&6; }
19013 if test "${gcc_cv_math_func_expl+set}" = set; then :
19014 $as_echo_n "(cached) " >&6
19015 else
19016 if test x$gcc_no_link = xyes; then
19017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19022 #ifdef HAVE_COMPLEX_H
19023 #include <complex.h>
19024 #endif
19025 #ifdef HAVE_MATH_H
19026 #include <math.h>
19027 #endif
19029 int (*ptr)() = (int (*)())expl;
19032 main ()
19034 return 0;
19037 _ACEOF
19038 if ac_fn_c_try_link "$LINENO"; then :
19039 gcc_cv_math_func_expl=yes
19040 else
19041 gcc_cv_math_func_expl=no
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19047 $as_echo "$gcc_cv_math_func_expl" >&6; }
19048 if test $gcc_cv_math_func_expl = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define HAVE_EXPL 1
19052 _ACEOF
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19060 $as_echo_n "checking for cexpf... " >&6; }
19061 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
19062 $as_echo_n "(cached) " >&6
19063 else
19064 if test x$gcc_no_link = xyes; then
19065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19070 #ifdef HAVE_COMPLEX_H
19071 #include <complex.h>
19072 #endif
19073 #ifdef HAVE_MATH_H
19074 #include <math.h>
19075 #endif
19077 int (*ptr)() = (int (*)())cexpf;
19080 main ()
19082 return 0;
19085 _ACEOF
19086 if ac_fn_c_try_link "$LINENO"; then :
19087 gcc_cv_math_func_cexpf=yes
19088 else
19089 gcc_cv_math_func_cexpf=no
19091 rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19095 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19096 if test $gcc_cv_math_func_cexpf = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_CEXPF 1
19100 _ACEOF
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19108 $as_echo_n "checking for cexp... " >&6; }
19109 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112 if test x$gcc_no_link = xyes; then
19113 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h. */
19118 #ifdef HAVE_COMPLEX_H
19119 #include <complex.h>
19120 #endif
19121 #ifdef HAVE_MATH_H
19122 #include <math.h>
19123 #endif
19125 int (*ptr)() = (int (*)())cexp;
19128 main ()
19130 return 0;
19133 _ACEOF
19134 if ac_fn_c_try_link "$LINENO"; then :
19135 gcc_cv_math_func_cexp=yes
19136 else
19137 gcc_cv_math_func_cexp=no
19139 rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19143 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19144 if test $gcc_cv_math_func_cexp = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define HAVE_CEXP 1
19148 _ACEOF
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19156 $as_echo_n "checking for cexpl... " >&6; }
19157 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 if test x$gcc_no_link = xyes; then
19161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 #ifdef HAVE_COMPLEX_H
19167 #include <complex.h>
19168 #endif
19169 #ifdef HAVE_MATH_H
19170 #include <math.h>
19171 #endif
19173 int (*ptr)() = (int (*)())cexpl;
19176 main ()
19178 return 0;
19181 _ACEOF
19182 if ac_fn_c_try_link "$LINENO"; then :
19183 gcc_cv_math_func_cexpl=yes
19184 else
19185 gcc_cv_math_func_cexpl=no
19187 rm -f core conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext conftest.$ac_ext
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19191 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19192 if test $gcc_cv_math_func_cexpl = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_CEXPL 1
19196 _ACEOF
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19204 $as_echo_n "checking for fabsf... " >&6; }
19205 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19206 $as_echo_n "(cached) " >&6
19207 else
19208 if test x$gcc_no_link = xyes; then
19209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19214 #ifdef HAVE_COMPLEX_H
19215 #include <complex.h>
19216 #endif
19217 #ifdef HAVE_MATH_H
19218 #include <math.h>
19219 #endif
19221 int (*ptr)() = (int (*)())fabsf;
19224 main ()
19226 return 0;
19229 _ACEOF
19230 if ac_fn_c_try_link "$LINENO"; then :
19231 gcc_cv_math_func_fabsf=yes
19232 else
19233 gcc_cv_math_func_fabsf=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19239 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19240 if test $gcc_cv_math_func_fabsf = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_FABSF 1
19244 _ACEOF
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19252 $as_echo_n "checking for fabs... " >&6; }
19253 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 if test x$gcc_no_link = xyes; then
19257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19262 #ifdef HAVE_COMPLEX_H
19263 #include <complex.h>
19264 #endif
19265 #ifdef HAVE_MATH_H
19266 #include <math.h>
19267 #endif
19269 int (*ptr)() = (int (*)())fabs;
19272 main ()
19274 return 0;
19277 _ACEOF
19278 if ac_fn_c_try_link "$LINENO"; then :
19279 gcc_cv_math_func_fabs=yes
19280 else
19281 gcc_cv_math_func_fabs=no
19283 rm -f core conftest.err conftest.$ac_objext \
19284 conftest$ac_exeext conftest.$ac_ext
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19287 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19288 if test $gcc_cv_math_func_fabs = yes; then
19290 cat >>confdefs.h <<_ACEOF
19291 #define HAVE_FABS 1
19292 _ACEOF
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19300 $as_echo_n "checking for fabsl... " >&6; }
19301 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
19303 else
19304 if test x$gcc_no_link = xyes; then
19305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19310 #ifdef HAVE_COMPLEX_H
19311 #include <complex.h>
19312 #endif
19313 #ifdef HAVE_MATH_H
19314 #include <math.h>
19315 #endif
19317 int (*ptr)() = (int (*)())fabsl;
19320 main ()
19322 return 0;
19325 _ACEOF
19326 if ac_fn_c_try_link "$LINENO"; then :
19327 gcc_cv_math_func_fabsl=yes
19328 else
19329 gcc_cv_math_func_fabsl=no
19331 rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19335 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19336 if test $gcc_cv_math_func_fabsl = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_FABSL 1
19340 _ACEOF
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19348 $as_echo_n "checking for cabsf... " >&6; }
19349 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 if test x$gcc_no_link = xyes; then
19353 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19358 #ifdef HAVE_COMPLEX_H
19359 #include <complex.h>
19360 #endif
19361 #ifdef HAVE_MATH_H
19362 #include <math.h>
19363 #endif
19365 int (*ptr)() = (int (*)())cabsf;
19368 main ()
19370 return 0;
19373 _ACEOF
19374 if ac_fn_c_try_link "$LINENO"; then :
19375 gcc_cv_math_func_cabsf=yes
19376 else
19377 gcc_cv_math_func_cabsf=no
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19383 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19384 if test $gcc_cv_math_func_cabsf = yes; then
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_CABSF 1
19388 _ACEOF
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19396 $as_echo_n "checking for cabs... " >&6; }
19397 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19399 else
19400 if test x$gcc_no_link = xyes; then
19401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19406 #ifdef HAVE_COMPLEX_H
19407 #include <complex.h>
19408 #endif
19409 #ifdef HAVE_MATH_H
19410 #include <math.h>
19411 #endif
19413 int (*ptr)() = (int (*)())cabs;
19416 main ()
19418 return 0;
19421 _ACEOF
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 gcc_cv_math_func_cabs=yes
19424 else
19425 gcc_cv_math_func_cabs=no
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19431 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19432 if test $gcc_cv_math_func_cabs = yes; then
19434 cat >>confdefs.h <<_ACEOF
19435 #define HAVE_CABS 1
19436 _ACEOF
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19444 $as_echo_n "checking for cabsl... " >&6; }
19445 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19446 $as_echo_n "(cached) " >&6
19447 else
19448 if test x$gcc_no_link = xyes; then
19449 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19454 #ifdef HAVE_COMPLEX_H
19455 #include <complex.h>
19456 #endif
19457 #ifdef HAVE_MATH_H
19458 #include <math.h>
19459 #endif
19461 int (*ptr)() = (int (*)())cabsl;
19464 main ()
19466 return 0;
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"; then :
19471 gcc_cv_math_func_cabsl=yes
19472 else
19473 gcc_cv_math_func_cabsl=no
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19479 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19480 if test $gcc_cv_math_func_cabsl = yes; then
19482 cat >>confdefs.h <<_ACEOF
19483 #define HAVE_CABSL 1
19484 _ACEOF
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19492 $as_echo_n "checking for floorf... " >&6; }
19493 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19494 $as_echo_n "(cached) " >&6
19495 else
19496 if test x$gcc_no_link = xyes; then
19497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19502 #ifdef HAVE_COMPLEX_H
19503 #include <complex.h>
19504 #endif
19505 #ifdef HAVE_MATH_H
19506 #include <math.h>
19507 #endif
19509 int (*ptr)() = (int (*)())floorf;
19512 main ()
19514 return 0;
19517 _ACEOF
19518 if ac_fn_c_try_link "$LINENO"; then :
19519 gcc_cv_math_func_floorf=yes
19520 else
19521 gcc_cv_math_func_floorf=no
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19527 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19528 if test $gcc_cv_math_func_floorf = yes; then
19530 cat >>confdefs.h <<_ACEOF
19531 #define HAVE_FLOORF 1
19532 _ACEOF
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19540 $as_echo_n "checking for floor... " >&6; }
19541 if test "${gcc_cv_math_func_floor+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19543 else
19544 if test x$gcc_no_link = xyes; then
19545 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19550 #ifdef HAVE_COMPLEX_H
19551 #include <complex.h>
19552 #endif
19553 #ifdef HAVE_MATH_H
19554 #include <math.h>
19555 #endif
19557 int (*ptr)() = (int (*)())floor;
19560 main ()
19562 return 0;
19565 _ACEOF
19566 if ac_fn_c_try_link "$LINENO"; then :
19567 gcc_cv_math_func_floor=yes
19568 else
19569 gcc_cv_math_func_floor=no
19571 rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19575 $as_echo "$gcc_cv_math_func_floor" >&6; }
19576 if test $gcc_cv_math_func_floor = yes; then
19578 cat >>confdefs.h <<_ACEOF
19579 #define HAVE_FLOOR 1
19580 _ACEOF
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19588 $as_echo_n "checking for floorl... " >&6; }
19589 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19590 $as_echo_n "(cached) " >&6
19591 else
19592 if test x$gcc_no_link = xyes; then
19593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 #ifdef HAVE_COMPLEX_H
19599 #include <complex.h>
19600 #endif
19601 #ifdef HAVE_MATH_H
19602 #include <math.h>
19603 #endif
19605 int (*ptr)() = (int (*)())floorl;
19608 main ()
19610 return 0;
19613 _ACEOF
19614 if ac_fn_c_try_link "$LINENO"; then :
19615 gcc_cv_math_func_floorl=yes
19616 else
19617 gcc_cv_math_func_floorl=no
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19623 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19624 if test $gcc_cv_math_func_floorl = yes; then
19626 cat >>confdefs.h <<_ACEOF
19627 #define HAVE_FLOORL 1
19628 _ACEOF
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19636 $as_echo_n "checking for fmodf... " >&6; }
19637 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640 if test x$gcc_no_link = xyes; then
19641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19646 #ifdef HAVE_COMPLEX_H
19647 #include <complex.h>
19648 #endif
19649 #ifdef HAVE_MATH_H
19650 #include <math.h>
19651 #endif
19653 int (*ptr)() = (int (*)())fmodf;
19656 main ()
19658 return 0;
19661 _ACEOF
19662 if ac_fn_c_try_link "$LINENO"; then :
19663 gcc_cv_math_func_fmodf=yes
19664 else
19665 gcc_cv_math_func_fmodf=no
19667 rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19671 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19672 if test $gcc_cv_math_func_fmodf = yes; then
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_FMODF 1
19676 _ACEOF
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19684 $as_echo_n "checking for fmod... " >&6; }
19685 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19686 $as_echo_n "(cached) " >&6
19687 else
19688 if test x$gcc_no_link = xyes; then
19689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19694 #ifdef HAVE_COMPLEX_H
19695 #include <complex.h>
19696 #endif
19697 #ifdef HAVE_MATH_H
19698 #include <math.h>
19699 #endif
19701 int (*ptr)() = (int (*)())fmod;
19704 main ()
19706 return 0;
19709 _ACEOF
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 gcc_cv_math_func_fmod=yes
19712 else
19713 gcc_cv_math_func_fmod=no
19715 rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19719 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19720 if test $gcc_cv_math_func_fmod = yes; then
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_FMOD 1
19724 _ACEOF
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19732 $as_echo_n "checking for fmodl... " >&6; }
19733 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19734 $as_echo_n "(cached) " >&6
19735 else
19736 if test x$gcc_no_link = xyes; then
19737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19742 #ifdef HAVE_COMPLEX_H
19743 #include <complex.h>
19744 #endif
19745 #ifdef HAVE_MATH_H
19746 #include <math.h>
19747 #endif
19749 int (*ptr)() = (int (*)())fmodl;
19752 main ()
19754 return 0;
19757 _ACEOF
19758 if ac_fn_c_try_link "$LINENO"; then :
19759 gcc_cv_math_func_fmodl=yes
19760 else
19761 gcc_cv_math_func_fmodl=no
19763 rm -f core conftest.err conftest.$ac_objext \
19764 conftest$ac_exeext conftest.$ac_ext
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19767 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19768 if test $gcc_cv_math_func_fmodl = yes; then
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_FMODL 1
19772 _ACEOF
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19780 $as_echo_n "checking for frexpf... " >&6; }
19781 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19782 $as_echo_n "(cached) " >&6
19783 else
19784 if test x$gcc_no_link = xyes; then
19785 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h. */
19790 #ifdef HAVE_COMPLEX_H
19791 #include <complex.h>
19792 #endif
19793 #ifdef HAVE_MATH_H
19794 #include <math.h>
19795 #endif
19797 int (*ptr)() = (int (*)())frexpf;
19800 main ()
19802 return 0;
19805 _ACEOF
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 gcc_cv_math_func_frexpf=yes
19808 else
19809 gcc_cv_math_func_frexpf=no
19811 rm -f core conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19815 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19816 if test $gcc_cv_math_func_frexpf = yes; then
19818 cat >>confdefs.h <<_ACEOF
19819 #define HAVE_FREXPF 1
19820 _ACEOF
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19828 $as_echo_n "checking for frexp... " >&6; }
19829 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19831 else
19832 if test x$gcc_no_link = xyes; then
19833 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19838 #ifdef HAVE_COMPLEX_H
19839 #include <complex.h>
19840 #endif
19841 #ifdef HAVE_MATH_H
19842 #include <math.h>
19843 #endif
19845 int (*ptr)() = (int (*)())frexp;
19848 main ()
19850 return 0;
19853 _ACEOF
19854 if ac_fn_c_try_link "$LINENO"; then :
19855 gcc_cv_math_func_frexp=yes
19856 else
19857 gcc_cv_math_func_frexp=no
19859 rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19863 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19864 if test $gcc_cv_math_func_frexp = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867 #define HAVE_FREXP 1
19868 _ACEOF
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19876 $as_echo_n "checking for frexpl... " >&6; }
19877 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19878 $as_echo_n "(cached) " >&6
19879 else
19880 if test x$gcc_no_link = xyes; then
19881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19886 #ifdef HAVE_COMPLEX_H
19887 #include <complex.h>
19888 #endif
19889 #ifdef HAVE_MATH_H
19890 #include <math.h>
19891 #endif
19893 int (*ptr)() = (int (*)())frexpl;
19896 main ()
19898 return 0;
19901 _ACEOF
19902 if ac_fn_c_try_link "$LINENO"; then :
19903 gcc_cv_math_func_frexpl=yes
19904 else
19905 gcc_cv_math_func_frexpl=no
19907 rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19911 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19912 if test $gcc_cv_math_func_frexpl = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_FREXPL 1
19916 _ACEOF
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19924 $as_echo_n "checking for hypotf... " >&6; }
19925 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19927 else
19928 if test x$gcc_no_link = xyes; then
19929 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19932 /* end confdefs.h. */
19934 #ifdef HAVE_COMPLEX_H
19935 #include <complex.h>
19936 #endif
19937 #ifdef HAVE_MATH_H
19938 #include <math.h>
19939 #endif
19941 int (*ptr)() = (int (*)())hypotf;
19944 main ()
19946 return 0;
19949 _ACEOF
19950 if ac_fn_c_try_link "$LINENO"; then :
19951 gcc_cv_math_func_hypotf=yes
19952 else
19953 gcc_cv_math_func_hypotf=no
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19959 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19960 if test $gcc_cv_math_func_hypotf = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_HYPOTF 1
19964 _ACEOF
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19972 $as_echo_n "checking for hypot... " >&6; }
19973 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19974 $as_echo_n "(cached) " >&6
19975 else
19976 if test x$gcc_no_link = xyes; then
19977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980 /* end confdefs.h. */
19982 #ifdef HAVE_COMPLEX_H
19983 #include <complex.h>
19984 #endif
19985 #ifdef HAVE_MATH_H
19986 #include <math.h>
19987 #endif
19989 int (*ptr)() = (int (*)())hypot;
19992 main ()
19994 return 0;
19997 _ACEOF
19998 if ac_fn_c_try_link "$LINENO"; then :
19999 gcc_cv_math_func_hypot=yes
20000 else
20001 gcc_cv_math_func_hypot=no
20003 rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20007 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20008 if test $gcc_cv_math_func_hypot = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011 #define HAVE_HYPOT 1
20012 _ACEOF
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20020 $as_echo_n "checking for hypotl... " >&6; }
20021 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
20022 $as_echo_n "(cached) " >&6
20023 else
20024 if test x$gcc_no_link = xyes; then
20025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20030 #ifdef HAVE_COMPLEX_H
20031 #include <complex.h>
20032 #endif
20033 #ifdef HAVE_MATH_H
20034 #include <math.h>
20035 #endif
20037 int (*ptr)() = (int (*)())hypotl;
20040 main ()
20042 return 0;
20045 _ACEOF
20046 if ac_fn_c_try_link "$LINENO"; then :
20047 gcc_cv_math_func_hypotl=yes
20048 else
20049 gcc_cv_math_func_hypotl=no
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20055 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20056 if test $gcc_cv_math_func_hypotl = yes; then
20058 cat >>confdefs.h <<_ACEOF
20059 #define HAVE_HYPOTL 1
20060 _ACEOF
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20068 $as_echo_n "checking for ldexpf... " >&6; }
20069 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072 if test x$gcc_no_link = xyes; then
20073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20078 #ifdef HAVE_COMPLEX_H
20079 #include <complex.h>
20080 #endif
20081 #ifdef HAVE_MATH_H
20082 #include <math.h>
20083 #endif
20085 int (*ptr)() = (int (*)())ldexpf;
20088 main ()
20090 return 0;
20093 _ACEOF
20094 if ac_fn_c_try_link "$LINENO"; then :
20095 gcc_cv_math_func_ldexpf=yes
20096 else
20097 gcc_cv_math_func_ldexpf=no
20099 rm -f core conftest.err conftest.$ac_objext \
20100 conftest$ac_exeext conftest.$ac_ext
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20103 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20104 if test $gcc_cv_math_func_ldexpf = yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_LDEXPF 1
20108 _ACEOF
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20116 $as_echo_n "checking for ldexp... " >&6; }
20117 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20120 if test x$gcc_no_link = xyes; then
20121 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20126 #ifdef HAVE_COMPLEX_H
20127 #include <complex.h>
20128 #endif
20129 #ifdef HAVE_MATH_H
20130 #include <math.h>
20131 #endif
20133 int (*ptr)() = (int (*)())ldexp;
20136 main ()
20138 return 0;
20141 _ACEOF
20142 if ac_fn_c_try_link "$LINENO"; then :
20143 gcc_cv_math_func_ldexp=yes
20144 else
20145 gcc_cv_math_func_ldexp=no
20147 rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20151 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20152 if test $gcc_cv_math_func_ldexp = yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_LDEXP 1
20156 _ACEOF
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20164 $as_echo_n "checking for ldexpl... " >&6; }
20165 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20167 else
20168 if test x$gcc_no_link = xyes; then
20169 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20174 #ifdef HAVE_COMPLEX_H
20175 #include <complex.h>
20176 #endif
20177 #ifdef HAVE_MATH_H
20178 #include <math.h>
20179 #endif
20181 int (*ptr)() = (int (*)())ldexpl;
20184 main ()
20186 return 0;
20189 _ACEOF
20190 if ac_fn_c_try_link "$LINENO"; then :
20191 gcc_cv_math_func_ldexpl=yes
20192 else
20193 gcc_cv_math_func_ldexpl=no
20195 rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20199 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20200 if test $gcc_cv_math_func_ldexpl = yes; then
20202 cat >>confdefs.h <<_ACEOF
20203 #define HAVE_LDEXPL 1
20204 _ACEOF
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20212 $as_echo_n "checking for logf... " >&6; }
20213 if test "${gcc_cv_math_func_logf+set}" = set; then :
20214 $as_echo_n "(cached) " >&6
20215 else
20216 if test x$gcc_no_link = xyes; then
20217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20222 #ifdef HAVE_COMPLEX_H
20223 #include <complex.h>
20224 #endif
20225 #ifdef HAVE_MATH_H
20226 #include <math.h>
20227 #endif
20229 int (*ptr)() = (int (*)())logf;
20232 main ()
20234 return 0;
20237 _ACEOF
20238 if ac_fn_c_try_link "$LINENO"; then :
20239 gcc_cv_math_func_logf=yes
20240 else
20241 gcc_cv_math_func_logf=no
20243 rm -f core conftest.err conftest.$ac_objext \
20244 conftest$ac_exeext conftest.$ac_ext
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20247 $as_echo "$gcc_cv_math_func_logf" >&6; }
20248 if test $gcc_cv_math_func_logf = yes; then
20250 cat >>confdefs.h <<_ACEOF
20251 #define HAVE_LOGF 1
20252 _ACEOF
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20260 $as_echo_n "checking for log... " >&6; }
20261 if test "${gcc_cv_math_func_log+set}" = set; then :
20262 $as_echo_n "(cached) " >&6
20263 else
20264 if test x$gcc_no_link = xyes; then
20265 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h. */
20270 #ifdef HAVE_COMPLEX_H
20271 #include <complex.h>
20272 #endif
20273 #ifdef HAVE_MATH_H
20274 #include <math.h>
20275 #endif
20277 int (*ptr)() = (int (*)())log;
20280 main ()
20282 return 0;
20285 _ACEOF
20286 if ac_fn_c_try_link "$LINENO"; then :
20287 gcc_cv_math_func_log=yes
20288 else
20289 gcc_cv_math_func_log=no
20291 rm -f core conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20295 $as_echo "$gcc_cv_math_func_log" >&6; }
20296 if test $gcc_cv_math_func_log = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299 #define HAVE_LOG 1
20300 _ACEOF
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20308 $as_echo_n "checking for logl... " >&6; }
20309 if test "${gcc_cv_math_func_logl+set}" = set; then :
20310 $as_echo_n "(cached) " >&6
20311 else
20312 if test x$gcc_no_link = xyes; then
20313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20318 #ifdef HAVE_COMPLEX_H
20319 #include <complex.h>
20320 #endif
20321 #ifdef HAVE_MATH_H
20322 #include <math.h>
20323 #endif
20325 int (*ptr)() = (int (*)())logl;
20328 main ()
20330 return 0;
20333 _ACEOF
20334 if ac_fn_c_try_link "$LINENO"; then :
20335 gcc_cv_math_func_logl=yes
20336 else
20337 gcc_cv_math_func_logl=no
20339 rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20343 $as_echo "$gcc_cv_math_func_logl" >&6; }
20344 if test $gcc_cv_math_func_logl = yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_LOGL 1
20348 _ACEOF
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20356 $as_echo_n "checking for clogf... " >&6; }
20357 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
20359 else
20360 if test x$gcc_no_link = xyes; then
20361 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20366 #ifdef HAVE_COMPLEX_H
20367 #include <complex.h>
20368 #endif
20369 #ifdef HAVE_MATH_H
20370 #include <math.h>
20371 #endif
20373 int (*ptr)() = (int (*)())clogf;
20376 main ()
20378 return 0;
20381 _ACEOF
20382 if ac_fn_c_try_link "$LINENO"; then :
20383 gcc_cv_math_func_clogf=yes
20384 else
20385 gcc_cv_math_func_clogf=no
20387 rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20391 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20392 if test $gcc_cv_math_func_clogf = yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_CLOGF 1
20396 _ACEOF
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20404 $as_echo_n "checking for clog... " >&6; }
20405 if test "${gcc_cv_math_func_clog+set}" = set; then :
20406 $as_echo_n "(cached) " >&6
20407 else
20408 if test x$gcc_no_link = xyes; then
20409 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20414 #ifdef HAVE_COMPLEX_H
20415 #include <complex.h>
20416 #endif
20417 #ifdef HAVE_MATH_H
20418 #include <math.h>
20419 #endif
20421 int (*ptr)() = (int (*)())clog;
20424 main ()
20426 return 0;
20429 _ACEOF
20430 if ac_fn_c_try_link "$LINENO"; then :
20431 gcc_cv_math_func_clog=yes
20432 else
20433 gcc_cv_math_func_clog=no
20435 rm -f core conftest.err conftest.$ac_objext \
20436 conftest$ac_exeext conftest.$ac_ext
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20439 $as_echo "$gcc_cv_math_func_clog" >&6; }
20440 if test $gcc_cv_math_func_clog = yes; then
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_CLOG 1
20444 _ACEOF
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20452 $as_echo_n "checking for clogl... " >&6; }
20453 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20454 $as_echo_n "(cached) " >&6
20455 else
20456 if test x$gcc_no_link = xyes; then
20457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20462 #ifdef HAVE_COMPLEX_H
20463 #include <complex.h>
20464 #endif
20465 #ifdef HAVE_MATH_H
20466 #include <math.h>
20467 #endif
20469 int (*ptr)() = (int (*)())clogl;
20472 main ()
20474 return 0;
20477 _ACEOF
20478 if ac_fn_c_try_link "$LINENO"; then :
20479 gcc_cv_math_func_clogl=yes
20480 else
20481 gcc_cv_math_func_clogl=no
20483 rm -f core conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20487 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20488 if test $gcc_cv_math_func_clogl = yes; then
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_CLOGL 1
20492 _ACEOF
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20500 $as_echo_n "checking for log10f... " >&6; }
20501 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20502 $as_echo_n "(cached) " >&6
20503 else
20504 if test x$gcc_no_link = xyes; then
20505 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20510 #ifdef HAVE_COMPLEX_H
20511 #include <complex.h>
20512 #endif
20513 #ifdef HAVE_MATH_H
20514 #include <math.h>
20515 #endif
20517 int (*ptr)() = (int (*)())log10f;
20520 main ()
20522 return 0;
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 gcc_cv_math_func_log10f=yes
20528 else
20529 gcc_cv_math_func_log10f=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20535 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20536 if test $gcc_cv_math_func_log10f = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LOG10F 1
20540 _ACEOF
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20548 $as_echo_n "checking for log10... " >&6; }
20549 if test "${gcc_cv_math_func_log10+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 if test x$gcc_no_link = xyes; then
20553 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20558 #ifdef HAVE_COMPLEX_H
20559 #include <complex.h>
20560 #endif
20561 #ifdef HAVE_MATH_H
20562 #include <math.h>
20563 #endif
20565 int (*ptr)() = (int (*)())log10;
20568 main ()
20570 return 0;
20573 _ACEOF
20574 if ac_fn_c_try_link "$LINENO"; then :
20575 gcc_cv_math_func_log10=yes
20576 else
20577 gcc_cv_math_func_log10=no
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20583 $as_echo "$gcc_cv_math_func_log10" >&6; }
20584 if test $gcc_cv_math_func_log10 = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_LOG10 1
20588 _ACEOF
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20596 $as_echo_n "checking for log10l... " >&6; }
20597 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20599 else
20600 if test x$gcc_no_link = xyes; then
20601 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20606 #ifdef HAVE_COMPLEX_H
20607 #include <complex.h>
20608 #endif
20609 #ifdef HAVE_MATH_H
20610 #include <math.h>
20611 #endif
20613 int (*ptr)() = (int (*)())log10l;
20616 main ()
20618 return 0;
20621 _ACEOF
20622 if ac_fn_c_try_link "$LINENO"; then :
20623 gcc_cv_math_func_log10l=yes
20624 else
20625 gcc_cv_math_func_log10l=no
20627 rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20631 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20632 if test $gcc_cv_math_func_log10l = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_LOG10L 1
20636 _ACEOF
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20644 $as_echo_n "checking for clog10f... " >&6; }
20645 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20646 $as_echo_n "(cached) " >&6
20647 else
20648 if test x$gcc_no_link = xyes; then
20649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h. */
20654 #ifdef HAVE_COMPLEX_H
20655 #include <complex.h>
20656 #endif
20657 #ifdef HAVE_MATH_H
20658 #include <math.h>
20659 #endif
20661 int (*ptr)() = (int (*)())clog10f;
20664 main ()
20666 return 0;
20669 _ACEOF
20670 if ac_fn_c_try_link "$LINENO"; then :
20671 gcc_cv_math_func_clog10f=yes
20672 else
20673 gcc_cv_math_func_clog10f=no
20675 rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20679 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20680 if test $gcc_cv_math_func_clog10f = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_CLOG10F 1
20684 _ACEOF
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20692 $as_echo_n "checking for clog10... " >&6; }
20693 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20694 $as_echo_n "(cached) " >&6
20695 else
20696 if test x$gcc_no_link = xyes; then
20697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20702 #ifdef HAVE_COMPLEX_H
20703 #include <complex.h>
20704 #endif
20705 #ifdef HAVE_MATH_H
20706 #include <math.h>
20707 #endif
20709 int (*ptr)() = (int (*)())clog10;
20712 main ()
20714 return 0;
20717 _ACEOF
20718 if ac_fn_c_try_link "$LINENO"; then :
20719 gcc_cv_math_func_clog10=yes
20720 else
20721 gcc_cv_math_func_clog10=no
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20727 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20728 if test $gcc_cv_math_func_clog10 = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define HAVE_CLOG10 1
20732 _ACEOF
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20740 $as_echo_n "checking for clog10l... " >&6; }
20741 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20743 else
20744 if test x$gcc_no_link = xyes; then
20745 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20750 #ifdef HAVE_COMPLEX_H
20751 #include <complex.h>
20752 #endif
20753 #ifdef HAVE_MATH_H
20754 #include <math.h>
20755 #endif
20757 int (*ptr)() = (int (*)())clog10l;
20760 main ()
20762 return 0;
20765 _ACEOF
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 gcc_cv_math_func_clog10l=yes
20768 else
20769 gcc_cv_math_func_clog10l=no
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20775 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20776 if test $gcc_cv_math_func_clog10l = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define HAVE_CLOG10L 1
20780 _ACEOF
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20788 $as_echo_n "checking for nextafterf... " >&6; }
20789 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20790 $as_echo_n "(cached) " >&6
20791 else
20792 if test x$gcc_no_link = xyes; then
20793 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796 /* end confdefs.h. */
20798 #ifdef HAVE_COMPLEX_H
20799 #include <complex.h>
20800 #endif
20801 #ifdef HAVE_MATH_H
20802 #include <math.h>
20803 #endif
20805 int (*ptr)() = (int (*)())nextafterf;
20808 main ()
20810 return 0;
20813 _ACEOF
20814 if ac_fn_c_try_link "$LINENO"; then :
20815 gcc_cv_math_func_nextafterf=yes
20816 else
20817 gcc_cv_math_func_nextafterf=no
20819 rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20823 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20824 if test $gcc_cv_math_func_nextafterf = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE_NEXTAFTERF 1
20828 _ACEOF
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20836 $as_echo_n "checking for nextafter... " >&6; }
20837 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20838 $as_echo_n "(cached) " >&6
20839 else
20840 if test x$gcc_no_link = xyes; then
20841 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20846 #ifdef HAVE_COMPLEX_H
20847 #include <complex.h>
20848 #endif
20849 #ifdef HAVE_MATH_H
20850 #include <math.h>
20851 #endif
20853 int (*ptr)() = (int (*)())nextafter;
20856 main ()
20858 return 0;
20861 _ACEOF
20862 if ac_fn_c_try_link "$LINENO"; then :
20863 gcc_cv_math_func_nextafter=yes
20864 else
20865 gcc_cv_math_func_nextafter=no
20867 rm -f core conftest.err conftest.$ac_objext \
20868 conftest$ac_exeext conftest.$ac_ext
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20871 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20872 if test $gcc_cv_math_func_nextafter = yes; then
20874 cat >>confdefs.h <<_ACEOF
20875 #define HAVE_NEXTAFTER 1
20876 _ACEOF
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20884 $as_echo_n "checking for nextafterl... " >&6; }
20885 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888 if test x$gcc_no_link = xyes; then
20889 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20894 #ifdef HAVE_COMPLEX_H
20895 #include <complex.h>
20896 #endif
20897 #ifdef HAVE_MATH_H
20898 #include <math.h>
20899 #endif
20901 int (*ptr)() = (int (*)())nextafterl;
20904 main ()
20906 return 0;
20909 _ACEOF
20910 if ac_fn_c_try_link "$LINENO"; then :
20911 gcc_cv_math_func_nextafterl=yes
20912 else
20913 gcc_cv_math_func_nextafterl=no
20915 rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20919 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20920 if test $gcc_cv_math_func_nextafterl = yes; then
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_NEXTAFTERL 1
20924 _ACEOF
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20932 $as_echo_n "checking for powf... " >&6; }
20933 if test "${gcc_cv_math_func_powf+set}" = set; then :
20934 $as_echo_n "(cached) " >&6
20935 else
20936 if test x$gcc_no_link = xyes; then
20937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20942 #ifdef HAVE_COMPLEX_H
20943 #include <complex.h>
20944 #endif
20945 #ifdef HAVE_MATH_H
20946 #include <math.h>
20947 #endif
20949 int (*ptr)() = (int (*)())powf;
20952 main ()
20954 return 0;
20957 _ACEOF
20958 if ac_fn_c_try_link "$LINENO"; then :
20959 gcc_cv_math_func_powf=yes
20960 else
20961 gcc_cv_math_func_powf=no
20963 rm -f core conftest.err conftest.$ac_objext \
20964 conftest$ac_exeext conftest.$ac_ext
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20967 $as_echo "$gcc_cv_math_func_powf" >&6; }
20968 if test $gcc_cv_math_func_powf = yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_POWF 1
20972 _ACEOF
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20980 $as_echo_n "checking for pow... " >&6; }
20981 if test "${gcc_cv_math_func_pow+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 if test x$gcc_no_link = xyes; then
20985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20990 #ifdef HAVE_COMPLEX_H
20991 #include <complex.h>
20992 #endif
20993 #ifdef HAVE_MATH_H
20994 #include <math.h>
20995 #endif
20997 int (*ptr)() = (int (*)())pow;
21000 main ()
21002 return 0;
21005 _ACEOF
21006 if ac_fn_c_try_link "$LINENO"; then :
21007 gcc_cv_math_func_pow=yes
21008 else
21009 gcc_cv_math_func_pow=no
21011 rm -f core conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21015 $as_echo "$gcc_cv_math_func_pow" >&6; }
21016 if test $gcc_cv_math_func_pow = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE_POW 1
21020 _ACEOF
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21028 $as_echo_n "checking for cpowf... " >&6; }
21029 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21031 else
21032 if test x$gcc_no_link = xyes; then
21033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21038 #ifdef HAVE_COMPLEX_H
21039 #include <complex.h>
21040 #endif
21041 #ifdef HAVE_MATH_H
21042 #include <math.h>
21043 #endif
21045 int (*ptr)() = (int (*)())cpowf;
21048 main ()
21050 return 0;
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055 gcc_cv_math_func_cpowf=yes
21056 else
21057 gcc_cv_math_func_cpowf=no
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21063 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21064 if test $gcc_cv_math_func_cpowf = yes; then
21066 cat >>confdefs.h <<_ACEOF
21067 #define HAVE_CPOWF 1
21068 _ACEOF
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21076 $as_echo_n "checking for cpow... " >&6; }
21077 if test "${gcc_cv_math_func_cpow+set}" = set; then :
21078 $as_echo_n "(cached) " >&6
21079 else
21080 if test x$gcc_no_link = xyes; then
21081 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21086 #ifdef HAVE_COMPLEX_H
21087 #include <complex.h>
21088 #endif
21089 #ifdef HAVE_MATH_H
21090 #include <math.h>
21091 #endif
21093 int (*ptr)() = (int (*)())cpow;
21096 main ()
21098 return 0;
21101 _ACEOF
21102 if ac_fn_c_try_link "$LINENO"; then :
21103 gcc_cv_math_func_cpow=yes
21104 else
21105 gcc_cv_math_func_cpow=no
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21111 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21112 if test $gcc_cv_math_func_cpow = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define HAVE_CPOW 1
21116 _ACEOF
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21124 $as_echo_n "checking for cpowl... " >&6; }
21125 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21126 $as_echo_n "(cached) " >&6
21127 else
21128 if test x$gcc_no_link = xyes; then
21129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21134 #ifdef HAVE_COMPLEX_H
21135 #include <complex.h>
21136 #endif
21137 #ifdef HAVE_MATH_H
21138 #include <math.h>
21139 #endif
21141 int (*ptr)() = (int (*)())cpowl;
21144 main ()
21146 return 0;
21149 _ACEOF
21150 if ac_fn_c_try_link "$LINENO"; then :
21151 gcc_cv_math_func_cpowl=yes
21152 else
21153 gcc_cv_math_func_cpowl=no
21155 rm -f core conftest.err conftest.$ac_objext \
21156 conftest$ac_exeext conftest.$ac_ext
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21159 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21160 if test $gcc_cv_math_func_cpowl = yes; then
21162 cat >>confdefs.h <<_ACEOF
21163 #define HAVE_CPOWL 1
21164 _ACEOF
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21172 $as_echo_n "checking for roundf... " >&6; }
21173 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21175 else
21176 if test x$gcc_no_link = xyes; then
21177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21182 #ifdef HAVE_COMPLEX_H
21183 #include <complex.h>
21184 #endif
21185 #ifdef HAVE_MATH_H
21186 #include <math.h>
21187 #endif
21189 int (*ptr)() = (int (*)())roundf;
21192 main ()
21194 return 0;
21197 _ACEOF
21198 if ac_fn_c_try_link "$LINENO"; then :
21199 gcc_cv_math_func_roundf=yes
21200 else
21201 gcc_cv_math_func_roundf=no
21203 rm -f core conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21207 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21208 if test $gcc_cv_math_func_roundf = yes; then
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_ROUNDF 1
21212 _ACEOF
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21220 $as_echo_n "checking for round... " >&6; }
21221 if test "${gcc_cv_math_func_round+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21223 else
21224 if test x$gcc_no_link = xyes; then
21225 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21230 #ifdef HAVE_COMPLEX_H
21231 #include <complex.h>
21232 #endif
21233 #ifdef HAVE_MATH_H
21234 #include <math.h>
21235 #endif
21237 int (*ptr)() = (int (*)())round;
21240 main ()
21242 return 0;
21245 _ACEOF
21246 if ac_fn_c_try_link "$LINENO"; then :
21247 gcc_cv_math_func_round=yes
21248 else
21249 gcc_cv_math_func_round=no
21251 rm -f core conftest.err conftest.$ac_objext \
21252 conftest$ac_exeext conftest.$ac_ext
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21255 $as_echo "$gcc_cv_math_func_round" >&6; }
21256 if test $gcc_cv_math_func_round = yes; then
21258 cat >>confdefs.h <<_ACEOF
21259 #define HAVE_ROUND 1
21260 _ACEOF
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21268 $as_echo_n "checking for roundl... " >&6; }
21269 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21270 $as_echo_n "(cached) " >&6
21271 else
21272 if test x$gcc_no_link = xyes; then
21273 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21278 #ifdef HAVE_COMPLEX_H
21279 #include <complex.h>
21280 #endif
21281 #ifdef HAVE_MATH_H
21282 #include <math.h>
21283 #endif
21285 int (*ptr)() = (int (*)())roundl;
21288 main ()
21290 return 0;
21293 _ACEOF
21294 if ac_fn_c_try_link "$LINENO"; then :
21295 gcc_cv_math_func_roundl=yes
21296 else
21297 gcc_cv_math_func_roundl=no
21299 rm -f core conftest.err conftest.$ac_objext \
21300 conftest$ac_exeext conftest.$ac_ext
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21303 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21304 if test $gcc_cv_math_func_roundl = yes; then
21306 cat >>confdefs.h <<_ACEOF
21307 #define HAVE_ROUNDL 1
21308 _ACEOF
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21316 $as_echo_n "checking for lroundf... " >&6; }
21317 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21318 $as_echo_n "(cached) " >&6
21319 else
21320 if test x$gcc_no_link = xyes; then
21321 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21326 #ifdef HAVE_COMPLEX_H
21327 #include <complex.h>
21328 #endif
21329 #ifdef HAVE_MATH_H
21330 #include <math.h>
21331 #endif
21333 int (*ptr)() = (int (*)())lroundf;
21336 main ()
21338 return 0;
21341 _ACEOF
21342 if ac_fn_c_try_link "$LINENO"; then :
21343 gcc_cv_math_func_lroundf=yes
21344 else
21345 gcc_cv_math_func_lroundf=no
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21351 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21352 if test $gcc_cv_math_func_lroundf = yes; then
21354 cat >>confdefs.h <<_ACEOF
21355 #define HAVE_LROUNDF 1
21356 _ACEOF
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21364 $as_echo_n "checking for lround... " >&6; }
21365 if test "${gcc_cv_math_func_lround+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 if test x$gcc_no_link = xyes; then
21369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21374 #ifdef HAVE_COMPLEX_H
21375 #include <complex.h>
21376 #endif
21377 #ifdef HAVE_MATH_H
21378 #include <math.h>
21379 #endif
21381 int (*ptr)() = (int (*)())lround;
21384 main ()
21386 return 0;
21389 _ACEOF
21390 if ac_fn_c_try_link "$LINENO"; then :
21391 gcc_cv_math_func_lround=yes
21392 else
21393 gcc_cv_math_func_lround=no
21395 rm -f core conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21399 $as_echo "$gcc_cv_math_func_lround" >&6; }
21400 if test $gcc_cv_math_func_lround = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define HAVE_LROUND 1
21404 _ACEOF
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21412 $as_echo_n "checking for lroundl... " >&6; }
21413 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21415 else
21416 if test x$gcc_no_link = xyes; then
21417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21422 #ifdef HAVE_COMPLEX_H
21423 #include <complex.h>
21424 #endif
21425 #ifdef HAVE_MATH_H
21426 #include <math.h>
21427 #endif
21429 int (*ptr)() = (int (*)())lroundl;
21432 main ()
21434 return 0;
21437 _ACEOF
21438 if ac_fn_c_try_link "$LINENO"; then :
21439 gcc_cv_math_func_lroundl=yes
21440 else
21441 gcc_cv_math_func_lroundl=no
21443 rm -f core conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21447 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21448 if test $gcc_cv_math_func_lroundl = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LROUNDL 1
21452 _ACEOF
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21460 $as_echo_n "checking for llroundf... " >&6; }
21461 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21463 else
21464 if test x$gcc_no_link = xyes; then
21465 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h. */
21470 #ifdef HAVE_COMPLEX_H
21471 #include <complex.h>
21472 #endif
21473 #ifdef HAVE_MATH_H
21474 #include <math.h>
21475 #endif
21477 int (*ptr)() = (int (*)())llroundf;
21480 main ()
21482 return 0;
21485 _ACEOF
21486 if ac_fn_c_try_link "$LINENO"; then :
21487 gcc_cv_math_func_llroundf=yes
21488 else
21489 gcc_cv_math_func_llroundf=no
21491 rm -f core conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext conftest.$ac_ext
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21495 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21496 if test $gcc_cv_math_func_llroundf = yes; then
21498 cat >>confdefs.h <<_ACEOF
21499 #define HAVE_LLROUNDF 1
21500 _ACEOF
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21508 $as_echo_n "checking for llround... " >&6; }
21509 if test "${gcc_cv_math_func_llround+set}" = set; then :
21510 $as_echo_n "(cached) " >&6
21511 else
21512 if test x$gcc_no_link = xyes; then
21513 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21516 /* end confdefs.h. */
21518 #ifdef HAVE_COMPLEX_H
21519 #include <complex.h>
21520 #endif
21521 #ifdef HAVE_MATH_H
21522 #include <math.h>
21523 #endif
21525 int (*ptr)() = (int (*)())llround;
21528 main ()
21530 return 0;
21533 _ACEOF
21534 if ac_fn_c_try_link "$LINENO"; then :
21535 gcc_cv_math_func_llround=yes
21536 else
21537 gcc_cv_math_func_llround=no
21539 rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21543 $as_echo "$gcc_cv_math_func_llround" >&6; }
21544 if test $gcc_cv_math_func_llround = yes; then
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_LLROUND 1
21548 _ACEOF
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21556 $as_echo_n "checking for llroundl... " >&6; }
21557 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 if test x$gcc_no_link = xyes; then
21561 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21566 #ifdef HAVE_COMPLEX_H
21567 #include <complex.h>
21568 #endif
21569 #ifdef HAVE_MATH_H
21570 #include <math.h>
21571 #endif
21573 int (*ptr)() = (int (*)())llroundl;
21576 main ()
21578 return 0;
21581 _ACEOF
21582 if ac_fn_c_try_link "$LINENO"; then :
21583 gcc_cv_math_func_llroundl=yes
21584 else
21585 gcc_cv_math_func_llroundl=no
21587 rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21591 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21592 if test $gcc_cv_math_func_llroundl = yes; then
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LLROUNDL 1
21596 _ACEOF
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21604 $as_echo_n "checking for scalbnf... " >&6; }
21605 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21606 $as_echo_n "(cached) " >&6
21607 else
21608 if test x$gcc_no_link = xyes; then
21609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612 /* end confdefs.h. */
21614 #ifdef HAVE_COMPLEX_H
21615 #include <complex.h>
21616 #endif
21617 #ifdef HAVE_MATH_H
21618 #include <math.h>
21619 #endif
21621 int (*ptr)() = (int (*)())scalbnf;
21624 main ()
21626 return 0;
21629 _ACEOF
21630 if ac_fn_c_try_link "$LINENO"; then :
21631 gcc_cv_math_func_scalbnf=yes
21632 else
21633 gcc_cv_math_func_scalbnf=no
21635 rm -f core conftest.err conftest.$ac_objext \
21636 conftest$ac_exeext conftest.$ac_ext
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21639 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21640 if test $gcc_cv_math_func_scalbnf = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_SCALBNF 1
21644 _ACEOF
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21652 $as_echo_n "checking for scalbn... " >&6; }
21653 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21655 else
21656 if test x$gcc_no_link = xyes; then
21657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660 /* end confdefs.h. */
21662 #ifdef HAVE_COMPLEX_H
21663 #include <complex.h>
21664 #endif
21665 #ifdef HAVE_MATH_H
21666 #include <math.h>
21667 #endif
21669 int (*ptr)() = (int (*)())scalbn;
21672 main ()
21674 return 0;
21677 _ACEOF
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 gcc_cv_math_func_scalbn=yes
21680 else
21681 gcc_cv_math_func_scalbn=no
21683 rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21687 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21688 if test $gcc_cv_math_func_scalbn = yes; then
21690 cat >>confdefs.h <<_ACEOF
21691 #define HAVE_SCALBN 1
21692 _ACEOF
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21700 $as_echo_n "checking for scalbnl... " >&6; }
21701 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21702 $as_echo_n "(cached) " >&6
21703 else
21704 if test x$gcc_no_link = xyes; then
21705 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21708 /* end confdefs.h. */
21710 #ifdef HAVE_COMPLEX_H
21711 #include <complex.h>
21712 #endif
21713 #ifdef HAVE_MATH_H
21714 #include <math.h>
21715 #endif
21717 int (*ptr)() = (int (*)())scalbnl;
21720 main ()
21722 return 0;
21725 _ACEOF
21726 if ac_fn_c_try_link "$LINENO"; then :
21727 gcc_cv_math_func_scalbnl=yes
21728 else
21729 gcc_cv_math_func_scalbnl=no
21731 rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext conftest.$ac_ext
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21735 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21736 if test $gcc_cv_math_func_scalbnl = yes; then
21738 cat >>confdefs.h <<_ACEOF
21739 #define HAVE_SCALBNL 1
21740 _ACEOF
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21748 $as_echo_n "checking for sinf... " >&6; }
21749 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 if test x$gcc_no_link = xyes; then
21753 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21758 #ifdef HAVE_COMPLEX_H
21759 #include <complex.h>
21760 #endif
21761 #ifdef HAVE_MATH_H
21762 #include <math.h>
21763 #endif
21765 int (*ptr)() = (int (*)())sinf;
21768 main ()
21770 return 0;
21773 _ACEOF
21774 if ac_fn_c_try_link "$LINENO"; then :
21775 gcc_cv_math_func_sinf=yes
21776 else
21777 gcc_cv_math_func_sinf=no
21779 rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21783 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21784 if test $gcc_cv_math_func_sinf = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define HAVE_SINF 1
21788 _ACEOF
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21796 $as_echo_n "checking for sin... " >&6; }
21797 if test "${gcc_cv_math_func_sin+set}" = set; then :
21798 $as_echo_n "(cached) " >&6
21799 else
21800 if test x$gcc_no_link = xyes; then
21801 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21806 #ifdef HAVE_COMPLEX_H
21807 #include <complex.h>
21808 #endif
21809 #ifdef HAVE_MATH_H
21810 #include <math.h>
21811 #endif
21813 int (*ptr)() = (int (*)())sin;
21816 main ()
21818 return 0;
21821 _ACEOF
21822 if ac_fn_c_try_link "$LINENO"; then :
21823 gcc_cv_math_func_sin=yes
21824 else
21825 gcc_cv_math_func_sin=no
21827 rm -f core conftest.err conftest.$ac_objext \
21828 conftest$ac_exeext conftest.$ac_ext
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21831 $as_echo "$gcc_cv_math_func_sin" >&6; }
21832 if test $gcc_cv_math_func_sin = yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define HAVE_SIN 1
21836 _ACEOF
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21844 $as_echo_n "checking for sinl... " >&6; }
21845 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21846 $as_echo_n "(cached) " >&6
21847 else
21848 if test x$gcc_no_link = xyes; then
21849 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21854 #ifdef HAVE_COMPLEX_H
21855 #include <complex.h>
21856 #endif
21857 #ifdef HAVE_MATH_H
21858 #include <math.h>
21859 #endif
21861 int (*ptr)() = (int (*)())sinl;
21864 main ()
21866 return 0;
21869 _ACEOF
21870 if ac_fn_c_try_link "$LINENO"; then :
21871 gcc_cv_math_func_sinl=yes
21872 else
21873 gcc_cv_math_func_sinl=no
21875 rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21879 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21880 if test $gcc_cv_math_func_sinl = yes; then
21882 cat >>confdefs.h <<_ACEOF
21883 #define HAVE_SINL 1
21884 _ACEOF
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21892 $as_echo_n "checking for csinf... " >&6; }
21893 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21894 $as_echo_n "(cached) " >&6
21895 else
21896 if test x$gcc_no_link = xyes; then
21897 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21902 #ifdef HAVE_COMPLEX_H
21903 #include <complex.h>
21904 #endif
21905 #ifdef HAVE_MATH_H
21906 #include <math.h>
21907 #endif
21909 int (*ptr)() = (int (*)())csinf;
21912 main ()
21914 return 0;
21917 _ACEOF
21918 if ac_fn_c_try_link "$LINENO"; then :
21919 gcc_cv_math_func_csinf=yes
21920 else
21921 gcc_cv_math_func_csinf=no
21923 rm -f core conftest.err conftest.$ac_objext \
21924 conftest$ac_exeext conftest.$ac_ext
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21927 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21928 if test $gcc_cv_math_func_csinf = yes; then
21930 cat >>confdefs.h <<_ACEOF
21931 #define HAVE_CSINF 1
21932 _ACEOF
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21940 $as_echo_n "checking for csin... " >&6; }
21941 if test "${gcc_cv_math_func_csin+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
21943 else
21944 if test x$gcc_no_link = xyes; then
21945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21950 #ifdef HAVE_COMPLEX_H
21951 #include <complex.h>
21952 #endif
21953 #ifdef HAVE_MATH_H
21954 #include <math.h>
21955 #endif
21957 int (*ptr)() = (int (*)())csin;
21960 main ()
21962 return 0;
21965 _ACEOF
21966 if ac_fn_c_try_link "$LINENO"; then :
21967 gcc_cv_math_func_csin=yes
21968 else
21969 gcc_cv_math_func_csin=no
21971 rm -f core conftest.err conftest.$ac_objext \
21972 conftest$ac_exeext conftest.$ac_ext
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21975 $as_echo "$gcc_cv_math_func_csin" >&6; }
21976 if test $gcc_cv_math_func_csin = yes; then
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_CSIN 1
21980 _ACEOF
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21988 $as_echo_n "checking for csinl... " >&6; }
21989 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21991 else
21992 if test x$gcc_no_link = xyes; then
21993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21998 #ifdef HAVE_COMPLEX_H
21999 #include <complex.h>
22000 #endif
22001 #ifdef HAVE_MATH_H
22002 #include <math.h>
22003 #endif
22005 int (*ptr)() = (int (*)())csinl;
22008 main ()
22010 return 0;
22013 _ACEOF
22014 if ac_fn_c_try_link "$LINENO"; then :
22015 gcc_cv_math_func_csinl=yes
22016 else
22017 gcc_cv_math_func_csinl=no
22019 rm -f core conftest.err conftest.$ac_objext \
22020 conftest$ac_exeext conftest.$ac_ext
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22023 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22024 if test $gcc_cv_math_func_csinl = yes; then
22026 cat >>confdefs.h <<_ACEOF
22027 #define HAVE_CSINL 1
22028 _ACEOF
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22036 $as_echo_n "checking for sinhf... " >&6; }
22037 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
22038 $as_echo_n "(cached) " >&6
22039 else
22040 if test x$gcc_no_link = xyes; then
22041 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h. */
22046 #ifdef HAVE_COMPLEX_H
22047 #include <complex.h>
22048 #endif
22049 #ifdef HAVE_MATH_H
22050 #include <math.h>
22051 #endif
22053 int (*ptr)() = (int (*)())sinhf;
22056 main ()
22058 return 0;
22061 _ACEOF
22062 if ac_fn_c_try_link "$LINENO"; then :
22063 gcc_cv_math_func_sinhf=yes
22064 else
22065 gcc_cv_math_func_sinhf=no
22067 rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22071 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22072 if test $gcc_cv_math_func_sinhf = yes; then
22074 cat >>confdefs.h <<_ACEOF
22075 #define HAVE_SINHF 1
22076 _ACEOF
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22084 $as_echo_n "checking for sinh... " >&6; }
22085 if test "${gcc_cv_math_func_sinh+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 if test x$gcc_no_link = xyes; then
22089 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22094 #ifdef HAVE_COMPLEX_H
22095 #include <complex.h>
22096 #endif
22097 #ifdef HAVE_MATH_H
22098 #include <math.h>
22099 #endif
22101 int (*ptr)() = (int (*)())sinh;
22104 main ()
22106 return 0;
22109 _ACEOF
22110 if ac_fn_c_try_link "$LINENO"; then :
22111 gcc_cv_math_func_sinh=yes
22112 else
22113 gcc_cv_math_func_sinh=no
22115 rm -f core conftest.err conftest.$ac_objext \
22116 conftest$ac_exeext conftest.$ac_ext
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22119 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22120 if test $gcc_cv_math_func_sinh = yes; then
22122 cat >>confdefs.h <<_ACEOF
22123 #define HAVE_SINH 1
22124 _ACEOF
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22132 $as_echo_n "checking for sinhl... " >&6; }
22133 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22134 $as_echo_n "(cached) " >&6
22135 else
22136 if test x$gcc_no_link = xyes; then
22137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22142 #ifdef HAVE_COMPLEX_H
22143 #include <complex.h>
22144 #endif
22145 #ifdef HAVE_MATH_H
22146 #include <math.h>
22147 #endif
22149 int (*ptr)() = (int (*)())sinhl;
22152 main ()
22154 return 0;
22157 _ACEOF
22158 if ac_fn_c_try_link "$LINENO"; then :
22159 gcc_cv_math_func_sinhl=yes
22160 else
22161 gcc_cv_math_func_sinhl=no
22163 rm -f core conftest.err conftest.$ac_objext \
22164 conftest$ac_exeext conftest.$ac_ext
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22167 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22168 if test $gcc_cv_math_func_sinhl = yes; then
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_SINHL 1
22172 _ACEOF
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22180 $as_echo_n "checking for csinhf... " >&6; }
22181 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184 if test x$gcc_no_link = xyes; then
22185 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22190 #ifdef HAVE_COMPLEX_H
22191 #include <complex.h>
22192 #endif
22193 #ifdef HAVE_MATH_H
22194 #include <math.h>
22195 #endif
22197 int (*ptr)() = (int (*)())csinhf;
22200 main ()
22202 return 0;
22205 _ACEOF
22206 if ac_fn_c_try_link "$LINENO"; then :
22207 gcc_cv_math_func_csinhf=yes
22208 else
22209 gcc_cv_math_func_csinhf=no
22211 rm -f core conftest.err conftest.$ac_objext \
22212 conftest$ac_exeext conftest.$ac_ext
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22215 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22216 if test $gcc_cv_math_func_csinhf = yes; then
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_CSINHF 1
22220 _ACEOF
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22228 $as_echo_n "checking for csinh... " >&6; }
22229 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22230 $as_echo_n "(cached) " >&6
22231 else
22232 if test x$gcc_no_link = xyes; then
22233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22238 #ifdef HAVE_COMPLEX_H
22239 #include <complex.h>
22240 #endif
22241 #ifdef HAVE_MATH_H
22242 #include <math.h>
22243 #endif
22245 int (*ptr)() = (int (*)())csinh;
22248 main ()
22250 return 0;
22253 _ACEOF
22254 if ac_fn_c_try_link "$LINENO"; then :
22255 gcc_cv_math_func_csinh=yes
22256 else
22257 gcc_cv_math_func_csinh=no
22259 rm -f core conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22263 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22264 if test $gcc_cv_math_func_csinh = yes; then
22266 cat >>confdefs.h <<_ACEOF
22267 #define HAVE_CSINH 1
22268 _ACEOF
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22276 $as_echo_n "checking for csinhl... " >&6; }
22277 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 if test x$gcc_no_link = xyes; then
22281 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22286 #ifdef HAVE_COMPLEX_H
22287 #include <complex.h>
22288 #endif
22289 #ifdef HAVE_MATH_H
22290 #include <math.h>
22291 #endif
22293 int (*ptr)() = (int (*)())csinhl;
22296 main ()
22298 return 0;
22301 _ACEOF
22302 if ac_fn_c_try_link "$LINENO"; then :
22303 gcc_cv_math_func_csinhl=yes
22304 else
22305 gcc_cv_math_func_csinhl=no
22307 rm -f core conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22311 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22312 if test $gcc_cv_math_func_csinhl = yes; then
22314 cat >>confdefs.h <<_ACEOF
22315 #define HAVE_CSINHL 1
22316 _ACEOF
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22324 $as_echo_n "checking for sqrtf... " >&6; }
22325 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22326 $as_echo_n "(cached) " >&6
22327 else
22328 if test x$gcc_no_link = xyes; then
22329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22334 #ifdef HAVE_COMPLEX_H
22335 #include <complex.h>
22336 #endif
22337 #ifdef HAVE_MATH_H
22338 #include <math.h>
22339 #endif
22341 int (*ptr)() = (int (*)())sqrtf;
22344 main ()
22346 return 0;
22349 _ACEOF
22350 if ac_fn_c_try_link "$LINENO"; then :
22351 gcc_cv_math_func_sqrtf=yes
22352 else
22353 gcc_cv_math_func_sqrtf=no
22355 rm -f core conftest.err conftest.$ac_objext \
22356 conftest$ac_exeext conftest.$ac_ext
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22359 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22360 if test $gcc_cv_math_func_sqrtf = yes; then
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_SQRTF 1
22364 _ACEOF
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22372 $as_echo_n "checking for sqrt... " >&6; }
22373 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 if test x$gcc_no_link = xyes; then
22377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22382 #ifdef HAVE_COMPLEX_H
22383 #include <complex.h>
22384 #endif
22385 #ifdef HAVE_MATH_H
22386 #include <math.h>
22387 #endif
22389 int (*ptr)() = (int (*)())sqrt;
22392 main ()
22394 return 0;
22397 _ACEOF
22398 if ac_fn_c_try_link "$LINENO"; then :
22399 gcc_cv_math_func_sqrt=yes
22400 else
22401 gcc_cv_math_func_sqrt=no
22403 rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22407 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22408 if test $gcc_cv_math_func_sqrt = yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_SQRT 1
22412 _ACEOF
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22420 $as_echo_n "checking for sqrtl... " >&6; }
22421 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22422 $as_echo_n "(cached) " >&6
22423 else
22424 if test x$gcc_no_link = xyes; then
22425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22430 #ifdef HAVE_COMPLEX_H
22431 #include <complex.h>
22432 #endif
22433 #ifdef HAVE_MATH_H
22434 #include <math.h>
22435 #endif
22437 int (*ptr)() = (int (*)())sqrtl;
22440 main ()
22442 return 0;
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 gcc_cv_math_func_sqrtl=yes
22448 else
22449 gcc_cv_math_func_sqrtl=no
22451 rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22455 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22456 if test $gcc_cv_math_func_sqrtl = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_SQRTL 1
22460 _ACEOF
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22468 $as_echo_n "checking for csqrtf... " >&6; }
22469 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 if test x$gcc_no_link = xyes; then
22473 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22478 #ifdef HAVE_COMPLEX_H
22479 #include <complex.h>
22480 #endif
22481 #ifdef HAVE_MATH_H
22482 #include <math.h>
22483 #endif
22485 int (*ptr)() = (int (*)())csqrtf;
22488 main ()
22490 return 0;
22493 _ACEOF
22494 if ac_fn_c_try_link "$LINENO"; then :
22495 gcc_cv_math_func_csqrtf=yes
22496 else
22497 gcc_cv_math_func_csqrtf=no
22499 rm -f core conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22503 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22504 if test $gcc_cv_math_func_csqrtf = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_CSQRTF 1
22508 _ACEOF
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22516 $as_echo_n "checking for csqrt... " >&6; }
22517 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 if test x$gcc_no_link = xyes; then
22521 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22526 #ifdef HAVE_COMPLEX_H
22527 #include <complex.h>
22528 #endif
22529 #ifdef HAVE_MATH_H
22530 #include <math.h>
22531 #endif
22533 int (*ptr)() = (int (*)())csqrt;
22536 main ()
22538 return 0;
22541 _ACEOF
22542 if ac_fn_c_try_link "$LINENO"; then :
22543 gcc_cv_math_func_csqrt=yes
22544 else
22545 gcc_cv_math_func_csqrt=no
22547 rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22551 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22552 if test $gcc_cv_math_func_csqrt = yes; then
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_CSQRT 1
22556 _ACEOF
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22564 $as_echo_n "checking for csqrtl... " >&6; }
22565 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22567 else
22568 if test x$gcc_no_link = xyes; then
22569 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h. */
22574 #ifdef HAVE_COMPLEX_H
22575 #include <complex.h>
22576 #endif
22577 #ifdef HAVE_MATH_H
22578 #include <math.h>
22579 #endif
22581 int (*ptr)() = (int (*)())csqrtl;
22584 main ()
22586 return 0;
22589 _ACEOF
22590 if ac_fn_c_try_link "$LINENO"; then :
22591 gcc_cv_math_func_csqrtl=yes
22592 else
22593 gcc_cv_math_func_csqrtl=no
22595 rm -f core conftest.err conftest.$ac_objext \
22596 conftest$ac_exeext conftest.$ac_ext
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22599 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22600 if test $gcc_cv_math_func_csqrtl = yes; then
22602 cat >>confdefs.h <<_ACEOF
22603 #define HAVE_CSQRTL 1
22604 _ACEOF
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22612 $as_echo_n "checking for tanf... " >&6; }
22613 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 if test x$gcc_no_link = xyes; then
22617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620 /* end confdefs.h. */
22622 #ifdef HAVE_COMPLEX_H
22623 #include <complex.h>
22624 #endif
22625 #ifdef HAVE_MATH_H
22626 #include <math.h>
22627 #endif
22629 int (*ptr)() = (int (*)())tanf;
22632 main ()
22634 return 0;
22637 _ACEOF
22638 if ac_fn_c_try_link "$LINENO"; then :
22639 gcc_cv_math_func_tanf=yes
22640 else
22641 gcc_cv_math_func_tanf=no
22643 rm -f core conftest.err conftest.$ac_objext \
22644 conftest$ac_exeext conftest.$ac_ext
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22647 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22648 if test $gcc_cv_math_func_tanf = yes; then
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_TANF 1
22652 _ACEOF
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22660 $as_echo_n "checking for tan... " >&6; }
22661 if test "${gcc_cv_math_func_tan+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 if test x$gcc_no_link = xyes; then
22665 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h. */
22670 #ifdef HAVE_COMPLEX_H
22671 #include <complex.h>
22672 #endif
22673 #ifdef HAVE_MATH_H
22674 #include <math.h>
22675 #endif
22677 int (*ptr)() = (int (*)())tan;
22680 main ()
22682 return 0;
22685 _ACEOF
22686 if ac_fn_c_try_link "$LINENO"; then :
22687 gcc_cv_math_func_tan=yes
22688 else
22689 gcc_cv_math_func_tan=no
22691 rm -f core conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22695 $as_echo "$gcc_cv_math_func_tan" >&6; }
22696 if test $gcc_cv_math_func_tan = yes; then
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_TAN 1
22700 _ACEOF
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22708 $as_echo_n "checking for tanl... " >&6; }
22709 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22711 else
22712 if test x$gcc_no_link = xyes; then
22713 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h. */
22718 #ifdef HAVE_COMPLEX_H
22719 #include <complex.h>
22720 #endif
22721 #ifdef HAVE_MATH_H
22722 #include <math.h>
22723 #endif
22725 int (*ptr)() = (int (*)())tanl;
22728 main ()
22730 return 0;
22733 _ACEOF
22734 if ac_fn_c_try_link "$LINENO"; then :
22735 gcc_cv_math_func_tanl=yes
22736 else
22737 gcc_cv_math_func_tanl=no
22739 rm -f core conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22743 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22744 if test $gcc_cv_math_func_tanl = yes; then
22746 cat >>confdefs.h <<_ACEOF
22747 #define HAVE_TANL 1
22748 _ACEOF
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22756 $as_echo_n "checking for ctanf... " >&6; }
22757 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22758 $as_echo_n "(cached) " >&6
22759 else
22760 if test x$gcc_no_link = xyes; then
22761 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22764 /* end confdefs.h. */
22766 #ifdef HAVE_COMPLEX_H
22767 #include <complex.h>
22768 #endif
22769 #ifdef HAVE_MATH_H
22770 #include <math.h>
22771 #endif
22773 int (*ptr)() = (int (*)())ctanf;
22776 main ()
22778 return 0;
22781 _ACEOF
22782 if ac_fn_c_try_link "$LINENO"; then :
22783 gcc_cv_math_func_ctanf=yes
22784 else
22785 gcc_cv_math_func_ctanf=no
22787 rm -f core conftest.err conftest.$ac_objext \
22788 conftest$ac_exeext conftest.$ac_ext
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22791 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22792 if test $gcc_cv_math_func_ctanf = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_CTANF 1
22796 _ACEOF
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22804 $as_echo_n "checking for ctan... " >&6; }
22805 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 if test x$gcc_no_link = xyes; then
22809 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h. */
22814 #ifdef HAVE_COMPLEX_H
22815 #include <complex.h>
22816 #endif
22817 #ifdef HAVE_MATH_H
22818 #include <math.h>
22819 #endif
22821 int (*ptr)() = (int (*)())ctan;
22824 main ()
22826 return 0;
22829 _ACEOF
22830 if ac_fn_c_try_link "$LINENO"; then :
22831 gcc_cv_math_func_ctan=yes
22832 else
22833 gcc_cv_math_func_ctan=no
22835 rm -f core conftest.err conftest.$ac_objext \
22836 conftest$ac_exeext conftest.$ac_ext
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22839 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22840 if test $gcc_cv_math_func_ctan = yes; then
22842 cat >>confdefs.h <<_ACEOF
22843 #define HAVE_CTAN 1
22844 _ACEOF
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22852 $as_echo_n "checking for ctanl... " >&6; }
22853 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 if test x$gcc_no_link = xyes; then
22857 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22862 #ifdef HAVE_COMPLEX_H
22863 #include <complex.h>
22864 #endif
22865 #ifdef HAVE_MATH_H
22866 #include <math.h>
22867 #endif
22869 int (*ptr)() = (int (*)())ctanl;
22872 main ()
22874 return 0;
22877 _ACEOF
22878 if ac_fn_c_try_link "$LINENO"; then :
22879 gcc_cv_math_func_ctanl=yes
22880 else
22881 gcc_cv_math_func_ctanl=no
22883 rm -f core conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22887 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22888 if test $gcc_cv_math_func_ctanl = yes; then
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_CTANL 1
22892 _ACEOF
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22900 $as_echo_n "checking for tanhf... " >&6; }
22901 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22902 $as_echo_n "(cached) " >&6
22903 else
22904 if test x$gcc_no_link = xyes; then
22905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22908 /* end confdefs.h. */
22910 #ifdef HAVE_COMPLEX_H
22911 #include <complex.h>
22912 #endif
22913 #ifdef HAVE_MATH_H
22914 #include <math.h>
22915 #endif
22917 int (*ptr)() = (int (*)())tanhf;
22920 main ()
22922 return 0;
22925 _ACEOF
22926 if ac_fn_c_try_link "$LINENO"; then :
22927 gcc_cv_math_func_tanhf=yes
22928 else
22929 gcc_cv_math_func_tanhf=no
22931 rm -f core conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22935 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22936 if test $gcc_cv_math_func_tanhf = yes; then
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_TANHF 1
22940 _ACEOF
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22948 $as_echo_n "checking for tanh... " >&6; }
22949 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22951 else
22952 if test x$gcc_no_link = xyes; then
22953 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22958 #ifdef HAVE_COMPLEX_H
22959 #include <complex.h>
22960 #endif
22961 #ifdef HAVE_MATH_H
22962 #include <math.h>
22963 #endif
22965 int (*ptr)() = (int (*)())tanh;
22968 main ()
22970 return 0;
22973 _ACEOF
22974 if ac_fn_c_try_link "$LINENO"; then :
22975 gcc_cv_math_func_tanh=yes
22976 else
22977 gcc_cv_math_func_tanh=no
22979 rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22983 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22984 if test $gcc_cv_math_func_tanh = yes; then
22986 cat >>confdefs.h <<_ACEOF
22987 #define HAVE_TANH 1
22988 _ACEOF
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22996 $as_echo_n "checking for tanhl... " >&6; }
22997 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22998 $as_echo_n "(cached) " >&6
22999 else
23000 if test x$gcc_no_link = xyes; then
23001 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h. */
23006 #ifdef HAVE_COMPLEX_H
23007 #include <complex.h>
23008 #endif
23009 #ifdef HAVE_MATH_H
23010 #include <math.h>
23011 #endif
23013 int (*ptr)() = (int (*)())tanhl;
23016 main ()
23018 return 0;
23021 _ACEOF
23022 if ac_fn_c_try_link "$LINENO"; then :
23023 gcc_cv_math_func_tanhl=yes
23024 else
23025 gcc_cv_math_func_tanhl=no
23027 rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23031 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23032 if test $gcc_cv_math_func_tanhl = yes; then
23034 cat >>confdefs.h <<_ACEOF
23035 #define HAVE_TANHL 1
23036 _ACEOF
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23044 $as_echo_n "checking for ctanhf... " >&6; }
23045 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
23046 $as_echo_n "(cached) " >&6
23047 else
23048 if test x$gcc_no_link = xyes; then
23049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23054 #ifdef HAVE_COMPLEX_H
23055 #include <complex.h>
23056 #endif
23057 #ifdef HAVE_MATH_H
23058 #include <math.h>
23059 #endif
23061 int (*ptr)() = (int (*)())ctanhf;
23064 main ()
23066 return 0;
23069 _ACEOF
23070 if ac_fn_c_try_link "$LINENO"; then :
23071 gcc_cv_math_func_ctanhf=yes
23072 else
23073 gcc_cv_math_func_ctanhf=no
23075 rm -f core conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23079 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23080 if test $gcc_cv_math_func_ctanhf = yes; then
23082 cat >>confdefs.h <<_ACEOF
23083 #define HAVE_CTANHF 1
23084 _ACEOF
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23092 $as_echo_n "checking for ctanh... " >&6; }
23093 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 if test x$gcc_no_link = xyes; then
23097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23102 #ifdef HAVE_COMPLEX_H
23103 #include <complex.h>
23104 #endif
23105 #ifdef HAVE_MATH_H
23106 #include <math.h>
23107 #endif
23109 int (*ptr)() = (int (*)())ctanh;
23112 main ()
23114 return 0;
23117 _ACEOF
23118 if ac_fn_c_try_link "$LINENO"; then :
23119 gcc_cv_math_func_ctanh=yes
23120 else
23121 gcc_cv_math_func_ctanh=no
23123 rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23127 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23128 if test $gcc_cv_math_func_ctanh = yes; then
23130 cat >>confdefs.h <<_ACEOF
23131 #define HAVE_CTANH 1
23132 _ACEOF
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23140 $as_echo_n "checking for ctanhl... " >&6; }
23141 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23144 if test x$gcc_no_link = xyes; then
23145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h. */
23150 #ifdef HAVE_COMPLEX_H
23151 #include <complex.h>
23152 #endif
23153 #ifdef HAVE_MATH_H
23154 #include <math.h>
23155 #endif
23157 int (*ptr)() = (int (*)())ctanhl;
23160 main ()
23162 return 0;
23165 _ACEOF
23166 if ac_fn_c_try_link "$LINENO"; then :
23167 gcc_cv_math_func_ctanhl=yes
23168 else
23169 gcc_cv_math_func_ctanhl=no
23171 rm -f core conftest.err conftest.$ac_objext \
23172 conftest$ac_exeext conftest.$ac_ext
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23175 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23176 if test $gcc_cv_math_func_ctanhl = yes; then
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_CTANHL 1
23180 _ACEOF
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23188 $as_echo_n "checking for truncf... " >&6; }
23189 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23192 if test x$gcc_no_link = xyes; then
23193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23198 #ifdef HAVE_COMPLEX_H
23199 #include <complex.h>
23200 #endif
23201 #ifdef HAVE_MATH_H
23202 #include <math.h>
23203 #endif
23205 int (*ptr)() = (int (*)())truncf;
23208 main ()
23210 return 0;
23213 _ACEOF
23214 if ac_fn_c_try_link "$LINENO"; then :
23215 gcc_cv_math_func_truncf=yes
23216 else
23217 gcc_cv_math_func_truncf=no
23219 rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23223 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23224 if test $gcc_cv_math_func_truncf = yes; then
23226 cat >>confdefs.h <<_ACEOF
23227 #define HAVE_TRUNCF 1
23228 _ACEOF
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23236 $as_echo_n "checking for trunc... " >&6; }
23237 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23240 if test x$gcc_no_link = xyes; then
23241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23246 #ifdef HAVE_COMPLEX_H
23247 #include <complex.h>
23248 #endif
23249 #ifdef HAVE_MATH_H
23250 #include <math.h>
23251 #endif
23253 int (*ptr)() = (int (*)())trunc;
23256 main ()
23258 return 0;
23261 _ACEOF
23262 if ac_fn_c_try_link "$LINENO"; then :
23263 gcc_cv_math_func_trunc=yes
23264 else
23265 gcc_cv_math_func_trunc=no
23267 rm -f core conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23271 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23272 if test $gcc_cv_math_func_trunc = yes; then
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_TRUNC 1
23276 _ACEOF
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23284 $as_echo_n "checking for truncl... " >&6; }
23285 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288 if test x$gcc_no_link = xyes; then
23289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23292 /* end confdefs.h. */
23294 #ifdef HAVE_COMPLEX_H
23295 #include <complex.h>
23296 #endif
23297 #ifdef HAVE_MATH_H
23298 #include <math.h>
23299 #endif
23301 int (*ptr)() = (int (*)())truncl;
23304 main ()
23306 return 0;
23309 _ACEOF
23310 if ac_fn_c_try_link "$LINENO"; then :
23311 gcc_cv_math_func_truncl=yes
23312 else
23313 gcc_cv_math_func_truncl=no
23315 rm -f core conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23319 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23320 if test $gcc_cv_math_func_truncl = yes; then
23322 cat >>confdefs.h <<_ACEOF
23323 #define HAVE_TRUNCL 1
23324 _ACEOF
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23332 $as_echo_n "checking for erff... " >&6; }
23333 if test "${gcc_cv_math_func_erff+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
23335 else
23336 if test x$gcc_no_link = xyes; then
23337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340 /* end confdefs.h. */
23342 #ifdef HAVE_COMPLEX_H
23343 #include <complex.h>
23344 #endif
23345 #ifdef HAVE_MATH_H
23346 #include <math.h>
23347 #endif
23349 int (*ptr)() = (int (*)())erff;
23352 main ()
23354 return 0;
23357 _ACEOF
23358 if ac_fn_c_try_link "$LINENO"; then :
23359 gcc_cv_math_func_erff=yes
23360 else
23361 gcc_cv_math_func_erff=no
23363 rm -f core conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23367 $as_echo "$gcc_cv_math_func_erff" >&6; }
23368 if test $gcc_cv_math_func_erff = yes; then
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_ERFF 1
23372 _ACEOF
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23380 $as_echo_n "checking for erf... " >&6; }
23381 if test "${gcc_cv_math_func_erf+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
23383 else
23384 if test x$gcc_no_link = xyes; then
23385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23390 #ifdef HAVE_COMPLEX_H
23391 #include <complex.h>
23392 #endif
23393 #ifdef HAVE_MATH_H
23394 #include <math.h>
23395 #endif
23397 int (*ptr)() = (int (*)())erf;
23400 main ()
23402 return 0;
23405 _ACEOF
23406 if ac_fn_c_try_link "$LINENO"; then :
23407 gcc_cv_math_func_erf=yes
23408 else
23409 gcc_cv_math_func_erf=no
23411 rm -f core conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23415 $as_echo "$gcc_cv_math_func_erf" >&6; }
23416 if test $gcc_cv_math_func_erf = yes; then
23418 cat >>confdefs.h <<_ACEOF
23419 #define HAVE_ERF 1
23420 _ACEOF
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23428 $as_echo_n "checking for erfcf... " >&6; }
23429 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23431 else
23432 if test x$gcc_no_link = xyes; then
23433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436 /* end confdefs.h. */
23438 #ifdef HAVE_COMPLEX_H
23439 #include <complex.h>
23440 #endif
23441 #ifdef HAVE_MATH_H
23442 #include <math.h>
23443 #endif
23445 int (*ptr)() = (int (*)())erfcf;
23448 main ()
23450 return 0;
23453 _ACEOF
23454 if ac_fn_c_try_link "$LINENO"; then :
23455 gcc_cv_math_func_erfcf=yes
23456 else
23457 gcc_cv_math_func_erfcf=no
23459 rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23463 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23464 if test $gcc_cv_math_func_erfcf = yes; then
23466 cat >>confdefs.h <<_ACEOF
23467 #define HAVE_ERFCF 1
23468 _ACEOF
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23476 $as_echo_n "checking for erfc... " >&6; }
23477 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23479 else
23480 if test x$gcc_no_link = xyes; then
23481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23486 #ifdef HAVE_COMPLEX_H
23487 #include <complex.h>
23488 #endif
23489 #ifdef HAVE_MATH_H
23490 #include <math.h>
23491 #endif
23493 int (*ptr)() = (int (*)())erfc;
23496 main ()
23498 return 0;
23501 _ACEOF
23502 if ac_fn_c_try_link "$LINENO"; then :
23503 gcc_cv_math_func_erfc=yes
23504 else
23505 gcc_cv_math_func_erfc=no
23507 rm -f core conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23511 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23512 if test $gcc_cv_math_func_erfc = yes; then
23514 cat >>confdefs.h <<_ACEOF
23515 #define HAVE_ERFC 1
23516 _ACEOF
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23524 $as_echo_n "checking for erfcl... " >&6; }
23525 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23526 $as_echo_n "(cached) " >&6
23527 else
23528 if test x$gcc_no_link = xyes; then
23529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23534 #ifdef HAVE_COMPLEX_H
23535 #include <complex.h>
23536 #endif
23537 #ifdef HAVE_MATH_H
23538 #include <math.h>
23539 #endif
23541 int (*ptr)() = (int (*)())erfcl;
23544 main ()
23546 return 0;
23549 _ACEOF
23550 if ac_fn_c_try_link "$LINENO"; then :
23551 gcc_cv_math_func_erfcl=yes
23552 else
23553 gcc_cv_math_func_erfcl=no
23555 rm -f core conftest.err conftest.$ac_objext \
23556 conftest$ac_exeext conftest.$ac_ext
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23559 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23560 if test $gcc_cv_math_func_erfcl = yes; then
23562 cat >>confdefs.h <<_ACEOF
23563 #define HAVE_ERFCL 1
23564 _ACEOF
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23572 $as_echo_n "checking for j0f... " >&6; }
23573 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23574 $as_echo_n "(cached) " >&6
23575 else
23576 if test x$gcc_no_link = xyes; then
23577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23580 /* end confdefs.h. */
23582 #ifdef HAVE_COMPLEX_H
23583 #include <complex.h>
23584 #endif
23585 #ifdef HAVE_MATH_H
23586 #include <math.h>
23587 #endif
23589 int (*ptr)() = (int (*)())j0f;
23592 main ()
23594 return 0;
23597 _ACEOF
23598 if ac_fn_c_try_link "$LINENO"; then :
23599 gcc_cv_math_func_j0f=yes
23600 else
23601 gcc_cv_math_func_j0f=no
23603 rm -f core conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23607 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23608 if test $gcc_cv_math_func_j0f = yes; then
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_J0F 1
23612 _ACEOF
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23620 $as_echo_n "checking for j0... " >&6; }
23621 if test "${gcc_cv_math_func_j0+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 if test x$gcc_no_link = xyes; then
23625 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23630 #ifdef HAVE_COMPLEX_H
23631 #include <complex.h>
23632 #endif
23633 #ifdef HAVE_MATH_H
23634 #include <math.h>
23635 #endif
23637 int (*ptr)() = (int (*)())j0;
23640 main ()
23642 return 0;
23645 _ACEOF
23646 if ac_fn_c_try_link "$LINENO"; then :
23647 gcc_cv_math_func_j0=yes
23648 else
23649 gcc_cv_math_func_j0=no
23651 rm -f core conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23655 $as_echo "$gcc_cv_math_func_j0" >&6; }
23656 if test $gcc_cv_math_func_j0 = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_J0 1
23660 _ACEOF
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23668 $as_echo_n "checking for j1f... " >&6; }
23669 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23670 $as_echo_n "(cached) " >&6
23671 else
23672 if test x$gcc_no_link = xyes; then
23673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23678 #ifdef HAVE_COMPLEX_H
23679 #include <complex.h>
23680 #endif
23681 #ifdef HAVE_MATH_H
23682 #include <math.h>
23683 #endif
23685 int (*ptr)() = (int (*)())j1f;
23688 main ()
23690 return 0;
23693 _ACEOF
23694 if ac_fn_c_try_link "$LINENO"; then :
23695 gcc_cv_math_func_j1f=yes
23696 else
23697 gcc_cv_math_func_j1f=no
23699 rm -f core conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23703 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23704 if test $gcc_cv_math_func_j1f = yes; then
23706 cat >>confdefs.h <<_ACEOF
23707 #define HAVE_J1F 1
23708 _ACEOF
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23716 $as_echo_n "checking for j1... " >&6; }
23717 if test "${gcc_cv_math_func_j1+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 if test x$gcc_no_link = xyes; then
23721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23726 #ifdef HAVE_COMPLEX_H
23727 #include <complex.h>
23728 #endif
23729 #ifdef HAVE_MATH_H
23730 #include <math.h>
23731 #endif
23733 int (*ptr)() = (int (*)())j1;
23736 main ()
23738 return 0;
23741 _ACEOF
23742 if ac_fn_c_try_link "$LINENO"; then :
23743 gcc_cv_math_func_j1=yes
23744 else
23745 gcc_cv_math_func_j1=no
23747 rm -f core conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23751 $as_echo "$gcc_cv_math_func_j1" >&6; }
23752 if test $gcc_cv_math_func_j1 = yes; then
23754 cat >>confdefs.h <<_ACEOF
23755 #define HAVE_J1 1
23756 _ACEOF
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23764 $as_echo_n "checking for jnf... " >&6; }
23765 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23767 else
23768 if test x$gcc_no_link = xyes; then
23769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772 /* end confdefs.h. */
23774 #ifdef HAVE_COMPLEX_H
23775 #include <complex.h>
23776 #endif
23777 #ifdef HAVE_MATH_H
23778 #include <math.h>
23779 #endif
23781 int (*ptr)() = (int (*)())jnf;
23784 main ()
23786 return 0;
23789 _ACEOF
23790 if ac_fn_c_try_link "$LINENO"; then :
23791 gcc_cv_math_func_jnf=yes
23792 else
23793 gcc_cv_math_func_jnf=no
23795 rm -f core conftest.err conftest.$ac_objext \
23796 conftest$ac_exeext conftest.$ac_ext
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23799 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23800 if test $gcc_cv_math_func_jnf = yes; then
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_JNF 1
23804 _ACEOF
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23812 $as_echo_n "checking for jn... " >&6; }
23813 if test "${gcc_cv_math_func_jn+set}" = set; then :
23814 $as_echo_n "(cached) " >&6
23815 else
23816 if test x$gcc_no_link = xyes; then
23817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23822 #ifdef HAVE_COMPLEX_H
23823 #include <complex.h>
23824 #endif
23825 #ifdef HAVE_MATH_H
23826 #include <math.h>
23827 #endif
23829 int (*ptr)() = (int (*)())jn;
23832 main ()
23834 return 0;
23837 _ACEOF
23838 if ac_fn_c_try_link "$LINENO"; then :
23839 gcc_cv_math_func_jn=yes
23840 else
23841 gcc_cv_math_func_jn=no
23843 rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23847 $as_echo "$gcc_cv_math_func_jn" >&6; }
23848 if test $gcc_cv_math_func_jn = yes; then
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_JN 1
23852 _ACEOF
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23860 $as_echo_n "checking for jnl... " >&6; }
23861 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 if test x$gcc_no_link = xyes; then
23865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23868 /* end confdefs.h. */
23870 #ifdef HAVE_COMPLEX_H
23871 #include <complex.h>
23872 #endif
23873 #ifdef HAVE_MATH_H
23874 #include <math.h>
23875 #endif
23877 int (*ptr)() = (int (*)())jnl;
23880 main ()
23882 return 0;
23885 _ACEOF
23886 if ac_fn_c_try_link "$LINENO"; then :
23887 gcc_cv_math_func_jnl=yes
23888 else
23889 gcc_cv_math_func_jnl=no
23891 rm -f core conftest.err conftest.$ac_objext \
23892 conftest$ac_exeext conftest.$ac_ext
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23895 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23896 if test $gcc_cv_math_func_jnl = yes; then
23898 cat >>confdefs.h <<_ACEOF
23899 #define HAVE_JNL 1
23900 _ACEOF
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23908 $as_echo_n "checking for y0f... " >&6; }
23909 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23912 if test x$gcc_no_link = xyes; then
23913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23918 #ifdef HAVE_COMPLEX_H
23919 #include <complex.h>
23920 #endif
23921 #ifdef HAVE_MATH_H
23922 #include <math.h>
23923 #endif
23925 int (*ptr)() = (int (*)())y0f;
23928 main ()
23930 return 0;
23933 _ACEOF
23934 if ac_fn_c_try_link "$LINENO"; then :
23935 gcc_cv_math_func_y0f=yes
23936 else
23937 gcc_cv_math_func_y0f=no
23939 rm -f core conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23943 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23944 if test $gcc_cv_math_func_y0f = yes; then
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_Y0F 1
23948 _ACEOF
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23956 $as_echo_n "checking for y0... " >&6; }
23957 if test "${gcc_cv_math_func_y0+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 if test x$gcc_no_link = xyes; then
23961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h. */
23966 #ifdef HAVE_COMPLEX_H
23967 #include <complex.h>
23968 #endif
23969 #ifdef HAVE_MATH_H
23970 #include <math.h>
23971 #endif
23973 int (*ptr)() = (int (*)())y0;
23976 main ()
23978 return 0;
23981 _ACEOF
23982 if ac_fn_c_try_link "$LINENO"; then :
23983 gcc_cv_math_func_y0=yes
23984 else
23985 gcc_cv_math_func_y0=no
23987 rm -f core conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23991 $as_echo "$gcc_cv_math_func_y0" >&6; }
23992 if test $gcc_cv_math_func_y0 = yes; then
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_Y0 1
23996 _ACEOF
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24004 $as_echo_n "checking for y1f... " >&6; }
24005 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 if test x$gcc_no_link = xyes; then
24009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24012 /* end confdefs.h. */
24014 #ifdef HAVE_COMPLEX_H
24015 #include <complex.h>
24016 #endif
24017 #ifdef HAVE_MATH_H
24018 #include <math.h>
24019 #endif
24021 int (*ptr)() = (int (*)())y1f;
24024 main ()
24026 return 0;
24029 _ACEOF
24030 if ac_fn_c_try_link "$LINENO"; then :
24031 gcc_cv_math_func_y1f=yes
24032 else
24033 gcc_cv_math_func_y1f=no
24035 rm -f core conftest.err conftest.$ac_objext \
24036 conftest$ac_exeext conftest.$ac_ext
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24039 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24040 if test $gcc_cv_math_func_y1f = yes; then
24042 cat >>confdefs.h <<_ACEOF
24043 #define HAVE_Y1F 1
24044 _ACEOF
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24052 $as_echo_n "checking for y1... " >&6; }
24053 if test "${gcc_cv_math_func_y1+set}" = set; then :
24054 $as_echo_n "(cached) " >&6
24055 else
24056 if test x$gcc_no_link = xyes; then
24057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h. */
24062 #ifdef HAVE_COMPLEX_H
24063 #include <complex.h>
24064 #endif
24065 #ifdef HAVE_MATH_H
24066 #include <math.h>
24067 #endif
24069 int (*ptr)() = (int (*)())y1;
24072 main ()
24074 return 0;
24077 _ACEOF
24078 if ac_fn_c_try_link "$LINENO"; then :
24079 gcc_cv_math_func_y1=yes
24080 else
24081 gcc_cv_math_func_y1=no
24083 rm -f core conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24087 $as_echo "$gcc_cv_math_func_y1" >&6; }
24088 if test $gcc_cv_math_func_y1 = yes; then
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_Y1 1
24092 _ACEOF
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24100 $as_echo_n "checking for ynf... " >&6; }
24101 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 if test x$gcc_no_link = xyes; then
24105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24108 /* end confdefs.h. */
24110 #ifdef HAVE_COMPLEX_H
24111 #include <complex.h>
24112 #endif
24113 #ifdef HAVE_MATH_H
24114 #include <math.h>
24115 #endif
24117 int (*ptr)() = (int (*)())ynf;
24120 main ()
24122 return 0;
24125 _ACEOF
24126 if ac_fn_c_try_link "$LINENO"; then :
24127 gcc_cv_math_func_ynf=yes
24128 else
24129 gcc_cv_math_func_ynf=no
24131 rm -f core conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24135 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24136 if test $gcc_cv_math_func_ynf = yes; then
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_YNF 1
24140 _ACEOF
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24148 $as_echo_n "checking for yn... " >&6; }
24149 if test "${gcc_cv_math_func_yn+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24151 else
24152 if test x$gcc_no_link = xyes; then
24153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24158 #ifdef HAVE_COMPLEX_H
24159 #include <complex.h>
24160 #endif
24161 #ifdef HAVE_MATH_H
24162 #include <math.h>
24163 #endif
24165 int (*ptr)() = (int (*)())yn;
24168 main ()
24170 return 0;
24173 _ACEOF
24174 if ac_fn_c_try_link "$LINENO"; then :
24175 gcc_cv_math_func_yn=yes
24176 else
24177 gcc_cv_math_func_yn=no
24179 rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24183 $as_echo "$gcc_cv_math_func_yn" >&6; }
24184 if test $gcc_cv_math_func_yn = yes; then
24186 cat >>confdefs.h <<_ACEOF
24187 #define HAVE_YN 1
24188 _ACEOF
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24196 $as_echo_n "checking for ynl... " >&6; }
24197 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24199 else
24200 if test x$gcc_no_link = xyes; then
24201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24206 #ifdef HAVE_COMPLEX_H
24207 #include <complex.h>
24208 #endif
24209 #ifdef HAVE_MATH_H
24210 #include <math.h>
24211 #endif
24213 int (*ptr)() = (int (*)())ynl;
24216 main ()
24218 return 0;
24221 _ACEOF
24222 if ac_fn_c_try_link "$LINENO"; then :
24223 gcc_cv_math_func_ynl=yes
24224 else
24225 gcc_cv_math_func_ynl=no
24227 rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24231 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24232 if test $gcc_cv_math_func_ynl = yes; then
24234 cat >>confdefs.h <<_ACEOF
24235 #define HAVE_YNL 1
24236 _ACEOF
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24244 $as_echo_n "checking for tgamma... " >&6; }
24245 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24247 else
24248 if test x$gcc_no_link = xyes; then
24249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252 /* end confdefs.h. */
24254 #ifdef HAVE_COMPLEX_H
24255 #include <complex.h>
24256 #endif
24257 #ifdef HAVE_MATH_H
24258 #include <math.h>
24259 #endif
24261 int (*ptr)() = (int (*)())tgamma;
24264 main ()
24266 return 0;
24269 _ACEOF
24270 if ac_fn_c_try_link "$LINENO"; then :
24271 gcc_cv_math_func_tgamma=yes
24272 else
24273 gcc_cv_math_func_tgamma=no
24275 rm -f core conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24279 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24280 if test $gcc_cv_math_func_tgamma = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283 #define HAVE_TGAMMA 1
24284 _ACEOF
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24292 $as_echo_n "checking for tgammaf... " >&6; }
24293 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 if test x$gcc_no_link = xyes; then
24297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h. */
24302 #ifdef HAVE_COMPLEX_H
24303 #include <complex.h>
24304 #endif
24305 #ifdef HAVE_MATH_H
24306 #include <math.h>
24307 #endif
24309 int (*ptr)() = (int (*)())tgammaf;
24312 main ()
24314 return 0;
24317 _ACEOF
24318 if ac_fn_c_try_link "$LINENO"; then :
24319 gcc_cv_math_func_tgammaf=yes
24320 else
24321 gcc_cv_math_func_tgammaf=no
24323 rm -f core conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24327 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24328 if test $gcc_cv_math_func_tgammaf = yes; then
24330 cat >>confdefs.h <<_ACEOF
24331 #define HAVE_TGAMMAF 1
24332 _ACEOF
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24340 $as_echo_n "checking for lgamma... " >&6; }
24341 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24342 $as_echo_n "(cached) " >&6
24343 else
24344 if test x$gcc_no_link = xyes; then
24345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348 /* end confdefs.h. */
24350 #ifdef HAVE_COMPLEX_H
24351 #include <complex.h>
24352 #endif
24353 #ifdef HAVE_MATH_H
24354 #include <math.h>
24355 #endif
24357 int (*ptr)() = (int (*)())lgamma;
24360 main ()
24362 return 0;
24365 _ACEOF
24366 if ac_fn_c_try_link "$LINENO"; then :
24367 gcc_cv_math_func_lgamma=yes
24368 else
24369 gcc_cv_math_func_lgamma=no
24371 rm -f core conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24375 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24376 if test $gcc_cv_math_func_lgamma = yes; then
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_LGAMMA 1
24380 _ACEOF
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24388 $as_echo_n "checking for lgammaf... " >&6; }
24389 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24390 $as_echo_n "(cached) " >&6
24391 else
24392 if test x$gcc_no_link = xyes; then
24393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24398 #ifdef HAVE_COMPLEX_H
24399 #include <complex.h>
24400 #endif
24401 #ifdef HAVE_MATH_H
24402 #include <math.h>
24403 #endif
24405 int (*ptr)() = (int (*)())lgammaf;
24408 main ()
24410 return 0;
24413 _ACEOF
24414 if ac_fn_c_try_link "$LINENO"; then :
24415 gcc_cv_math_func_lgammaf=yes
24416 else
24417 gcc_cv_math_func_lgammaf=no
24419 rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24423 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24424 if test $gcc_cv_math_func_lgammaf = yes; then
24426 cat >>confdefs.h <<_ACEOF
24427 #define HAVE_LGAMMAF 1
24428 _ACEOF
24433 # Check for GFORTRAN_C99_1.1 funcs
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24438 $as_echo_n "checking for cacos... " >&6; }
24439 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24441 else
24442 if test x$gcc_no_link = xyes; then
24443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24448 #ifdef HAVE_COMPLEX_H
24449 #include <complex.h>
24450 #endif
24451 #ifdef HAVE_MATH_H
24452 #include <math.h>
24453 #endif
24455 int (*ptr)() = (int (*)())cacos;
24458 main ()
24460 return 0;
24463 _ACEOF
24464 if ac_fn_c_try_link "$LINENO"; then :
24465 gcc_cv_math_func_cacos=yes
24466 else
24467 gcc_cv_math_func_cacos=no
24469 rm -f core conftest.err conftest.$ac_objext \
24470 conftest$ac_exeext conftest.$ac_ext
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24473 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24474 if test $gcc_cv_math_func_cacos = yes; then
24476 cat >>confdefs.h <<_ACEOF
24477 #define HAVE_CACOS 1
24478 _ACEOF
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24486 $as_echo_n "checking for cacosf... " >&6; }
24487 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24489 else
24490 if test x$gcc_no_link = xyes; then
24491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24496 #ifdef HAVE_COMPLEX_H
24497 #include <complex.h>
24498 #endif
24499 #ifdef HAVE_MATH_H
24500 #include <math.h>
24501 #endif
24503 int (*ptr)() = (int (*)())cacosf;
24506 main ()
24508 return 0;
24511 _ACEOF
24512 if ac_fn_c_try_link "$LINENO"; then :
24513 gcc_cv_math_func_cacosf=yes
24514 else
24515 gcc_cv_math_func_cacosf=no
24517 rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24521 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24522 if test $gcc_cv_math_func_cacosf = yes; then
24524 cat >>confdefs.h <<_ACEOF
24525 #define HAVE_CACOSF 1
24526 _ACEOF
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24534 $as_echo_n "checking for cacosh... " >&6; }
24535 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24537 else
24538 if test x$gcc_no_link = xyes; then
24539 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24544 #ifdef HAVE_COMPLEX_H
24545 #include <complex.h>
24546 #endif
24547 #ifdef HAVE_MATH_H
24548 #include <math.h>
24549 #endif
24551 int (*ptr)() = (int (*)())cacosh;
24554 main ()
24556 return 0;
24559 _ACEOF
24560 if ac_fn_c_try_link "$LINENO"; then :
24561 gcc_cv_math_func_cacosh=yes
24562 else
24563 gcc_cv_math_func_cacosh=no
24565 rm -f core conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24569 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24570 if test $gcc_cv_math_func_cacosh = yes; then
24572 cat >>confdefs.h <<_ACEOF
24573 #define HAVE_CACOSH 1
24574 _ACEOF
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24582 $as_echo_n "checking for cacoshf... " >&6; }
24583 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24584 $as_echo_n "(cached) " >&6
24585 else
24586 if test x$gcc_no_link = xyes; then
24587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24590 /* end confdefs.h. */
24592 #ifdef HAVE_COMPLEX_H
24593 #include <complex.h>
24594 #endif
24595 #ifdef HAVE_MATH_H
24596 #include <math.h>
24597 #endif
24599 int (*ptr)() = (int (*)())cacoshf;
24602 main ()
24604 return 0;
24607 _ACEOF
24608 if ac_fn_c_try_link "$LINENO"; then :
24609 gcc_cv_math_func_cacoshf=yes
24610 else
24611 gcc_cv_math_func_cacoshf=no
24613 rm -f core conftest.err conftest.$ac_objext \
24614 conftest$ac_exeext conftest.$ac_ext
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24617 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24618 if test $gcc_cv_math_func_cacoshf = yes; then
24620 cat >>confdefs.h <<_ACEOF
24621 #define HAVE_CACOSHF 1
24622 _ACEOF
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24630 $as_echo_n "checking for cacoshl... " >&6; }
24631 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24632 $as_echo_n "(cached) " >&6
24633 else
24634 if test x$gcc_no_link = xyes; then
24635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24638 /* end confdefs.h. */
24640 #ifdef HAVE_COMPLEX_H
24641 #include <complex.h>
24642 #endif
24643 #ifdef HAVE_MATH_H
24644 #include <math.h>
24645 #endif
24647 int (*ptr)() = (int (*)())cacoshl;
24650 main ()
24652 return 0;
24655 _ACEOF
24656 if ac_fn_c_try_link "$LINENO"; then :
24657 gcc_cv_math_func_cacoshl=yes
24658 else
24659 gcc_cv_math_func_cacoshl=no
24661 rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24665 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24666 if test $gcc_cv_math_func_cacoshl = yes; then
24668 cat >>confdefs.h <<_ACEOF
24669 #define HAVE_CACOSHL 1
24670 _ACEOF
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24678 $as_echo_n "checking for cacosl... " >&6; }
24679 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 if test x$gcc_no_link = xyes; then
24683 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686 /* end confdefs.h. */
24688 #ifdef HAVE_COMPLEX_H
24689 #include <complex.h>
24690 #endif
24691 #ifdef HAVE_MATH_H
24692 #include <math.h>
24693 #endif
24695 int (*ptr)() = (int (*)())cacosl;
24698 main ()
24700 return 0;
24703 _ACEOF
24704 if ac_fn_c_try_link "$LINENO"; then :
24705 gcc_cv_math_func_cacosl=yes
24706 else
24707 gcc_cv_math_func_cacosl=no
24709 rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24713 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24714 if test $gcc_cv_math_func_cacosl = yes; then
24716 cat >>confdefs.h <<_ACEOF
24717 #define HAVE_CACOSL 1
24718 _ACEOF
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24726 $as_echo_n "checking for casin... " >&6; }
24727 if test "${gcc_cv_math_func_casin+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 if test x$gcc_no_link = xyes; then
24731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734 /* end confdefs.h. */
24736 #ifdef HAVE_COMPLEX_H
24737 #include <complex.h>
24738 #endif
24739 #ifdef HAVE_MATH_H
24740 #include <math.h>
24741 #endif
24743 int (*ptr)() = (int (*)())casin;
24746 main ()
24748 return 0;
24751 _ACEOF
24752 if ac_fn_c_try_link "$LINENO"; then :
24753 gcc_cv_math_func_casin=yes
24754 else
24755 gcc_cv_math_func_casin=no
24757 rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24761 $as_echo "$gcc_cv_math_func_casin" >&6; }
24762 if test $gcc_cv_math_func_casin = yes; then
24764 cat >>confdefs.h <<_ACEOF
24765 #define HAVE_CASIN 1
24766 _ACEOF
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24774 $as_echo_n "checking for casinf... " >&6; }
24775 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 if test x$gcc_no_link = xyes; then
24779 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h. */
24784 #ifdef HAVE_COMPLEX_H
24785 #include <complex.h>
24786 #endif
24787 #ifdef HAVE_MATH_H
24788 #include <math.h>
24789 #endif
24791 int (*ptr)() = (int (*)())casinf;
24794 main ()
24796 return 0;
24799 _ACEOF
24800 if ac_fn_c_try_link "$LINENO"; then :
24801 gcc_cv_math_func_casinf=yes
24802 else
24803 gcc_cv_math_func_casinf=no
24805 rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24809 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24810 if test $gcc_cv_math_func_casinf = yes; then
24812 cat >>confdefs.h <<_ACEOF
24813 #define HAVE_CASINF 1
24814 _ACEOF
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24822 $as_echo_n "checking for casinh... " >&6; }
24823 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24825 else
24826 if test x$gcc_no_link = xyes; then
24827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830 /* end confdefs.h. */
24832 #ifdef HAVE_COMPLEX_H
24833 #include <complex.h>
24834 #endif
24835 #ifdef HAVE_MATH_H
24836 #include <math.h>
24837 #endif
24839 int (*ptr)() = (int (*)())casinh;
24842 main ()
24844 return 0;
24847 _ACEOF
24848 if ac_fn_c_try_link "$LINENO"; then :
24849 gcc_cv_math_func_casinh=yes
24850 else
24851 gcc_cv_math_func_casinh=no
24853 rm -f core conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24857 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24858 if test $gcc_cv_math_func_casinh = yes; then
24860 cat >>confdefs.h <<_ACEOF
24861 #define HAVE_CASINH 1
24862 _ACEOF
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24870 $as_echo_n "checking for casinhf... " >&6; }
24871 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 if test x$gcc_no_link = xyes; then
24875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24878 /* end confdefs.h. */
24880 #ifdef HAVE_COMPLEX_H
24881 #include <complex.h>
24882 #endif
24883 #ifdef HAVE_MATH_H
24884 #include <math.h>
24885 #endif
24887 int (*ptr)() = (int (*)())casinhf;
24890 main ()
24892 return 0;
24895 _ACEOF
24896 if ac_fn_c_try_link "$LINENO"; then :
24897 gcc_cv_math_func_casinhf=yes
24898 else
24899 gcc_cv_math_func_casinhf=no
24901 rm -f core conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24905 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24906 if test $gcc_cv_math_func_casinhf = yes; then
24908 cat >>confdefs.h <<_ACEOF
24909 #define HAVE_CASINHF 1
24910 _ACEOF
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24918 $as_echo_n "checking for casinhl... " >&6; }
24919 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24920 $as_echo_n "(cached) " >&6
24921 else
24922 if test x$gcc_no_link = xyes; then
24923 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926 /* end confdefs.h. */
24928 #ifdef HAVE_COMPLEX_H
24929 #include <complex.h>
24930 #endif
24931 #ifdef HAVE_MATH_H
24932 #include <math.h>
24933 #endif
24935 int (*ptr)() = (int (*)())casinhl;
24938 main ()
24940 return 0;
24943 _ACEOF
24944 if ac_fn_c_try_link "$LINENO"; then :
24945 gcc_cv_math_func_casinhl=yes
24946 else
24947 gcc_cv_math_func_casinhl=no
24949 rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24953 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24954 if test $gcc_cv_math_func_casinhl = yes; then
24956 cat >>confdefs.h <<_ACEOF
24957 #define HAVE_CASINHL 1
24958 _ACEOF
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24966 $as_echo_n "checking for casinl... " >&6; }
24967 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 if test x$gcc_no_link = xyes; then
24971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974 /* end confdefs.h. */
24976 #ifdef HAVE_COMPLEX_H
24977 #include <complex.h>
24978 #endif
24979 #ifdef HAVE_MATH_H
24980 #include <math.h>
24981 #endif
24983 int (*ptr)() = (int (*)())casinl;
24986 main ()
24988 return 0;
24991 _ACEOF
24992 if ac_fn_c_try_link "$LINENO"; then :
24993 gcc_cv_math_func_casinl=yes
24994 else
24995 gcc_cv_math_func_casinl=no
24997 rm -f core conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25001 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25002 if test $gcc_cv_math_func_casinl = yes; then
25004 cat >>confdefs.h <<_ACEOF
25005 #define HAVE_CASINL 1
25006 _ACEOF
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25014 $as_echo_n "checking for catan... " >&6; }
25015 if test "${gcc_cv_math_func_catan+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 if test x$gcc_no_link = xyes; then
25019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h. */
25024 #ifdef HAVE_COMPLEX_H
25025 #include <complex.h>
25026 #endif
25027 #ifdef HAVE_MATH_H
25028 #include <math.h>
25029 #endif
25031 int (*ptr)() = (int (*)())catan;
25034 main ()
25036 return 0;
25039 _ACEOF
25040 if ac_fn_c_try_link "$LINENO"; then :
25041 gcc_cv_math_func_catan=yes
25042 else
25043 gcc_cv_math_func_catan=no
25045 rm -f core conftest.err conftest.$ac_objext \
25046 conftest$ac_exeext conftest.$ac_ext
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25049 $as_echo "$gcc_cv_math_func_catan" >&6; }
25050 if test $gcc_cv_math_func_catan = yes; then
25052 cat >>confdefs.h <<_ACEOF
25053 #define HAVE_CATAN 1
25054 _ACEOF
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25062 $as_echo_n "checking for catanf... " >&6; }
25063 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 if test x$gcc_no_link = xyes; then
25067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h. */
25072 #ifdef HAVE_COMPLEX_H
25073 #include <complex.h>
25074 #endif
25075 #ifdef HAVE_MATH_H
25076 #include <math.h>
25077 #endif
25079 int (*ptr)() = (int (*)())catanf;
25082 main ()
25084 return 0;
25087 _ACEOF
25088 if ac_fn_c_try_link "$LINENO"; then :
25089 gcc_cv_math_func_catanf=yes
25090 else
25091 gcc_cv_math_func_catanf=no
25093 rm -f core conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25097 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25098 if test $gcc_cv_math_func_catanf = yes; then
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_CATANF 1
25102 _ACEOF
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25110 $as_echo_n "checking for catanh... " >&6; }
25111 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 if test x$gcc_no_link = xyes; then
25115 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h. */
25120 #ifdef HAVE_COMPLEX_H
25121 #include <complex.h>
25122 #endif
25123 #ifdef HAVE_MATH_H
25124 #include <math.h>
25125 #endif
25127 int (*ptr)() = (int (*)())catanh;
25130 main ()
25132 return 0;
25135 _ACEOF
25136 if ac_fn_c_try_link "$LINENO"; then :
25137 gcc_cv_math_func_catanh=yes
25138 else
25139 gcc_cv_math_func_catanh=no
25141 rm -f core conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25145 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25146 if test $gcc_cv_math_func_catanh = yes; then
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_CATANH 1
25150 _ACEOF
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25158 $as_echo_n "checking for catanhf... " >&6; }
25159 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 if test x$gcc_no_link = xyes; then
25163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166 /* end confdefs.h. */
25168 #ifdef HAVE_COMPLEX_H
25169 #include <complex.h>
25170 #endif
25171 #ifdef HAVE_MATH_H
25172 #include <math.h>
25173 #endif
25175 int (*ptr)() = (int (*)())catanhf;
25178 main ()
25180 return 0;
25183 _ACEOF
25184 if ac_fn_c_try_link "$LINENO"; then :
25185 gcc_cv_math_func_catanhf=yes
25186 else
25187 gcc_cv_math_func_catanhf=no
25189 rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25193 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25194 if test $gcc_cv_math_func_catanhf = yes; then
25196 cat >>confdefs.h <<_ACEOF
25197 #define HAVE_CATANHF 1
25198 _ACEOF
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25206 $as_echo_n "checking for catanhl... " >&6; }
25207 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 if test x$gcc_no_link = xyes; then
25211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25214 /* end confdefs.h. */
25216 #ifdef HAVE_COMPLEX_H
25217 #include <complex.h>
25218 #endif
25219 #ifdef HAVE_MATH_H
25220 #include <math.h>
25221 #endif
25223 int (*ptr)() = (int (*)())catanhl;
25226 main ()
25228 return 0;
25231 _ACEOF
25232 if ac_fn_c_try_link "$LINENO"; then :
25233 gcc_cv_math_func_catanhl=yes
25234 else
25235 gcc_cv_math_func_catanhl=no
25237 rm -f core conftest.err conftest.$ac_objext \
25238 conftest$ac_exeext conftest.$ac_ext
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25241 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25242 if test $gcc_cv_math_func_catanhl = yes; then
25244 cat >>confdefs.h <<_ACEOF
25245 #define HAVE_CATANHL 1
25246 _ACEOF
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25254 $as_echo_n "checking for catanl... " >&6; }
25255 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 if test x$gcc_no_link = xyes; then
25259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h. */
25264 #ifdef HAVE_COMPLEX_H
25265 #include <complex.h>
25266 #endif
25267 #ifdef HAVE_MATH_H
25268 #include <math.h>
25269 #endif
25271 int (*ptr)() = (int (*)())catanl;
25274 main ()
25276 return 0;
25279 _ACEOF
25280 if ac_fn_c_try_link "$LINENO"; then :
25281 gcc_cv_math_func_catanl=yes
25282 else
25283 gcc_cv_math_func_catanl=no
25285 rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25289 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25290 if test $gcc_cv_math_func_catanl = yes; then
25292 cat >>confdefs.h <<_ACEOF
25293 #define HAVE_CATANL 1
25294 _ACEOF
25299 # On AIX, clog is present in libm as __clog
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25301 $as_echo_n "checking for __clog in -lm... " >&6; }
25302 if test "${ac_cv_lib_m___clog+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25304 else
25305 ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lm $LIBS"
25307 if test x$gcc_no_link = xyes; then
25308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25311 /* end confdefs.h. */
25313 /* Override any GCC internal prototype to avoid an error.
25314 Use char because int might match the return type of a GCC
25315 builtin and then its argument prototype would still apply. */
25316 #ifdef __cplusplus
25317 extern "C"
25318 #endif
25319 char __clog ();
25321 main ()
25323 return __clog ();
25325 return 0;
25327 _ACEOF
25328 if ac_fn_c_try_link "$LINENO"; then :
25329 ac_cv_lib_m___clog=yes
25330 else
25331 ac_cv_lib_m___clog=no
25333 rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
25335 LIBS=$ac_check_lib_save_LIBS
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25338 $as_echo "$ac_cv_lib_m___clog" >&6; }
25339 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25341 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25346 # Check whether the system has a working stat()
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25349 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25350 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25354 if test "$cross_compiling" = yes; then :
25356 case "${target}" in
25357 *mingw*) libgfor_cv_have_working_stat=no ;;
25358 *) libgfor_cv_have_working_stat=yes;;
25359 esac
25360 else
25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362 /* end confdefs.h. */
25364 #include <stdio.h>
25365 #include <sys/types.h>
25366 #include <sys/stat.h>
25367 #include <unistd.h>
25369 int main ()
25371 FILE *f, *g;
25372 struct stat st1, st2;
25374 f = fopen ("foo", "w");
25375 g = fopen ("bar", "w");
25376 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25377 return 1;
25378 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25379 return 1;
25380 fclose(f);
25381 fclose(g);
25382 return 0;
25384 _ACEOF
25385 if ac_fn_c_try_run "$LINENO"; then :
25386 libgfor_cv_have_working_stat=yes
25387 else
25388 libgfor_cv_have_working_stat=no
25390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25391 conftest.$ac_objext conftest.beam conftest.$ac_ext
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25396 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25397 if test x"$libgfor_cv_have_working_stat" = xyes; then
25399 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25403 # Check whether __mingw_snprintf() is present
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25406 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25407 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25411 if test x$gcc_no_link = xyes; then
25412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415 /* end confdefs.h. */
25417 #include <stdio.h>
25418 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25421 main ()
25424 __mingw_snprintf (NULL, 0, "%d\n", 1);
25427 return 0;
25429 _ACEOF
25430 if ac_fn_c_try_link "$LINENO"; then :
25431 eval "libgfor_cv_have_mingw_snprintf=yes"
25432 else
25433 eval "libgfor_cv_have_mingw_snprintf=no"
25435 rm -f core conftest.err conftest.$ac_objext \
25436 conftest$ac_exeext conftest.$ac_ext
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25440 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25441 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25443 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25448 # Check whether libquadmath should be used
25449 # Check whether --enable-libquadmath-support was given.
25450 if test "${enable_libquadmath_support+set}" = set; then :
25451 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25452 else
25453 ENABLE_LIBQUADMATH_SUPPORT=yes
25456 enable_libquadmath_support=
25457 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25458 enable_libquadmath_support=no
25461 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25463 LIBQUADSPEC=
25465 if test "x$enable_libquadmath_support" != xno; then
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25468 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25469 if test "${libgfor_cv_have_float128+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25473 if test x$gcc_no_link = xyes; then
25474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25475 /* end confdefs.h. */
25477 typedef _Complex float __attribute__((mode(TC))) __complex128;
25479 __float128 foo (__float128 x)
25482 __complex128 z1, z2;
25484 z1 = x;
25485 z2 = x / 7.Q;
25486 z2 /= z1;
25488 return (__float128) z2;
25491 __float128 bar (__float128 x)
25493 return x * __builtin_huge_valq ();
25497 main ()
25500 foo (1.2Q);
25501 bar (1.2Q);
25504 return 0;
25506 _ACEOF
25507 if ac_fn_c_try_compile "$LINENO"; then :
25509 libgfor_cv_have_float128=yes
25511 else
25513 libgfor_cv_have_float128=no
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517 else
25518 if test x$gcc_no_link = xyes; then
25519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25524 typedef _Complex float __attribute__((mode(TC))) __complex128;
25526 __float128 foo (__float128 x)
25529 __complex128 z1, z2;
25531 z1 = x;
25532 z2 = x / 7.Q;
25533 z2 /= z1;
25535 return (__float128) z2;
25538 __float128 bar (__float128 x)
25540 return x * __builtin_huge_valq ();
25544 main ()
25547 foo (1.2Q);
25548 bar (1.2Q);
25551 return 0;
25553 _ACEOF
25554 if ac_fn_c_try_link "$LINENO"; then :
25556 libgfor_cv_have_float128=yes
25558 else
25560 libgfor_cv_have_float128=no
25563 rm -f core conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25568 $as_echo "$libgfor_cv_have_float128" >&6; }
25570 if test "x$libgfor_cv_have_float128" = xyes; then
25572 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25575 ac_xsave_c_werror_flag=$ac_c_werror_flag
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25577 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25578 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25582 # Test for native Solaris options first.
25583 # No whitespace after -z to pass it through -Wl.
25584 libgfor_cv_as_needed_option="-zignore"
25585 libgfor_cv_no_as_needed_option="-zrecord"
25586 save_LDFLAGS="$LDFLAGS"
25587 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25588 libgfor_cv_have_as_needed=no
25590 ac_c_werror_flag=yes
25591 if test x$gcc_no_link = xyes; then
25592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h. */
25598 main ()
25602 return 0;
25604 _ACEOF
25605 if ac_fn_c_try_link "$LINENO"; then :
25606 libgfor_cv_have_as_needed=yes
25607 else
25608 libgfor_cv_have_as_needed=no
25610 rm -f core conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
25612 LDFLAGS="$save_LDFLAGS"
25613 if test "x$libgfor_cv_have_as_needed" = xno; then
25614 libgfor_cv_as_needed_option="--as-needed"
25615 libgfor_cv_no_as_needed_option="--no-as-needed"
25616 save_LDFLAGS="$LDFLAGS"
25617 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25618 libgfor_cv_have_as_needed=no
25620 ac_c_werror_flag=yes
25621 if test x$gcc_no_link = xyes; then
25622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25628 main ()
25632 return 0;
25634 _ACEOF
25635 if ac_fn_c_try_link "$LINENO"; then :
25636 libgfor_cv_have_as_needed=yes
25637 else
25638 libgfor_cv_have_as_needed=no
25640 rm -f core conftest.err conftest.$ac_objext \
25641 conftest$ac_exeext conftest.$ac_ext
25642 LDFLAGS="$save_LDFLAGS"
25644 ac_c_werror_flag=$ac_xsave_c_werror_flag
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25648 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25650 if test "x$libgfor_cv_have_as_needed" = xyes; then
25651 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25652 else
25653 LIBQUADSPEC="-lquadmath"
25655 if test -f ../libquadmath/libquadmath.la; then
25656 LIBQUADLIB=../libquadmath/libquadmath.la
25657 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25658 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25659 else
25660 LIBQUADLIB="-lquadmath"
25661 LIBQUADLIB_DEP=
25662 LIBQUADINCLUDE=
25665 else
25666 # for --disable-quadmath
25667 LIBQUADLIB=
25668 LIBQUADLIB_DEP=
25669 LIBQUADINCLUDE=
25677 if test "x$libgfor_cv_have_float128" = xyes; then
25678 LIBGFOR_BUILD_QUAD_TRUE=
25679 LIBGFOR_BUILD_QUAD_FALSE='#'
25680 else
25681 LIBGFOR_BUILD_QUAD_TRUE='#'
25682 LIBGFOR_BUILD_QUAD_FALSE=
25687 # Check for GNU libc feenableexcept
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25689 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25690 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25693 ac_check_lib_save_LIBS=$LIBS
25694 LIBS="-lm $LIBS"
25695 if test x$gcc_no_link = xyes; then
25696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699 /* end confdefs.h. */
25701 /* Override any GCC internal prototype to avoid an error.
25702 Use char because int might match the return type of a GCC
25703 builtin and then its argument prototype would still apply. */
25704 #ifdef __cplusplus
25705 extern "C"
25706 #endif
25707 char feenableexcept ();
25709 main ()
25711 return feenableexcept ();
25713 return 0;
25715 _ACEOF
25716 if ac_fn_c_try_link "$LINENO"; then :
25717 ac_cv_lib_m_feenableexcept=yes
25718 else
25719 ac_cv_lib_m_feenableexcept=no
25721 rm -f core conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
25723 LIBS=$ac_check_lib_save_LIBS
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25726 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25727 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25728 have_feenableexcept=yes
25729 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25734 # At least for glibc, clock_gettime is in librt. But don't
25735 # pull that in if it still doesn't give us the function we want. This
25736 # test is copied from libgomp, and modified to not link in -lrt as
25737 # libgfortran calls clock_gettime via a weak reference if it's found
25738 # in librt.
25739 if test "$ac_cv_func_clock_gettime" = no; then
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25741 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25742 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lrt $LIBS"
25747 if test x$gcc_no_link = xyes; then
25748 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25751 /* end confdefs.h. */
25753 /* Override any GCC internal prototype to avoid an error.
25754 Use char because int might match the return type of a GCC
25755 builtin and then its argument prototype would still apply. */
25756 #ifdef __cplusplus
25757 extern "C"
25758 #endif
25759 char clock_gettime ();
25761 main ()
25763 return clock_gettime ();
25765 return 0;
25767 _ACEOF
25768 if ac_fn_c_try_link "$LINENO"; then :
25769 ac_cv_lib_rt_clock_gettime=yes
25770 else
25771 ac_cv_lib_rt_clock_gettime=no
25773 rm -f core conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext conftest.$ac_ext
25775 LIBS=$ac_check_lib_save_LIBS
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25778 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25779 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25781 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25787 # Check for SysV fpsetmask
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25790 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25791 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25795 if test x$gcc_no_link = xyes; then
25796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25799 /* end confdefs.h. */
25801 #if HAVE_FLOATINGPOINT_H
25802 # include <floatingpoint.h>
25803 #endif /* HAVE_FLOATINGPOINT_H */
25804 #if HAVE_IEEEFP_H
25805 # include <ieeefp.h>
25806 #endif /* HAVE_IEEEFP_H */
25808 main ()
25810 fpsetmask(0);
25812 return 0;
25814 _ACEOF
25815 if ac_fn_c_try_link "$LINENO"; then :
25816 eval "libgfor_cv_have_fpsetmask=yes"
25817 else
25818 eval "libgfor_cv_have_fpsetmask=no"
25820 rm -f core conftest.err conftest.$ac_objext \
25821 conftest$ac_exeext conftest.$ac_ext
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25825 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25826 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25827 have_fpsetmask=yes
25829 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25833 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25834 #ifdef HAVE_IEEEFP_H
25835 #include <ieeefp.h>
25836 #endif
25837 #include <math.h>
25840 if test "x$ac_cv_type_fp_except" = x""yes; then :
25842 cat >>confdefs.h <<_ACEOF
25843 #define HAVE_FP_EXCEPT 1
25844 _ACEOF
25848 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25849 #ifdef HAVE_IEEEFP_H
25850 #include <ieeefp.h>
25851 #endif
25852 #include <math.h>
25855 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25857 cat >>confdefs.h <<_ACEOF
25858 #define HAVE_FP_EXCEPT_T 1
25859 _ACEOF
25864 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25865 #ifdef HAVE_IEEEFP_H
25866 #include <ieeefp.h>
25867 #endif
25868 #include <math.h>
25871 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25873 cat >>confdefs.h <<_ACEOF
25874 #define HAVE_FP_RND 1
25875 _ACEOF
25879 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25880 #ifdef HAVE_IEEEFP_H
25881 #include <ieeefp.h>
25882 #endif
25883 #include <math.h>
25886 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25888 cat >>confdefs.h <<_ACEOF
25889 #define HAVE_FP_RND_T 1
25890 _ACEOF
25896 # Check whether we have fpsetsticky or fpresetsticky
25897 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25898 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25899 have_fpsetsticky=yes
25900 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25904 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25905 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25906 have_fpresetsticky=yes
25907 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25912 # Check for AIX fp_trap and fp_enable
25913 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25914 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25915 have_fp_trap=yes
25916 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25920 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25921 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25922 have_fp_enable=yes
25923 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25928 # Check if _SOFT_FLOAT is defined
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25931 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25932 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h. */
25939 main ()
25942 #ifdef _SOFT_FLOAT
25943 int ok;
25944 #else
25945 choke me
25946 #endif
25949 return 0;
25951 _ACEOF
25952 if ac_fn_c_try_compile "$LINENO"; then :
25953 ac_cv_defined__SOFT_FLOAT=yes
25954 else
25955 ac_cv_defined__SOFT_FLOAT=no
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25960 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25961 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25962 have_soft_float=yes
25965 # Runs configure.host to set up necessary host-dependent shell variables.
25966 # We then display a message about it, and propagate them through the
25967 # build chain.
25968 . ${srcdir}/configure.host
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25970 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25972 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25973 FPU_HOST_HEADER=config/${fpu_host}.h
25976 # Whether we will build the IEEE modules
25977 if test x${ieee_support} = xyes; then
25978 IEEE_SUPPORT_TRUE=
25979 IEEE_SUPPORT_FALSE='#'
25980 else
25981 IEEE_SUPPORT_TRUE='#'
25982 IEEE_SUPPORT_FALSE=
25987 # Some targets require additional compiler options for IEEE compatibility.
25988 IEEE_FLAGS="${ieee_flags}"
25992 # Check for POSIX getpwuid_r
25994 # There are two versions of getpwuid_r, the POSIX one with 5
25995 # arguments, and another one with 4 arguments used by at least HP-UX
25996 # 10.2.
25997 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25999 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26000 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26001 $as_echo_n "(cached) " >&6
26002 else
26004 if test x$gcc_no_link = xyes; then
26005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26008 /* end confdefs.h. */
26010 #include <stdio.h>
26011 #include <sys/types.h>
26012 #include <pwd.h>
26014 main ()
26017 getpwuid_r(0, NULL, NULL, 0, NULL);
26020 return 0;
26022 _ACEOF
26023 if ac_fn_c_try_link "$LINENO"; then :
26024 libgfor_cv_posix_getpwuid_r="yes"
26025 else
26026 libgfor_cv_posix_getpwuid_r="no"
26028 rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26032 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26034 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26036 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26041 # Check out attribute support.
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26044 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26045 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26046 $as_echo_n "(cached) " >&6
26047 else
26049 save_CFLAGS="$CFLAGS"
26050 CFLAGS="$CFLAGS -Werror"
26051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26052 /* end confdefs.h. */
26053 void __attribute__((visibility("hidden"))) foo(void) { }
26055 main ()
26059 return 0;
26061 _ACEOF
26062 if ac_fn_c_try_compile "$LINENO"; then :
26063 libgfor_cv_have_attribute_visibility=yes
26064 else
26065 libgfor_cv_have_attribute_visibility=no
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068 CFLAGS="$save_CFLAGS"
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26071 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26072 if test $libgfor_cv_have_attribute_visibility = yes; then
26074 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26079 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26080 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26081 $as_echo_n "(cached) " >&6
26082 else
26084 if test x$gcc_no_link = xyes; then
26085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h. */
26090 void foo(void) { }
26091 extern void bar(void) __attribute__((alias("foo")));
26093 main ()
26095 bar();
26097 return 0;
26099 _ACEOF
26100 if ac_fn_c_try_link "$LINENO"; then :
26101 libgfor_cv_have_attribute_alias=yes
26102 else
26103 libgfor_cv_have_attribute_alias=no
26105 rm -f core conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26109 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26110 if test $libgfor_cv_have_attribute_alias = yes; then
26112 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26116 # Check out sync builtins support.
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26119 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26120 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26124 if test x$gcc_no_link = xyes; then
26125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128 /* end confdefs.h. */
26129 int foovar = 0;
26131 main ()
26134 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26135 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26137 return 0;
26139 _ACEOF
26140 if ac_fn_c_try_link "$LINENO"; then :
26141 libgfor_cv_have_sync_fetch_and_add=yes
26142 else
26143 libgfor_cv_have_sync_fetch_and_add=no
26145 rm -f core conftest.err conftest.$ac_objext \
26146 conftest$ac_exeext conftest.$ac_ext
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26149 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26150 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26152 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26156 # Check out #pragma weak.
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26159 $as_echo_n "checking whether pragma weak works... " >&6; }
26160 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26164 gfor_save_CFLAGS="$CFLAGS"
26165 CFLAGS="$CFLAGS -Wunknown-pragmas"
26166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26167 /* end confdefs.h. */
26169 void foo (void);
26170 #pragma weak foo
26173 main ()
26175 if (foo) foo ();
26177 return 0;
26179 _ACEOF
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181 libgfor_cv_have_pragma_weak=yes
26182 else
26183 libgfor_cv_have_pragma_weak=no
26185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26188 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26189 if test $libgfor_cv_have_pragma_weak = yes; then
26191 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26194 case "$host" in
26195 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26197 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26200 esac
26202 # Check out weakref support.
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26205 $as_echo_n "checking whether the target supports weakref... " >&6; }
26206 if test "${libgfor_cv_have_weakref+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26210 save_CFLAGS="$CFLAGS"
26211 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26212 if test x$gcc_no_link = xyes; then
26213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216 /* end confdefs.h. */
26218 static int mytoto (int) __attribute__((__weakref__("toto")));
26221 main ()
26223 return (mytoto != 0);
26225 return 0;
26227 _ACEOF
26228 if ac_fn_c_try_link "$LINENO"; then :
26229 libgfor_cv_have_weakref=yes
26230 else
26231 libgfor_cv_have_weakref=no
26233 rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26235 CFLAGS="$save_CFLAGS"
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26238 $as_echo "$libgfor_cv_have_weakref" >&6; }
26239 if test $libgfor_cv_have_weakref = yes; then
26241 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26245 # Various other checks on target
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26248 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26249 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26253 if test "$cross_compiling" = yes; then :
26255 case "${target}" in
26256 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26257 *) libgfor_cv_have_unlink_open_file=yes;;
26258 esac
26259 else
26260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h. */
26263 #include <errno.h>
26264 #include <fcntl.h>
26265 #include <unistd.h>
26266 #include <sys/stat.h>
26268 int main ()
26270 int fd;
26272 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26273 if (fd <= 0)
26274 return 0;
26275 if (unlink ("testfile") == -1)
26276 return 1;
26277 write (fd, "This is a test\n", 15);
26278 close (fd);
26280 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26281 return 0;
26282 else
26283 return 1;
26285 _ACEOF
26286 if ac_fn_c_try_run "$LINENO"; then :
26287 libgfor_cv_have_unlink_open_file=yes
26288 else
26289 libgfor_cv_have_unlink_open_file=no
26291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26292 conftest.$ac_objext conftest.beam conftest.$ac_ext
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26297 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26298 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26300 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26304 # Check whether line terminator is LF or CRLF
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26307 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26308 if test "${libgfor_cv_have_crlf+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26312 if test "$cross_compiling" = yes; then :
26314 case "${target}" in
26315 *mingw*) libgfor_cv_have_crlf=yes ;;
26316 *) libgfor_cv_have_crlf=no;;
26317 esac
26318 else
26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320 /* end confdefs.h. */
26322 /* This test program should exit with status 0 if system uses a CRLF as
26323 line terminator, and status 1 otherwise.
26324 Since it is used to check for mingw systems, and should return 0 in any
26325 other case, in case of a failure we will not use CRLF. */
26326 #include <sys/stat.h>
26327 #include <stdlib.h>
26328 #include <fcntl.h>
26329 #include <stdio.h>
26331 int main ()
26333 #ifndef O_BINARY
26334 exit(1);
26335 #else
26336 int fd, bytes;
26337 char buff[5];
26339 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26340 if (fd < 0)
26341 exit(1);
26342 if (write (fd, "\n", 1) < 0)
26343 perror ("write");
26345 close (fd);
26347 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26348 exit(1);
26349 bytes = read (fd, buff, 5);
26350 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26351 exit(0);
26352 else
26353 exit(1);
26354 #endif
26356 _ACEOF
26357 if ac_fn_c_try_run "$LINENO"; then :
26358 libgfor_cv_have_crlf=yes
26359 else
26360 libgfor_cv_have_crlf=no
26362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26363 conftest.$ac_objext conftest.beam conftest.$ac_ext
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26368 $as_echo "$libgfor_cv_have_crlf" >&6; }
26369 if test x"$libgfor_cv_have_crlf" = xyes; then
26371 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26375 # Check whether we support AVX extensions
26377 ac_save_CFLAGS="$CFLAGS"
26378 CFLAGS="-O2 -mavx"
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26382 void _mm256_zeroall (void)
26384 __builtin_ia32_vzeroall ();
26387 main ()
26391 return 0;
26393 _ACEOF
26394 if ac_fn_c_try_compile "$LINENO"; then :
26396 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 CFLAGS="$ac_save_CFLAGS"
26403 # Check wether we support AVX2 extensions
26405 ac_save_CFLAGS="$CFLAGS"
26406 CFLAGS="-O2 -mavx2"
26407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26408 /* end confdefs.h. */
26410 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26411 __v4di
26412 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26414 return __builtin_ia32_andnotsi256 (__X, __Y);
26417 main ()
26421 return 0;
26423 _ACEOF
26424 if ac_fn_c_try_compile "$LINENO"; then :
26426 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 CFLAGS="$ac_save_CFLAGS"
26433 # Check wether we support AVX512f extensions
26435 ac_save_CFLAGS="$CFLAGS"
26436 CFLAGS="-O2 -mavx512f"
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26440 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26441 __m512d _mm512_add (__m512d a)
26443 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26444 /* For -m64/-mx32 also verify that code will work even if
26445 the target uses call saved zmm16+ and needs to emit
26446 unwind info for them (e.g. on mingw). See PR79127. */
26447 #ifdef __x86_64__
26448 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26449 #endif
26450 return b;
26453 main ()
26457 return 0;
26459 _ACEOF
26460 if ac_fn_c_try_compile "$LINENO"; then :
26462 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26466 CFLAGS="$ac_save_CFLAGS"
26469 # Check for FMA3 extensions
26471 ac_save_CFLAGS="$CFLAGS"
26472 CFLAGS="-O2 -mfma -mno-fma4"
26473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474 /* end confdefs.h. */
26476 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26477 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26478 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26480 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26481 (__v4sf)__B,
26482 (__v4sf)__C);
26485 main ()
26489 return 0;
26491 _ACEOF
26492 if ac_fn_c_try_compile "$LINENO"; then :
26494 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498 CFLAGS="$ac_save_CFLAGS"
26501 # Check for FMA4 extensions
26503 ac_save_CFLAGS="$CFLAGS"
26504 CFLAGS="-O2 -mfma4 -mno-fma"
26505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26506 /* end confdefs.h. */
26508 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26509 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26510 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26512 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26513 (__v4sf)__B,
26514 (__v4sf)__C);
26517 main ()
26521 return 0;
26523 _ACEOF
26524 if ac_fn_c_try_compile "$LINENO"; then :
26526 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 CFLAGS="$ac_save_CFLAGS"
26533 # Check if AVX128 works
26535 ac_save_CFLAGS="$CFLAGS"
26536 CFLAGS="-O2 -mavx -mprefer-avx128"
26537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26538 /* end confdefs.h. */
26540 void foo()
26544 main ()
26548 return 0;
26550 _ACEOF
26551 if ac_fn_c_try_compile "$LINENO"; then :
26553 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26555 if true; then
26556 HAVE_AVX128_TRUE=
26557 HAVE_AVX128_FALSE='#'
26558 else
26559 HAVE_AVX128_TRUE='#'
26560 HAVE_AVX128_FALSE=
26563 else
26564 if false; then
26565 HAVE_AVX128_TRUE=
26566 HAVE_AVX128_FALSE='#'
26567 else
26568 HAVE_AVX128_TRUE='#'
26569 HAVE_AVX128_FALSE=
26573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574 CFLAGS="$ac_save_CFLAGS"
26577 # Determine what GCC version number to use in filesystem paths.
26579 get_gcc_base_ver="cat"
26581 # Check whether --with-gcc-major-version-only was given.
26582 if test "${with_gcc_major_version_only+set}" = set; then :
26583 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26584 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
26592 cat >confcache <<\_ACEOF
26593 # This file is a shell script that caches the results of configure
26594 # tests run on this system so they can be shared between configure
26595 # scripts and configure runs, see configure's option --config-cache.
26596 # It is not useful on other systems. If it contains results you don't
26597 # want to keep, you may remove or edit it.
26599 # config.status only pays attention to the cache file if you give it
26600 # the --recheck option to rerun configure.
26602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26604 # following values.
26606 _ACEOF
26608 # The following way of writing the cache mishandles newlines in values,
26609 # but we know of no workaround that is simple, portable, and efficient.
26610 # So, we kill variables containing newlines.
26611 # Ultrix sh set writes to stderr and can't be redirected directly,
26612 # and sets the high bit in the cache file unless we assign to the vars.
26614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26615 eval ac_val=\$$ac_var
26616 case $ac_val in #(
26617 *${as_nl}*)
26618 case $ac_var in #(
26619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26621 esac
26622 case $ac_var in #(
26623 _ | IFS | as_nl) ;; #(
26624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26625 *) { eval $ac_var=; unset $ac_var;} ;;
26626 esac ;;
26627 esac
26628 done
26630 (set) 2>&1 |
26631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26632 *${as_nl}ac_space=\ *)
26633 # `set' does not quote correctly, so add quotes: double-quote
26634 # substitution turns \\\\ into \\, and sed turns \\ into \.
26635 sed -n \
26636 "s/'/'\\\\''/g;
26637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26638 ;; #(
26640 # `set' quotes correctly as required by POSIX, so do not add quotes.
26641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26643 esac |
26644 sort
26646 sed '
26647 /^ac_cv_env_/b end
26648 t clear
26649 :clear
26650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26651 t end
26652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26653 :end' >>confcache
26654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26655 if test -w "$cache_file"; then
26656 test "x$cache_file" != "x/dev/null" &&
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26658 $as_echo "$as_me: updating cache $cache_file" >&6;}
26659 cat confcache >$cache_file
26660 else
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26665 rm -f confcache
26667 if test ${multilib} = yes; then
26668 multilib_arg="--enable-multilib"
26669 else
26670 multilib_arg=
26673 # Write our Makefile and spec file.
26674 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26676 cat >confcache <<\_ACEOF
26677 # This file is a shell script that caches the results of configure
26678 # tests run on this system so they can be shared between configure
26679 # scripts and configure runs, see configure's option --config-cache.
26680 # It is not useful on other systems. If it contains results you don't
26681 # want to keep, you may remove or edit it.
26683 # config.status only pays attention to the cache file if you give it
26684 # the --recheck option to rerun configure.
26686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26688 # following values.
26690 _ACEOF
26692 # The following way of writing the cache mishandles newlines in values,
26693 # but we know of no workaround that is simple, portable, and efficient.
26694 # So, we kill variables containing newlines.
26695 # Ultrix sh set writes to stderr and can't be redirected directly,
26696 # and sets the high bit in the cache file unless we assign to the vars.
26698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26699 eval ac_val=\$$ac_var
26700 case $ac_val in #(
26701 *${as_nl}*)
26702 case $ac_var in #(
26703 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26705 esac
26706 case $ac_var in #(
26707 _ | IFS | as_nl) ;; #(
26708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26709 *) { eval $ac_var=; unset $ac_var;} ;;
26710 esac ;;
26711 esac
26712 done
26714 (set) 2>&1 |
26715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26716 *${as_nl}ac_space=\ *)
26717 # `set' does not quote correctly, so add quotes: double-quote
26718 # substitution turns \\\\ into \\, and sed turns \\ into \.
26719 sed -n \
26720 "s/'/'\\\\''/g;
26721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26722 ;; #(
26724 # `set' quotes correctly as required by POSIX, so do not add quotes.
26725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26727 esac |
26728 sort
26730 sed '
26731 /^ac_cv_env_/b end
26732 t clear
26733 :clear
26734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26735 t end
26736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26737 :end' >>confcache
26738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26739 if test -w "$cache_file"; then
26740 test "x$cache_file" != "x/dev/null" &&
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26742 $as_echo "$as_me: updating cache $cache_file" >&6;}
26743 cat confcache >$cache_file
26744 else
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26749 rm -f confcache
26751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26752 # Let make expand exec_prefix.
26753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26755 DEFS=-DHAVE_CONFIG_H
26757 ac_libobjs=
26758 ac_ltlibobjs=
26759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26760 # 1. Remove the extension, and $U if already installed.
26761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26762 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26764 # will be set to the directory where LIBOBJS objects are built.
26765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26767 done
26768 LIBOBJS=$ac_libobjs
26770 LTLIBOBJS=$ac_ltlibobjs
26773 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26774 as_fn_error "conditional \"onestep\" was never defined.
26775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26777 if test -n "$EXEEXT"; then
26778 am__EXEEXT_TRUE=
26779 am__EXEEXT_FALSE='#'
26780 else
26781 am__EXEEXT_TRUE='#'
26782 am__EXEEXT_FALSE=
26785 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26786 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26789 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26790 as_fn_error "conditional \"AMDEP\" was never defined.
26791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26794 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26798 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26801 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26802 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26805 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26806 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26809 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26810 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26813 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26814 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26817 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26818 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26821 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26822 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26825 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26826 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26829 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26830 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26833 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26834 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26838 : ${CONFIG_STATUS=./config.status}
26839 ac_write_fail=0
26840 ac_clean_files_save=$ac_clean_files
26841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26843 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26844 as_write_fail=0
26845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26846 #! $SHELL
26847 # Generated by $as_me.
26848 # Run this file to recreate the current configuration.
26849 # Compiler output produced by configure, useful for debugging
26850 # configure, is in config.log if it exists.
26852 debug=false
26853 ac_cs_recheck=false
26854 ac_cs_silent=false
26856 SHELL=\${CONFIG_SHELL-$SHELL}
26857 export SHELL
26858 _ASEOF
26859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26860 ## -------------------- ##
26861 ## M4sh Initialization. ##
26862 ## -------------------- ##
26864 # Be more Bourne compatible
26865 DUALCASE=1; export DUALCASE # for MKS sh
26866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26867 emulate sh
26868 NULLCMD=:
26869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26870 # is contrary to our usage. Disable this feature.
26871 alias -g '${1+"$@"}'='"$@"'
26872 setopt NO_GLOB_SUBST
26873 else
26874 case `(set -o) 2>/dev/null` in #(
26875 *posix*) :
26876 set -o posix ;; #(
26877 *) :
26879 esac
26883 as_nl='
26885 export as_nl
26886 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26887 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26890 # Prefer a ksh shell builtin over an external printf program on Solaris,
26891 # but without wasting forks for bash or zsh.
26892 if test -z "$BASH_VERSION$ZSH_VERSION" \
26893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26894 as_echo='print -r --'
26895 as_echo_n='print -rn --'
26896 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26897 as_echo='printf %s\n'
26898 as_echo_n='printf %s'
26899 else
26900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26902 as_echo_n='/usr/ucb/echo -n'
26903 else
26904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26905 as_echo_n_body='eval
26906 arg=$1;
26907 case $arg in #(
26908 *"$as_nl"*)
26909 expr "X$arg" : "X\\(.*\\)$as_nl";
26910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26911 esac;
26912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26914 export as_echo_n_body
26915 as_echo_n='sh -c $as_echo_n_body as_echo'
26917 export as_echo_body
26918 as_echo='sh -c $as_echo_body as_echo'
26921 # The user is always right.
26922 if test "${PATH_SEPARATOR+set}" != set; then
26923 PATH_SEPARATOR=:
26924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26926 PATH_SEPARATOR=';'
26931 # IFS
26932 # We need space, tab and new line, in precisely that order. Quoting is
26933 # there to prevent editors from complaining about space-tab.
26934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26935 # splitting by setting IFS to empty value.)
26936 IFS=" "" $as_nl"
26938 # Find who we are. Look in the path if we contain no directory separator.
26939 case $0 in #((
26940 *[\\/]* ) as_myself=$0 ;;
26941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942 for as_dir in $PATH
26944 IFS=$as_save_IFS
26945 test -z "$as_dir" && as_dir=.
26946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26947 done
26948 IFS=$as_save_IFS
26951 esac
26952 # We did not find ourselves, most probably we were run as `sh COMMAND'
26953 # in which case we are not to be found in the path.
26954 if test "x$as_myself" = x; then
26955 as_myself=$0
26957 if test ! -f "$as_myself"; then
26958 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26959 exit 1
26962 # Unset variables that we do not need and which cause bugs (e.g. in
26963 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26964 # suppresses any "Segmentation fault" message there. '((' could
26965 # trigger a bug in pdksh 5.2.14.
26966 for as_var in BASH_ENV ENV MAIL MAILPATH
26967 do eval test x\${$as_var+set} = xset \
26968 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26969 done
26970 PS1='$ '
26971 PS2='> '
26972 PS4='+ '
26974 # NLS nuisances.
26975 LC_ALL=C
26976 export LC_ALL
26977 LANGUAGE=C
26978 export LANGUAGE
26980 # CDPATH.
26981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26984 # as_fn_error ERROR [LINENO LOG_FD]
26985 # ---------------------------------
26986 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26987 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26988 # script with status $?, using 1 if that was 0.
26989 as_fn_error ()
26991 as_status=$?; test $as_status -eq 0 && as_status=1
26992 if test "$3"; then
26993 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26994 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26996 $as_echo "$as_me: error: $1" >&2
26997 as_fn_exit $as_status
26998 } # as_fn_error
27001 # as_fn_set_status STATUS
27002 # -----------------------
27003 # Set $? to STATUS, without forking.
27004 as_fn_set_status ()
27006 return $1
27007 } # as_fn_set_status
27009 # as_fn_exit STATUS
27010 # -----------------
27011 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27012 as_fn_exit ()
27014 set +e
27015 as_fn_set_status $1
27016 exit $1
27017 } # as_fn_exit
27019 # as_fn_unset VAR
27020 # ---------------
27021 # Portably unset VAR.
27022 as_fn_unset ()
27024 { eval $1=; unset $1;}
27026 as_unset=as_fn_unset
27027 # as_fn_append VAR VALUE
27028 # ----------------------
27029 # Append the text in VALUE to the end of the definition contained in VAR. Take
27030 # advantage of any shell optimizations that allow amortized linear growth over
27031 # repeated appends, instead of the typical quadratic growth present in naive
27032 # implementations.
27033 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27034 eval 'as_fn_append ()
27036 eval $1+=\$2
27038 else
27039 as_fn_append ()
27041 eval $1=\$$1\$2
27043 fi # as_fn_append
27045 # as_fn_arith ARG...
27046 # ------------------
27047 # Perform arithmetic evaluation on the ARGs, and store the result in the
27048 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27049 # must be portable across $(()) and expr.
27050 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27051 eval 'as_fn_arith ()
27053 as_val=$(( $* ))
27055 else
27056 as_fn_arith ()
27058 as_val=`expr "$@" || test $? -eq 1`
27060 fi # as_fn_arith
27063 if expr a : '\(a\)' >/dev/null 2>&1 &&
27064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27065 as_expr=expr
27066 else
27067 as_expr=false
27070 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27071 as_basename=basename
27072 else
27073 as_basename=false
27076 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27077 as_dirname=dirname
27078 else
27079 as_dirname=false
27082 as_me=`$as_basename -- "$0" ||
27083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27084 X"$0" : 'X\(//\)$' \| \
27085 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27086 $as_echo X/"$0" |
27087 sed '/^.*\/\([^/][^/]*\)\/*$/{
27088 s//\1/
27091 /^X\/\(\/\/\)$/{
27092 s//\1/
27095 /^X\/\(\/\).*/{
27096 s//\1/
27099 s/.*/./; q'`
27101 # Avoid depending upon Character Ranges.
27102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27105 as_cr_digits='0123456789'
27106 as_cr_alnum=$as_cr_Letters$as_cr_digits
27108 ECHO_C= ECHO_N= ECHO_T=
27109 case `echo -n x` in #(((((
27110 -n*)
27111 case `echo 'xy\c'` in
27112 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27113 xy) ECHO_C='\c';;
27114 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27115 ECHO_T=' ';;
27116 esac;;
27118 ECHO_N='-n';;
27119 esac
27121 rm -f conf$$ conf$$.exe conf$$.file
27122 if test -d conf$$.dir; then
27123 rm -f conf$$.dir/conf$$.file
27124 else
27125 rm -f conf$$.dir
27126 mkdir conf$$.dir 2>/dev/null
27128 if (echo >conf$$.file) 2>/dev/null; then
27129 if ln -s conf$$.file conf$$ 2>/dev/null; then
27130 as_ln_s='ln -s'
27131 # ... but there are two gotchas:
27132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27134 # In both cases, we have to default to `cp -p'.
27135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27136 as_ln_s='cp -p'
27137 elif ln conf$$.file conf$$ 2>/dev/null; then
27138 as_ln_s=ln
27139 else
27140 as_ln_s='cp -p'
27142 else
27143 as_ln_s='cp -p'
27145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27146 rmdir conf$$.dir 2>/dev/null
27149 # as_fn_mkdir_p
27150 # -------------
27151 # Create "$as_dir" as a directory, including parents if necessary.
27152 as_fn_mkdir_p ()
27155 case $as_dir in #(
27156 -*) as_dir=./$as_dir;;
27157 esac
27158 test -d "$as_dir" || eval $as_mkdir_p || {
27159 as_dirs=
27160 while :; do
27161 case $as_dir in #(
27162 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27163 *) as_qdir=$as_dir;;
27164 esac
27165 as_dirs="'$as_qdir' $as_dirs"
27166 as_dir=`$as_dirname -- "$as_dir" ||
27167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27168 X"$as_dir" : 'X\(//\)[^/]' \| \
27169 X"$as_dir" : 'X\(//\)$' \| \
27170 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27171 $as_echo X"$as_dir" |
27172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27173 s//\1/
27176 /^X\(\/\/\)[^/].*/{
27177 s//\1/
27180 /^X\(\/\/\)$/{
27181 s//\1/
27184 /^X\(\/\).*/{
27185 s//\1/
27188 s/.*/./; q'`
27189 test -d "$as_dir" && break
27190 done
27191 test -z "$as_dirs" || eval "mkdir $as_dirs"
27192 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27195 } # as_fn_mkdir_p
27196 if mkdir -p . 2>/dev/null; then
27197 as_mkdir_p='mkdir -p "$as_dir"'
27198 else
27199 test -d ./-p && rmdir ./-p
27200 as_mkdir_p=false
27203 if test -x / >/dev/null 2>&1; then
27204 as_test_x='test -x'
27205 else
27206 if ls -dL / >/dev/null 2>&1; then
27207 as_ls_L_option=L
27208 else
27209 as_ls_L_option=
27211 as_test_x='
27212 eval sh -c '\''
27213 if test -d "$1"; then
27214 test -d "$1/.";
27215 else
27216 case $1 in #(
27217 -*)set "./$1";;
27218 esac;
27219 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27220 ???[sx]*):;;*)false;;esac;fi
27221 '\'' sh
27224 as_executable_p=$as_test_x
27226 # Sed expression to map a string onto a valid CPP name.
27227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27229 # Sed expression to map a string onto a valid variable name.
27230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27233 exec 6>&1
27234 ## ----------------------------------- ##
27235 ## Main body of $CONFIG_STATUS script. ##
27236 ## ----------------------------------- ##
27237 _ASEOF
27238 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27241 # Save the log message, to keep $0 and so on meaningful, and to
27242 # report actual input values of CONFIG_FILES etc. instead of their
27243 # values after options handling.
27244 ac_log="
27245 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27246 generated by GNU Autoconf 2.64. Invocation command line was
27248 CONFIG_FILES = $CONFIG_FILES
27249 CONFIG_HEADERS = $CONFIG_HEADERS
27250 CONFIG_LINKS = $CONFIG_LINKS
27251 CONFIG_COMMANDS = $CONFIG_COMMANDS
27252 $ $0 $@
27254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27257 _ACEOF
27259 case $ac_config_files in *"
27260 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27261 esac
27263 case $ac_config_headers in *"
27264 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27265 esac
27268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27269 # Files that config.status was made for.
27270 config_files="$ac_config_files"
27271 config_headers="$ac_config_headers"
27272 config_commands="$ac_config_commands"
27274 _ACEOF
27276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27277 ac_cs_usage="\
27278 \`$as_me' instantiates files and other configuration actions
27279 from templates according to the current configuration. Unless the files
27280 and actions are specified as TAGs, all are instantiated by default.
27282 Usage: $0 [OPTION]... [TAG]...
27284 -h, --help print this help, then exit
27285 -V, --version print version number and configuration settings, then exit
27286 -q, --quiet, --silent
27287 do not print progress messages
27288 -d, --debug don't remove temporary files
27289 --recheck update $as_me by reconfiguring in the same conditions
27290 --file=FILE[:TEMPLATE]
27291 instantiate the configuration file FILE
27292 --header=FILE[:TEMPLATE]
27293 instantiate the configuration header FILE
27295 Configuration files:
27296 $config_files
27298 Configuration headers:
27299 $config_headers
27301 Configuration commands:
27302 $config_commands
27304 Report bugs to the package provider.
27305 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27306 General help using GNU software: <http://www.gnu.org/gethelp/>."
27308 _ACEOF
27309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27310 ac_cs_version="\\
27311 GNU Fortran Runtime Library config.status 0.3
27312 configured by $0, generated by GNU Autoconf 2.64,
27313 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27315 Copyright (C) 2009 Free Software Foundation, Inc.
27316 This config.status script is free software; the Free Software Foundation
27317 gives unlimited permission to copy, distribute and modify it."
27319 ac_pwd='$ac_pwd'
27320 srcdir='$srcdir'
27321 INSTALL='$INSTALL'
27322 MKDIR_P='$MKDIR_P'
27323 AWK='$AWK'
27324 test -n "\$AWK" || AWK=awk
27325 _ACEOF
27327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27328 # The default lists apply if the user does not specify any file.
27329 ac_need_defaults=:
27330 while test $# != 0
27332 case $1 in
27333 --*=*)
27334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27336 ac_shift=:
27339 ac_option=$1
27340 ac_optarg=$2
27341 ac_shift=shift
27343 esac
27345 case $ac_option in
27346 # Handling of the options.
27347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27348 ac_cs_recheck=: ;;
27349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27350 $as_echo "$ac_cs_version"; exit ;;
27351 --debug | --debu | --deb | --de | --d | -d )
27352 debug=: ;;
27353 --file | --fil | --fi | --f )
27354 $ac_shift
27355 case $ac_optarg in
27356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27357 esac
27358 as_fn_append CONFIG_FILES " '$ac_optarg'"
27359 ac_need_defaults=false;;
27360 --header | --heade | --head | --hea )
27361 $ac_shift
27362 case $ac_optarg in
27363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27364 esac
27365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27366 ac_need_defaults=false;;
27367 --he | --h)
27368 # Conflict between --help and --header
27369 as_fn_error "ambiguous option: \`$1'
27370 Try \`$0 --help' for more information.";;
27371 --help | --hel | -h )
27372 $as_echo "$ac_cs_usage"; exit ;;
27373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27375 ac_cs_silent=: ;;
27377 # This is an error.
27378 -*) as_fn_error "unrecognized option: \`$1'
27379 Try \`$0 --help' for more information." ;;
27381 *) as_fn_append ac_config_targets " $1"
27382 ac_need_defaults=false ;;
27384 esac
27385 shift
27386 done
27388 ac_configure_extra_args=
27390 if $ac_cs_silent; then
27391 exec 6>/dev/null
27392 ac_configure_extra_args="$ac_configure_extra_args --silent"
27395 _ACEOF
27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27397 if \$ac_cs_recheck; then
27398 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27399 shift
27400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27401 CONFIG_SHELL='$SHELL'
27402 export CONFIG_SHELL
27403 exec "\$@"
27406 _ACEOF
27407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27408 exec 5>>config.log
27410 echo
27411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27412 ## Running $as_me. ##
27413 _ASBOX
27414 $as_echo "$ac_log"
27415 } >&5
27417 _ACEOF
27418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27420 # INIT-COMMANDS
27423 srcdir="$srcdir"
27424 host="$host"
27425 target="$target"
27426 with_multisubdir="$with_multisubdir"
27427 with_multisrctop="$with_multisrctop"
27428 with_target_subdir="$with_target_subdir"
27429 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27430 multi_basedir="$multi_basedir"
27431 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27432 CC="$CC"
27433 CXX="$CXX"
27434 GFORTRAN="$GFORTRAN"
27435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27438 # The HP-UX ksh and POSIX shell print the target directory to stdout
27439 # if CDPATH is set.
27440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27442 sed_quote_subst='$sed_quote_subst'
27443 double_quote_subst='$double_quote_subst'
27444 delay_variable_subst='$delay_variable_subst'
27445 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27446 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27447 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27448 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27449 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27450 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27451 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27452 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27453 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27454 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27455 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27456 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27457 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27458 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27459 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27460 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27461 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27462 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27463 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27464 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27465 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27466 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27467 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27468 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27469 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27470 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27471 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27472 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27473 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27474 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27475 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27476 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27477 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27478 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27479 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27480 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27481 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27482 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27483 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27484 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27485 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27486 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27487 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27488 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27489 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27490 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27491 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27493 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"`'
27494 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27495 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27496 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27497 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27498 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27499 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27500 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27501 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27502 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27503 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27504 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27505 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27506 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27507 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27508 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27509 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27510 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27511 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27512 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27513 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27514 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27515 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27516 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27517 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27518 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27519 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27520 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27521 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27522 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27523 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27524 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27525 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27534 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27535 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27536 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27537 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27538 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27539 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27565 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27566 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27567 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27568 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27569 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27570 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27571 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27572 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27573 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27574 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27575 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27576 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27577 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27578 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27579 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27580 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27581 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27582 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27583 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27584 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27585 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27586 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27587 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27588 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27589 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27590 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27591 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27592 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27593 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27594 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27595 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27596 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27597 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27598 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27599 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27600 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27601 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27602 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27603 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27604 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27605 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27606 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27607 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27608 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27609 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27610 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27611 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27612 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27613 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27614 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27615 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27616 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27617 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27618 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27619 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27621 LTCC='$LTCC'
27622 LTCFLAGS='$LTCFLAGS'
27623 compiler='$compiler_DEFAULT'
27625 # A function that is used when there is no print builtin or printf.
27626 func_fallback_echo ()
27628 eval 'cat <<_LTECHO_EOF
27630 _LTECHO_EOF'
27633 # Quote evaled strings.
27634 for var in SED \
27635 GREP \
27636 EGREP \
27637 FGREP \
27638 SHELL \
27639 ECHO \
27640 LD \
27641 NM \
27642 LN_S \
27643 lt_SP2NL \
27644 lt_NL2SP \
27645 reload_flag \
27646 OBJDUMP \
27647 deplibs_check_method \
27648 file_magic_cmd \
27649 AR \
27650 AR_FLAGS \
27651 STRIP \
27652 RANLIB \
27653 CC \
27654 CFLAGS \
27655 compiler \
27656 lt_cv_sys_global_symbol_pipe \
27657 lt_cv_sys_global_symbol_to_cdecl \
27658 lt_cv_sys_global_symbol_to_c_name_address \
27659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27660 lt_prog_compiler_no_builtin_flag \
27661 lt_prog_compiler_wl \
27662 lt_prog_compiler_pic \
27663 lt_prog_compiler_static \
27664 lt_cv_prog_compiler_c_o \
27665 need_locks \
27666 DSYMUTIL \
27667 NMEDIT \
27668 LIPO \
27669 OTOOL \
27670 OTOOL64 \
27671 shrext_cmds \
27672 export_dynamic_flag_spec \
27673 whole_archive_flag_spec \
27674 compiler_needs_object \
27675 with_gnu_ld \
27676 allow_undefined_flag \
27677 no_undefined_flag \
27678 hardcode_libdir_flag_spec \
27679 hardcode_libdir_flag_spec_ld \
27680 hardcode_libdir_separator \
27681 fix_srcfile_path \
27682 exclude_expsyms \
27683 include_expsyms \
27684 file_list_spec \
27685 variables_saved_for_relink \
27686 libname_spec \
27687 library_names_spec \
27688 soname_spec \
27689 install_override_mode \
27690 finish_eval \
27691 old_striplib \
27692 striplib \
27693 compiler_lib_search_dirs \
27694 predep_objects \
27695 postdep_objects \
27696 predeps \
27697 postdeps \
27698 compiler_lib_search_path \
27699 LD_FC \
27700 reload_flag_FC \
27701 compiler_FC \
27702 lt_prog_compiler_no_builtin_flag_FC \
27703 lt_prog_compiler_wl_FC \
27704 lt_prog_compiler_pic_FC \
27705 lt_prog_compiler_static_FC \
27706 lt_cv_prog_compiler_c_o_FC \
27707 export_dynamic_flag_spec_FC \
27708 whole_archive_flag_spec_FC \
27709 compiler_needs_object_FC \
27710 with_gnu_ld_FC \
27711 allow_undefined_flag_FC \
27712 no_undefined_flag_FC \
27713 hardcode_libdir_flag_spec_FC \
27714 hardcode_libdir_flag_spec_ld_FC \
27715 hardcode_libdir_separator_FC \
27716 fix_srcfile_path_FC \
27717 exclude_expsyms_FC \
27718 include_expsyms_FC \
27719 file_list_spec_FC \
27720 compiler_lib_search_dirs_FC \
27721 predep_objects_FC \
27722 postdep_objects_FC \
27723 predeps_FC \
27724 postdeps_FC \
27725 compiler_lib_search_path_FC; do
27726 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27727 *[\\\\\\\`\\"\\\$]*)
27728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27733 esac
27734 done
27736 # Double-quote double-evaled strings.
27737 for var in reload_cmds \
27738 old_postinstall_cmds \
27739 old_postuninstall_cmds \
27740 old_archive_cmds \
27741 extract_expsyms_cmds \
27742 old_archive_from_new_cmds \
27743 old_archive_from_expsyms_cmds \
27744 archive_cmds \
27745 archive_expsym_cmds \
27746 module_cmds \
27747 module_expsym_cmds \
27748 export_symbols_cmds \
27749 prelink_cmds \
27750 postinstall_cmds \
27751 postuninstall_cmds \
27752 finish_cmds \
27753 sys_lib_search_path_spec \
27754 sys_lib_dlsearch_path_spec \
27755 reload_cmds_FC \
27756 old_archive_cmds_FC \
27757 old_archive_from_new_cmds_FC \
27758 old_archive_from_expsyms_cmds_FC \
27759 archive_cmds_FC \
27760 archive_expsym_cmds_FC \
27761 module_cmds_FC \
27762 module_expsym_cmds_FC \
27763 export_symbols_cmds_FC \
27764 prelink_cmds_FC; do
27765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27766 *[\\\\\\\`\\"\\\$]*)
27767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27772 esac
27773 done
27775 ac_aux_dir='$ac_aux_dir'
27776 xsi_shell='$xsi_shell'
27777 lt_shell_append='$lt_shell_append'
27779 # See if we are running on zsh, and set the options which allow our
27780 # commands through without removal of \ escapes INIT.
27781 if test -n "\${ZSH_VERSION+set}" ; then
27782 setopt NO_GLOB_SUBST
27786 PACKAGE='$PACKAGE'
27787 VERSION='$VERSION'
27788 TIMESTAMP='$TIMESTAMP'
27789 RM='$RM'
27790 ofile='$ofile'
27797 GCC="$GCC"
27798 CC="$CC"
27799 acx_cv_header_stdint="$acx_cv_header_stdint"
27800 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27801 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27802 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27803 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27804 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27805 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27806 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27807 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27808 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27809 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27810 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27811 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27812 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27815 _ACEOF
27817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27819 # Handling of arguments.
27820 for ac_config_target in $ac_config_targets
27822 case $ac_config_target in
27823 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27824 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27825 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27827 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27829 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27831 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27832 esac
27833 done
27836 # If the user did not use the arguments to specify the items to instantiate,
27837 # then the envvar interface is used. Set only those that are not.
27838 # We use the long form for the default assignment because of an extremely
27839 # bizarre bug on SunOS 4.1.3.
27840 if $ac_need_defaults; then
27841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27846 # Have a temporary directory for convenience. Make it in the build tree
27847 # simply because there is no reason against having it here, and in addition,
27848 # creating and moving files from /tmp can sometimes cause problems.
27849 # Hook for its removal unless debugging.
27850 # Note that there is a small window in which the directory will not be cleaned:
27851 # after its creation but before its name has been assigned to `$tmp'.
27852 $debug ||
27854 tmp=
27855 trap 'exit_status=$?
27856 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27858 trap 'as_fn_exit 1' 1 2 13 15
27860 # Create a (secure) tmp directory for tmp files.
27863 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27864 test -n "$tmp" && test -d "$tmp"
27865 } ||
27867 tmp=./conf$$-$RANDOM
27868 (umask 077 && mkdir "$tmp")
27869 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27871 # Set up the scripts for CONFIG_FILES section.
27872 # No need to generate them if there are no CONFIG_FILES.
27873 # This happens for instance with `./config.status config.h'.
27874 if test -n "$CONFIG_FILES"; then
27877 ac_cr=`echo X | tr X '\015'`
27878 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27879 # But we know of no other shell where ac_cr would be empty at this
27880 # point, so we can use a bashism as a fallback.
27881 if test "x$ac_cr" = x; then
27882 eval ac_cr=\$\'\\r\'
27884 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27885 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27886 ac_cs_awk_cr='\r'
27887 else
27888 ac_cs_awk_cr=$ac_cr
27891 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27892 _ACEOF
27896 echo "cat >conf$$subs.awk <<_ACEOF" &&
27897 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27898 echo "_ACEOF"
27899 } >conf$$subs.sh ||
27900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27901 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27902 ac_delim='%!_!# '
27903 for ac_last_try in false false false false false :; do
27904 . ./conf$$subs.sh ||
27905 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27907 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27908 if test $ac_delim_n = $ac_delim_num; then
27909 break
27910 elif $ac_last_try; then
27911 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27912 else
27913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27915 done
27916 rm -f conf$$subs.sh
27918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27919 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27920 _ACEOF
27921 sed -n '
27923 s/^/S["/; s/!.*/"]=/
27926 s/^[^!]*!//
27927 :repl
27928 t repl
27929 s/'"$ac_delim"'$//
27930 t delim
27933 s/\(.\{148\}\).*/\1/
27934 t more1
27935 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27938 b repl
27939 :more1
27940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27943 s/.\{148\}//
27944 t nl
27945 :delim
27947 s/\(.\{148\}\).*/\1/
27948 t more2
27949 s/["\\]/\\&/g; s/^/"/; s/$/"/
27952 :more2
27953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27956 s/.\{148\}//
27957 t delim
27958 ' <conf$$subs.awk | sed '
27959 /^[^""]/{
27961 s/\n//
27963 ' >>$CONFIG_STATUS || ac_write_fail=1
27964 rm -f conf$$subs.awk
27965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27966 _ACAWK
27967 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27968 for (key in S) S_is_set[key] = 1
27969 FS = "\a"
27973 line = $ 0
27974 nfields = split(line, field, "@")
27975 substed = 0
27976 len = length(field[1])
27977 for (i = 2; i < nfields; i++) {
27978 key = field[i]
27979 keylen = length(key)
27980 if (S_is_set[key]) {
27981 value = S[key]
27982 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27983 len += length(value) + length(field[++i])
27984 substed = 1
27985 } else
27986 len += 1 + keylen
27989 print line
27992 _ACAWK
27993 _ACEOF
27994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27995 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27996 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27997 else
27999 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28000 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28001 _ACEOF
28003 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28004 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28005 # trailing colons and then remove the whole line if VPATH becomes empty
28006 # (actually we leave an empty line to preserve line numbers).
28007 if test "x$srcdir" = x.; then
28008 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28009 s/:*\$(srcdir):*/:/
28010 s/:*\${srcdir}:*/:/
28011 s/:*@srcdir@:*/:/
28012 s/^\([^=]*=[ ]*\):*/\1/
28013 s/:*$//
28014 s/^[^=]*=[ ]*$//
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019 fi # test -n "$CONFIG_FILES"
28021 # Set up the scripts for CONFIG_HEADERS section.
28022 # No need to generate them if there are no CONFIG_HEADERS.
28023 # This happens for instance with `./config.status Makefile'.
28024 if test -n "$CONFIG_HEADERS"; then
28025 cat >"$tmp/defines.awk" <<\_ACAWK ||
28026 BEGIN {
28027 _ACEOF
28029 # Transform confdefs.h into an awk script `defines.awk', embedded as
28030 # here-document in config.status, that substitutes the proper values into
28031 # config.h.in to produce config.h.
28033 # Create a delimiter string that does not exist in confdefs.h, to ease
28034 # handling of long lines.
28035 ac_delim='%!_!# '
28036 for ac_last_try in false false :; do
28037 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28038 if test -z "$ac_t"; then
28039 break
28040 elif $ac_last_try; then
28041 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28042 else
28043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28045 done
28047 # For the awk script, D is an array of macro values keyed by name,
28048 # likewise P contains macro parameters if any. Preserve backslash
28049 # newline sequences.
28051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28052 sed -n '
28053 s/.\{148\}/&'"$ac_delim"'/g
28054 t rset
28055 :rset
28056 s/^[ ]*#[ ]*define[ ][ ]*/ /
28057 t def
28059 :def
28060 s/\\$//
28061 t bsnl
28062 s/["\\]/\\&/g
28063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28064 D["\1"]=" \3"/p
28065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28067 :bsnl
28068 s/["\\]/\\&/g
28069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28070 D["\1"]=" \3\\\\\\n"\\/p
28071 t cont
28072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28073 t cont
28075 :cont
28077 s/.\{148\}/&'"$ac_delim"'/g
28078 t clear
28079 :clear
28080 s/\\$//
28081 t bsnlc
28082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28084 :bsnlc
28085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28086 b cont
28087 ' <confdefs.h | sed '
28088 s/'"$ac_delim"'/"\\\
28089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28092 for (key in D) D_is_set[key] = 1
28093 FS = "\a"
28095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28096 line = \$ 0
28097 split(line, arg, " ")
28098 if (arg[1] == "#") {
28099 defundef = arg[2]
28100 mac1 = arg[3]
28101 } else {
28102 defundef = substr(arg[1], 2)
28103 mac1 = arg[2]
28105 split(mac1, mac2, "(") #)
28106 macro = mac2[1]
28107 prefix = substr(line, 1, index(line, defundef) - 1)
28108 if (D_is_set[macro]) {
28109 # Preserve the white space surrounding the "#".
28110 print prefix "define", macro P[macro] D[macro]
28111 next
28112 } else {
28113 # Replace #undef with comments. This is necessary, for example,
28114 # in the case of _POSIX_SOURCE, which is predefined and required
28115 # on some systems where configure will not decide to define it.
28116 if (defundef == "undef") {
28117 print "/*", prefix defundef, macro, "*/"
28118 next
28122 { print }
28123 _ACAWK
28124 _ACEOF
28125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28126 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28127 fi # test -n "$CONFIG_HEADERS"
28130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28131 shift
28132 for ac_tag
28134 case $ac_tag in
28135 :[FHLC]) ac_mode=$ac_tag; continue;;
28136 esac
28137 case $ac_mode$ac_tag in
28138 :[FHL]*:*);;
28139 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28140 :[FH]-) ac_tag=-:-;;
28141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28142 esac
28143 ac_save_IFS=$IFS
28144 IFS=:
28145 set x $ac_tag
28146 IFS=$ac_save_IFS
28147 shift
28148 ac_file=$1
28149 shift
28151 case $ac_mode in
28152 :L) ac_source=$1;;
28153 :[FH])
28154 ac_file_inputs=
28155 for ac_f
28157 case $ac_f in
28158 -) ac_f="$tmp/stdin";;
28159 *) # Look for the file first in the build tree, then in the source tree
28160 # (if the path is not absolute). The absolute path cannot be DOS-style,
28161 # because $ac_f cannot contain `:'.
28162 test -f "$ac_f" ||
28163 case $ac_f in
28164 [\\/$]*) false;;
28165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28166 esac ||
28167 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28168 esac
28169 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28170 as_fn_append ac_file_inputs " '$ac_f'"
28171 done
28173 # Let's still pretend it is `configure' which instantiates (i.e., don't
28174 # use $as_me), people would be surprised to read:
28175 # /* config.h. Generated by config.status. */
28176 configure_input='Generated from '`
28177 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28178 `' by configure.'
28179 if test x"$ac_file" != x-; then
28180 configure_input="$ac_file. $configure_input"
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28182 $as_echo "$as_me: creating $ac_file" >&6;}
28184 # Neutralize special characters interpreted by sed in replacement strings.
28185 case $configure_input in #(
28186 *\&* | *\|* | *\\* )
28187 ac_sed_conf_input=`$as_echo "$configure_input" |
28188 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28189 *) ac_sed_conf_input=$configure_input;;
28190 esac
28192 case $ac_tag in
28193 *:-:* | *:-) cat >"$tmp/stdin" \
28194 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28195 esac
28197 esac
28199 ac_dir=`$as_dirname -- "$ac_file" ||
28200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28201 X"$ac_file" : 'X\(//\)[^/]' \| \
28202 X"$ac_file" : 'X\(//\)$' \| \
28203 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28204 $as_echo X"$ac_file" |
28205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28206 s//\1/
28209 /^X\(\/\/\)[^/].*/{
28210 s//\1/
28213 /^X\(\/\/\)$/{
28214 s//\1/
28217 /^X\(\/\).*/{
28218 s//\1/
28221 s/.*/./; q'`
28222 as_dir="$ac_dir"; as_fn_mkdir_p
28223 ac_builddir=.
28225 case "$ac_dir" in
28226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28229 # A ".." for each directory in $ac_dir_suffix.
28230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28231 case $ac_top_builddir_sub in
28232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28234 esac ;;
28235 esac
28236 ac_abs_top_builddir=$ac_pwd
28237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28238 # for backward compatibility:
28239 ac_top_builddir=$ac_top_build_prefix
28241 case $srcdir in
28242 .) # We are building in place.
28243 ac_srcdir=.
28244 ac_top_srcdir=$ac_top_builddir_sub
28245 ac_abs_top_srcdir=$ac_pwd ;;
28246 [\\/]* | ?:[\\/]* ) # Absolute name.
28247 ac_srcdir=$srcdir$ac_dir_suffix;
28248 ac_top_srcdir=$srcdir
28249 ac_abs_top_srcdir=$srcdir ;;
28250 *) # Relative name.
28251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28252 ac_top_srcdir=$ac_top_build_prefix$srcdir
28253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28254 esac
28255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28258 case $ac_mode in
28261 # CONFIG_FILE
28264 case $INSTALL in
28265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28267 esac
28268 ac_MKDIR_P=$MKDIR_P
28269 case $MKDIR_P in
28270 [\\/$]* | ?:[\\/]* ) ;;
28271 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28272 esac
28273 _ACEOF
28275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28276 # If the template does not know about datarootdir, expand it.
28277 # FIXME: This hack should be removed a few years after 2.60.
28278 ac_datarootdir_hack=; ac_datarootdir_seen=
28279 ac_sed_dataroot='
28280 /datarootdir/ {
28284 /@datadir@/p
28285 /@docdir@/p
28286 /@infodir@/p
28287 /@localedir@/p
28288 /@mandir@/p'
28289 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28290 *datarootdir*) ac_datarootdir_seen=yes;;
28291 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28293 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28294 _ACEOF
28295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28296 ac_datarootdir_hack='
28297 s&@datadir@&$datadir&g
28298 s&@docdir@&$docdir&g
28299 s&@infodir@&$infodir&g
28300 s&@localedir@&$localedir&g
28301 s&@mandir@&$mandir&g
28302 s&\\\${datarootdir}&$datarootdir&g' ;;
28303 esac
28304 _ACEOF
28306 # Neutralize VPATH when `$srcdir' = `.'.
28307 # Shell code in configure.ac might set extrasub.
28308 # FIXME: do we really want to maintain this feature?
28309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28310 ac_sed_extra="$ac_vpsub
28311 $extrasub
28312 _ACEOF
28313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28316 s|@configure_input@|$ac_sed_conf_input|;t t
28317 s&@top_builddir@&$ac_top_builddir_sub&;t t
28318 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28319 s&@srcdir@&$ac_srcdir&;t t
28320 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28321 s&@top_srcdir@&$ac_top_srcdir&;t t
28322 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28323 s&@builddir@&$ac_builddir&;t t
28324 s&@abs_builddir@&$ac_abs_builddir&;t t
28325 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28326 s&@INSTALL@&$ac_INSTALL&;t t
28327 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28328 $ac_datarootdir_hack
28330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28331 || as_fn_error "could not create $ac_file" "$LINENO" 5
28333 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28334 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28335 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28337 which seems to be undefined. Please make sure it is defined." >&5
28338 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28339 which seems to be undefined. Please make sure it is defined." >&2;}
28341 rm -f "$tmp/stdin"
28342 case $ac_file in
28343 -) cat "$tmp/out" && rm -f "$tmp/out";;
28344 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28345 esac \
28346 || as_fn_error "could not create $ac_file" "$LINENO" 5
28350 # CONFIG_HEADER
28352 if test x"$ac_file" != x-; then
28354 $as_echo "/* $configure_input */" \
28355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28356 } >"$tmp/config.h" \
28357 || as_fn_error "could not create $ac_file" "$LINENO" 5
28358 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28360 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28361 else
28362 rm -f "$ac_file"
28363 mv "$tmp/config.h" "$ac_file" \
28364 || as_fn_error "could not create $ac_file" "$LINENO" 5
28366 else
28367 $as_echo "/* $configure_input */" \
28368 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28369 || as_fn_error "could not create -" "$LINENO" 5
28371 # Compute "$ac_file"'s index in $config_headers.
28372 _am_arg="$ac_file"
28373 _am_stamp_count=1
28374 for _am_header in $config_headers :; do
28375 case $_am_header in
28376 $_am_arg | $_am_arg:* )
28377 break ;;
28379 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28380 esac
28381 done
28382 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28383 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28384 X"$_am_arg" : 'X\(//\)[^/]' \| \
28385 X"$_am_arg" : 'X\(//\)$' \| \
28386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28387 $as_echo X"$_am_arg" |
28388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28389 s//\1/
28392 /^X\(\/\/\)[^/].*/{
28393 s//\1/
28396 /^X\(\/\/\)$/{
28397 s//\1/
28400 /^X\(\/\).*/{
28401 s//\1/
28404 s/.*/./; q'`/stamp-h$_am_stamp_count
28407 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28408 $as_echo "$as_me: executing $ac_file commands" >&6;}
28410 esac
28413 case $ac_file$ac_mode in
28414 "default-1":C)
28415 # Only add multilib support code if we just rebuilt the top-level
28416 # Makefile.
28417 case " $CONFIG_FILES " in
28418 *" Makefile "*)
28419 ac_file=Makefile . ${multi_basedir}/config-ml.in
28421 esac ;;
28422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28423 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28424 # are listed without --file. Let's play safe and only enable the eval
28425 # if we detect the quoting.
28426 case $CONFIG_FILES in
28427 *\'*) eval set x "$CONFIG_FILES" ;;
28428 *) set x $CONFIG_FILES ;;
28429 esac
28430 shift
28431 for mf
28433 # Strip MF so we end up with the name of the file.
28434 mf=`echo "$mf" | sed -e 's/:.*$//'`
28435 # Check whether this is an Automake generated Makefile or not.
28436 # We used to match only the files named `Makefile.in', but
28437 # some people rename them; so instead we look at the file content.
28438 # Grep'ing the first line is not enough: some people post-process
28439 # each Makefile.in and add a new line on top of each file to say so.
28440 # Grep'ing the whole file is not good either: AIX grep has a line
28441 # limit of 2048, but all sed's we know have understand at least 4000.
28442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28443 dirpart=`$as_dirname -- "$mf" ||
28444 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28445 X"$mf" : 'X\(//\)[^/]' \| \
28446 X"$mf" : 'X\(//\)$' \| \
28447 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28448 $as_echo X"$mf" |
28449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28450 s//\1/
28453 /^X\(\/\/\)[^/].*/{
28454 s//\1/
28457 /^X\(\/\/\)$/{
28458 s//\1/
28461 /^X\(\/\).*/{
28462 s//\1/
28465 s/.*/./; q'`
28466 else
28467 continue
28469 # Extract the definition of DEPDIR, am__include, and am__quote
28470 # from the Makefile without running `make'.
28471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28472 test -z "$DEPDIR" && continue
28473 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28474 test -z "am__include" && continue
28475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28476 # When using ansi2knr, U may be empty or an underscore; expand it
28477 U=`sed -n 's/^U = //p' < "$mf"`
28478 # Find all dependency output files, they are included files with
28479 # $(DEPDIR) in their names. We invoke sed twice because it is the
28480 # simplest approach to changing $(DEPDIR) to its actual value in the
28481 # expansion.
28482 for file in `sed -n "
28483 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28484 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28485 # Make sure the directory exists.
28486 test -f "$dirpart/$file" && continue
28487 fdir=`$as_dirname -- "$file" ||
28488 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28489 X"$file" : 'X\(//\)[^/]' \| \
28490 X"$file" : 'X\(//\)$' \| \
28491 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28492 $as_echo X"$file" |
28493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28494 s//\1/
28497 /^X\(\/\/\)[^/].*/{
28498 s//\1/
28501 /^X\(\/\/\)$/{
28502 s//\1/
28505 /^X\(\/\).*/{
28506 s//\1/
28509 s/.*/./; q'`
28510 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28511 # echo "creating $dirpart/$file"
28512 echo '# dummy' > "$dirpart/$file"
28513 done
28514 done
28517 "libtool":C)
28519 # See if we are running on zsh, and set the options which allow our
28520 # commands through without removal of \ escapes.
28521 if test -n "${ZSH_VERSION+set}" ; then
28522 setopt NO_GLOB_SUBST
28525 cfgfile="${ofile}T"
28526 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28527 $RM "$cfgfile"
28529 cat <<_LT_EOF >> "$cfgfile"
28530 #! $SHELL
28532 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28533 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28535 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28537 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28538 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28539 # Written by Gordon Matzigkeit, 1996
28541 # This file is part of GNU Libtool.
28543 # GNU Libtool is free software; you can redistribute it and/or
28544 # modify it under the terms of the GNU General Public License as
28545 # published by the Free Software Foundation; either version 2 of
28546 # the License, or (at your option) any later version.
28548 # As a special exception to the GNU General Public License,
28549 # if you distribute this file as part of a program or library that
28550 # is built using GNU Libtool, you may include this file under the
28551 # same distribution terms that you use for the rest of that program.
28553 # GNU Libtool is distributed in the hope that it will be useful,
28554 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28556 # GNU General Public License for more details.
28558 # You should have received a copy of the GNU General Public License
28559 # along with GNU Libtool; see the file COPYING. If not, a copy
28560 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28561 # obtained by writing to the Free Software Foundation, Inc.,
28562 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28565 # The names of the tagged configurations supported by this script.
28566 available_tags="FC "
28568 # ### BEGIN LIBTOOL CONFIG
28570 # A sed program that does not truncate output.
28571 SED=$lt_SED
28573 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28574 Xsed="\$SED -e 1s/^X//"
28576 # A grep program that handles long lines.
28577 GREP=$lt_GREP
28579 # An ERE matcher.
28580 EGREP=$lt_EGREP
28582 # A literal string matcher.
28583 FGREP=$lt_FGREP
28585 # Shell to use when invoking shell scripts.
28586 SHELL=$lt_SHELL
28588 # An echo program that protects backslashes.
28589 ECHO=$lt_ECHO
28591 # Which release of libtool.m4 was used?
28592 macro_version=$macro_version
28593 macro_revision=$macro_revision
28595 # Whether or not to build shared libraries.
28596 build_libtool_libs=$enable_shared
28598 # Whether or not to build static libraries.
28599 build_old_libs=$enable_static
28601 # What type of objects to build.
28602 pic_mode=$pic_mode
28604 # Whether or not to optimize for fast installation.
28605 fast_install=$enable_fast_install
28607 # The host system.
28608 host_alias=$host_alias
28609 host=$host
28610 host_os=$host_os
28612 # The build system.
28613 build_alias=$build_alias
28614 build=$build
28615 build_os=$build_os
28617 # A BSD- or MS-compatible name lister.
28618 NM=$lt_NM
28620 # Whether we need soft or hard links.
28621 LN_S=$lt_LN_S
28623 # What is the maximum length of a command?
28624 max_cmd_len=$max_cmd_len
28626 # Object file suffix (normally "o").
28627 objext=$ac_objext
28629 # Executable file suffix (normally "").
28630 exeext=$exeext
28632 # whether the shell understands "unset".
28633 lt_unset=$lt_unset
28635 # turn spaces into newlines.
28636 SP2NL=$lt_lt_SP2NL
28638 # turn newlines into spaces.
28639 NL2SP=$lt_lt_NL2SP
28641 # An object symbol dumper.
28642 OBJDUMP=$lt_OBJDUMP
28644 # Method to check whether dependent libraries are shared objects.
28645 deplibs_check_method=$lt_deplibs_check_method
28647 # Command to use when deplibs_check_method == "file_magic".
28648 file_magic_cmd=$lt_file_magic_cmd
28650 # The archiver.
28651 AR=$lt_AR
28652 AR_FLAGS=$lt_AR_FLAGS
28654 # A symbol stripping program.
28655 STRIP=$lt_STRIP
28657 # Commands used to install an old-style archive.
28658 RANLIB=$lt_RANLIB
28659 old_postinstall_cmds=$lt_old_postinstall_cmds
28660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28662 # Whether to use a lock for old archive extraction.
28663 lock_old_archive_extraction=$lock_old_archive_extraction
28665 # A C compiler.
28666 LTCC=$lt_CC
28668 # LTCC compiler flags.
28669 LTCFLAGS=$lt_CFLAGS
28671 # Take the output of nm and produce a listing of raw symbols and C names.
28672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28674 # Transform the output of nm in a proper C declaration.
28675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28677 # Transform the output of nm in a C name address pair.
28678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28680 # Transform the output of nm in a C name address pair when lib prefix is needed.
28681 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28683 # The name of the directory that contains temporary libtool files.
28684 objdir=$objdir
28686 # Used to examine libraries when file_magic_cmd begins with "file".
28687 MAGIC_CMD=$MAGIC_CMD
28689 # Must we lock files when doing compilation?
28690 need_locks=$lt_need_locks
28692 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28693 DSYMUTIL=$lt_DSYMUTIL
28695 # Tool to change global to local symbols on Mac OS X.
28696 NMEDIT=$lt_NMEDIT
28698 # Tool to manipulate fat objects and archives on Mac OS X.
28699 LIPO=$lt_LIPO
28701 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28702 OTOOL=$lt_OTOOL
28704 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28705 OTOOL64=$lt_OTOOL64
28707 # Old archive suffix (normally "a").
28708 libext=$libext
28710 # Shared library suffix (normally ".so").
28711 shrext_cmds=$lt_shrext_cmds
28713 # The commands to extract the exported symbol list from a shared archive.
28714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28716 # Variables whose values should be saved in libtool wrapper scripts and
28717 # restored at link time.
28718 variables_saved_for_relink=$lt_variables_saved_for_relink
28720 # Do we need the "lib" prefix for modules?
28721 need_lib_prefix=$need_lib_prefix
28723 # Do we need a version for libraries?
28724 need_version=$need_version
28726 # Library versioning type.
28727 version_type=$version_type
28729 # Shared library runtime path variable.
28730 runpath_var=$runpath_var
28732 # Shared library path variable.
28733 shlibpath_var=$shlibpath_var
28735 # Is shlibpath searched before the hard-coded library search path?
28736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28738 # Format of library name prefix.
28739 libname_spec=$lt_libname_spec
28741 # List of archive names. First name is the real one, the rest are links.
28742 # The last name is the one that the linker finds with -lNAME
28743 library_names_spec=$lt_library_names_spec
28745 # The coded name of the library, if different from the real name.
28746 soname_spec=$lt_soname_spec
28748 # Permission mode override for installation of shared libraries.
28749 install_override_mode=$lt_install_override_mode
28751 # Command to use after installation of a shared archive.
28752 postinstall_cmds=$lt_postinstall_cmds
28754 # Command to use after uninstallation of a shared archive.
28755 postuninstall_cmds=$lt_postuninstall_cmds
28757 # Commands used to finish a libtool library installation in a directory.
28758 finish_cmds=$lt_finish_cmds
28760 # As "finish_cmds", except a single script fragment to be evaled but
28761 # not shown.
28762 finish_eval=$lt_finish_eval
28764 # Whether we should hardcode library paths into libraries.
28765 hardcode_into_libs=$hardcode_into_libs
28767 # Compile-time system search path for libraries.
28768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28770 # Run-time system search path for libraries.
28771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28773 # Whether dlopen is supported.
28774 dlopen_support=$enable_dlopen
28776 # Whether dlopen of programs is supported.
28777 dlopen_self=$enable_dlopen_self
28779 # Whether dlopen of statically linked programs is supported.
28780 dlopen_self_static=$enable_dlopen_self_static
28782 # Commands to strip libraries.
28783 old_striplib=$lt_old_striplib
28784 striplib=$lt_striplib
28787 # The linker used to build libraries.
28788 LD=$lt_LD
28790 # How to create reloadable object files.
28791 reload_flag=$lt_reload_flag
28792 reload_cmds=$lt_reload_cmds
28794 # Commands used to build an old-style archive.
28795 old_archive_cmds=$lt_old_archive_cmds
28797 # A language specific compiler.
28798 CC=$lt_compiler
28800 # Is the compiler the GNU compiler?
28801 with_gcc=$GCC
28803 # Compiler flag to turn off builtin functions.
28804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28806 # How to pass a linker flag through the compiler.
28807 wl=$lt_lt_prog_compiler_wl
28809 # Additional compiler flags for building library objects.
28810 pic_flag=$lt_lt_prog_compiler_pic
28812 # Compiler flag to prevent dynamic linking.
28813 link_static_flag=$lt_lt_prog_compiler_static
28815 # Does compiler simultaneously support -c and -o options?
28816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28818 # Whether or not to add -lc for building shared libraries.
28819 build_libtool_need_lc=$archive_cmds_need_lc
28821 # Whether or not to disallow shared libs when runtime libs are static.
28822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28824 # Compiler flag to allow reflexive dlopens.
28825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28827 # Compiler flag to generate shared objects directly from archives.
28828 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28830 # Whether the compiler copes with passing no objects directly.
28831 compiler_needs_object=$lt_compiler_needs_object
28833 # Create an old-style archive from a shared archive.
28834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28836 # Create a temporary old-style archive to link instead of a shared archive.
28837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28839 # Commands used to build a shared archive.
28840 archive_cmds=$lt_archive_cmds
28841 archive_expsym_cmds=$lt_archive_expsym_cmds
28843 # Commands used to build a loadable module if different from building
28844 # a shared archive.
28845 module_cmds=$lt_module_cmds
28846 module_expsym_cmds=$lt_module_expsym_cmds
28848 # Whether we are building with GNU ld or not.
28849 with_gnu_ld=$lt_with_gnu_ld
28851 # Flag that allows shared libraries with undefined symbols to be built.
28852 allow_undefined_flag=$lt_allow_undefined_flag
28854 # Flag that enforces no undefined symbols.
28855 no_undefined_flag=$lt_no_undefined_flag
28857 # Flag to hardcode \$libdir into a binary during linking.
28858 # This must work even if \$libdir does not exist
28859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28861 # If ld is used when linking, flag to hardcode \$libdir into a binary
28862 # during linking. This must work even if \$libdir does not exist.
28863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28865 # Whether we need a single "-rpath" flag with a separated argument.
28866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28869 # DIR into the resulting binary.
28870 hardcode_direct=$hardcode_direct
28872 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28873 # DIR into the resulting binary and the resulting library dependency is
28874 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28875 # library is relocated.
28876 hardcode_direct_absolute=$hardcode_direct_absolute
28878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28879 # into the resulting binary.
28880 hardcode_minus_L=$hardcode_minus_L
28882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28883 # into the resulting binary.
28884 hardcode_shlibpath_var=$hardcode_shlibpath_var
28886 # Set to "yes" if building a shared library automatically hardcodes DIR
28887 # into the library and all subsequent libraries and executables linked
28888 # against it.
28889 hardcode_automatic=$hardcode_automatic
28891 # Set to yes if linker adds runtime paths of dependent libraries
28892 # to runtime path list.
28893 inherit_rpath=$inherit_rpath
28895 # Whether libtool must link a program against all its dependency libraries.
28896 link_all_deplibs=$link_all_deplibs
28898 # Fix the shell variable \$srcfile for the compiler.
28899 fix_srcfile_path=$lt_fix_srcfile_path
28901 # Set to "yes" if exported symbols are required.
28902 always_export_symbols=$always_export_symbols
28904 # The commands to list exported symbols.
28905 export_symbols_cmds=$lt_export_symbols_cmds
28907 # Symbols that should not be listed in the preloaded symbols.
28908 exclude_expsyms=$lt_exclude_expsyms
28910 # Symbols that must always be exported.
28911 include_expsyms=$lt_include_expsyms
28913 # Commands necessary for linking programs (against libraries) with templates.
28914 prelink_cmds=$lt_prelink_cmds
28916 # Specify filename containing input files.
28917 file_list_spec=$lt_file_list_spec
28919 # How to hardcode a shared library path into an executable.
28920 hardcode_action=$hardcode_action
28922 # The directories searched by this compiler when creating a shared library.
28923 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28925 # Dependencies to place before and after the objects being linked to
28926 # create a shared library.
28927 predep_objects=$lt_predep_objects
28928 postdep_objects=$lt_postdep_objects
28929 predeps=$lt_predeps
28930 postdeps=$lt_postdeps
28932 # The library search path used internally by the compiler when linking
28933 # a shared library.
28934 compiler_lib_search_path=$lt_compiler_lib_search_path
28936 # ### END LIBTOOL CONFIG
28938 _LT_EOF
28940 case $host_os in
28941 aix3*)
28942 cat <<\_LT_EOF >> "$cfgfile"
28943 # AIX sometimes has problems with the GCC collect2 program. For some
28944 # reason, if we set the COLLECT_NAMES environment variable, the problems
28945 # vanish in a puff of smoke.
28946 if test "X${COLLECT_NAMES+set}" != Xset; then
28947 COLLECT_NAMES=
28948 export COLLECT_NAMES
28950 _LT_EOF
28952 esac
28955 ltmain="$ac_aux_dir/ltmain.sh"
28958 # We use sed instead of cat because bash on DJGPP gets confused if
28959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28960 # text mode, it properly converts lines to CR/LF. This bash problem
28961 # is reportedly fixed, but why not run on old versions too?
28962 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28963 || (rm -f "$cfgfile"; exit 1)
28965 case $xsi_shell in
28966 yes)
28967 cat << \_LT_EOF >> "$cfgfile"
28969 # func_dirname file append nondir_replacement
28970 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28971 # otherwise set result to NONDIR_REPLACEMENT.
28972 func_dirname ()
28974 case ${1} in
28975 */*) func_dirname_result="${1%/*}${2}" ;;
28976 * ) func_dirname_result="${3}" ;;
28977 esac
28980 # func_basename file
28981 func_basename ()
28983 func_basename_result="${1##*/}"
28986 # func_dirname_and_basename file append nondir_replacement
28987 # perform func_basename and func_dirname in a single function
28988 # call:
28989 # dirname: Compute the dirname of FILE. If nonempty,
28990 # add APPEND to the result, otherwise set result
28991 # to NONDIR_REPLACEMENT.
28992 # value returned in "$func_dirname_result"
28993 # basename: Compute filename of FILE.
28994 # value retuned in "$func_basename_result"
28995 # Implementation must be kept synchronized with func_dirname
28996 # and func_basename. For efficiency, we do not delegate to
28997 # those functions but instead duplicate the functionality here.
28998 func_dirname_and_basename ()
29000 case ${1} in
29001 */*) func_dirname_result="${1%/*}${2}" ;;
29002 * ) func_dirname_result="${3}" ;;
29003 esac
29004 func_basename_result="${1##*/}"
29007 # func_stripname prefix suffix name
29008 # strip PREFIX and SUFFIX off of NAME.
29009 # PREFIX and SUFFIX must not contain globbing or regex special
29010 # characters, hashes, percent signs, but SUFFIX may contain a leading
29011 # dot (in which case that matches only a dot).
29012 func_stripname ()
29014 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29015 # positional parameters, so assign one to ordinary parameter first.
29016 func_stripname_result=${3}
29017 func_stripname_result=${func_stripname_result#"${1}"}
29018 func_stripname_result=${func_stripname_result%"${2}"}
29021 # func_opt_split
29022 func_opt_split ()
29024 func_opt_split_opt=${1%%=*}
29025 func_opt_split_arg=${1#*=}
29028 # func_lo2o object
29029 func_lo2o ()
29031 case ${1} in
29032 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29033 *) func_lo2o_result=${1} ;;
29034 esac
29037 # func_xform libobj-or-source
29038 func_xform ()
29040 func_xform_result=${1%.*}.lo
29043 # func_arith arithmetic-term...
29044 func_arith ()
29046 func_arith_result=$(( $* ))
29049 # func_len string
29050 # STRING may not start with a hyphen.
29051 func_len ()
29053 func_len_result=${#1}
29056 _LT_EOF
29058 *) # Bourne compatible functions.
29059 cat << \_LT_EOF >> "$cfgfile"
29061 # func_dirname file append nondir_replacement
29062 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29063 # otherwise set result to NONDIR_REPLACEMENT.
29064 func_dirname ()
29066 # Extract subdirectory from the argument.
29067 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29068 if test "X$func_dirname_result" = "X${1}"; then
29069 func_dirname_result="${3}"
29070 else
29071 func_dirname_result="$func_dirname_result${2}"
29075 # func_basename file
29076 func_basename ()
29078 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29082 # func_stripname prefix suffix name
29083 # strip PREFIX and SUFFIX off of NAME.
29084 # PREFIX and SUFFIX must not contain globbing or regex special
29085 # characters, hashes, percent signs, but SUFFIX may contain a leading
29086 # dot (in which case that matches only a dot).
29087 # func_strip_suffix prefix name
29088 func_stripname ()
29090 case ${2} in
29091 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29092 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29093 esac
29096 # sed scripts:
29097 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29098 my_sed_long_arg='1s/^-[^=]*=//'
29100 # func_opt_split
29101 func_opt_split ()
29103 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29104 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29107 # func_lo2o object
29108 func_lo2o ()
29110 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29113 # func_xform libobj-or-source
29114 func_xform ()
29116 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29119 # func_arith arithmetic-term...
29120 func_arith ()
29122 func_arith_result=`expr "$@"`
29125 # func_len string
29126 # STRING may not start with a hyphen.
29127 func_len ()
29129 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29132 _LT_EOF
29133 esac
29135 case $lt_shell_append in
29136 yes)
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+=\$2"
29145 _LT_EOF
29148 cat << \_LT_EOF >> "$cfgfile"
29150 # func_append var value
29151 # Append VALUE to the end of shell variable VAR.
29152 func_append ()
29154 eval "$1=\$$1\$2"
29157 _LT_EOF
29159 esac
29162 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29163 || (rm -f "$cfgfile"; exit 1)
29165 mv -f "$cfgfile" "$ofile" ||
29166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29167 chmod +x "$ofile"
29170 cat <<_LT_EOF >> "$ofile"
29172 # ### BEGIN LIBTOOL TAG CONFIG: FC
29174 # The linker used to build libraries.
29175 LD=$lt_LD_FC
29177 # How to create reloadable object files.
29178 reload_flag=$lt_reload_flag_FC
29179 reload_cmds=$lt_reload_cmds_FC
29181 # Commands used to build an old-style archive.
29182 old_archive_cmds=$lt_old_archive_cmds_FC
29184 # A language specific compiler.
29185 CC=$lt_compiler_FC
29187 # Is the compiler the GNU compiler?
29188 with_gcc=$GCC_FC
29190 # Compiler flag to turn off builtin functions.
29191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29193 # How to pass a linker flag through the compiler.
29194 wl=$lt_lt_prog_compiler_wl_FC
29196 # Additional compiler flags for building library objects.
29197 pic_flag=$lt_lt_prog_compiler_pic_FC
29199 # Compiler flag to prevent dynamic linking.
29200 link_static_flag=$lt_lt_prog_compiler_static_FC
29202 # Does compiler simultaneously support -c and -o options?
29203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29205 # Whether or not to add -lc for building shared libraries.
29206 build_libtool_need_lc=$archive_cmds_need_lc_FC
29208 # Whether or not to disallow shared libs when runtime libs are static.
29209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29211 # Compiler flag to allow reflexive dlopens.
29212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29214 # Compiler flag to generate shared objects directly from archives.
29215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29217 # Whether the compiler copes with passing no objects directly.
29218 compiler_needs_object=$lt_compiler_needs_object_FC
29220 # Create an old-style archive from a shared archive.
29221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29223 # Create a temporary old-style archive to link instead of a shared archive.
29224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29226 # Commands used to build a shared archive.
29227 archive_cmds=$lt_archive_cmds_FC
29228 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29230 # Commands used to build a loadable module if different from building
29231 # a shared archive.
29232 module_cmds=$lt_module_cmds_FC
29233 module_expsym_cmds=$lt_module_expsym_cmds_FC
29235 # Whether we are building with GNU ld or not.
29236 with_gnu_ld=$lt_with_gnu_ld_FC
29238 # Flag that allows shared libraries with undefined symbols to be built.
29239 allow_undefined_flag=$lt_allow_undefined_flag_FC
29241 # Flag that enforces no undefined symbols.
29242 no_undefined_flag=$lt_no_undefined_flag_FC
29244 # Flag to hardcode \$libdir into a binary during linking.
29245 # This must work even if \$libdir does not exist
29246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29248 # If ld is used when linking, flag to hardcode \$libdir into a binary
29249 # during linking. This must work even if \$libdir does not exist.
29250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29252 # Whether we need a single "-rpath" flag with a separated argument.
29253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29256 # DIR into the resulting binary.
29257 hardcode_direct=$hardcode_direct_FC
29259 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29260 # DIR into the resulting binary and the resulting library dependency is
29261 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29262 # library is relocated.
29263 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29265 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29266 # into the resulting binary.
29267 hardcode_minus_L=$hardcode_minus_L_FC
29269 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29270 # into the resulting binary.
29271 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29273 # Set to "yes" if building a shared library automatically hardcodes DIR
29274 # into the library and all subsequent libraries and executables linked
29275 # against it.
29276 hardcode_automatic=$hardcode_automatic_FC
29278 # Set to yes if linker adds runtime paths of dependent libraries
29279 # to runtime path list.
29280 inherit_rpath=$inherit_rpath_FC
29282 # Whether libtool must link a program against all its dependency libraries.
29283 link_all_deplibs=$link_all_deplibs_FC
29285 # Fix the shell variable \$srcfile for the compiler.
29286 fix_srcfile_path=$lt_fix_srcfile_path_FC
29288 # Set to "yes" if exported symbols are required.
29289 always_export_symbols=$always_export_symbols_FC
29291 # The commands to list exported symbols.
29292 export_symbols_cmds=$lt_export_symbols_cmds_FC
29294 # Symbols that should not be listed in the preloaded symbols.
29295 exclude_expsyms=$lt_exclude_expsyms_FC
29297 # Symbols that must always be exported.
29298 include_expsyms=$lt_include_expsyms_FC
29300 # Commands necessary for linking programs (against libraries) with templates.
29301 prelink_cmds=$lt_prelink_cmds_FC
29303 # Specify filename containing input files.
29304 file_list_spec=$lt_file_list_spec_FC
29306 # How to hardcode a shared library path into an executable.
29307 hardcode_action=$hardcode_action_FC
29309 # The directories searched by this compiler when creating a shared library.
29310 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29312 # Dependencies to place before and after the objects being linked to
29313 # create a shared library.
29314 predep_objects=$lt_predep_objects_FC
29315 postdep_objects=$lt_postdep_objects_FC
29316 predeps=$lt_predeps_FC
29317 postdeps=$lt_postdeps_FC
29319 # The library search path used internally by the compiler when linking
29320 # a shared library.
29321 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29323 # ### END LIBTOOL TAG CONFIG: FC
29324 _LT_EOF
29327 "gstdint.h":C)
29328 if test "$GCC" = yes; then
29329 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29330 else
29331 echo "/* generated for $CC */" > tmp-stdint.h
29334 sed 's/^ *//' >> tmp-stdint.h <<EOF
29336 #ifndef GCC_GENERATED_STDINT_H
29337 #define GCC_GENERATED_STDINT_H 1
29339 #include <sys/types.h>
29342 if test "$acx_cv_header_stdint" != stdint.h; then
29343 echo "#include <stddef.h>" >> tmp-stdint.h
29345 if test "$acx_cv_header_stdint" != stddef.h; then
29346 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29349 sed 's/^ *//' >> tmp-stdint.h <<EOF
29350 /* glibc uses these symbols as guards to prevent redefinitions. */
29351 #ifdef __int8_t_defined
29352 #define _INT8_T
29353 #define _INT16_T
29354 #define _INT32_T
29355 #endif
29356 #ifdef __uint32_t_defined
29357 #define _UINT32_T
29358 #endif
29362 # ----------------- done header, emit basic int types -------------
29363 if test "$acx_cv_header_stdint" = stddef.h; then
29364 sed 's/^ *//' >> tmp-stdint.h <<EOF
29366 #ifndef _UINT8_T
29367 #define _UINT8_T
29368 #ifndef __uint8_t_defined
29369 #define __uint8_t_defined
29370 #ifndef uint8_t
29371 typedef unsigned $acx_cv_type_int8_t uint8_t;
29372 #endif
29373 #endif
29374 #endif
29376 #ifndef _UINT16_T
29377 #define _UINT16_T
29378 #ifndef __uint16_t_defined
29379 #define __uint16_t_defined
29380 #ifndef uint16_t
29381 typedef unsigned $acx_cv_type_int16_t uint16_t;
29382 #endif
29383 #endif
29384 #endif
29386 #ifndef _UINT32_T
29387 #define _UINT32_T
29388 #ifndef __uint32_t_defined
29389 #define __uint32_t_defined
29390 #ifndef uint32_t
29391 typedef unsigned $acx_cv_type_int32_t uint32_t;
29392 #endif
29393 #endif
29394 #endif
29396 #ifndef _INT8_T
29397 #define _INT8_T
29398 #ifndef __int8_t_defined
29399 #define __int8_t_defined
29400 #ifndef int8_t
29401 typedef $acx_cv_type_int8_t int8_t;
29402 #endif
29403 #endif
29404 #endif
29406 #ifndef _INT16_T
29407 #define _INT16_T
29408 #ifndef __int16_t_defined
29409 #define __int16_t_defined
29410 #ifndef int16_t
29411 typedef $acx_cv_type_int16_t int16_t;
29412 #endif
29413 #endif
29414 #endif
29416 #ifndef _INT32_T
29417 #define _INT32_T
29418 #ifndef __int32_t_defined
29419 #define __int32_t_defined
29420 #ifndef int32_t
29421 typedef $acx_cv_type_int32_t int32_t;
29422 #endif
29423 #endif
29424 #endif
29426 elif test "$ac_cv_type_u_int32_t" = yes; then
29427 sed 's/^ *//' >> tmp-stdint.h <<EOF
29429 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29430 #ifndef _INT8_T
29431 #define _INT8_T
29432 #endif
29433 #ifndef _INT16_T
29434 #define _INT16_T
29435 #endif
29436 #ifndef _INT32_T
29437 #define _INT32_T
29438 #endif
29440 #ifndef _UINT8_T
29441 #define _UINT8_T
29442 #ifndef __uint8_t_defined
29443 #define __uint8_t_defined
29444 #ifndef uint8_t
29445 typedef u_int8_t uint8_t;
29446 #endif
29447 #endif
29448 #endif
29450 #ifndef _UINT16_T
29451 #define _UINT16_T
29452 #ifndef __uint16_t_defined
29453 #define __uint16_t_defined
29454 #ifndef uint16_t
29455 typedef u_int16_t uint16_t;
29456 #endif
29457 #endif
29458 #endif
29460 #ifndef _UINT32_T
29461 #define _UINT32_T
29462 #ifndef __uint32_t_defined
29463 #define __uint32_t_defined
29464 #ifndef uint32_t
29465 typedef u_int32_t uint32_t;
29466 #endif
29467 #endif
29468 #endif
29470 else
29471 sed 's/^ *//' >> tmp-stdint.h <<EOF
29473 /* Some systems have guard macros to prevent redefinitions, define them. */
29474 #ifndef _INT8_T
29475 #define _INT8_T
29476 #endif
29477 #ifndef _INT16_T
29478 #define _INT16_T
29479 #endif
29480 #ifndef _INT32_T
29481 #define _INT32_T
29482 #endif
29483 #ifndef _UINT8_T
29484 #define _UINT8_T
29485 #endif
29486 #ifndef _UINT16_T
29487 #define _UINT16_T
29488 #endif
29489 #ifndef _UINT32_T
29490 #define _UINT32_T
29491 #endif
29495 # ------------- done basic int types, emit int64_t types ------------
29496 if test "$ac_cv_type_uint64_t" = yes; then
29497 sed 's/^ *//' >> tmp-stdint.h <<EOF
29499 /* system headers have good uint64_t and int64_t */
29500 #ifndef _INT64_T
29501 #define _INT64_T
29502 #endif
29503 #ifndef _UINT64_T
29504 #define _UINT64_T
29505 #endif
29507 elif test "$ac_cv_type_u_int64_t" = yes; then
29508 sed 's/^ *//' >> tmp-stdint.h <<EOF
29510 /* system headers have an u_int64_t (and int64_t) */
29511 #ifndef _INT64_T
29512 #define _INT64_T
29513 #endif
29514 #ifndef _UINT64_T
29515 #define _UINT64_T
29516 #ifndef __uint64_t_defined
29517 #define __uint64_t_defined
29518 #ifndef uint64_t
29519 typedef u_int64_t uint64_t;
29520 #endif
29521 #endif
29522 #endif
29524 elif test -n "$acx_cv_type_int64_t"; then
29525 sed 's/^ *//' >> tmp-stdint.h <<EOF
29527 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29528 #ifndef _INT64_T
29529 #define _INT64_T
29530 #ifndef int64_t
29531 typedef $acx_cv_type_int64_t int64_t;
29532 #endif
29533 #endif
29534 #ifndef _UINT64_T
29535 #define _UINT64_T
29536 #ifndef __uint64_t_defined
29537 #define __uint64_t_defined
29538 #ifndef uint64_t
29539 typedef unsigned $acx_cv_type_int64_t uint64_t;
29540 #endif
29541 #endif
29542 #endif
29544 else
29545 sed 's/^ *//' >> tmp-stdint.h <<EOF
29547 /* some common heuristics for int64_t, using compiler-specific tests */
29548 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29549 #ifndef _INT64_T
29550 #define _INT64_T
29551 #ifndef __int64_t_defined
29552 #ifndef int64_t
29553 typedef long long int64_t;
29554 #endif
29555 #endif
29556 #endif
29557 #ifndef _UINT64_T
29558 #define _UINT64_T
29559 #ifndef uint64_t
29560 typedef unsigned long long uint64_t;
29561 #endif
29562 #endif
29564 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29565 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29566 does not implement __extension__. But that compiler doesn't define
29567 __GNUC_MINOR__. */
29568 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29569 # define __extension__
29570 # endif
29572 # ifndef _INT64_T
29573 # define _INT64_T
29574 # ifndef int64_t
29575 __extension__ typedef long long int64_t;
29576 # endif
29577 # endif
29578 # ifndef _UINT64_T
29579 # define _UINT64_T
29580 # ifndef uint64_t
29581 __extension__ typedef unsigned long long uint64_t;
29582 # endif
29583 # endif
29585 #elif !defined __STRICT_ANSI__
29586 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29588 # ifndef _INT64_T
29589 # define _INT64_T
29590 # ifndef int64_t
29591 typedef __int64 int64_t;
29592 # endif
29593 # endif
29594 # ifndef _UINT64_T
29595 # define _UINT64_T
29596 # ifndef uint64_t
29597 typedef unsigned __int64 uint64_t;
29598 # endif
29599 # endif
29600 # endif /* compiler */
29602 #endif /* ANSI version */
29606 # ------------- done int64_t types, emit intptr types ------------
29607 if test "$ac_cv_type_uintptr_t" != yes; then
29608 sed 's/^ *//' >> tmp-stdint.h <<EOF
29610 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29611 #ifndef __uintptr_t_defined
29612 #ifndef uintptr_t
29613 typedef u$acx_cv_type_intptr_t uintptr_t;
29614 #endif
29615 #endif
29616 #ifndef __intptr_t_defined
29617 #ifndef intptr_t
29618 typedef $acx_cv_type_intptr_t intptr_t;
29619 #endif
29620 #endif
29624 # ------------- done intptr types, emit int_least types ------------
29625 if test "$ac_cv_type_int_least32_t" != yes; then
29626 sed 's/^ *//' >> tmp-stdint.h <<EOF
29628 /* Define int_least types */
29629 typedef int8_t int_least8_t;
29630 typedef int16_t int_least16_t;
29631 typedef int32_t int_least32_t;
29632 #ifdef _INT64_T
29633 typedef int64_t int_least64_t;
29634 #endif
29636 typedef uint8_t uint_least8_t;
29637 typedef uint16_t uint_least16_t;
29638 typedef uint32_t uint_least32_t;
29639 #ifdef _UINT64_T
29640 typedef uint64_t uint_least64_t;
29641 #endif
29645 # ------------- done intptr types, emit int_fast types ------------
29646 if test "$ac_cv_type_int_fast32_t" != yes; then
29647 sed 's/^ *//' >> tmp-stdint.h <<EOF
29649 /* Define int_fast types. short is often slow */
29650 typedef int8_t int_fast8_t;
29651 typedef int int_fast16_t;
29652 typedef int32_t int_fast32_t;
29653 #ifdef _INT64_T
29654 typedef int64_t int_fast64_t;
29655 #endif
29657 typedef uint8_t uint_fast8_t;
29658 typedef unsigned int uint_fast16_t;
29659 typedef uint32_t uint_fast32_t;
29660 #ifdef _UINT64_T
29661 typedef uint64_t uint_fast64_t;
29662 #endif
29666 if test "$ac_cv_type_uintmax_t" != yes; then
29667 sed 's/^ *//' >> tmp-stdint.h <<EOF
29669 /* Define intmax based on what we found */
29670 #ifndef intmax_t
29671 #ifdef _INT64_T
29672 typedef int64_t intmax_t;
29673 #else
29674 typedef long intmax_t;
29675 #endif
29676 #endif
29677 #ifndef uintmax_t
29678 #ifdef _UINT64_T
29679 typedef uint64_t uintmax_t;
29680 #else
29681 typedef unsigned long uintmax_t;
29682 #endif
29683 #endif
29687 sed 's/^ *//' >> tmp-stdint.h <<EOF
29689 #endif /* GCC_GENERATED_STDINT_H */
29692 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29693 rm -f tmp-stdint.h
29694 else
29695 mv -f tmp-stdint.h gstdint.h
29700 esac
29701 done # for ac_tag
29704 as_fn_exit 0
29705 _ACEOF
29706 ac_clean_files=$ac_clean_files_save
29708 test $ac_write_fail = 0 ||
29709 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29712 # configure is writing to config.log, and then calls config.status.
29713 # config.status does its own redirection, appending to config.log.
29714 # Unfortunately, on DOS this fails, as config.log is still kept open
29715 # by configure, so config.status won't be able to write to it; its
29716 # output is simply discarded. So we exec the FD to /dev/null,
29717 # effectively closing config.log, so it can be properly (re)opened and
29718 # appended to by config.status. When coming back to configure, we
29719 # need to make the FD available again.
29720 if test "$no_create" != yes; then
29721 ac_cs_success=:
29722 ac_config_status_args=
29723 test "$silent" = yes &&
29724 ac_config_status_args="$ac_config_status_args --quiet"
29725 exec 5>/dev/null
29726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29727 exec 5>>config.log
29728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29729 # would make configure fail if this is the last instruction.
29730 $ac_cs_success || as_fn_exit $?
29732 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29734 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}